@airtop/sdk 0.1.40 → 0.1.41-beta0
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/README.md +9 -10
- package/api/resources/automations/client/Client.js +4 -4
- package/api/resources/files/client/Client.d.ts +11 -0
- package/api/resources/files/client/Client.js +52 -4
- package/api/resources/files/client/requests/PushFileBodyV1.d.ts +11 -0
- package/api/resources/files/client/requests/PushFileBodyV1.js +5 -0
- package/api/resources/files/client/requests/index.d.ts +1 -0
- package/api/resources/profiles/client/Client.js +1 -1
- package/api/resources/requests/client/Client.js +1 -1
- package/api/resources/sessions/client/Client.js +6 -6
- 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 +228 -0
- package/api/resources/windows/client/Client.js +1162 -201
- package/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/ActRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
- package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +33 -0
- package/api/resources/windows/client/requests/AsyncFileInputRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
- package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
- package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
- package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
- package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
- package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
- package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
- package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
- package/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/ExtractRequest.js +5 -0
- package/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/FindManyRequest.js +5 -0
- package/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
- package/api/resources/windows/client/requests/FindOneRequest.js +5 -0
- package/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
- package/api/resources/windows/client/requests/LlmRequest.js +5 -0
- package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
- package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
- package/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +31 -0
- package/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +5 -0
- package/api/resources/windows/client/requests/index.d.ts +17 -0
- package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
- package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
- package/api/types/FileEventMessage.d.ts +1 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/automations/client/Client.js +4 -4
- package/dist/api/resources/files/client/Client.d.ts +11 -0
- package/dist/api/resources/files/client/Client.js +52 -4
- package/dist/api/resources/files/client/requests/PushFileBodyV1.d.ts +11 -0
- package/dist/api/resources/files/client/requests/PushFileBodyV1.js +5 -0
- package/dist/api/resources/files/client/requests/index.d.ts +1 -0
- package/dist/api/resources/profiles/client/Client.js +1 -1
- package/dist/api/resources/requests/client/Client.js +1 -1
- package/dist/api/resources/sessions/client/Client.js +6 -6
- 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 +228 -0
- package/dist/api/resources/windows/client/Client.js +1162 -201
- package/dist/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/ActRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +33 -0
- package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
- package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
- package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
- package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/ExtractRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/FindManyRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
- package/dist/api/resources/windows/client/requests/FindOneRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/LlmRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
- package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
- package/dist/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +31 -0
- package/dist/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +5 -0
- package/dist/api/resources/windows/client/requests/index.d.ts +17 -0
- package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
- package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
- package/dist/api/types/FileEventMessage.d.ts +1 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/files/client/requests/PushFileBodyV1.d.ts +12 -0
- package/dist/serialization/resources/files/client/requests/PushFileBodyV1.js +43 -0
- package/dist/serialization/resources/files/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/files/client/requests/index.js +3 -1
- 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/ActRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/ActRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
- package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +22 -0
- package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +53 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
- package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
- package/dist/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
- package/dist/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
- package/dist/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
- package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
- package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +20 -0
- package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +51 -0
- package/dist/serialization/resources/windows/client/requests/index.d.ts +17 -0
- package/dist/serialization/resources/windows/client/requests/index.js +35 -1
- package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
- package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
- package/dist/serialization/types/FileEventMessage.d.ts +1 -0
- package/dist/serialization/types/FileEventMessage.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/upload.d.ts +13 -0
- package/dist/utils/upload.js +55 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AirtopClient.js +1 -1
- package/dist/wrapper/AirtopFiles.js +3 -3
- package/dist/wrapper/AirtopSessions.d.ts +24 -0
- package/dist/wrapper/AirtopSessions.js +103 -0
- package/dist/wrapper/AirtopWindows.d.ts +25 -1
- package/dist/wrapper/AirtopWindows.js +23 -1
- package/package.json +1 -1
- package/reference.md +1492 -108
- package/serialization/resources/files/client/requests/PushFileBodyV1.d.ts +12 -0
- package/serialization/resources/files/client/requests/PushFileBodyV1.js +43 -0
- package/serialization/resources/files/client/requests/index.d.ts +1 -0
- package/serialization/resources/files/client/requests/index.js +3 -1
- 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/ActRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/ActRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
- package/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +22 -0
- package/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +53 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
- package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
- package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
- package/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
- package/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
- package/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
- package/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
- package/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
- package/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
- package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
- package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
- package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +20 -0
- package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +51 -0
- package/serialization/resources/windows/client/requests/index.d.ts +17 -0
- package/serialization/resources/windows/client/requests/index.js +35 -1
- package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
- package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
- package/serialization/types/FileEventMessage.d.ts +1 -0
- package/serialization/types/FileEventMessage.js +1 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/upload.d.ts +13 -0
- package/utils/upload.js +55 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AirtopClient.js +1 -1
- package/wrapper/AirtopFiles.js +3 -3
- package/wrapper/AirtopSessions.d.ts +24 -0
- package/wrapper/AirtopSessions.js +103 -0
- package/wrapper/AirtopWindows.d.ts +25 -1
- package/wrapper/AirtopWindows.js +23 -1
@@ -26,6 +26,20 @@ export declare namespace Windows {
|
|
26
26
|
export declare class Windows {
|
27
27
|
protected readonly _options: Windows.Options;
|
28
28
|
constructor(_options: Windows.Options);
|
29
|
+
/**
|
30
|
+
* Execute a click interaction in a specific browser window asynchronously
|
31
|
+
*
|
32
|
+
* @param {string} sessionId - The session id for the window.
|
33
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
34
|
+
* @param {Airtop.AsyncClickRequest} request
|
35
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
36
|
+
*
|
37
|
+
* @example
|
38
|
+
* await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
39
|
+
* elementDescription: "The login button"
|
40
|
+
* })
|
41
|
+
*/
|
42
|
+
asyncClick(sessionId: string, windowId: string, request: Airtop.AsyncClickRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
29
43
|
/**
|
30
44
|
* Create an automation of a browser window asynchronously
|
31
45
|
*
|
@@ -64,6 +78,20 @@ export declare class Windows {
|
|
64
78
|
* })
|
65
79
|
*/
|
66
80
|
asyncExecuteAutomation(sessionId: string, windowId: string, request: Airtop.AsyncExecuteAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
81
|
+
/**
|
82
|
+
* Execute a file input interaction in a specific browser window asynchronously
|
83
|
+
*
|
84
|
+
* @param {string} sessionId - The session id for the window.
|
85
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
86
|
+
* @param {Airtop.AsyncFileInputRequest} request
|
87
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
88
|
+
*
|
89
|
+
* @example
|
90
|
+
* await client.windows.asyncFileInput("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
91
|
+
* elementDescription: "The file input in the bottom left corner"
|
92
|
+
* })
|
93
|
+
*/
|
94
|
+
asyncFileInput(sessionId: string, windowId: string, request: Airtop.AsyncFileInputRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
67
95
|
/**
|
68
96
|
* Fill a form of a browser window asynchronously using a form-filler automation
|
69
97
|
*
|
@@ -78,6 +106,104 @@ export declare class Windows {
|
|
78
106
|
* })
|
79
107
|
*/
|
80
108
|
asyncFillForm(sessionId: string, windowId: string, request: Airtop.AsyncFillFormRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
109
|
+
/**
|
110
|
+
* @param {string} sessionId - The session id for the window.
|
111
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
112
|
+
* @param {Airtop.AsyncHoverRequest} request
|
113
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
114
|
+
*
|
115
|
+
* @example
|
116
|
+
* await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
117
|
+
* elementDescription: "The search box input in the top right corner"
|
118
|
+
* })
|
119
|
+
*/
|
120
|
+
asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
121
|
+
/**
|
122
|
+
* @param {string} sessionId - The session id for the window.
|
123
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
124
|
+
* @param {Airtop.AsyncMonitorRequest} request
|
125
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
126
|
+
*
|
127
|
+
* @example
|
128
|
+
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
129
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
130
|
+
* })
|
131
|
+
*/
|
132
|
+
asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
133
|
+
/**
|
134
|
+
* @param {string} sessionId - The session id for the window.
|
135
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
136
|
+
* @param {Airtop.AsyncPageQueryRequest} request
|
137
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
138
|
+
*
|
139
|
+
* @example
|
140
|
+
* await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
141
|
+
* prompt: "What is the main idea of this page?"
|
142
|
+
* })
|
143
|
+
*/
|
144
|
+
asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
145
|
+
/**
|
146
|
+
* @param {string} sessionId - The session id for the window.
|
147
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
148
|
+
* @param {Airtop.AsyncPaginatedExtractionRequest} request
|
149
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
150
|
+
*
|
151
|
+
* @example
|
152
|
+
* await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
153
|
+
* prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list."
|
154
|
+
* })
|
155
|
+
*/
|
156
|
+
asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
157
|
+
/**
|
158
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
159
|
+
*
|
160
|
+
* @param {string} sessionId - The session id for the window.
|
161
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
162
|
+
* @param {Airtop.AsyncPromptContentRequest} request
|
163
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
164
|
+
*
|
165
|
+
* @example
|
166
|
+
* await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
167
|
+
* prompt: "What is the main idea of this page?"
|
168
|
+
* })
|
169
|
+
*/
|
170
|
+
asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
171
|
+
/**
|
172
|
+
* Take a screenshot of the current viewport of a browser window asynchronously
|
173
|
+
*
|
174
|
+
* @param {string} sessionId - The session id for the window.
|
175
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
176
|
+
* @param {Airtop.AsyncScreenshotRequest} request
|
177
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
178
|
+
*
|
179
|
+
* @example
|
180
|
+
* await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
181
|
+
*/
|
182
|
+
asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
183
|
+
/**
|
184
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
|
185
|
+
*
|
186
|
+
* @param {string} sessionId - The session id for the window.
|
187
|
+
* @param {string} windowId - The Airtop window id of the browser window to summarize.
|
188
|
+
* @param {Airtop.AsyncSummarizeContentRequest} request
|
189
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
190
|
+
*
|
191
|
+
* @example
|
192
|
+
* await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
193
|
+
*/
|
194
|
+
asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
195
|
+
/**
|
196
|
+
* @param {string} sessionId - The session id for the window.
|
197
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
198
|
+
* @param {Airtop.AsyncTypeRequest} request
|
199
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
200
|
+
*
|
201
|
+
* @example
|
202
|
+
* await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
203
|
+
* text: "Example text"
|
204
|
+
* })
|
205
|
+
*/
|
206
|
+
asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
81
207
|
/**
|
82
208
|
* Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
|
83
209
|
*
|
@@ -154,6 +280,20 @@ export declare class Windows {
|
|
154
280
|
* await client.windows.createFormFiller("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
155
281
|
*/
|
156
282
|
createFormFiller(sessionId: string, windowId: string, request?: Airtop.CreateFormFillerRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
283
|
+
/**
|
284
|
+
* Execute a file input interaction in a specific browser window
|
285
|
+
*
|
286
|
+
* @param {string} sessionId - The session id for the window.
|
287
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
288
|
+
* @param {Airtop.SessionFileInputHandlerRequestBody} request
|
289
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
290
|
+
*
|
291
|
+
* @example
|
292
|
+
* await client.windows.fileInput("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
293
|
+
* elementDescription: "The file input in the bottom left corner"
|
294
|
+
* })
|
295
|
+
*/
|
296
|
+
fileInput(sessionId: string, windowId: string, request: Airtop.SessionFileInputHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
157
297
|
/**
|
158
298
|
* Fill a form of a browser window synchronously using a form-filler automation
|
159
299
|
*
|
@@ -194,6 +334,20 @@ export declare class Windows {
|
|
194
334
|
* })
|
195
335
|
*/
|
196
336
|
monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
337
|
+
/**
|
338
|
+
* Prompt OpenAI Operator
|
339
|
+
*
|
340
|
+
* @param {string} sessionId - ID of the session that owns the window.
|
341
|
+
* @param {string} windowId - Airtop window ID of the browser window.
|
342
|
+
* @param {Airtop.OperatorPromptV1Body} request
|
343
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
344
|
+
*
|
345
|
+
* @example
|
346
|
+
* await client.windows.operatorPrompt("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
|
347
|
+
* prompt: "What is the latest news about OpenAI?"
|
348
|
+
* })
|
349
|
+
*/
|
350
|
+
operatorPrompt(sessionId: string, windowId: string, request: Airtop.OperatorPromptV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncOperatorPromptResponseEnvelope>;
|
197
351
|
/**
|
198
352
|
* Submit a prompt that queries the content of a specific browser window. You may extract content from the page, or ask a question about the page and allow the AI to answer it (ex. Is the user logged in?).
|
199
353
|
*
|
@@ -298,5 +452,79 @@ export declare class Windows {
|
|
298
452
|
* })
|
299
453
|
*/
|
300
454
|
type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
455
|
+
/**
|
456
|
+
* Perform actions in a specific browser window based on a prompt
|
457
|
+
*
|
458
|
+
* @param {string} sessionId - The session id for the window.
|
459
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
460
|
+
* @param {Airtop.ActRequest} request
|
461
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
462
|
+
*
|
463
|
+
* @example
|
464
|
+
* await client.windows.act("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
465
|
+
* jobId: "123",
|
466
|
+
* prompt: "Click the login button"
|
467
|
+
* })
|
468
|
+
*/
|
469
|
+
act(sessionId: string, windowId: string, request: Airtop.ActRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
470
|
+
/**
|
471
|
+
* Extract data from a specific browser window based on a prompt
|
472
|
+
*
|
473
|
+
* @param {string} sessionId - The session id for the window.
|
474
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
475
|
+
* @param {Airtop.ExtractRequest} request
|
476
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
477
|
+
*
|
478
|
+
* @example
|
479
|
+
* await client.windows.extract("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
480
|
+
* jobId: "123",
|
481
|
+
* prompt: "Extract all product prices from this page"
|
482
|
+
* })
|
483
|
+
*/
|
484
|
+
extract(sessionId: string, windowId: string, request: Airtop.ExtractRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
485
|
+
/**
|
486
|
+
* Find multiple elements in a browser window based on a prompt
|
487
|
+
*
|
488
|
+
* @param {string} sessionId - The session id for the window.
|
489
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
490
|
+
* @param {Airtop.FindManyRequest} request
|
491
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
492
|
+
*
|
493
|
+
* @example
|
494
|
+
* await client.windows.findMany("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
495
|
+
* jobId: "123",
|
496
|
+
* prompt: "Find all the news articles"
|
497
|
+
* })
|
498
|
+
*/
|
499
|
+
findMany(sessionId: string, windowId: string, request: Airtop.FindManyRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
500
|
+
/**
|
501
|
+
* Find a specific element in a browser window based on a prompt
|
502
|
+
*
|
503
|
+
* @param {string} sessionId - The session id for the window.
|
504
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
505
|
+
* @param {Airtop.FindOneRequest} request
|
506
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
507
|
+
*
|
508
|
+
* @example
|
509
|
+
* await client.windows.findOne("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
510
|
+
* jobId: "123",
|
511
|
+
* prompt: "Find the login button"
|
512
|
+
* })
|
513
|
+
*/
|
514
|
+
findOne(sessionId: string, windowId: string, request: Airtop.FindOneRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
515
|
+
/**
|
516
|
+
* Send a prompt to an LLM with context from the browser window
|
517
|
+
*
|
518
|
+
* @param {string} sessionId - The session id for the window.
|
519
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
520
|
+
* @param {Airtop.LlmRequest} request
|
521
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
522
|
+
*
|
523
|
+
* @example
|
524
|
+
* await client.windows.llm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
525
|
+
* prompt: "Tell me about this webpage"
|
526
|
+
* })
|
527
|
+
*/
|
528
|
+
llm(sessionId: string, windowId: string, request: Airtop.LlmRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
301
529
|
protected _getAuthorizationHeader(): Promise<string>;
|
302
530
|
}
|