@airtop/sdk 0.1.38 → 0.1.40-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.
Files changed (197) hide show
  1. package/README.md +9 -10
  2. package/api/errors/index.d.ts +2 -2
  3. package/api/errors/index.js +2 -2
  4. package/api/resources/automations/client/Client.js +12 -12
  5. package/api/resources/files/client/Client.js +12 -12
  6. package/api/resources/profiles/client/Client.js +3 -3
  7. package/api/resources/requests/client/Client.js +3 -3
  8. package/api/resources/sessions/client/Client.js +18 -18
  9. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +10 -10
  10. package/api/resources/sessions/types/index.d.ts +3 -3
  11. package/api/resources/sessions/types/index.js +3 -3
  12. package/api/resources/windows/client/Client.d.ts +200 -0
  13. package/api/resources/windows/client/Client.js +1056 -211
  14. package/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
  15. package/api/resources/windows/client/requests/ActRequest.js +5 -0
  16. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  17. package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  18. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  19. package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  20. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  21. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  22. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  23. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  24. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  25. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  26. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  27. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  28. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  29. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  30. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  31. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  32. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  33. package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  34. package/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
  35. package/api/resources/windows/client/requests/ExtractRequest.js +5 -0
  36. package/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
  37. package/api/resources/windows/client/requests/FindManyRequest.js +5 -0
  38. package/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
  39. package/api/resources/windows/client/requests/FindOneRequest.js +5 -0
  40. package/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
  41. package/api/resources/windows/client/requests/LlmRequest.js +5 -0
  42. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  43. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  44. package/api/resources/windows/client/requests/index.d.ts +15 -0
  45. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  46. package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  47. package/api/types/RequestStatusResponse.d.ts +2 -0
  48. package/api/types/SessionConfigV1.d.ts +2 -0
  49. package/api/types/index.d.ts +1 -0
  50. package/api/types/index.js +1 -0
  51. package/dist/api/errors/index.d.ts +2 -2
  52. package/dist/api/errors/index.js +2 -2
  53. package/dist/api/resources/automations/client/Client.js +12 -12
  54. package/dist/api/resources/files/client/Client.js +12 -12
  55. package/dist/api/resources/profiles/client/Client.js +3 -3
  56. package/dist/api/resources/requests/client/Client.js +3 -3
  57. package/dist/api/resources/sessions/client/Client.js +18 -18
  58. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +10 -10
  59. package/dist/api/resources/sessions/types/index.d.ts +3 -3
  60. package/dist/api/resources/sessions/types/index.js +3 -3
  61. package/dist/api/resources/windows/client/Client.d.ts +200 -0
  62. package/dist/api/resources/windows/client/Client.js +1056 -211
  63. package/dist/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
  64. package/dist/api/resources/windows/client/requests/ActRequest.js +5 -0
  65. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  66. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  67. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  68. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  69. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  70. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  71. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  72. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  73. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  74. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  75. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  76. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  77. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  78. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  79. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  80. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  81. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  82. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  83. package/dist/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
  84. package/dist/api/resources/windows/client/requests/ExtractRequest.js +5 -0
  85. package/dist/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
  86. package/dist/api/resources/windows/client/requests/FindManyRequest.js +5 -0
  87. package/dist/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
  88. package/dist/api/resources/windows/client/requests/FindOneRequest.js +5 -0
  89. package/dist/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
  90. package/dist/api/resources/windows/client/requests/LlmRequest.js +5 -0
  91. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  92. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  93. package/dist/api/resources/windows/client/requests/index.d.ts +15 -0
  94. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  95. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  96. package/dist/api/types/RequestStatusResponse.d.ts +2 -0
  97. package/dist/api/types/SessionConfigV1.d.ts +2 -0
  98. package/dist/api/types/index.d.ts +1 -0
  99. package/dist/api/types/index.js +1 -0
  100. package/dist/environments.d.ts +1 -1
  101. package/dist/environments.js +1 -1
  102. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +13 -13
  103. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +6 -6
  104. package/dist/serialization/resources/sessions/types/index.d.ts +3 -3
  105. package/dist/serialization/resources/sessions/types/index.js +3 -3
  106. package/dist/serialization/resources/windows/client/requests/ActRequest.d.ts +19 -0
  107. package/dist/serialization/resources/windows/client/requests/ActRequest.js +50 -0
  108. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  109. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  110. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  111. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  112. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  113. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  114. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  115. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  116. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  117. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  118. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  119. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  120. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  121. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  122. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  123. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  124. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  125. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  126. package/dist/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
  127. package/dist/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
  128. package/dist/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
  129. package/dist/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
  130. package/dist/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
  131. package/dist/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
  132. package/dist/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
  133. package/dist/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
  134. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  135. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  136. package/dist/serialization/resources/windows/client/requests/index.d.ts +15 -0
  137. package/dist/serialization/resources/windows/client/requests/index.js +31 -1
  138. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  139. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  140. package/dist/serialization/types/RequestStatusResponse.d.ts +1 -0
  141. package/dist/serialization/types/RequestStatusResponse.js +1 -0
  142. package/dist/serialization/types/SessionConfigV1.d.ts +1 -0
  143. package/dist/serialization/types/SessionConfigV1.js +1 -0
  144. package/dist/serialization/types/index.d.ts +1 -0
  145. package/dist/serialization/types/index.js +1 -0
  146. package/dist/version.d.ts +1 -1
  147. package/dist/version.js +1 -1
  148. package/environments.d.ts +1 -1
  149. package/environments.js +1 -1
  150. package/package.json +1 -1
  151. package/reference.md +1291 -140
  152. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +13 -13
  153. package/serialization/resources/sessions/types/SessionsEventsResponse.js +6 -6
  154. package/serialization/resources/sessions/types/index.d.ts +3 -3
  155. package/serialization/resources/sessions/types/index.js +3 -3
  156. package/serialization/resources/windows/client/requests/ActRequest.d.ts +19 -0
  157. package/serialization/resources/windows/client/requests/ActRequest.js +50 -0
  158. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  159. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  160. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  161. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  162. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  163. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  164. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  165. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  166. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  167. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  168. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  169. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  170. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  171. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  172. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  173. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  174. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  175. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  176. package/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
  177. package/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
  178. package/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
  179. package/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
  180. package/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
  181. package/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
  182. package/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
  183. package/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
  184. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  185. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  186. package/serialization/resources/windows/client/requests/index.d.ts +15 -0
  187. package/serialization/resources/windows/client/requests/index.js +31 -1
  188. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  189. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  190. package/serialization/types/RequestStatusResponse.d.ts +1 -0
  191. package/serialization/types/RequestStatusResponse.js +1 -0
  192. package/serialization/types/SessionConfigV1.d.ts +1 -0
  193. package/serialization/types/SessionConfigV1.js +1 -0
  194. package/serialization/types/index.d.ts +1 -0
  195. package/serialization/types/index.js +1 -0
  196. package/version.d.ts +1 -1
  197. package/version.js +1 -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
  *
@@ -78,6 +92,104 @@ export declare class Windows {
78
92
  * })
79
93
  */
80
94
  asyncFillForm(sessionId: string, windowId: string, request: Airtop.AsyncFillFormRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
95
+ /**
96
+ * @param {string} sessionId - The session id for the window.
97
+ * @param {string} windowId - The Airtop window id of the browser window.
98
+ * @param {Airtop.AsyncHoverRequest} request
99
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
100
+ *
101
+ * @example
102
+ * await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
103
+ * elementDescription: "The search box input in the top right corner"
104
+ * })
105
+ */
106
+ asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, 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.AsyncMonitorRequest} request
111
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
112
+ *
113
+ * @example
114
+ * await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
115
+ * condition: "Determine if the user appears to be signed in to the website"
116
+ * })
117
+ */
118
+ asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, 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.AsyncPageQueryRequest} request
123
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
124
+ *
125
+ * @example
126
+ * await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
127
+ * prompt: "What is the main idea of this page?"
128
+ * })
129
+ */
130
+ asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, 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.AsyncPaginatedExtractionRequest} request
135
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
136
+ *
137
+ * @example
138
+ * await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
139
+ * 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."
140
+ * })
141
+ */
142
+ asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
143
+ /**
144
+ * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
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.AsyncPromptContentRequest} request
149
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
150
+ *
151
+ * @example
152
+ * await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
153
+ * prompt: "What is the main idea of this page?"
154
+ * })
155
+ */
156
+ asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
157
+ /**
158
+ * Take a screenshot of the current viewport of a browser window asynchronously
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.AsyncScreenshotRequest} request
163
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
164
+ *
165
+ * @example
166
+ * await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
167
+ */
168
+ asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
169
+ /**
170
+ * This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
171
+ *
172
+ * @param {string} sessionId - The session id for the window.
173
+ * @param {string} windowId - The Airtop window id of the browser window to summarize.
174
+ * @param {Airtop.AsyncSummarizeContentRequest} request
175
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
176
+ *
177
+ * @example
178
+ * await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
179
+ */
180
+ asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
181
+ /**
182
+ * @param {string} sessionId - The session id for the window.
183
+ * @param {string} windowId - The Airtop window id of the browser window.
184
+ * @param {Airtop.AsyncTypeRequest} request
185
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
186
+ *
187
+ * @example
188
+ * await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
189
+ * text: "Example text"
190
+ * })
191
+ */
192
+ asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
81
193
  /**
82
194
  * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
83
195
  *
@@ -194,6 +306,20 @@ export declare class Windows {
194
306
  * })
195
307
  */
196
308
  monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
309
+ /**
310
+ * Prompt OpenAI Operator
311
+ *
312
+ * @param {string} sessionId - ID of the session that owns the window.
313
+ * @param {string} windowId - Airtop window ID of the browser window.
314
+ * @param {Airtop.OperatorPromptV1Body} request
315
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
316
+ *
317
+ * @example
318
+ * await client.windows.operatorPrompt("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
319
+ * prompt: "What is the latest news about OpenAI?"
320
+ * })
321
+ */
322
+ operatorPrompt(sessionId: string, windowId: string, request: Airtop.OperatorPromptV1Body, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncOperatorPromptResponseEnvelope>;
197
323
  /**
198
324
  * 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
325
  *
@@ -298,5 +424,79 @@ export declare class Windows {
298
424
  * })
299
425
  */
300
426
  type(sessionId: string, windowId: string, request: Airtop.SessionTypeHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
427
+ /**
428
+ * Perform actions in a specific browser window based on a prompt
429
+ *
430
+ * @param {string} sessionId - The session id for the window.
431
+ * @param {string} windowId - The Airtop window id of the browser window.
432
+ * @param {Airtop.ActRequest} request
433
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
434
+ *
435
+ * @example
436
+ * await client.windows.act("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
437
+ * jobId: "123",
438
+ * prompt: "Click the login button"
439
+ * })
440
+ */
441
+ act(sessionId: string, windowId: string, request: Airtop.ActRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
442
+ /**
443
+ * Extract data from a specific browser window based on a prompt
444
+ *
445
+ * @param {string} sessionId - The session id for the window.
446
+ * @param {string} windowId - The Airtop window id of the browser window.
447
+ * @param {Airtop.ExtractRequest} request
448
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
449
+ *
450
+ * @example
451
+ * await client.windows.extract("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
452
+ * jobId: "123",
453
+ * prompt: "Extract all product prices from this page"
454
+ * })
455
+ */
456
+ extract(sessionId: string, windowId: string, request: Airtop.ExtractRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
457
+ /**
458
+ * Find multiple elements in a 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.FindManyRequest} request
463
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
464
+ *
465
+ * @example
466
+ * await client.windows.findMany("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
467
+ * jobId: "123",
468
+ * prompt: "Find all the news articles"
469
+ * })
470
+ */
471
+ findMany(sessionId: string, windowId: string, request: Airtop.FindManyRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
472
+ /**
473
+ * Find a specific element in a 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.FindOneRequest} request
478
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
479
+ *
480
+ * @example
481
+ * await client.windows.findOne("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
482
+ * jobId: "123",
483
+ * prompt: "Find the login button"
484
+ * })
485
+ */
486
+ findOne(sessionId: string, windowId: string, request: Airtop.FindOneRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
487
+ /**
488
+ * Send a prompt to an LLM with context from the browser window
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.LlmRequest} request
493
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
494
+ *
495
+ * @example
496
+ * await client.windows.llm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
497
+ * prompt: "Tell me about this webpage"
498
+ * })
499
+ */
500
+ llm(sessionId: string, windowId: string, request: Airtop.LlmRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
301
501
  protected _getAuthorizationHeader(): Promise<string>;
302
502
  }