@airtop/sdk 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/profiles/client/Client.js +4 -4
- package/api/resources/sessions/client/Client.d.ts +2 -2
- package/api/resources/sessions/client/Client.js +12 -12
- package/api/resources/windows/client/Client.d.ts +52 -2
- package/api/resources/windows/client/Client.js +272 -16
- 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/SessionSummaryHandlerRequestBody.d.ts +3 -0
- package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +29 -0
- package/api/resources/windows/client/requests/index.d.ts +3 -1
- package/api/types/ClickConfig.d.ts +4 -0
- package/api/types/CustomProxy.d.ts +1 -1
- package/api/types/PageQueryConfig.d.ts +7 -0
- package/api/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +1 -1
- package/api/types/SessionConfigV1Proxy.d.ts +4 -1
- package/api/{resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → types/SessionPageQueryHandlerRequestBody.d.ts} +6 -9
- package/api/types/SessionPageQueryHandlerRequestBody.js +5 -0
- package/api/types/SummaryConfig.d.ts +2 -2
- package/api/types/index.d.ts +4 -2
- package/api/types/index.js +4 -2
- package/dist/api/resources/profiles/client/Client.js +4 -4
- package/dist/api/resources/sessions/client/Client.d.ts +2 -2
- package/dist/api/resources/sessions/client/Client.js +12 -12
- package/dist/api/resources/windows/client/Client.d.ts +52 -2
- package/dist/api/resources/windows/client/Client.js +272 -16
- 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/SessionSummaryHandlerRequestBody.d.ts +3 -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/index.d.ts +3 -1
- package/dist/api/types/ClickConfig.d.ts +4 -0
- package/dist/api/types/ClickConfig.js +5 -0
- package/dist/api/types/CustomProxy.d.ts +1 -1
- package/dist/api/types/PageQueryConfig.d.ts +7 -0
- package/dist/api/types/PageQueryConfig.js +5 -0
- package/dist/api/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +1 -1
- package/dist/api/types/PageQueryExperimentalConfig.js +5 -0
- package/dist/api/types/SessionConfigV1Proxy.d.ts +4 -1
- package/dist/api/{resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → types/SessionPageQueryHandlerRequestBody.d.ts} +6 -9
- package/dist/api/types/SessionPageQueryHandlerRequestBody.js +5 -0
- package/dist/api/types/SummaryConfig.d.ts +2 -2
- package/dist/api/types/index.d.ts +4 -2
- package/dist/api/types/index.js +4 -2
- package/{serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts} +5 -4
- package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +38 -0
- 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/SessionSummaryHandlerRequestBody.d.ts +2 -0
- package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +2 -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 -1
- package/dist/serialization/resources/windows/client/requests/index.js +7 -3
- package/dist/serialization/types/ClickConfig.d.ts +10 -0
- package/dist/serialization/types/ClickConfig.js +31 -0
- package/dist/serialization/types/PageQueryConfig.d.ts +12 -0
- package/dist/serialization/types/{PromptContentConfig.js → PageQueryConfig.js} +3 -4
- package/dist/serialization/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +2 -2
- package/dist/serialization/types/{PromptContentExperimentalConfig.js → PageQueryExperimentalConfig.js} +2 -2
- package/dist/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
- package/dist/serialization/types/SessionConfigV1Proxy.js +5 -1
- package/dist/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +18 -0
- package/{serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js → dist/serialization/types/SessionPageQueryHandlerRequestBody.js} +5 -3
- package/dist/serialization/types/SummaryConfig.d.ts +1 -2
- package/dist/serialization/types/SummaryConfig.js +1 -2
- package/dist/serialization/types/index.d.ts +4 -2
- package/dist/serialization/types/index.js +4 -2
- package/dist/wrapper/AirtopClient.d.ts +6 -5
- package/dist/wrapper/AirtopClient.js +11 -10
- package/dist/wrapper/AirtopSessions.d.ts +11 -11
- package/dist/wrapper/AirtopSessions.js +16 -17
- package/dist/wrapper/AirtopWindows.d.ts +62 -14
- package/dist/wrapper/AirtopWindows.js +73 -31
- package/package.json +1 -1
- package/reference.md +295 -3
- package/{dist/serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.d.ts → serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts} +5 -4
- 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/SessionSummaryHandlerRequestBody.d.ts +2 -0
- package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +2 -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 -1
- package/serialization/resources/windows/client/requests/index.js +7 -3
- package/serialization/types/ClickConfig.d.ts +10 -0
- package/serialization/types/ClickConfig.js +31 -0
- package/serialization/types/PageQueryConfig.d.ts +12 -0
- package/serialization/types/{PromptContentConfig.js → PageQueryConfig.js} +3 -4
- package/serialization/types/{PromptContentExperimentalConfig.d.ts → PageQueryExperimentalConfig.d.ts} +2 -2
- package/serialization/types/{PromptContentExperimentalConfig.js → PageQueryExperimentalConfig.js} +2 -2
- package/serialization/types/SessionConfigV1Proxy.d.ts +1 -1
- package/serialization/types/SessionConfigV1Proxy.js +5 -1
- package/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +18 -0
- package/{dist/serialization/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js → serialization/types/SessionPageQueryHandlerRequestBody.js} +5 -3
- package/serialization/types/SummaryConfig.d.ts +1 -2
- package/serialization/types/SummaryConfig.js +1 -2
- package/serialization/types/index.d.ts +4 -2
- package/serialization/types/index.js +4 -2
- package/wrapper/AirtopClient.d.ts +6 -5
- package/wrapper/AirtopClient.js +11 -10
- package/wrapper/AirtopSessions.d.ts +11 -11
- package/wrapper/AirtopSessions.js +16 -17
- package/wrapper/AirtopWindows.d.ts +62 -14
- package/wrapper/AirtopWindows.js +73 -31
- package/api/types/PromptContentConfig.d.ts +0 -8
- package/dist/api/types/PromptContentConfig.d.ts +0 -8
- package/dist/serialization/types/PromptContentConfig.d.ts +0 -13
- package/serialization/types/PromptContentConfig.d.ts +0 -13
- /package/api/resources/windows/client/requests/{SessionContentPromptHandlerRequestBody.js → SessionClickHandlerRequestBody.js} +0 -0
- /package/api/{types/PromptContentConfig.js → resources/windows/client/requests/SessionHoverHandlerRequestBody.js} +0 -0
- /package/api/{types/PromptContentExperimentalConfig.js → resources/windows/client/requests/SessionTypeHandlerRequestBody.js} +0 -0
- /package/{dist/api/resources/windows/client/requests/SessionContentPromptHandlerRequestBody.js → api/types/ClickConfig.js} +0 -0
- /package/{dist/api/types/PromptContentConfig.js → api/types/PageQueryConfig.js} +0 -0
- /package/{dist/api/types/PromptContentExperimentalConfig.js → api/types/PageQueryExperimentalConfig.js} +0 -0
@@ -1,6 +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
|
4
|
+
export { type SessionClickHandlerRequestBody } from "./SessionClickHandlerRequestBody";
|
5
|
+
export { type SessionHoverHandlerRequestBody } from "./SessionHoverHandlerRequestBody";
|
5
6
|
export { type ScrapeContentRequest } from "./ScrapeContentRequest";
|
6
7
|
export { type SessionSummaryHandlerRequestBody } from "./SessionSummaryHandlerRequestBody";
|
8
|
+
export { type SessionTypeHandlerRequestBody } from "./SessionTypeHandlerRequestBody";
|
@@ -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. */
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export interface
|
4
|
+
export interface PageQueryExperimentalConfig {
|
5
5
|
/** If set to 'enabled', Airtop AI will also analyze the web page visually when fulfilling the request. Note that this can add to both the execution time and cost of the operation. If the page is too large, the context window can be exceeded and the request will fail. If set to 'auto' or 'disabled', no visual analysis will be conducted. If 'followPaginationLinks' is set to true, visual analysis will be conducted unless 'includeVisualAnalysis' is explicitly set to 'disabled'. */
|
6
6
|
includeVisualAnalysis?: string;
|
7
7
|
}
|
@@ -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,22 +1,19 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
|
5
|
-
|
6
|
-
* {
|
7
|
-
* prompt: "What is the main idea of this page?"
|
8
|
-
* }
|
9
|
-
*/
|
10
|
-
export interface SessionContentPromptHandlerRequestBody {
|
4
|
+
import * as Airtop from "../index";
|
5
|
+
export interface SessionPageQueryHandlerRequestBody {
|
11
6
|
clientRequestId?: string;
|
12
|
-
/**
|
7
|
+
/** Request configuration */
|
8
|
+
configuration?: Airtop.PageQueryConfig;
|
9
|
+
/** 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). */
|
13
10
|
costThresholdCredits?: number;
|
14
11
|
/** Make a best effort attempt to load more content items than are originally displayed on the page, e.g. by following pagination links, clicking controls to load more content, utilizing infinite scrolling, etc. This can be quite a bit more costly, but may be necessary for sites that require additional interaction to show the needed results. You can provide constraints in your prompt (e.g. on the total number of pages or results to consider). */
|
15
12
|
followPaginationLinks?: boolean;
|
16
13
|
/** The prompt to submit about the content in the browser window. */
|
17
14
|
prompt: string;
|
18
15
|
/**
|
19
|
-
* A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is
|
16
|
+
* 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).
|
20
17
|
*
|
21
18
|
* This setting does not extend the maximum session duration provided at the time of session creation.
|
22
19
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
import * as Airtop from "../index";
|
5
4
|
export interface SummaryConfig {
|
6
|
-
|
5
|
+
/** JSON schema defining the structure of the output. If not provided, the format of the output might vary. */
|
6
|
+
outputSchema?: string;
|
7
7
|
}
|
package/api/types/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export * from "./AiPromptResponse";
|
2
2
|
export * from "./AiResponseEnvelope";
|
3
|
+
export * from "./ClickConfig";
|
3
4
|
export * from "./ClientProvidedResponseMetadata";
|
4
5
|
export * from "./EmptyResponse";
|
5
6
|
export * from "./EmptyResponseJson";
|
@@ -16,10 +17,10 @@ export * from "./ExternalSessionAiResponseMetadataUsage";
|
|
16
17
|
export * from "./ExternalSessionConfig";
|
17
18
|
export * from "./ExternalSessionWithConnectionInfo";
|
18
19
|
export * from "./Issue";
|
20
|
+
export * from "./PageQueryConfig";
|
21
|
+
export * from "./PageQueryExperimentalConfig";
|
19
22
|
export * from "./Pagination";
|
20
23
|
export * from "./ProfilesResponse";
|
21
|
-
export * from "./PromptContentConfig";
|
22
|
-
export * from "./PromptContentExperimentalConfig";
|
23
24
|
export * from "./ScrapeResponse";
|
24
25
|
export * from "./ScrapeResponseContent";
|
25
26
|
export * from "./ScrapeResponseEnvelope";
|
@@ -29,6 +30,7 @@ export * from "./CustomProxy";
|
|
29
30
|
export * from "./SessionConfigV1ProxyItem";
|
30
31
|
export * from "./SessionConfigV1Proxy";
|
31
32
|
export * from "./SessionConfigV1";
|
33
|
+
export * from "./SessionPageQueryHandlerRequestBody";
|
32
34
|
export * from "./SessionResponse";
|
33
35
|
export * from "./SessionsResponse";
|
34
36
|
export * from "./SessionsWithPagination";
|
package/api/types/index.js
CHANGED
@@ -16,6 +16,7 @@ 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
21
|
__exportStar(require("./EmptyResponse"), exports);
|
21
22
|
__exportStar(require("./EmptyResponseJson"), exports);
|
@@ -32,10 +33,10 @@ __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
|
|
32
33
|
__exportStar(require("./ExternalSessionConfig"), exports);
|
33
34
|
__exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
|
34
35
|
__exportStar(require("./Issue"), exports);
|
36
|
+
__exportStar(require("./PageQueryConfig"), exports);
|
37
|
+
__exportStar(require("./PageQueryExperimentalConfig"), exports);
|
35
38
|
__exportStar(require("./Pagination"), exports);
|
36
39
|
__exportStar(require("./ProfilesResponse"), exports);
|
37
|
-
__exportStar(require("./PromptContentConfig"), exports);
|
38
|
-
__exportStar(require("./PromptContentExperimentalConfig"), exports);
|
39
40
|
__exportStar(require("./ScrapeResponse"), exports);
|
40
41
|
__exportStar(require("./ScrapeResponseContent"), exports);
|
41
42
|
__exportStar(require("./ScrapeResponseEnvelope"), exports);
|
@@ -45,6 +46,7 @@ __exportStar(require("./CustomProxy"), exports);
|
|
45
46
|
__exportStar(require("./SessionConfigV1ProxyItem"), exports);
|
46
47
|
__exportStar(require("./SessionConfigV1Proxy"), exports);
|
47
48
|
__exportStar(require("./SessionConfigV1"), exports);
|
49
|
+
__exportStar(require("./SessionPageQueryHandlerRequestBody"), exports);
|
48
50
|
__exportStar(require("./SessionResponse"), exports);
|
49
51
|
__exportStar(require("./SessionsResponse"), exports);
|
50
52
|
__exportStar(require("./SessionsWithPagination"), 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.6",
|
81
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
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.6",
|
152
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
153
153
|
"X-Fern-Runtime": core.RUNTIME.type,
|
154
154
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
155
155
|
},
|
@@ -58,9 +58,9 @@ export declare class Sessions {
|
|
58
58
|
* @throws {@link Airtop.InternalServerError}
|
59
59
|
*
|
60
60
|
* @example
|
61
|
-
* await client.sessions.
|
61
|
+
* await client.sessions.getInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
|
62
62
|
*/
|
63
|
-
|
63
|
+
getInfo(id: string, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionResponse>;
|
64
64
|
/**
|
65
65
|
* Ends a session by ID. If a given session id does not exist within the organization, it is ignored.
|
66
66
|
*
|
@@ -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.6",
|
98
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
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.6",
|
184
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
185
185
|
"X-Fern-Runtime": core.RUNTIME.type,
|
186
186
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
187
187
|
},
|
@@ -233,9 +233,9 @@ class Sessions {
|
|
233
233
|
* @throws {@link Airtop.InternalServerError}
|
234
234
|
*
|
235
235
|
* @example
|
236
|
-
* await client.sessions.
|
236
|
+
* await client.sessions.getInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
|
237
237
|
*/
|
238
|
-
|
238
|
+
getInfo(id, requestOptions) {
|
239
239
|
var _a, _b;
|
240
240
|
return __awaiter(this, void 0, void 0, function* () {
|
241
241
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
@@ -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.6",
|
249
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
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.6",
|
336
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
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.6",
|
384
|
+
"User-Agent": "@airtop/sdk/0.1.6",
|
385
385
|
"X-Fern-Runtime": core.RUNTIME.type,
|
386
386
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
387
387
|
},
|
@@ -64,10 +64,46 @@ export declare class Windows {
|
|
64
64
|
* await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430")
|
65
65
|
*/
|
66
66
|
close(sessionId: string, windowId: string, requestOptions?: Windows.RequestOptions): Promise<Airtop.WindowIdResponse>;
|
67
|
+
/**
|
68
|
+
* @param {string} sessionId - The session id for the 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>;
|
67
89
|
/**
|
68
90
|
* @param {string} sessionId - The session id for the window.
|
69
91
|
* @param {string} windowId - The Airtop window id of the browser window to target with an Airtop AI prompt.
|
70
|
-
* @param {Airtop.
|
92
|
+
* @param {Airtop.SessionPageQueryHandlerRequestBody} request
|
93
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
94
|
+
*
|
95
|
+
* @example
|
96
|
+
* await client.windows.pageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
97
|
+
* prompt: "What is the main idea of this page?"
|
98
|
+
* })
|
99
|
+
*/
|
100
|
+
pageQuery(sessionId: string, windowId: string, request: Airtop.SessionPageQueryHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
101
|
+
/**
|
102
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
103
|
+
*
|
104
|
+
* @param {string} sessionId - The session id for the window.
|
105
|
+
* @param {string} windowId - The Airtop window id of the browser window to target with an Airtop AI prompt.
|
106
|
+
* @param {Airtop.SessionPageQueryHandlerRequestBody} request
|
71
107
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
72
108
|
*
|
73
109
|
* @example
|
@@ -75,7 +111,7 @@ export declare class Windows {
|
|
75
111
|
* prompt: "What is the main idea of this page?"
|
76
112
|
* })
|
77
113
|
*/
|
78
|
-
promptContent(sessionId: string, windowId: string, request: Airtop.
|
114
|
+
promptContent(sessionId: string, windowId: string, request: Airtop.SessionPageQueryHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
79
115
|
/**
|
80
116
|
* @param {string} sessionId - The session id for the window.
|
81
117
|
* @param {string} windowId - The Airtop window id of the browser window to scrape.
|
@@ -87,6 +123,8 @@ export declare class Windows {
|
|
87
123
|
*/
|
88
124
|
scrapeContent(sessionId: string, windowId: string, request?: Airtop.ScrapeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.ScrapeResponse>;
|
89
125
|
/**
|
126
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
|
127
|
+
*
|
90
128
|
* @param {string} sessionId - The session id for the window.
|
91
129
|
* @param {string} windowId - The Airtop window id of the browser window to summarize.
|
92
130
|
* @param {Airtop.SessionSummaryHandlerRequestBody} request
|
@@ -96,5 +134,17 @@ export declare class Windows {
|
|
96
134
|
* await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
97
135
|
*/
|
98
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>;
|
99
149
|
protected _getAuthorizationHeader(): Promise<string>;
|
100
150
|
}
|