@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.
Files changed (235) hide show
  1. package/README.md +9 -10
  2. package/api/resources/automations/client/Client.js +4 -4
  3. package/api/resources/files/client/Client.d.ts +11 -0
  4. package/api/resources/files/client/Client.js +52 -4
  5. package/api/resources/files/client/requests/PushFileBodyV1.d.ts +11 -0
  6. package/api/resources/files/client/requests/PushFileBodyV1.js +5 -0
  7. package/api/resources/files/client/requests/index.d.ts +1 -0
  8. package/api/resources/profiles/client/Client.js +1 -1
  9. package/api/resources/requests/client/Client.js +1 -1
  10. package/api/resources/sessions/client/Client.js +6 -6
  11. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  12. package/api/resources/sessions/types/index.d.ts +1 -1
  13. package/api/resources/sessions/types/index.js +1 -1
  14. package/api/resources/windows/client/Client.d.ts +228 -0
  15. package/api/resources/windows/client/Client.js +1162 -201
  16. package/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
  17. package/api/resources/windows/client/requests/ActRequest.js +5 -0
  18. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  19. package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  20. package/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +33 -0
  21. package/api/resources/windows/client/requests/AsyncFileInputRequest.js +5 -0
  22. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  23. package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  24. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  25. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  26. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  27. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  28. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  29. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  30. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  31. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  32. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  33. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  34. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  35. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  36. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  37. package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  38. package/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
  39. package/api/resources/windows/client/requests/ExtractRequest.js +5 -0
  40. package/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
  41. package/api/resources/windows/client/requests/FindManyRequest.js +5 -0
  42. package/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
  43. package/api/resources/windows/client/requests/FindOneRequest.js +5 -0
  44. package/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
  45. package/api/resources/windows/client/requests/LlmRequest.js +5 -0
  46. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  47. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  48. package/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +31 -0
  49. package/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +5 -0
  50. package/api/resources/windows/client/requests/index.d.ts +17 -0
  51. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  52. package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  53. package/api/types/FileEventMessage.d.ts +1 -0
  54. package/api/types/index.d.ts +1 -0
  55. package/api/types/index.js +1 -0
  56. package/dist/api/resources/automations/client/Client.js +4 -4
  57. package/dist/api/resources/files/client/Client.d.ts +11 -0
  58. package/dist/api/resources/files/client/Client.js +52 -4
  59. package/dist/api/resources/files/client/requests/PushFileBodyV1.d.ts +11 -0
  60. package/dist/api/resources/files/client/requests/PushFileBodyV1.js +5 -0
  61. package/dist/api/resources/files/client/requests/index.d.ts +1 -0
  62. package/dist/api/resources/profiles/client/Client.js +1 -1
  63. package/dist/api/resources/requests/client/Client.js +1 -1
  64. package/dist/api/resources/sessions/client/Client.js +6 -6
  65. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  66. package/dist/api/resources/sessions/types/index.d.ts +1 -1
  67. package/dist/api/resources/sessions/types/index.js +1 -1
  68. package/dist/api/resources/windows/client/Client.d.ts +228 -0
  69. package/dist/api/resources/windows/client/Client.js +1162 -201
  70. package/dist/api/resources/windows/client/requests/ActRequest.d.ts +30 -0
  71. package/dist/api/resources/windows/client/requests/ActRequest.js +5 -0
  72. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  73. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  74. package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.d.ts +33 -0
  75. package/dist/api/resources/windows/client/requests/AsyncFileInputRequest.js +5 -0
  76. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  77. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  78. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  79. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  80. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  81. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  82. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  83. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  84. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  85. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  86. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  87. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  88. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  89. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  90. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  91. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  92. package/dist/api/resources/windows/client/requests/ExtractRequest.d.ts +30 -0
  93. package/dist/api/resources/windows/client/requests/ExtractRequest.js +5 -0
  94. package/dist/api/resources/windows/client/requests/FindManyRequest.d.ts +30 -0
  95. package/dist/api/resources/windows/client/requests/FindManyRequest.js +5 -0
  96. package/dist/api/resources/windows/client/requests/FindOneRequest.d.ts +30 -0
  97. package/dist/api/resources/windows/client/requests/FindOneRequest.js +5 -0
  98. package/dist/api/resources/windows/client/requests/LlmRequest.d.ts +25 -0
  99. package/dist/api/resources/windows/client/requests/LlmRequest.js +5 -0
  100. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  101. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  102. package/dist/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +31 -0
  103. package/dist/api/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +5 -0
  104. package/dist/api/resources/windows/client/requests/index.d.ts +17 -0
  105. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  106. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  107. package/dist/api/types/FileEventMessage.d.ts +1 -0
  108. package/dist/api/types/index.d.ts +1 -0
  109. package/dist/api/types/index.js +1 -0
  110. package/dist/serialization/resources/files/client/requests/PushFileBodyV1.d.ts +12 -0
  111. package/dist/serialization/resources/files/client/requests/PushFileBodyV1.js +43 -0
  112. package/dist/serialization/resources/files/client/requests/index.d.ts +1 -0
  113. package/dist/serialization/resources/files/client/requests/index.js +3 -1
  114. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  115. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  116. package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
  117. package/dist/serialization/resources/sessions/types/index.js +1 -1
  118. package/dist/serialization/resources/windows/client/requests/ActRequest.d.ts +19 -0
  119. package/dist/serialization/resources/windows/client/requests/ActRequest.js +50 -0
  120. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  121. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  122. package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +22 -0
  123. package/dist/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +53 -0
  124. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  125. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  126. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  127. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  128. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  129. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  130. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  131. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  132. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  133. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  134. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  135. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  136. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  137. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  138. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  139. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  140. package/dist/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
  141. package/dist/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
  142. package/dist/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
  143. package/dist/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
  144. package/dist/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
  145. package/dist/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
  146. package/dist/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
  147. package/dist/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
  148. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  149. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  150. package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +20 -0
  151. package/dist/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +51 -0
  152. package/dist/serialization/resources/windows/client/requests/index.d.ts +17 -0
  153. package/dist/serialization/resources/windows/client/requests/index.js +35 -1
  154. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  155. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  156. package/dist/serialization/types/FileEventMessage.d.ts +1 -0
  157. package/dist/serialization/types/FileEventMessage.js +1 -0
  158. package/dist/serialization/types/index.d.ts +1 -0
  159. package/dist/serialization/types/index.js +1 -0
  160. package/dist/utils/index.d.ts +1 -0
  161. package/dist/utils/index.js +1 -0
  162. package/dist/utils/upload.d.ts +13 -0
  163. package/dist/utils/upload.js +55 -0
  164. package/dist/version.d.ts +1 -1
  165. package/dist/version.js +1 -1
  166. package/dist/wrapper/AirtopClient.js +1 -1
  167. package/dist/wrapper/AirtopFiles.js +3 -3
  168. package/dist/wrapper/AirtopSessions.d.ts +24 -0
  169. package/dist/wrapper/AirtopSessions.js +103 -0
  170. package/dist/wrapper/AirtopWindows.d.ts +25 -1
  171. package/dist/wrapper/AirtopWindows.js +23 -1
  172. package/package.json +1 -1
  173. package/reference.md +1492 -108
  174. package/serialization/resources/files/client/requests/PushFileBodyV1.d.ts +12 -0
  175. package/serialization/resources/files/client/requests/PushFileBodyV1.js +43 -0
  176. package/serialization/resources/files/client/requests/index.d.ts +1 -0
  177. package/serialization/resources/files/client/requests/index.js +3 -1
  178. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  179. package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  180. package/serialization/resources/sessions/types/index.d.ts +1 -1
  181. package/serialization/resources/sessions/types/index.js +1 -1
  182. package/serialization/resources/windows/client/requests/ActRequest.d.ts +19 -0
  183. package/serialization/resources/windows/client/requests/ActRequest.js +50 -0
  184. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  185. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  186. package/serialization/resources/windows/client/requests/AsyncFileInputRequest.d.ts +22 -0
  187. package/serialization/resources/windows/client/requests/AsyncFileInputRequest.js +53 -0
  188. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  189. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  190. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  191. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  192. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  193. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  194. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  195. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  196. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  197. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  198. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  199. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  200. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  201. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  202. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  203. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  204. package/serialization/resources/windows/client/requests/ExtractRequest.d.ts +19 -0
  205. package/serialization/resources/windows/client/requests/ExtractRequest.js +50 -0
  206. package/serialization/resources/windows/client/requests/FindManyRequest.d.ts +19 -0
  207. package/serialization/resources/windows/client/requests/FindManyRequest.js +50 -0
  208. package/serialization/resources/windows/client/requests/FindOneRequest.d.ts +19 -0
  209. package/serialization/resources/windows/client/requests/FindOneRequest.js +50 -0
  210. package/serialization/resources/windows/client/requests/LlmRequest.d.ts +17 -0
  211. package/serialization/resources/windows/client/requests/LlmRequest.js +48 -0
  212. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  213. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  214. package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.d.ts +20 -0
  215. package/serialization/resources/windows/client/requests/SessionFileInputHandlerRequestBody.js +51 -0
  216. package/serialization/resources/windows/client/requests/index.d.ts +17 -0
  217. package/serialization/resources/windows/client/requests/index.js +35 -1
  218. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  219. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  220. package/serialization/types/FileEventMessage.d.ts +1 -0
  221. package/serialization/types/FileEventMessage.js +1 -0
  222. package/serialization/types/index.d.ts +1 -0
  223. package/serialization/types/index.js +1 -0
  224. package/utils/index.d.ts +1 -0
  225. package/utils/index.js +1 -0
  226. package/utils/upload.d.ts +13 -0
  227. package/utils/upload.js +55 -0
  228. package/version.d.ts +1 -1
  229. package/version.js +1 -1
  230. package/wrapper/AirtopClient.js +1 -1
  231. package/wrapper/AirtopFiles.js +3 -3
  232. package/wrapper/AirtopSessions.d.ts +24 -0
  233. package/wrapper/AirtopSessions.js +103 -0
  234. package/wrapper/AirtopWindows.d.ts +25 -1
  235. 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
  }