@airtop/sdk 0.1.5 → 0.1.7
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/Client.d.ts +3 -3
- package/Client.js +9 -9
- package/README.md +6 -6
- package/api/resources/index.d.ts +3 -3
- package/api/resources/index.js +4 -4
- package/api/resources/profiles/client/Client.js +4 -4
- package/api/resources/sessions/client/Client.js +10 -10
- package/api/resources/windows/client/Client.d.ts +37 -3
- package/api/resources/windows/client/Client.js +206 -19
- package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -1
- package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +25 -0
- package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +23 -0
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
- package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -1
- package/api/resources/windows/client/requests/index.d.ts +3 -0
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +3 -2
- package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -0
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +3 -2
- package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -0
- package/api/types/ClickConfig.d.ts +8 -0
- package/api/types/CustomProxy.d.ts +1 -1
- package/api/types/Issue.d.ts +2 -0
- package/{dist/api/types/EmptyResponseJson.d.ts → api/types/OperationOutcome.d.ts} +1 -1
- package/api/types/{EmptyResponse.d.ts → OperationOutcomeResponse.d.ts} +3 -3
- package/api/types/PageQueryConfig.d.ts +3 -0
- package/api/types/SessionConfigV1Proxy.d.ts +4 -1
- package/api/types/SummaryConfig.d.ts +2 -0
- package/api/types/VisualAnalysisConfig.d.ts +12 -0
- package/api/types/VisualAnalysisConfig.js +5 -0
- package/api/types/VisualAnalysisConfigPartitionDirection.d.ts +12 -0
- package/api/types/VisualAnalysisConfigPartitionDirection.js +11 -0
- package/api/types/VisualAnalysisConfigScope.d.ts +11 -0
- package/api/types/VisualAnalysisConfigScope.js +10 -0
- package/api/types/index.d.ts +6 -4
- package/api/types/index.js +6 -4
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +9 -9
- package/dist/api/resources/index.d.ts +3 -3
- package/dist/api/resources/index.js +4 -4
- package/dist/api/resources/profiles/client/Client.js +4 -4
- package/dist/api/resources/sessions/client/Client.js +10 -10
- package/dist/api/resources/windows/client/Client.d.ts +37 -3
- package/dist/api/resources/windows/client/Client.js +206 -19
- package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +1 -1
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +1 -1
- package/dist/api/resources/windows/client/requests/index.d.ts +3 -0
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +3 -2
- package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -0
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +3 -2
- package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -0
- package/dist/api/types/ClickConfig.d.ts +8 -0
- package/dist/api/types/ClickConfig.js +5 -0
- package/dist/api/types/CustomProxy.d.ts +1 -1
- package/dist/api/types/Issue.d.ts +2 -0
- package/{api/types/EmptyResponseJson.d.ts → dist/api/types/OperationOutcome.d.ts} +1 -1
- package/dist/api/types/OperationOutcome.js +5 -0
- package/dist/api/types/{EmptyResponse.d.ts → OperationOutcomeResponse.d.ts} +3 -3
- package/dist/api/types/OperationOutcomeResponse.js +5 -0
- package/dist/api/types/PageQueryConfig.d.ts +3 -0
- package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -1
- package/dist/api/types/SummaryConfig.d.ts +2 -0
- package/dist/api/types/VisualAnalysisConfig.d.ts +12 -0
- package/dist/api/types/VisualAnalysisConfig.js +5 -0
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.d.ts +12 -0
- package/dist/api/types/VisualAnalysisConfigPartitionDirection.js +11 -0
- package/dist/api/types/VisualAnalysisConfigScope.d.ts +11 -0
- package/dist/api/types/VisualAnalysisConfigScope.js +10 -0
- package/dist/api/types/index.d.ts +6 -4
- package/dist/api/types/index.js +6 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/serialization/resources/index.d.ts +3 -3
- package/dist/serialization/resources/index.js +4 -4
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +17 -0
- package/{serialization/types/EnvelopeStatusDefaultMeta.js → dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js} +9 -6
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +38 -0
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +40 -0
- package/dist/serialization/resources/windows/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/windows/client/requests/index.js +7 -1
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
- package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -1
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
- package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -1
- package/dist/serialization/types/ClickConfig.d.ts +13 -0
- package/dist/serialization/types/ClickConfig.js +34 -0
- package/dist/serialization/types/Issue.d.ts +1 -0
- package/dist/serialization/types/Issue.js +1 -0
- package/{serialization/types/EmptyResponseJson.d.ts → dist/serialization/types/OperationOutcome.d.ts} +2 -2
- package/{serialization/types/EmptyResponseJson.js → dist/serialization/types/OperationOutcome.js} +2 -2
- package/dist/serialization/types/OperationOutcomeResponse.d.ts +18 -0
- package/dist/serialization/types/{EmptyResponse.js → OperationOutcomeResponse.js} +6 -6
- package/dist/serialization/types/PageQueryConfig.d.ts +2 -0
- package/dist/serialization/types/PageQueryConfig.js +2 -0
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
- package/dist/serialization/types/SessionConfigV1Proxy.js +5 -1
- package/dist/serialization/types/SummaryConfig.d.ts +2 -0
- package/dist/serialization/types/SummaryConfig.js +2 -0
- package/dist/serialization/types/VisualAnalysisConfig.d.ts +16 -0
- package/dist/serialization/types/{EnvelopeStatusDefaultMeta.js → VisualAnalysisConfig.js} +7 -5
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +10 -0
- package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.js +31 -0
- package/dist/serialization/types/VisualAnalysisConfigScope.d.ts +10 -0
- package/dist/serialization/types/{EnvelopeStatusDefaultMetaStatus.js → VisualAnalysisConfigScope.js} +2 -2
- package/dist/serialization/types/index.d.ts +6 -4
- package/dist/serialization/types/index.js +6 -4
- package/dist/utils/batch-operate/SessionQueue.d.ts +46 -0
- package/dist/utils/batch-operate/SessionQueue.js +223 -0
- package/dist/utils/batch-operate/WindowQueue.d.ts +25 -0
- package/dist/utils/batch-operate/WindowQueue.js +201 -0
- package/dist/utils/batch-operate/batch-util.d.ts +3 -0
- package/dist/utils/batch-operate/batch-util.js +51 -0
- package/dist/utils/batch-operate/helpers.d.ts +2 -0
- package/dist/utils/batch-operate/helpers.js +19 -0
- package/dist/utils/batch-operate/types.d.ts +29 -0
- package/dist/utils/batch-operate/types.js +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +18 -0
- package/dist/wrapper/AirtopClient.d.ts +3 -0
- package/dist/wrapper/AirtopClient.js +16 -0
- package/index.d.ts +1 -0
- package/index.js +4 -0
- package/package.json +3 -2
- package/reference.md +344 -148
- package/serialization/resources/index.d.ts +3 -3
- package/serialization/resources/index.js +4 -4
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +17 -0
- package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +38 -0
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +17 -0
- package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +38 -0
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +19 -0
- package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +40 -0
- package/serialization/resources/windows/client/requests/index.d.ts +3 -0
- package/serialization/resources/windows/client/requests/index.js +7 -1
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
- package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +1 -1
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
- package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +1 -1
- package/serialization/types/ClickConfig.d.ts +13 -0
- package/serialization/types/ClickConfig.js +34 -0
- package/serialization/types/Issue.d.ts +1 -0
- package/serialization/types/Issue.js +1 -0
- package/{dist/serialization/types/EmptyResponseJson.d.ts → serialization/types/OperationOutcome.d.ts} +2 -2
- package/{dist/serialization/types/EmptyResponseJson.js → serialization/types/OperationOutcome.js} +2 -2
- package/serialization/types/OperationOutcomeResponse.d.ts +18 -0
- package/serialization/types/{EmptyResponse.js → OperationOutcomeResponse.js} +6 -6
- package/serialization/types/PageQueryConfig.d.ts +2 -0
- package/serialization/types/PageQueryConfig.js +2 -0
- package/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
- package/serialization/types/SessionConfigV1Proxy.js +5 -1
- package/serialization/types/SummaryConfig.d.ts +2 -0
- package/serialization/types/SummaryConfig.js +2 -0
- package/serialization/types/VisualAnalysisConfig.d.ts +16 -0
- package/serialization/types/VisualAnalysisConfig.js +37 -0
- package/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +10 -0
- package/serialization/types/VisualAnalysisConfigPartitionDirection.js +31 -0
- package/serialization/types/VisualAnalysisConfigScope.d.ts +10 -0
- package/serialization/types/{EnvelopeStatusDefaultMetaStatus.js → VisualAnalysisConfigScope.js} +2 -2
- package/serialization/types/index.d.ts +6 -4
- package/serialization/types/index.js +6 -4
- package/utils/batch-operate/SessionQueue.d.ts +46 -0
- package/utils/batch-operate/SessionQueue.js +223 -0
- package/utils/batch-operate/WindowQueue.d.ts +25 -0
- package/utils/batch-operate/WindowQueue.js +201 -0
- package/utils/batch-operate/batch-util.d.ts +3 -0
- package/utils/batch-operate/batch-util.js +51 -0
- package/utils/batch-operate/helpers.d.ts +2 -0
- package/utils/batch-operate/helpers.js +19 -0
- package/utils/batch-operate/types.d.ts +29 -0
- package/utils/batch-operate/types.js +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/index.js +18 -0
- package/wrapper/AirtopClient.d.ts +3 -0
- package/wrapper/AirtopClient.js +16 -0
- package/api/types/EnvelopeStatusDefaultMeta.d.ts +0 -8
- package/api/types/EnvelopeStatusDefaultMetaStatus.d.ts +0 -9
- package/api/types/EnvelopeStatusDefaultMetaStatus.js +0 -11
- package/dist/api/types/EnvelopeStatusDefaultMeta.d.ts +0 -8
- package/dist/api/types/EnvelopeStatusDefaultMetaStatus.d.ts +0 -9
- package/dist/api/types/EnvelopeStatusDefaultMetaStatus.js +0 -11
- package/dist/serialization/types/EmptyResponse.d.ts +0 -18
- package/dist/serialization/types/EnvelopeStatusDefaultMeta.d.ts +0 -14
- package/dist/serialization/types/EnvelopeStatusDefaultMetaStatus.d.ts +0 -10
- package/serialization/types/EmptyResponse.d.ts +0 -18
- package/serialization/types/EnvelopeStatusDefaultMeta.d.ts +0 -14
- package/serialization/types/EnvelopeStatusDefaultMetaStatus.d.ts +0 -10
- /package/api/{types/EmptyResponse.js → resources/windows/client/requests/SessionClickHandlerRequestBody.js} +0 -0
- /package/api/{types/EmptyResponseJson.js → resources/windows/client/requests/SessionHoverHandlerRequestBody.js} +0 -0
- /package/api/{types/EnvelopeStatusDefaultMeta.js → resources/windows/client/requests/SessionTypeHandlerRequestBody.js} +0 -0
- /package/{dist/api/types/EmptyResponse.js → api/types/ClickConfig.js} +0 -0
- /package/{dist/api/types/EmptyResponseJson.js → api/types/OperationOutcome.js} +0 -0
- /package/{dist/api/types/EnvelopeStatusDefaultMeta.js → api/types/OperationOutcomeResponse.js} +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../../../../index";
|
5
|
+
/**
|
6
|
+
* @example
|
7
|
+
* {}
|
8
|
+
*/
|
9
|
+
export interface SessionHoverHandlerRequestBody {
|
10
|
+
clientRequestId?: string;
|
11
|
+
/** Request configuration */
|
12
|
+
configuration?: Airtop.ClickConfig;
|
13
|
+
/** 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). */
|
14
|
+
costThresholdCredits?: number;
|
15
|
+
/** A natural language description of where to hover (e.g. 'the search box', 'username field'). The interaction will be aborted if the target element cannot be found. */
|
16
|
+
elementDescription?: string;
|
17
|
+
/**
|
18
|
+
* 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).
|
19
|
+
*
|
20
|
+
* This setting does not extend the maximum session duration provided at the time of session creation.
|
21
|
+
*/
|
22
|
+
timeThresholdSeconds?: number;
|
23
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../../../../index";
|
5
|
+
/**
|
6
|
+
* @example
|
7
|
+
* {
|
8
|
+
* text: "Example text"
|
9
|
+
* }
|
10
|
+
*/
|
11
|
+
export interface SessionTypeHandlerRequestBody {
|
12
|
+
clientRequestId?: string;
|
13
|
+
/** Request configuration */
|
14
|
+
configuration?: Airtop.ClickConfig;
|
15
|
+
/** 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
|
+
costThresholdCredits?: number;
|
17
|
+
/** A natural language description of where to type (e.g. 'the search box', 'username field'). The interaction will be aborted if the target element cannot be found. */
|
18
|
+
elementDescription?: string;
|
19
|
+
/** If true, simulates pressing the Enter key after typing the text. */
|
20
|
+
pressEnterKey?: boolean;
|
21
|
+
/** The text to type into the browser window. */
|
22
|
+
text: string;
|
23
|
+
/**
|
24
|
+
* A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
|
25
|
+
*
|
26
|
+
* This setting does not extend the maximum session duration provided at the time of session creation.
|
27
|
+
*/
|
28
|
+
timeThresholdSeconds?: number;
|
29
|
+
}
|
@@ -11,7 +11,7 @@ import * as Airtop from "../../../../index";
|
|
11
11
|
export interface WindowLoadUrlV1Body {
|
12
12
|
/** Url to navigate to */
|
13
13
|
url: string;
|
14
|
-
/** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded,
|
14
|
+
/** Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, 'complete' will wait until the page and all it's iframes have loaded it's dom and assets. 'noWait' will not wait for any loading event and will return immediately. */
|
15
15
|
waitUntil?: Airtop.WindowLoadUrlV1BodyWaitUntil;
|
16
16
|
/** Maximum time in seconds to wait for the specified loading event to occur before timing out. */
|
17
17
|
waitUntilTimeoutSeconds?: number;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
export { type CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
|
2
2
|
export { type GetWindowInfoRequest } from "./GetWindowInfoRequest";
|
3
3
|
export { type WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
|
4
|
+
export { type SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
|
5
|
+
export { type SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
|
4
6
|
export { type ScrapeContentRequest } from "./ScrapeContentRequest";
|
5
7
|
export { type SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
|
8
|
+
export { type SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
|
@@ -2,11 +2,12 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
/**
|
5
|
-
* Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded,
|
5
|
+
* Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, 'complete' will wait until the page and all it's iframes have loaded it's dom and assets. 'noWait' will not wait for any loading event and will return immediately.
|
6
6
|
*/
|
7
|
-
export declare type CreateWindowInputV1BodyWaitUntil = "load" | "domContentLoaded" | "complete";
|
7
|
+
export declare type CreateWindowInputV1BodyWaitUntil = "load" | "domContentLoaded" | "complete" | "noWait";
|
8
8
|
export declare const CreateWindowInputV1BodyWaitUntil: {
|
9
9
|
readonly Load: "load";
|
10
10
|
readonly DomContentLoaded: "domContentLoaded";
|
11
11
|
readonly Complete: "complete";
|
12
|
+
readonly NoWait: "noWait";
|
12
13
|
};
|
@@ -2,11 +2,12 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
/**
|
5
|
-
* Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded,
|
5
|
+
* Wait until the specified loading event occurs. Defaults to 'load', which waits until the page dom and it's assets have loaded. 'domContentLoaded' will wait until the dom has loaded, 'complete' will wait until the page and all it's iframes have loaded it's dom and assets. 'noWait' will not wait for any loading event and will return immediately.
|
6
6
|
*/
|
7
|
-
export declare type WindowLoadUrlV1BodyWaitUntil = "load" | "domContentLoaded" | "complete";
|
7
|
+
export declare type WindowLoadUrlV1BodyWaitUntil = "load" | "domContentLoaded" | "complete" | "noWait";
|
8
8
|
export declare const WindowLoadUrlV1BodyWaitUntil: {
|
9
9
|
readonly Load: "load";
|
10
10
|
readonly DomContentLoaded: "domContentLoaded";
|
11
11
|
readonly Complete: "complete";
|
12
|
+
readonly NoWait: "noWait";
|
12
13
|
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface ClickConfig {
|
6
|
+
/** Optional configuration for visual analysis when locating specified content. */
|
7
|
+
visualAnalysis?: Airtop.VisualAnalysisConfig;
|
8
|
+
}
|
@@ -7,7 +7,7 @@ import * as Airtop from "../index";
|
|
7
7
|
*/
|
8
8
|
export declare type CustomProxy =
|
9
9
|
/**
|
10
|
-
*
|
10
|
+
* url of the proxy. Or "default" to use airtop provided proxy. */
|
11
11
|
string
|
12
12
|
/**
|
13
13
|
* Proxy object with url of the proxy as a parameter. Takes optional username and password. */
|
package/api/types/Issue.d.ts
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Airtop from "../index";
|
5
|
-
export interface
|
6
|
-
data: Airtop.
|
5
|
+
export interface OperationOutcomeResponse {
|
6
|
+
data: Airtop.OperationOutcome;
|
7
7
|
errors?: Airtop.Issue[];
|
8
|
-
meta: Airtop.
|
8
|
+
meta: Airtop.EnvelopeDefaultMeta;
|
9
9
|
warnings?: Airtop.Issue[];
|
10
10
|
}
|
@@ -1,7 +1,10 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
import * as Airtop from "../index";
|
4
5
|
export interface PageQueryConfig {
|
6
|
+
/** Experimental configuration options. These may be subject to change and are not guaranteed to be stable across versions. */
|
7
|
+
experimental?: Airtop.PageQueryExperimentalConfig;
|
5
8
|
/** JSON schema defining the structure of the output. If not provided, the format of the output might vary. */
|
6
9
|
outputSchema?: string;
|
7
10
|
}
|
@@ -6,9 +6,12 @@ import * as Airtop from "../index";
|
|
6
6
|
* Proxy configuration.
|
7
7
|
*/
|
8
8
|
export declare type SessionConfigV1Proxy =
|
9
|
+
/**
|
10
|
+
* True to use airtop provided proxy */
|
11
|
+
boolean
|
9
12
|
/**
|
10
13
|
* Configuration for a single custom proxy. */
|
11
|
-
Airtop.CustomProxy
|
14
|
+
| Airtop.CustomProxy
|
12
15
|
/**
|
13
16
|
* Array of proxy configurations. Includes a domain pattern and a proxy configuration to assign proxies to specific domains. */
|
14
17
|
| Airtop.SessionConfigV1ProxyItem[];
|
@@ -1,7 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
import * as Airtop from "../index";
|
4
5
|
export interface SummaryConfig {
|
6
|
+
experimental?: Airtop.SummaryExperimentalConfig;
|
5
7
|
/** JSON schema defining the structure of the output. If not provided, the format of the output might vary. */
|
6
8
|
outputSchema?: string;
|
7
9
|
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface VisualAnalysisConfig {
|
6
|
+
/** The percentage of overlap between screenshot chunks. Defaults to 30 (percent). */
|
7
|
+
overlapPercentage?: number;
|
8
|
+
/** The direction to partition the screenshot into chunks: 'vertical', 'horizontal', or 'bidirectional'. Defaults to 'vertical', which is recommended for most web pages. For optimal results when partitioning in a single direction, ensure the perpendicular dimension does not exceed 1920 pixels. */
|
9
|
+
partitionDirection?: Airtop.VisualAnalysisConfigPartitionDirection;
|
10
|
+
/** Whether to analyze the current viewport or the whole page. Can be 'viewport' or 'page'. Defaults to 'page', which provides the simplest out-of-the-box experience for most web pages. Use 'viewport' for full control over the analyzed content. */
|
11
|
+
scope?: Airtop.VisualAnalysisConfigScope;
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* The direction to partition the screenshot into chunks: 'vertical', 'horizontal', or 'bidirectional'. Defaults to 'vertical', which is recommended for most web pages. For optimal results when partitioning in a single direction, ensure the perpendicular dimension does not exceed 1920 pixels.
|
6
|
+
*/
|
7
|
+
export declare type VisualAnalysisConfigPartitionDirection = "vertical" | "horizontal" | "bidirectional";
|
8
|
+
export declare const VisualAnalysisConfigPartitionDirection: {
|
9
|
+
readonly Vertical: "vertical";
|
10
|
+
readonly Horizontal: "horizontal";
|
11
|
+
readonly Bidirectional: "bidirectional";
|
12
|
+
};
|
@@ -0,0 +1,11 @@
|
|
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.VisualAnalysisConfigPartitionDirection = void 0;
|
7
|
+
exports.VisualAnalysisConfigPartitionDirection = {
|
8
|
+
Vertical: "vertical",
|
9
|
+
Horizontal: "horizontal",
|
10
|
+
Bidirectional: "bidirectional",
|
11
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* Whether to analyze the current viewport or the whole page. Can be 'viewport' or 'page'. Defaults to 'page', which provides the simplest out-of-the-box experience for most web pages. Use 'viewport' for full control over the analyzed content.
|
6
|
+
*/
|
7
|
+
export declare type VisualAnalysisConfigScope = "viewport" | "page";
|
8
|
+
export declare const VisualAnalysisConfigScope: {
|
9
|
+
readonly Viewport: "viewport";
|
10
|
+
readonly Page: "page";
|
11
|
+
};
|
@@ -0,0 +1,10 @@
|
|
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.VisualAnalysisConfigScope = void 0;
|
7
|
+
exports.VisualAnalysisConfigScope = {
|
8
|
+
Viewport: "viewport",
|
9
|
+
Page: "page",
|
10
|
+
};
|
package/api/types/index.d.ts
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
export * from "./AiPromptResponse";
|
2
2
|
export * from "./AiResponseEnvelope";
|
3
|
+
export * from "./ClickConfig";
|
3
4
|
export * from "./ClientProvidedResponseMetadata";
|
4
|
-
export * from "./EmptyResponse";
|
5
|
-
export * from "./EmptyResponseJson";
|
6
5
|
export * from "./EnvelopeDefaultMeta";
|
7
|
-
export * from "./EnvelopeStatusDefaultMetaStatus";
|
8
|
-
export * from "./EnvelopeStatusDefaultMeta";
|
9
6
|
export * from "./ErrorDetail";
|
10
7
|
export * from "./ErrorMessage";
|
11
8
|
export * from "./ErrorModel";
|
@@ -16,6 +13,8 @@ export * from "./ExternalSessionAiResponseMetadataUsage";
|
|
16
13
|
export * from "./ExternalSessionConfig";
|
17
14
|
export * from "./ExternalSessionWithConnectionInfo";
|
18
15
|
export * from "./Issue";
|
16
|
+
export * from "./OperationOutcome";
|
17
|
+
export * from "./OperationOutcomeResponse";
|
19
18
|
export * from "./PageQueryConfig";
|
20
19
|
export * from "./PageQueryExperimentalConfig";
|
21
20
|
export * from "./Pagination";
|
@@ -37,6 +36,9 @@ export * from "./StatusMessageStatus";
|
|
37
36
|
export * from "./StatusMessage";
|
38
37
|
export * from "./SummaryConfig";
|
39
38
|
export * from "./SummaryExperimentalConfig";
|
39
|
+
export * from "./VisualAnalysisConfigPartitionDirection";
|
40
|
+
export * from "./VisualAnalysisConfigScope";
|
41
|
+
export * from "./VisualAnalysisConfig";
|
40
42
|
export * from "./Window";
|
41
43
|
export * from "./WindowId";
|
42
44
|
export * from "./WindowIdResponse";
|
package/api/types/index.js
CHANGED
@@ -16,12 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./AiPromptResponse"), exports);
|
18
18
|
__exportStar(require("./AiResponseEnvelope"), exports);
|
19
|
+
__exportStar(require("./ClickConfig"), exports);
|
19
20
|
__exportStar(require("./ClientProvidedResponseMetadata"), exports);
|
20
|
-
__exportStar(require("./EmptyResponse"), exports);
|
21
|
-
__exportStar(require("./EmptyResponseJson"), exports);
|
22
21
|
__exportStar(require("./EnvelopeDefaultMeta"), exports);
|
23
|
-
__exportStar(require("./EnvelopeStatusDefaultMetaStatus"), exports);
|
24
|
-
__exportStar(require("./EnvelopeStatusDefaultMeta"), exports);
|
25
22
|
__exportStar(require("./ErrorDetail"), exports);
|
26
23
|
__exportStar(require("./ErrorMessage"), exports);
|
27
24
|
__exportStar(require("./ErrorModel"), exports);
|
@@ -32,6 +29,8 @@ __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
|
|
32
29
|
__exportStar(require("./ExternalSessionConfig"), exports);
|
33
30
|
__exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
|
34
31
|
__exportStar(require("./Issue"), exports);
|
32
|
+
__exportStar(require("./OperationOutcome"), exports);
|
33
|
+
__exportStar(require("./OperationOutcomeResponse"), exports);
|
35
34
|
__exportStar(require("./PageQueryConfig"), exports);
|
36
35
|
__exportStar(require("./PageQueryExperimentalConfig"), exports);
|
37
36
|
__exportStar(require("./Pagination"), exports);
|
@@ -53,6 +52,9 @@ __exportStar(require("./StatusMessageStatus"), exports);
|
|
53
52
|
__exportStar(require("./StatusMessage"), exports);
|
54
53
|
__exportStar(require("./SummaryConfig"), exports);
|
55
54
|
__exportStar(require("./SummaryExperimentalConfig"), exports);
|
55
|
+
__exportStar(require("./VisualAnalysisConfigPartitionDirection"), exports);
|
56
|
+
__exportStar(require("./VisualAnalysisConfigScope"), exports);
|
57
|
+
__exportStar(require("./VisualAnalysisConfig"), exports);
|
56
58
|
__exportStar(require("./Window"), exports);
|
57
59
|
__exportStar(require("./WindowId"), exports);
|
58
60
|
__exportStar(require("./WindowIdResponse"), exports);
|
package/dist/Client.d.ts
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
*/
|
4
4
|
import * as environments from "./environments";
|
5
5
|
import * as core from "./core";
|
6
|
+
import { Windows } from "./api/resources/windows/client/Client";
|
6
7
|
import { Profiles } from "./api/resources/profiles/client/Client";
|
7
8
|
import { Sessions } from "./api/resources/sessions/client/Client";
|
8
|
-
import { Windows } from "./api/resources/windows/client/Client";
|
9
9
|
export declare namespace AirtopClient {
|
10
10
|
interface Options {
|
11
11
|
environment?: core.Supplier<environments.AirtopEnvironment | string>;
|
@@ -24,10 +24,10 @@ export declare namespace AirtopClient {
|
|
24
24
|
export declare class AirtopClient {
|
25
25
|
protected readonly _options: AirtopClient.Options;
|
26
26
|
constructor(_options: AirtopClient.Options);
|
27
|
+
protected _windows: Windows | undefined;
|
28
|
+
get windows(): Windows;
|
27
29
|
protected _profiles: Profiles | undefined;
|
28
30
|
get profiles(): Profiles;
|
29
31
|
protected _sessions: Sessions | undefined;
|
30
32
|
get sessions(): Sessions;
|
31
|
-
protected _windows: Windows | undefined;
|
32
|
-
get windows(): Windows;
|
33
33
|
}
|
package/dist/Client.js
CHANGED
@@ -4,24 +4,24 @@
|
|
4
4
|
*/
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.AirtopClient = void 0;
|
7
|
-
const Client_1 = require("./api/resources/
|
8
|
-
const Client_2 = require("./api/resources/
|
9
|
-
const Client_3 = require("./api/resources/
|
7
|
+
const Client_1 = require("./api/resources/windows/client/Client");
|
8
|
+
const Client_2 = require("./api/resources/profiles/client/Client");
|
9
|
+
const Client_3 = require("./api/resources/sessions/client/Client");
|
10
10
|
class AirtopClient {
|
11
11
|
constructor(_options) {
|
12
12
|
this._options = _options;
|
13
13
|
}
|
14
|
-
get
|
14
|
+
get windows() {
|
15
15
|
var _a;
|
16
|
-
return ((_a = this.
|
16
|
+
return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new Client_1.Windows(this._options)));
|
17
17
|
}
|
18
|
-
get
|
18
|
+
get profiles() {
|
19
19
|
var _a;
|
20
|
-
return ((_a = this.
|
20
|
+
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_2.Profiles(this._options)));
|
21
21
|
}
|
22
|
-
get
|
22
|
+
get sessions() {
|
23
23
|
var _a;
|
24
|
-
return ((_a = this.
|
24
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_3.Sessions(this._options)));
|
25
25
|
}
|
26
26
|
}
|
27
27
|
exports.AirtopClient = AirtopClient;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export * as sessions from "./sessions";
|
2
|
-
export * from "./sessions/types";
|
3
1
|
export * as windows from "./windows";
|
4
2
|
export * from "./windows/types";
|
3
|
+
export * as sessions from "./sessions";
|
4
|
+
export * from "./sessions/types";
|
5
5
|
export * as profiles from "./profiles";
|
6
|
+
export * from "./windows/client/requests";
|
6
7
|
export * from "./profiles/client/requests";
|
7
8
|
export * from "./sessions/client/requests";
|
8
|
-
export * from "./windows/client/requests";
|
@@ -26,12 +26,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.profiles = exports.
|
30
|
-
exports.sessions = __importStar(require("./sessions"));
|
31
|
-
__exportStar(require("./sessions/types"), exports);
|
29
|
+
exports.profiles = exports.sessions = exports.windows = void 0;
|
32
30
|
exports.windows = __importStar(require("./windows"));
|
33
31
|
__exportStar(require("./windows/types"), exports);
|
32
|
+
exports.sessions = __importStar(require("./sessions"));
|
33
|
+
__exportStar(require("./sessions/types"), exports);
|
34
34
|
exports.profiles = __importStar(require("./profiles"));
|
35
|
+
__exportStar(require("./windows/client/requests"), exports);
|
35
36
|
__exportStar(require("./profiles/client/requests"), exports);
|
36
37
|
__exportStar(require("./sessions/client/requests"), exports);
|
37
|
-
__exportStar(require("./windows/client/requests"), exports);
|
@@ -77,8 +77,8 @@ class Profiles {
|
|
77
77
|
Authorization: yield this._getAuthorizationHeader(),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
80
|
-
"X-Fern-SDK-Version": "0.1.
|
81
|
-
"User-Agent": "@airtop/sdk/0.1.
|
80
|
+
"X-Fern-SDK-Version": "0.1.7",
|
81
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
82
82
|
"X-Fern-Runtime": core.RUNTIME.type,
|
83
83
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
84
84
|
},
|
@@ -148,8 +148,8 @@ class Profiles {
|
|
148
148
|
Authorization: yield this._getAuthorizationHeader(),
|
149
149
|
"X-Fern-Language": "JavaScript",
|
150
150
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
151
|
-
"X-Fern-SDK-Version": "0.1.
|
152
|
-
"User-Agent": "@airtop/sdk/0.1.
|
151
|
+
"X-Fern-SDK-Version": "0.1.7",
|
152
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
153
153
|
"X-Fern-Runtime": core.RUNTIME.type,
|
154
154
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
155
155
|
},
|
@@ -94,8 +94,8 @@ class Sessions {
|
|
94
94
|
Authorization: yield this._getAuthorizationHeader(),
|
95
95
|
"X-Fern-Language": "JavaScript",
|
96
96
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
97
|
-
"X-Fern-SDK-Version": "0.1.
|
98
|
-
"User-Agent": "@airtop/sdk/0.1.
|
97
|
+
"X-Fern-SDK-Version": "0.1.7",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
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.7",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
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.7",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
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.7",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
337
337
|
"X-Fern-Runtime": core.RUNTIME.type,
|
338
338
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
339
339
|
},
|
@@ -380,8 +380,8 @@ class Sessions {
|
|
380
380
|
Authorization: yield this._getAuthorizationHeader(),
|
381
381
|
"X-Fern-Language": "JavaScript",
|
382
382
|
"X-Fern-SDK-Name": "@airtop/sdk",
|
383
|
-
"X-Fern-SDK-Version": "0.1.
|
384
|
-
"User-Agent": "@airtop/sdk/0.1.
|
383
|
+
"X-Fern-SDK-Version": "0.1.7",
|
384
|
+
"User-Agent": "@airtop/sdk/0.1.7",
|
385
385
|
"X-Fern-Runtime": core.RUNTIME.type,
|
386
386
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
387
387
|
},
|
@@ -54,7 +54,7 @@ export declare class Windows {
|
|
54
54
|
* url: "https://www.airtop.ai"
|
55
55
|
* })
|
56
56
|
*/
|
57
|
-
loadUrl(sessionId: string, windowId: string, request: Airtop.WindowLoadUrlV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.
|
57
|
+
loadUrl(sessionId: string, windowId: string, request: Airtop.WindowLoadUrlV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.OperationOutcomeResponse>;
|
58
58
|
/**
|
59
59
|
* @param {string} sessionId - ID of the session that owns the window.
|
60
60
|
* @param {string} windowId - Airtop window ID of the browser window.
|
@@ -66,7 +66,29 @@ export declare class Windows {
|
|
66
66
|
close(sessionId: string, windowId: string, requestOptions?: Windows.RequestOptions): Promise<Airtop.WindowIdResponse>;
|
67
67
|
/**
|
68
68
|
* @param {string} sessionId - The session id for the window.
|
69
|
-
* @param {string} windowId - The Airtop window id of the browser window
|
69
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
70
|
+
* @param {Airtop.SessionClickHandlerRequestBody} request
|
71
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
72
|
+
*
|
73
|
+
* @example
|
74
|
+
* await client.windows.click("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
75
|
+
* elementDescription: "The login button"
|
76
|
+
* })
|
77
|
+
*/
|
78
|
+
click(sessionId: string, windowId: string, request: Airtop.SessionClickHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
79
|
+
/**
|
80
|
+
* @param {string} sessionId - The session id for the window.
|
81
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
82
|
+
* @param {Airtop.SessionHoverHandlerRequestBody} request
|
83
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
84
|
+
*
|
85
|
+
* @example
|
86
|
+
* await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
87
|
+
*/
|
88
|
+
hover(sessionId: string, windowId: string, request?: Airtop.SessionHoverHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
89
|
+
/**
|
90
|
+
* @param {string} sessionId - The session id for the window.
|
91
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
70
92
|
* @param {Airtop.SessionPageQueryHandlerRequestBody} request
|
71
93
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
72
94
|
*
|
@@ -80,7 +102,7 @@ export declare class Windows {
|
|
80
102
|
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
81
103
|
*
|
82
104
|
* @param {string} sessionId - The session id for the window.
|
83
|
-
* @param {string} windowId - The Airtop window id of the browser window
|
105
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
84
106
|
* @param {Airtop.SessionPageQueryHandlerRequestBody} request
|
85
107
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
86
108
|
*
|
@@ -112,5 +134,17 @@ export declare class Windows {
|
|
112
134
|
* await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
113
135
|
*/
|
114
136
|
summarizeContent(sessionId: string, windowId: string, request?: Airtop.SessionSummaryHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
137
|
+
/**
|
138
|
+
* @param {string} sessionId - The session id for the window.
|
139
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
140
|
+
* @param {Airtop.SessionTypeHandlerRequestBody} request
|
141
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
142
|
+
*
|
143
|
+
* @example
|
144
|
+
* await client.windows.type("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
145
|
+
* text: "Example text"
|
146
|
+
* })
|
147
|
+
*/
|
148
|
+
type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
115
149
|
protected _getAuthorizationHeader(): Promise<string>;
|
116
150
|
}
|