@airtop/sdk 0.1.31-beta1 → 0.1.31

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 (315) hide show
  1. package/Client.d.ts +0 -6
  2. package/Client.js +6 -16
  3. package/README.md +6 -8
  4. package/api/errors/index.d.ts +0 -2
  5. package/api/errors/index.js +0 -2
  6. package/api/resources/index.d.ts +0 -3
  7. package/api/resources/index.js +1 -4
  8. package/api/resources/profiles/client/Client.js +2 -2
  9. package/api/resources/requests/client/Client.js +2 -2
  10. package/api/resources/sessions/client/Client.d.ts +0 -9
  11. package/api/resources/sessions/client/Client.js +12 -65
  12. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
  13. package/api/resources/sessions/types/index.d.ts +2 -2
  14. package/api/resources/sessions/types/index.js +2 -2
  15. package/api/resources/windows/client/Client.d.ts +4 -138
  16. package/api/resources/windows/client/Client.js +34 -729
  17. package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +5 -5
  18. package/api/resources/windows/client/requests/index.d.ts +0 -11
  19. package/api/types/IntervalMonitorConfig.d.ts +1 -1
  20. package/api/types/MonitorConfig.d.ts +1 -5
  21. package/api/types/SessionConfigV1.d.ts +0 -2
  22. package/api/types/index.d.ts +0 -9
  23. package/api/types/index.js +0 -9
  24. package/dist/Client.d.ts +0 -6
  25. package/dist/Client.js +6 -16
  26. package/dist/api/errors/index.d.ts +0 -2
  27. package/dist/api/errors/index.js +0 -2
  28. package/dist/api/resources/index.d.ts +0 -3
  29. package/dist/api/resources/index.js +1 -4
  30. package/dist/api/resources/profiles/client/Client.js +2 -2
  31. package/dist/api/resources/requests/client/Client.js +2 -2
  32. package/dist/api/resources/sessions/client/Client.d.ts +0 -9
  33. package/dist/api/resources/sessions/client/Client.js +12 -65
  34. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -7
  35. package/dist/api/resources/sessions/types/index.d.ts +2 -2
  36. package/dist/api/resources/sessions/types/index.js +2 -2
  37. package/dist/api/resources/windows/client/Client.d.ts +4 -138
  38. package/dist/api/resources/windows/client/Client.js +34 -729
  39. package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +5 -5
  40. package/dist/api/resources/windows/client/requests/index.d.ts +0 -11
  41. package/dist/api/types/IntervalMonitorConfig.d.ts +1 -1
  42. package/dist/api/types/MonitorConfig.d.ts +1 -5
  43. package/dist/api/types/SessionConfigV1.d.ts +0 -2
  44. package/dist/api/types/index.d.ts +0 -9
  45. package/dist/api/types/index.js +0 -9
  46. package/dist/serialization/resources/index.d.ts +0 -2
  47. package/dist/serialization/resources/index.js +1 -3
  48. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  49. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
  50. package/dist/serialization/resources/sessions/types/index.d.ts +2 -2
  51. package/dist/serialization/resources/sessions/types/index.js +2 -2
  52. package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +1 -2
  53. package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +1 -2
  54. package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -11
  55. package/dist/serialization/resources/windows/client/requests/index.js +1 -23
  56. package/dist/serialization/types/MonitorConfig.d.ts +0 -4
  57. package/dist/serialization/types/MonitorConfig.js +0 -4
  58. package/dist/serialization/types/SessionConfigV1.d.ts +0 -1
  59. package/dist/serialization/types/SessionConfigV1.js +0 -1
  60. package/dist/serialization/types/index.d.ts +0 -9
  61. package/dist/serialization/types/index.js +0 -9
  62. package/dist/wrapper/AirtopClient.d.ts +0 -1
  63. package/dist/wrapper/AirtopClient.js +0 -3
  64. package/dist/wrapper/AirtopRequests.d.ts +2 -2
  65. package/dist/wrapper/AirtopRequests.js +3 -3
  66. package/dist/wrapper/AirtopWindows.d.ts +11 -11
  67. package/dist/wrapper/AirtopWindows.js +17 -17
  68. package/package.json +2 -3
  69. package/reference.md +156 -1295
  70. package/serialization/resources/index.d.ts +0 -2
  71. package/serialization/resources/index.js +1 -3
  72. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -9
  73. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -4
  74. package/serialization/resources/sessions/types/index.d.ts +2 -2
  75. package/serialization/resources/sessions/types/index.js +2 -2
  76. package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +1 -2
  77. package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +1 -2
  78. package/serialization/resources/windows/client/requests/index.d.ts +0 -11
  79. package/serialization/resources/windows/client/requests/index.js +1 -23
  80. package/serialization/types/MonitorConfig.d.ts +0 -4
  81. package/serialization/types/MonitorConfig.js +0 -4
  82. package/serialization/types/SessionConfigV1.d.ts +0 -1
  83. package/serialization/types/SessionConfigV1.js +0 -1
  84. package/serialization/types/index.d.ts +0 -9
  85. package/serialization/types/index.js +0 -9
  86. package/wrapper/AirtopClient.d.ts +0 -1
  87. package/wrapper/AirtopClient.js +0 -3
  88. package/wrapper/AirtopRequests.d.ts +2 -2
  89. package/wrapper/AirtopRequests.js +3 -3
  90. package/wrapper/AirtopWindows.d.ts +11 -11
  91. package/wrapper/AirtopWindows.js +17 -17
  92. package/api/errors/ForbiddenError.d.ts +0 -8
  93. package/api/errors/ForbiddenError.js +0 -41
  94. package/api/errors/UnauthorizedError.d.ts +0 -8
  95. package/api/errors/UnauthorizedError.js +0 -41
  96. package/api/resources/automations/client/Client.d.ts +0 -87
  97. package/api/resources/automations/client/Client.js +0 -451
  98. package/api/resources/automations/client/index.d.ts +0 -1
  99. package/api/resources/automations/client/index.js +0 -17
  100. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
  101. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
  102. package/api/resources/automations/client/requests/index.d.ts +0 -1
  103. package/api/resources/automations/client/requests/index.js +0 -2
  104. package/api/resources/automations/index.d.ts +0 -1
  105. package/api/resources/automations/index.js +0 -17
  106. package/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
  107. package/api/resources/extensionConfigurations/client/Client.js +0 -149
  108. package/api/resources/extensionConfigurations/client/index.d.ts +0 -1
  109. package/api/resources/extensionConfigurations/client/index.js +0 -2
  110. package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
  111. package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +0 -5
  112. package/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
  113. package/api/resources/extensionConfigurations/client/requests/index.js +0 -2
  114. package/api/resources/extensionConfigurations/index.d.ts +0 -1
  115. package/api/resources/extensionConfigurations/index.js +0 -17
  116. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  117. package/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  118. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
  119. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
  120. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
  121. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
  122. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  123. package/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  124. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  125. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  126. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  127. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  128. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  129. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  130. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  131. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  132. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  133. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  134. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  135. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  136. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  137. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  138. package/api/types/AsyncConfig.d.ts +0 -7
  139. package/api/types/AsyncConfig.js +0 -5
  140. package/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
  141. package/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
  142. package/api/types/AutomationOutput.d.ts +0 -10
  143. package/api/types/AutomationOutput.js +0 -5
  144. package/api/types/BrowserWaitSelectorConfig.d.ts +0 -11
  145. package/api/types/BrowserWaitSelectorConfig.js +0 -5
  146. package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
  147. package/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
  148. package/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
  149. package/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
  150. package/api/types/ExtensionConfigurationOutput.d.ts +0 -13
  151. package/api/types/ExtensionConfigurationOutput.js +0 -5
  152. package/api/types/ListAutomationsOutput.d.ts +0 -7
  153. package/api/types/ListAutomationsOutput.js +0 -5
  154. package/api/types/MonitorConfigMonitorType.d.ts +0 -11
  155. package/api/types/MonitorConfigMonitorType.js +0 -10
  156. package/dist/api/errors/ForbiddenError.d.ts +0 -8
  157. package/dist/api/errors/ForbiddenError.js +0 -41
  158. package/dist/api/errors/UnauthorizedError.d.ts +0 -8
  159. package/dist/api/errors/UnauthorizedError.js +0 -41
  160. package/dist/api/resources/automations/client/Client.d.ts +0 -87
  161. package/dist/api/resources/automations/client/Client.js +0 -451
  162. package/dist/api/resources/automations/client/index.d.ts +0 -1
  163. package/dist/api/resources/automations/client/index.js +0 -17
  164. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
  165. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
  166. package/dist/api/resources/automations/client/requests/index.d.ts +0 -1
  167. package/dist/api/resources/automations/client/requests/index.js +0 -2
  168. package/dist/api/resources/automations/index.d.ts +0 -1
  169. package/dist/api/resources/automations/index.js +0 -17
  170. package/dist/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
  171. package/dist/api/resources/extensionConfigurations/client/Client.js +0 -149
  172. package/dist/api/resources/extensionConfigurations/client/index.d.ts +0 -1
  173. package/dist/api/resources/extensionConfigurations/client/index.js +0 -2
  174. package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
  175. package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +0 -5
  176. package/dist/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
  177. package/dist/api/resources/extensionConfigurations/client/requests/index.js +0 -2
  178. package/dist/api/resources/extensionConfigurations/index.d.ts +0 -1
  179. package/dist/api/resources/extensionConfigurations/index.js +0 -17
  180. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  181. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  182. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
  183. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
  184. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
  185. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
  186. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  187. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  188. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  189. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  190. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  191. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  192. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  193. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  194. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  195. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  196. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  197. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  198. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  199. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  200. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  201. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  202. package/dist/api/types/AsyncConfig.d.ts +0 -7
  203. package/dist/api/types/AsyncConfig.js +0 -5
  204. package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
  205. package/dist/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
  206. package/dist/api/types/AutomationOutput.d.ts +0 -10
  207. package/dist/api/types/AutomationOutput.js +0 -5
  208. package/dist/api/types/BrowserWaitSelectorConfig.d.ts +0 -11
  209. package/dist/api/types/BrowserWaitSelectorConfig.js +0 -5
  210. package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
  211. package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
  212. package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
  213. package/dist/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
  214. package/dist/api/types/ExtensionConfigurationOutput.d.ts +0 -13
  215. package/dist/api/types/ExtensionConfigurationOutput.js +0 -5
  216. package/dist/api/types/ListAutomationsOutput.d.ts +0 -7
  217. package/dist/api/types/ListAutomationsOutput.js +0 -5
  218. package/dist/api/types/MonitorConfigMonitorType.d.ts +0 -11
  219. package/dist/api/types/MonitorConfigMonitorType.js +0 -10
  220. package/dist/serialization/resources/automations/client/index.d.ts +0 -1
  221. package/dist/serialization/resources/automations/client/index.js +0 -17
  222. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
  223. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -35
  224. package/dist/serialization/resources/automations/client/requests/index.d.ts +0 -1
  225. package/dist/serialization/resources/automations/client/requests/index.js +0 -5
  226. package/dist/serialization/resources/automations/index.d.ts +0 -1
  227. package/dist/serialization/resources/automations/index.js +0 -17
  228. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  229. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -41
  230. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
  231. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -39
  232. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
  233. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -39
  234. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  235. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -40
  236. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -20
  237. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -41
  238. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  239. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -41
  240. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  241. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -40
  242. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  243. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -41
  244. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  245. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -39
  246. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  247. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -40
  248. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  249. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -45
  250. package/dist/serialization/types/AsyncConfig.d.ts +0 -12
  251. package/dist/serialization/types/AsyncConfig.js +0 -33
  252. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
  253. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -36
  254. package/dist/serialization/types/AutomationOutput.d.ts +0 -16
  255. package/dist/serialization/types/AutomationOutput.js +0 -37
  256. package/dist/serialization/types/BrowserWaitSelectorConfig.d.ts +0 -14
  257. package/dist/serialization/types/BrowserWaitSelectorConfig.js +0 -35
  258. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
  259. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -31
  260. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
  261. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -31
  262. package/dist/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
  263. package/dist/serialization/types/ExtensionConfigurationOutput.js +0 -36
  264. package/dist/serialization/types/ListAutomationsOutput.d.ts +0 -13
  265. package/dist/serialization/types/ListAutomationsOutput.js +0 -34
  266. package/dist/serialization/types/MonitorConfigMonitorType.d.ts +0 -10
  267. package/dist/serialization/types/MonitorConfigMonitorType.js +0 -31
  268. package/serialization/resources/automations/client/index.d.ts +0 -1
  269. package/serialization/resources/automations/client/index.js +0 -17
  270. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
  271. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -35
  272. package/serialization/resources/automations/client/requests/index.d.ts +0 -1
  273. package/serialization/resources/automations/client/requests/index.js +0 -5
  274. package/serialization/resources/automations/index.d.ts +0 -1
  275. package/serialization/resources/automations/index.js +0 -17
  276. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  277. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -41
  278. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
  279. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -39
  280. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
  281. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -39
  282. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  283. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -40
  284. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -20
  285. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -41
  286. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  287. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -41
  288. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  289. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -40
  290. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  291. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -41
  292. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  293. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -39
  294. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  295. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -40
  296. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  297. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -45
  298. package/serialization/types/AsyncConfig.d.ts +0 -12
  299. package/serialization/types/AsyncConfig.js +0 -33
  300. package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
  301. package/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -36
  302. package/serialization/types/AutomationOutput.d.ts +0 -16
  303. package/serialization/types/AutomationOutput.js +0 -37
  304. package/serialization/types/BrowserWaitSelectorConfig.d.ts +0 -14
  305. package/serialization/types/BrowserWaitSelectorConfig.js +0 -35
  306. package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
  307. package/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -31
  308. package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
  309. package/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -31
  310. package/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
  311. package/serialization/types/ExtensionConfigurationOutput.js +0 -36
  312. package/serialization/types/ListAutomationsOutput.d.ts +0 -13
  313. package/serialization/types/ListAutomationsOutput.js +0 -34
  314. package/serialization/types/MonitorConfigMonitorType.d.ts +0 -10
  315. package/serialization/types/MonitorConfigMonitorType.js +0 -31
@@ -4,18 +4,18 @@
4
4
  import * as Airtop from "../../../../index";
5
5
  /**
6
6
  * @example
7
- * {}
7
+ * {
8
+ * condition: "Determine if the user appears to be signed in to the website"
9
+ * }
8
10
  */
9
11
  export interface SessionMonitorHandlerRequestBody {
10
12
  clientRequestId?: string;
11
- /** A natural language description of the condition to monitor for in the browser window. Required when monitorType is 'interval'. */
12
- condition?: string;
13
+ /** A natural language description of the condition to monitor for in the browser window. */
14
+ condition: string;
13
15
  /** Monitor configuration. If not specified, defaults to an interval monitor with a 5 second interval. */
14
16
  configuration?: Airtop.MonitorConfig;
15
17
  /** A credit threshold that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended). */
16
18
  costThresholdCredits?: number;
17
- /** The selector to wait for. Required when monitorType is 'selector'. */
18
- selector?: string;
19
19
  /**
20
20
  * A time threshold in seconds that, once exceeded, will cause the operation to be cancelled. Note that this is *not* a hard limit, but a threshold that is checked periodically during the course of fulfilling the request. A default threshold is used if not specified, but you can use this option to increase or decrease as needed. Set to 0 to disable this feature entirely (not recommended).
21
21
  *
@@ -1,14 +1,3 @@
1
- export { type AsyncClickRequest } from "./AsyncClickRequest";
2
- export { type AsyncCreateAutomationRequest } from "./AsyncCreateAutomationRequest";
3
- export { type AsyncExecuteAutomationRequest } from "./AsyncExecuteAutomationRequest";
4
- export { type AsyncHoverRequest } from "./AsyncHoverRequest";
5
- export { type AsyncMonitorRequest } from "./AsyncMonitorRequest";
6
- export { type AsyncPageQueryRequest } from "./AsyncPageQueryRequest";
7
- export { type AsyncPaginatedExtractionRequest } from "./AsyncPaginatedExtractionRequest";
8
- export { type AsyncPromptContentRequest } from "./AsyncPromptContentRequest";
9
- export { type AsyncScreenshotRequest } from "./AsyncScreenshotRequest";
10
- export { type AsyncSummarizeContentRequest } from "./AsyncSummarizeContentRequest";
11
- export { type AsyncTypeRequest } from "./AsyncTypeRequest";
12
1
  export { type CreateWindowInputV1Body } from "./CreateWindowInputV1Body";
13
2
  export { type GetWindowInfoRequest } from "./GetWindowInfoRequest";
14
3
  export { type WindowLoadUrlV1Body } from "./WindowLoadUrlV1Body";
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface IntervalMonitorConfig {
5
- /** The interval in seconds between condition checks. Only used when monitorType is 'interval'. */
5
+ /** The interval in seconds between condition checks. */
6
6
  intervalSeconds?: number;
7
7
  /** The timeout in seconds after which the monitor will stop checking the condition. */
8
8
  timeoutSeconds?: number;
@@ -5,10 +5,6 @@ import * as Airtop from "../index";
5
5
  export interface MonitorConfig {
6
6
  /** If set to 'enabled', Airtop AI will also analyze the web page visually when executing the condition check. If set to 'disabled', no visual analysis will be conducted. */
7
7
  includeVisualAnalysis?: Airtop.MonitorConfigIncludeVisualAnalysis;
8
- /** Configuration for the interval monitor. Only used when monitorType is 'interval'. */
8
+ /** Configuration for the interval monitor. */
9
9
  interval?: Airtop.IntervalMonitorConfig;
10
- /** Configuration for the browser wait selector. */
11
- monitorSelectorOptions?: Airtop.BrowserWaitSelectorConfig;
12
- /** The type of monitoring to perform. Interval executes the condition check at a regular, specified interval. Selector waits for a selector to be present before completing. */
13
- monitorType: Airtop.MonitorConfigMonitorType;
14
10
  }
@@ -5,8 +5,6 @@ import * as Airtop from "../index";
5
5
  export interface SessionConfigV1 {
6
6
  /** Deprecated: Use profileName instead. */
7
7
  baseProfileId?: string;
8
- /** Google Web Store extension IDs to be loaded into the session. */
9
- extensionIds?: string[];
10
8
  /** Deprecated: use Save Profile On Termination API instead. */
11
9
  persistProfile?: boolean;
12
10
  /** Name of a profile to load into the session. */
@@ -1,22 +1,15 @@
1
1
  export * from "./AiPromptResponse";
2
2
  export * from "./AiResponseEnvelope";
3
- export * from "./AsyncConfig";
4
- export * from "./AsyncSessionAiResponseEnvelope";
5
- export * from "./AutomationOutput";
6
3
  export * from "./BrowserWaitNavigationConfigWaitUntil";
7
4
  export * from "./BrowserWaitNavigationConfig";
8
- export * from "./BrowserWaitSelectorConfig";
9
5
  export * from "./ClickConfigClickType";
10
6
  export * from "./ClickConfig";
11
7
  export * from "./ClientProvidedResponseMetadata";
12
- export * from "./CreateAutomationRequestBodyConfiguration";
13
- export * from "./DeleteAutomationOutputWrapperBody";
14
8
  export * from "./EnvelopeDefaultMeta";
15
9
  export * from "./ErrorBody";
16
10
  export * from "./ErrorDetail";
17
11
  export * from "./ErrorMessage";
18
12
  export * from "./ErrorModel";
19
- export * from "./ExtensionConfigurationOutput";
20
13
  export * from "./ExternalSessionAiResponseMetadataStatus";
21
14
  export * from "./ExternalSessionAiResponseMetadata";
22
15
  export * from "./ExternalSessionAiResponseMetadataUsage";
@@ -24,10 +17,8 @@ export * from "./ExternalSessionConfig";
24
17
  export * from "./ExternalSessionWithConnectionInfo";
25
18
  export * from "./IntervalMonitorConfig";
26
19
  export * from "./Issue";
27
- export * from "./ListAutomationsOutput";
28
20
  export * from "./MicroInteractionConfig";
29
21
  export * from "./MonitorConfigIncludeVisualAnalysis";
30
- export * from "./MonitorConfigMonitorType";
31
22
  export * from "./MonitorConfig";
32
23
  export * from "./OperationOutcome";
33
24
  export * from "./OperationOutcomeResponse";
@@ -16,23 +16,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiPromptResponse"), exports);
18
18
  __exportStar(require("./AiResponseEnvelope"), exports);
19
- __exportStar(require("./AsyncConfig"), exports);
20
- __exportStar(require("./AsyncSessionAiResponseEnvelope"), exports);
21
- __exportStar(require("./AutomationOutput"), exports);
22
19
  __exportStar(require("./BrowserWaitNavigationConfigWaitUntil"), exports);
23
20
  __exportStar(require("./BrowserWaitNavigationConfig"), exports);
24
- __exportStar(require("./BrowserWaitSelectorConfig"), exports);
25
21
  __exportStar(require("./ClickConfigClickType"), exports);
26
22
  __exportStar(require("./ClickConfig"), exports);
27
23
  __exportStar(require("./ClientProvidedResponseMetadata"), exports);
28
- __exportStar(require("./CreateAutomationRequestBodyConfiguration"), exports);
29
- __exportStar(require("./DeleteAutomationOutputWrapperBody"), exports);
30
24
  __exportStar(require("./EnvelopeDefaultMeta"), exports);
31
25
  __exportStar(require("./ErrorBody"), exports);
32
26
  __exportStar(require("./ErrorDetail"), exports);
33
27
  __exportStar(require("./ErrorMessage"), exports);
34
28
  __exportStar(require("./ErrorModel"), exports);
35
- __exportStar(require("./ExtensionConfigurationOutput"), exports);
36
29
  __exportStar(require("./ExternalSessionAiResponseMetadataStatus"), exports);
37
30
  __exportStar(require("./ExternalSessionAiResponseMetadata"), exports);
38
31
  __exportStar(require("./ExternalSessionAiResponseMetadataUsage"), exports);
@@ -40,10 +33,8 @@ __exportStar(require("./ExternalSessionConfig"), exports);
40
33
  __exportStar(require("./ExternalSessionWithConnectionInfo"), exports);
41
34
  __exportStar(require("./IntervalMonitorConfig"), exports);
42
35
  __exportStar(require("./Issue"), exports);
43
- __exportStar(require("./ListAutomationsOutput"), exports);
44
36
  __exportStar(require("./MicroInteractionConfig"), exports);
45
37
  __exportStar(require("./MonitorConfigIncludeVisualAnalysis"), exports);
46
- __exportStar(require("./MonitorConfigMonitorType"), exports);
47
38
  __exportStar(require("./MonitorConfig"), exports);
48
39
  __exportStar(require("./OperationOutcome"), exports);
49
40
  __exportStar(require("./OperationOutcomeResponse"), exports);
package/dist/Client.d.ts CHANGED
@@ -4,8 +4,6 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Windows } from "./api/resources/windows/client/Client";
7
- import { Automations } from "./api/resources/automations/client/Client";
8
- import { ExtensionConfigurations } from "./api/resources/extensionConfigurations/client/Client";
9
7
  import { Profiles } from "./api/resources/profiles/client/Client";
10
8
  import { Requests } from "./api/resources/requests/client/Client";
11
9
  import { Sessions } from "./api/resources/sessions/client/Client";
@@ -29,10 +27,6 @@ export declare class AirtopClient {
29
27
  constructor(_options: AirtopClient.Options);
30
28
  protected _windows: Windows | undefined;
31
29
  get windows(): Windows;
32
- protected _automations: Automations | undefined;
33
- get automations(): Automations;
34
- protected _extensionConfigurations: ExtensionConfigurations | undefined;
35
- get extensionConfigurations(): ExtensionConfigurations;
36
30
  protected _profiles: Profiles | undefined;
37
31
  get profiles(): Profiles;
38
32
  protected _requests: Requests | undefined;
package/dist/Client.js CHANGED
@@ -5,11 +5,9 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AirtopClient = void 0;
7
7
  const Client_1 = require("./api/resources/windows/client/Client");
8
- const Client_2 = require("./api/resources/automations/client/Client");
9
- const Client_3 = require("./api/resources/extensionConfigurations/client/Client");
10
- const Client_4 = require("./api/resources/profiles/client/Client");
11
- const Client_5 = require("./api/resources/requests/client/Client");
12
- const Client_6 = require("./api/resources/sessions/client/Client");
8
+ const Client_2 = require("./api/resources/profiles/client/Client");
9
+ const Client_3 = require("./api/resources/requests/client/Client");
10
+ const Client_4 = require("./api/resources/sessions/client/Client");
13
11
  class AirtopClient {
14
12
  constructor(_options) {
15
13
  this._options = _options;
@@ -18,25 +16,17 @@ class AirtopClient {
18
16
  var _a;
19
17
  return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new Client_1.Windows(this._options)));
20
18
  }
21
- get automations() {
22
- var _a;
23
- return ((_a = this._automations) !== null && _a !== void 0 ? _a : (this._automations = new Client_2.Automations(this._options)));
24
- }
25
- get extensionConfigurations() {
26
- var _a;
27
- return ((_a = this._extensionConfigurations) !== null && _a !== void 0 ? _a : (this._extensionConfigurations = new Client_3.ExtensionConfigurations(this._options)));
28
- }
29
19
  get profiles() {
30
20
  var _a;
31
- return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_4.Profiles(this._options)));
21
+ return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_2.Profiles(this._options)));
32
22
  }
33
23
  get requests() {
34
24
  var _a;
35
- return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_5.Requests(this._options)));
25
+ return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_3.Requests(this._options)));
36
26
  }
37
27
  get sessions() {
38
28
  var _a;
39
- return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_6.Sessions(this._options)));
29
+ return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_4.Sessions(this._options)));
40
30
  }
41
31
  }
42
32
  exports.AirtopClient = AirtopClient;
@@ -1,5 +1,3 @@
1
- export * from "./UnauthorizedError";
2
- export * from "./ForbiddenError";
3
1
  export * from "./NotFoundError";
4
2
  export * from "./UnprocessableEntityError";
5
3
  export * from "./InternalServerError";
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./UnauthorizedError"), exports);
18
- __exportStar(require("./ForbiddenError"), exports);
19
17
  __exportStar(require("./NotFoundError"), exports);
20
18
  __exportStar(require("./UnprocessableEntityError"), exports);
21
19
  __exportStar(require("./InternalServerError"), exports);
@@ -2,11 +2,8 @@ export * as windows from "./windows";
2
2
  export * from "./windows/types";
3
3
  export * as sessions from "./sessions";
4
4
  export * from "./sessions/types";
5
- export * as automations from "./automations";
6
- export * as extensionConfigurations from "./extensionConfigurations";
7
5
  export * as profiles from "./profiles";
8
6
  export * as requests from "./requests";
9
7
  export * from "./windows/client/requests";
10
- export * from "./automations/client/requests";
11
8
  export * from "./profiles/client/requests";
12
9
  export * from "./sessions/client/requests";
@@ -26,16 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.requests = exports.profiles = exports.extensionConfigurations = exports.automations = exports.sessions = exports.windows = void 0;
29
+ exports.requests = exports.profiles = exports.sessions = exports.windows = void 0;
30
30
  exports.windows = __importStar(require("./windows"));
31
31
  __exportStar(require("./windows/types"), exports);
32
32
  exports.sessions = __importStar(require("./sessions"));
33
33
  __exportStar(require("./sessions/types"), exports);
34
- exports.automations = __importStar(require("./automations"));
35
- exports.extensionConfigurations = __importStar(require("./extensionConfigurations"));
36
34
  exports.profiles = __importStar(require("./profiles"));
37
35
  exports.requests = __importStar(require("./requests"));
38
36
  __exportStar(require("./windows/client/requests"), exports);
39
- __exportStar(require("./automations/client/requests"), exports);
40
37
  __exportStar(require("./profiles/client/requests"), exports);
41
38
  __exportStar(require("./sessions/client/requests"), exports);
@@ -84,8 +84,8 @@ class Profiles {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "@airtop/sdk",
87
- "X-Fern-SDK-Version": "0.1.31-beta0",
88
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
87
+ "X-Fern-SDK-Version": "0.1.31",
88
+ "User-Agent": "@airtop/sdk/0.1.31",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -65,8 +65,8 @@ class Requests {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@airtop/sdk",
68
- "X-Fern-SDK-Version": "0.1.31-beta0",
69
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
68
+ "X-Fern-SDK-Version": "0.1.31",
69
+ "User-Agent": "@airtop/sdk/0.1.31",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -75,15 +75,6 @@ export declare class Sessions {
75
75
  * Get a session event stream for a given session ID
76
76
  */
77
77
  events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
78
- /**
79
- * @param {string} sessionId - ID of the session.
80
- * @param {string} extensionConfigurationName - Name under which to save the extension configuration.
81
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @example
84
- * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
85
- */
86
- saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
87
78
  /**
88
79
  * @param {string} sessionId - ID of the session.
89
80
  * @param {string} profileName - Name under which to save the profile.
@@ -94,8 +94,8 @@ class Sessions {
94
94
  Authorization: yield this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "@airtop/sdk",
97
- "X-Fern-SDK-Version": "0.1.31-beta0",
98
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
97
+ "X-Fern-SDK-Version": "0.1.31",
98
+ "User-Agent": "@airtop/sdk/0.1.31",
99
99
  "X-Fern-Runtime": core.RUNTIME.type,
100
100
  "X-Fern-Runtime-Version": core.RUNTIME.version,
101
101
  },
@@ -180,8 +180,8 @@ class Sessions {
180
180
  Authorization: yield this._getAuthorizationHeader(),
181
181
  "X-Fern-Language": "JavaScript",
182
182
  "X-Fern-SDK-Name": "@airtop/sdk",
183
- "X-Fern-SDK-Version": "0.1.31-beta0",
184
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
183
+ "X-Fern-SDK-Version": "0.1.31",
184
+ "User-Agent": "@airtop/sdk/0.1.31",
185
185
  "X-Fern-Runtime": core.RUNTIME.type,
186
186
  "X-Fern-Runtime-Version": core.RUNTIME.version,
187
187
  },
@@ -245,8 +245,8 @@ class Sessions {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "@airtop/sdk",
248
- "X-Fern-SDK-Version": "0.1.31-beta0",
249
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
248
+ "X-Fern-SDK-Version": "0.1.31",
249
+ "User-Agent": "@airtop/sdk/0.1.31",
250
250
  "X-Fern-Runtime": core.RUNTIME.type,
251
251
  "X-Fern-Runtime-Version": core.RUNTIME.version,
252
252
  },
@@ -332,8 +332,8 @@ class Sessions {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "@airtop/sdk",
335
- "X-Fern-SDK-Version": "0.1.31-beta0",
336
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
335
+ "X-Fern-SDK-Version": "0.1.31",
336
+ "User-Agent": "@airtop/sdk/0.1.31",
337
337
  "X-Fern-Runtime": core.RUNTIME.type,
338
338
  "X-Fern-Runtime-Version": core.RUNTIME.version,
339
339
  },
@@ -388,8 +388,8 @@ class Sessions {
388
388
  Authorization: yield this._getAuthorizationHeader(),
389
389
  "X-Fern-Language": "JavaScript",
390
390
  "X-Fern-SDK-Name": "@airtop/sdk",
391
- "X-Fern-SDK-Version": "0.1.31-beta0",
392
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
391
+ "X-Fern-SDK-Version": "0.1.31",
392
+ "User-Agent": "@airtop/sdk/0.1.31",
393
393
  "X-Fern-Runtime": core.RUNTIME.type,
394
394
  "X-Fern-Runtime-Version": core.RUNTIME.version,
395
395
  },
@@ -468,59 +468,6 @@ class Sessions {
468
468
  }
469
469
  });
470
470
  }
471
- /**
472
- * @param {string} sessionId - ID of the session.
473
- * @param {string} extensionConfigurationName - Name under which to save the extension configuration.
474
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
475
- *
476
- * @example
477
- * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
478
- */
479
- saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
480
- var _a, _b;
481
- return __awaiter(this, void 0, void 0, function* () {
482
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
483
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
484
- method: "PUT",
485
- headers: {
486
- Authorization: yield this._getAuthorizationHeader(),
487
- "X-Fern-Language": "JavaScript",
488
- "X-Fern-SDK-Name": "@airtop/sdk",
489
- "X-Fern-SDK-Version": "0.1.31-beta0",
490
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
491
- "X-Fern-Runtime": core.RUNTIME.type,
492
- "X-Fern-Runtime-Version": core.RUNTIME.version,
493
- },
494
- contentType: "application/json",
495
- requestType: "json",
496
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
497
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
498
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
499
- });
500
- if (_response.ok) {
501
- return;
502
- }
503
- if (_response.error.reason === "status-code") {
504
- throw new errors.AirtopError({
505
- statusCode: _response.error.statusCode,
506
- body: _response.error.body,
507
- });
508
- }
509
- switch (_response.error.reason) {
510
- case "non-json":
511
- throw new errors.AirtopError({
512
- statusCode: _response.error.statusCode,
513
- body: _response.error.rawBody,
514
- });
515
- case "timeout":
516
- throw new errors.AirtopTimeoutError();
517
- case "unknown":
518
- throw new errors.AirtopError({
519
- message: _response.error.errorMessage,
520
- });
521
- }
522
- });
523
- }
524
471
  /**
525
472
  * @param {string} sessionId - ID of the session.
526
473
  * @param {string} profileName - Name under which to save the profile.
@@ -539,8 +486,8 @@ class Sessions {
539
486
  Authorization: yield this._getAuthorizationHeader(),
540
487
  "X-Fern-Language": "JavaScript",
541
488
  "X-Fern-SDK-Name": "@airtop/sdk",
542
- "X-Fern-SDK-Version": "0.1.31-beta0",
543
- "User-Agent": "@airtop/sdk/0.1.31-beta0",
489
+ "X-Fern-SDK-Version": "0.1.31",
490
+ "User-Agent": "@airtop/sdk/0.1.31",
544
491
  "X-Fern-Runtime": core.RUNTIME.type,
545
492
  "X-Fern-Runtime-Version": core.RUNTIME.version,
546
493
  },
@@ -5,18 +5,18 @@ import * as Airtop from "../../../index";
5
5
  /**
6
6
  * Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
7
7
  */
8
- export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
8
+ export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_;
9
9
  export declare namespace SessionsEventsResponse {
10
- interface Status extends Airtop.SessionsEventsResponseStatus {
11
- event: "status";
12
- }
13
- interface Error_ extends Airtop.SessionsEventsResponseError {
14
- event: "error";
15
- }
16
10
  interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
17
11
  event: "windowEvent";
18
12
  }
19
13
  interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
20
14
  event: "sessionEvent";
21
15
  }
16
+ interface Status extends Airtop.SessionsEventsResponseStatus {
17
+ event: "status";
18
+ }
19
+ interface Error_ extends Airtop.SessionsEventsResponseError {
20
+ event: "error";
21
+ }
22
22
  }
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseStatus";
3
- export * from "./SessionsEventsResponseError";
4
2
  export * from "./SessionsEventsResponseWindowEvent";
5
3
  export * from "./SessionsEventsResponseSessionEvent";
4
+ export * from "./SessionsEventsResponseStatus";
5
+ export * from "./SessionsEventsResponseError";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
- __exportStar(require("./SessionsEventsResponseStatus"), exports);
19
- __exportStar(require("./SessionsEventsResponseError"), exports);
20
18
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
19
  __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
20
+ __exportStar(require("./SessionsEventsResponseStatus"), exports);
21
+ __exportStar(require("./SessionsEventsResponseError"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -22,142 +22,6 @@ export declare namespace Windows {
22
22
  export declare class Windows {
23
23
  protected readonly _options: Windows.Options;
24
24
  constructor(_options: Windows.Options);
25
- /**
26
- * Execute a click interaction in a specific browser window asynchronously
27
- *
28
- * @param {string} sessionId - The session id for the window.
29
- * @param {string} windowId - The Airtop window id of the browser window.
30
- * @param {Airtop.AsyncClickRequest} request
31
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
32
- *
33
- * @example
34
- * await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
35
- * elementDescription: "The login button"
36
- * })
37
- */
38
- asyncClick(sessionId: string, windowId: string, request: Airtop.AsyncClickRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
39
- /**
40
- * Create an automation of a browser window asynchronously
41
- *
42
- * @param {string} sessionId - The session id for the window.
43
- * @param {string} windowId - The Airtop window id of the browser window.
44
- * @param {Airtop.AsyncCreateAutomationRequest} request
45
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
46
- *
47
- * @example
48
- * await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
49
- */
50
- asyncCreateAutomation(sessionId: string, windowId: string, request?: Airtop.AsyncCreateAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
51
- /**
52
- * Execute an automation of a browser window asynchronously
53
- *
54
- * @param {string} sessionId - The session id for the window.
55
- * @param {string} windowId - The Airtop window id of the browser window.
56
- * @param {Airtop.AsyncExecuteAutomationRequest} request
57
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
58
- *
59
- * @example
60
- * await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
61
- * automationId: "automationId"
62
- * })
63
- */
64
- asyncExecuteAutomation(sessionId: string, windowId: string, request: Airtop.AsyncExecuteAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
65
- /**
66
- * @param {string} sessionId - The session id for the window.
67
- * @param {string} windowId - The Airtop window id of the browser window.
68
- * @param {Airtop.AsyncHoverRequest} request
69
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
70
- *
71
- * @example
72
- * await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
73
- * elementDescription: "The search box input in the top right corner"
74
- * })
75
- */
76
- asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
77
- /**
78
- * @param {string} sessionId - The session id for the window.
79
- * @param {string} windowId - The Airtop window id of the browser window.
80
- * @param {Airtop.AsyncMonitorRequest} request
81
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @example
84
- * await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
85
- */
86
- asyncMonitor(sessionId: string, windowId: string, request?: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
87
- /**
88
- * @param {string} sessionId - The session id for the window.
89
- * @param {string} windowId - The Airtop window id of the browser window.
90
- * @param {Airtop.AsyncPageQueryRequest} request
91
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
92
- *
93
- * @example
94
- * await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
95
- * prompt: "What is the main idea of this page?"
96
- * })
97
- */
98
- asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
99
- /**
100
- * @param {string} sessionId - The session id for the window.
101
- * @param {string} windowId - The Airtop window id of the browser window.
102
- * @param {Airtop.AsyncPaginatedExtractionRequest} request
103
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
104
- *
105
- * @example
106
- * await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
107
- * 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."
108
- * })
109
- */
110
- asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
111
- /**
112
- * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
113
- *
114
- * @param {string} sessionId - The session id for the window.
115
- * @param {string} windowId - The Airtop window id of the browser window.
116
- * @param {Airtop.AsyncPromptContentRequest} request
117
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
118
- *
119
- * @example
120
- * await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
121
- * prompt: "What is the main idea of this page?"
122
- * })
123
- */
124
- asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
125
- /**
126
- * Take a screenshot of the current viewport of a browser window asynchronously
127
- *
128
- * @param {string} sessionId - The session id for the window.
129
- * @param {string} windowId - The Airtop window id of the browser window.
130
- * @param {Airtop.AsyncScreenshotRequest} request
131
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
132
- *
133
- * @example
134
- * await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
135
- */
136
- asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
137
- /**
138
- * This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
139
- *
140
- * @param {string} sessionId - The session id for the window.
141
- * @param {string} windowId - The Airtop window id of the browser window to summarize.
142
- * @param {Airtop.AsyncSummarizeContentRequest} request
143
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
144
- *
145
- * @example
146
- * await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
147
- */
148
- asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
149
- /**
150
- * @param {string} sessionId - The session id for the window.
151
- * @param {string} windowId - The Airtop window id of the browser window.
152
- * @param {Airtop.AsyncTypeRequest} request
153
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
154
- *
155
- * @example
156
- * await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
157
- * text: "Example text"
158
- * })
159
- */
160
- asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
161
25
  /**
162
26
  * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
163
27
  *
@@ -243,9 +107,11 @@ export declare class Windows {
243
107
  * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
244
108
  *
245
109
  * @example
246
- * await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
110
+ * await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
111
+ * condition: "Determine if the user appears to be signed in to the website"
112
+ * })
247
113
  */
248
- monitor(sessionId: string, windowId: string, request?: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
114
+ monitor(sessionId: string, windowId: string, request: Airtop.SessionMonitorHandlerRequestBody, requestOptions?: Windows.RequestOptions): Promise<Airtop.AiPromptResponse>;
249
115
  /**
250
116
  * 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?).
251
117
  *