@airtop/sdk 0.1.41 → 0.1.42-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.js +5 -5
- package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +1 -1
- 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 +233 -5
- package/api/resources/windows/client/Client.js +1173 -214
- 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 +4 -4
- package/api/resources/windows/client/requests/WaitForPageRequest.d.ts +23 -0
- package/api/resources/windows/client/requests/WaitForPageRequest.js +5 -0
- package/api/resources/windows/client/requests/index.d.ts +17 -0
- package/api/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +11 -0
- package/api/resources/windows/types/WaitForPageRequestTargetStatus.js +10 -0
- package/api/resources/windows/types/index.d.ts +1 -0
- package/api/resources/windows/types/index.js +1 -0
- package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
- package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
- package/api/types/FileEventData.d.ts +7 -0
- package/api/types/FileEventData.js +5 -0
- package/api/types/FileEventMessage.d.ts +2 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/automations/client/Client.js +4 -4
- package/dist/api/resources/files/client/Client.js +5 -5
- package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +1 -1
- 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 +233 -5
- package/dist/api/resources/windows/client/Client.js +1173 -214
- 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 +4 -4
- package/dist/api/resources/windows/client/requests/WaitForPageRequest.d.ts +23 -0
- package/dist/api/resources/windows/client/requests/WaitForPageRequest.js +5 -0
- package/dist/api/resources/windows/client/requests/index.d.ts +17 -0
- package/dist/api/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +11 -0
- package/dist/api/resources/windows/types/WaitForPageRequestTargetStatus.js +10 -0
- package/dist/api/resources/windows/types/index.d.ts +1 -0
- package/dist/api/resources/windows/types/index.js +1 -0
- package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
- package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
- package/dist/api/types/FileEventData.d.ts +7 -0
- package/dist/api/types/FileEventData.js +5 -0
- package/dist/api/types/FileEventMessage.d.ts +2 -1
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- 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 +23 -0
- package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +54 -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 +2 -1
- package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +2 -1
- package/dist/serialization/resources/windows/client/requests/WaitForPageRequest.d.ts +18 -0
- package/dist/serialization/resources/windows/client/requests/WaitForPageRequest.js +49 -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/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +10 -0
- package/dist/serialization/resources/windows/types/WaitForPageRequestTargetStatus.js +41 -0
- package/dist/serialization/resources/windows/types/index.d.ts +1 -0
- package/dist/serialization/resources/windows/types/index.js +1 -0
- package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
- package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
- package/dist/serialization/types/FileEventData.d.ts +13 -0
- package/dist/serialization/types/FileEventData.js +44 -0
- package/dist/serialization/types/FileEventMessage.d.ts +2 -1
- package/dist/serialization/types/FileEventMessage.js +2 -1
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/utils/upload.js +12 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AirtopSessions.js +12 -5
- package/package.json +1 -1
- package/reference.md +1457 -144
- 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 +23 -0
- package/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +54 -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 +2 -1
- package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +2 -1
- package/serialization/resources/windows/client/requests/WaitForPageRequest.d.ts +18 -0
- package/serialization/resources/windows/client/requests/WaitForPageRequest.js +49 -0
- package/serialization/resources/windows/client/requests/index.d.ts +17 -0
- package/serialization/resources/windows/client/requests/index.js +35 -1
- package/serialization/resources/windows/types/WaitForPageRequestTargetStatus.d.ts +10 -0
- package/serialization/resources/windows/types/WaitForPageRequestTargetStatus.js +41 -0
- package/serialization/resources/windows/types/index.d.ts +1 -0
- package/serialization/resources/windows/types/index.js +1 -0
- package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
- package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
- package/serialization/types/FileEventData.d.ts +13 -0
- package/serialization/types/FileEventData.js +44 -0
- package/serialization/types/FileEventMessage.d.ts +2 -1
- package/serialization/types/FileEventMessage.js +2 -1
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/utils/upload.js +12 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AirtopSessions.js +12 -5
@@ -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,18 @@ 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
|
+
*/
|
92
|
+
asyncFileInput(sessionId: string, windowId: string, request?: Airtop.AsyncFileInputRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
67
93
|
/**
|
68
94
|
* Fill a form of a browser window asynchronously using a form-filler automation
|
69
95
|
*
|
@@ -78,6 +104,104 @@ export declare class Windows {
|
|
78
104
|
* })
|
79
105
|
*/
|
80
106
|
asyncFillForm(sessionId: string, windowId: string, request: Airtop.AsyncFillFormRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
107
|
+
/**
|
108
|
+
* @param {string} sessionId - The session id for the window.
|
109
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
110
|
+
* @param {Airtop.AsyncHoverRequest} request
|
111
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
112
|
+
*
|
113
|
+
* @example
|
114
|
+
* await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
115
|
+
* elementDescription: "The search box input in the top right corner"
|
116
|
+
* })
|
117
|
+
*/
|
118
|
+
asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
119
|
+
/**
|
120
|
+
* @param {string} sessionId - The session id for the window.
|
121
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
122
|
+
* @param {Airtop.AsyncMonitorRequest} request
|
123
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
124
|
+
*
|
125
|
+
* @example
|
126
|
+
* await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
127
|
+
* condition: "Determine if the user appears to be signed in to the website"
|
128
|
+
* })
|
129
|
+
*/
|
130
|
+
asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
131
|
+
/**
|
132
|
+
* @param {string} sessionId - The session id for the window.
|
133
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
134
|
+
* @param {Airtop.AsyncPageQueryRequest} request
|
135
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
136
|
+
*
|
137
|
+
* @example
|
138
|
+
* await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
139
|
+
* prompt: "What is the main idea of this page?"
|
140
|
+
* })
|
141
|
+
*/
|
142
|
+
asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
143
|
+
/**
|
144
|
+
* @param {string} sessionId - The session id for the window.
|
145
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
146
|
+
* @param {Airtop.AsyncPaginatedExtractionRequest} request
|
147
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
148
|
+
*
|
149
|
+
* @example
|
150
|
+
* await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
151
|
+
* 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."
|
152
|
+
* })
|
153
|
+
*/
|
154
|
+
asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
155
|
+
/**
|
156
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
|
157
|
+
*
|
158
|
+
* @param {string} sessionId - The session id for the window.
|
159
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
160
|
+
* @param {Airtop.AsyncPromptContentRequest} request
|
161
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
162
|
+
*
|
163
|
+
* @example
|
164
|
+
* await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
165
|
+
* prompt: "What is the main idea of this page?"
|
166
|
+
* })
|
167
|
+
*/
|
168
|
+
asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
169
|
+
/**
|
170
|
+
* Take a screenshot of the current viewport of a browser window asynchronously
|
171
|
+
*
|
172
|
+
* @param {string} sessionId - The session id for the window.
|
173
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
174
|
+
* @param {Airtop.AsyncScreenshotRequest} request
|
175
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
176
|
+
*
|
177
|
+
* @example
|
178
|
+
* await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
179
|
+
*/
|
180
|
+
asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
181
|
+
/**
|
182
|
+
* This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
|
183
|
+
*
|
184
|
+
* @param {string} sessionId - The session id for the window.
|
185
|
+
* @param {string} windowId - The Airtop window id of the browser window to summarize.
|
186
|
+
* @param {Airtop.AsyncSummarizeContentRequest} request
|
187
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
188
|
+
*
|
189
|
+
* @example
|
190
|
+
* await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
191
|
+
*/
|
192
|
+
asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
193
|
+
/**
|
194
|
+
* @param {string} sessionId - The session id for the window.
|
195
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
196
|
+
* @param {Airtop.AsyncTypeRequest} request
|
197
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
198
|
+
*
|
199
|
+
* @example
|
200
|
+
* await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
201
|
+
* text: "Example text"
|
202
|
+
* })
|
203
|
+
*/
|
204
|
+
asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
81
205
|
/**
|
82
206
|
* Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
|
83
207
|
*
|
@@ -155,7 +279,13 @@ export declare class Windows {
|
|
155
279
|
*/
|
156
280
|
createFormFiller(sessionId: string, windowId: string, request?: Airtop.CreateFormFillerRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
157
281
|
/**
|
158
|
-
* Execute a file input interaction in a specific browser window
|
282
|
+
* Execute a file input interaction in a specific browser window.
|
283
|
+
* includeHiddenElements defaults to true and considers hidden file input elements.
|
284
|
+
* If there is only one file input element, it will be used directly.
|
285
|
+
* If there are multiple file input elements, the elementDescription will be used by AI to
|
286
|
+
* select among them.
|
287
|
+
* If no file input elements are found by inspecting the page structure, elementDescription
|
288
|
+
* will be used by AI to try to find a match visually.
|
159
289
|
*
|
160
290
|
* @param {string} sessionId - The session id for the window.
|
161
291
|
* @param {string} windowId - The Airtop window id of the browser window.
|
@@ -163,11 +293,9 @@ export declare class Windows {
|
|
163
293
|
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
164
294
|
*
|
165
295
|
* @example
|
166
|
-
* await client.windows.fileInput("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430"
|
167
|
-
* elementDescription: "The file input in the bottom left corner"
|
168
|
-
* })
|
296
|
+
* await client.windows.fileInput("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
169
297
|
*/
|
170
|
-
fileInput(sessionId: string, windowId: string, request
|
298
|
+
fileInput(sessionId: string, windowId: string, request?: Airtop.SessionFileInputHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
171
299
|
/**
|
172
300
|
* Fill a form of a browser window synchronously using a form-filler automation
|
173
301
|
*
|
@@ -208,6 +336,20 @@ export declare class Windows {
|
|
208
336
|
* })
|
209
337
|
*/
|
210
338
|
monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
339
|
+
/**
|
340
|
+
* Prompt OpenAI Operator
|
341
|
+
*
|
342
|
+
* @param {string} sessionId - ID of the session that owns the window.
|
343
|
+
* @param {string} windowId - Airtop window ID of the browser window.
|
344
|
+
* @param {Airtop.OperatorPromptV1Body} request
|
345
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
346
|
+
*
|
347
|
+
* @example
|
348
|
+
* await client.windows.operatorPrompt("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
|
349
|
+
* prompt: "What is the latest news about OpenAI?"
|
350
|
+
* })
|
351
|
+
*/
|
352
|
+
operatorPrompt(sessionId: string, windowId: string, request: Airtop.OperatorPromptV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncOperatorPromptResponseEnvelope>;
|
211
353
|
/**
|
212
354
|
* 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?).
|
213
355
|
*
|
@@ -312,5 +454,91 @@ export declare class Windows {
|
|
312
454
|
* })
|
313
455
|
*/
|
314
456
|
type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
|
457
|
+
/**
|
458
|
+
* Perform actions in a specific browser window based on a prompt
|
459
|
+
*
|
460
|
+
* @param {string} sessionId - The session id for the window.
|
461
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
462
|
+
* @param {Airtop.ActRequest} request
|
463
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
464
|
+
*
|
465
|
+
* @example
|
466
|
+
* await client.windows.act("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
467
|
+
* jobId: "123",
|
468
|
+
* prompt: "Click the login button"
|
469
|
+
* })
|
470
|
+
*/
|
471
|
+
act(sessionId: string, windowId: string, request: Airtop.ActRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
472
|
+
/**
|
473
|
+
* Extract data from a specific browser window based on a prompt
|
474
|
+
*
|
475
|
+
* @param {string} sessionId - The session id for the window.
|
476
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
477
|
+
* @param {Airtop.ExtractRequest} request
|
478
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
479
|
+
*
|
480
|
+
* @example
|
481
|
+
* await client.windows.extract("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
482
|
+
* jobId: "123",
|
483
|
+
* prompt: "Extract all product prices from this page"
|
484
|
+
* })
|
485
|
+
*/
|
486
|
+
extract(sessionId: string, windowId: string, request: Airtop.ExtractRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
487
|
+
/**
|
488
|
+
* Find multiple elements in a browser window based on a prompt
|
489
|
+
*
|
490
|
+
* @param {string} sessionId - The session id for the window.
|
491
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
492
|
+
* @param {Airtop.FindManyRequest} request
|
493
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
494
|
+
*
|
495
|
+
* @example
|
496
|
+
* await client.windows.findMany("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
497
|
+
* jobId: "123",
|
498
|
+
* prompt: "Find all the news articles"
|
499
|
+
* })
|
500
|
+
*/
|
501
|
+
findMany(sessionId: string, windowId: string, request: Airtop.FindManyRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
502
|
+
/**
|
503
|
+
* Find a specific element in a browser window based on a prompt
|
504
|
+
*
|
505
|
+
* @param {string} sessionId - The session id for the window.
|
506
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
507
|
+
* @param {Airtop.FindOneRequest} request
|
508
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
509
|
+
*
|
510
|
+
* @example
|
511
|
+
* await client.windows.findOne("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
512
|
+
* jobId: "123",
|
513
|
+
* prompt: "Find the login button"
|
514
|
+
* })
|
515
|
+
*/
|
516
|
+
findOne(sessionId: string, windowId: string, request: Airtop.FindOneRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
517
|
+
/**
|
518
|
+
* Send a prompt to an LLM with context from the browser window
|
519
|
+
*
|
520
|
+
* @param {string} sessionId - The session id for the window.
|
521
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
522
|
+
* @param {Airtop.LlmRequest} request
|
523
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
524
|
+
*
|
525
|
+
* @example
|
526
|
+
* await client.windows.llm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
|
527
|
+
* prompt: "Tell me about this webpage"
|
528
|
+
* })
|
529
|
+
*/
|
530
|
+
llm(sessionId: string, windowId: string, request: Airtop.LlmRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
531
|
+
/**
|
532
|
+
* Wait for a page to load
|
533
|
+
*
|
534
|
+
* @param {string} sessionId - The session id for the window.
|
535
|
+
* @param {string} windowId - The Airtop window id of the browser window.
|
536
|
+
* @param {Airtop.WaitForPageRequest} request
|
537
|
+
* @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
|
538
|
+
*
|
539
|
+
* @example
|
540
|
+
* await client.windows.waitForPage("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
|
541
|
+
*/
|
542
|
+
waitForPage(sessionId: string, windowId: string, request?: Airtop.WaitForPageRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
|
315
543
|
protected _getAuthorizationHeader(): Promise<string>;
|
316
544
|
}
|