@airtop/sdk 0.1.36-beta0 → 1.0.0-alpha2.0

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 (1609) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -153
  3. package/dist/index.cjs +1195 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +1028 -0
  6. package/dist/index.d.ts +1028 -7
  7. package/dist/index.js +1193 -49
  8. package/dist/index.js.map +1 -0
  9. package/package.json +71 -71
  10. package/Client.d.ts +0 -46
  11. package/Client.js +0 -42
  12. package/api/errors/ForbiddenError.d.ts +0 -8
  13. package/api/errors/ForbiddenError.js +0 -51
  14. package/api/errors/InternalServerError.d.ts +0 -8
  15. package/api/errors/InternalServerError.js +0 -51
  16. package/api/errors/NotFoundError.d.ts +0 -8
  17. package/api/errors/NotFoundError.js +0 -51
  18. package/api/errors/UnauthorizedError.d.ts +0 -8
  19. package/api/errors/UnauthorizedError.js +0 -51
  20. package/api/errors/UnprocessableEntityError.d.ts +0 -8
  21. package/api/errors/UnprocessableEntityError.js +0 -51
  22. package/api/errors/index.d.ts +0 -5
  23. package/api/errors/index.js +0 -21
  24. package/api/index.d.ts +0 -3
  25. package/api/index.js +0 -19
  26. package/api/resources/automations/client/Client.d.ts +0 -91
  27. package/api/resources/automations/client/Client.js +0 -429
  28. package/api/resources/automations/client/index.d.ts +0 -1
  29. package/api/resources/automations/client/index.js +0 -17
  30. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
  31. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
  32. package/api/resources/automations/client/requests/index.d.ts +0 -1
  33. package/api/resources/automations/client/requests/index.js +0 -2
  34. package/api/resources/automations/index.d.ts +0 -1
  35. package/api/resources/automations/index.js +0 -17
  36. package/api/resources/files/client/Client.d.ts +0 -69
  37. package/api/resources/files/client/Client.js +0 -286
  38. package/api/resources/files/client/index.d.ts +0 -1
  39. package/api/resources/files/client/index.js +0 -17
  40. package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -22
  41. package/api/resources/files/client/requests/CreateFileRestInputV1.js +0 -5
  42. package/api/resources/files/client/requests/FilesListRequest.d.ts +0 -24
  43. package/api/resources/files/client/requests/FilesListRequest.js +0 -5
  44. package/api/resources/files/client/requests/index.d.ts +0 -2
  45. package/api/resources/files/client/requests/index.js +0 -2
  46. package/api/resources/files/index.d.ts +0 -2
  47. package/api/resources/files/index.js +0 -18
  48. package/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -13
  49. package/api/resources/files/types/CreateFileRestInputV1FileType.js +0 -12
  50. package/api/resources/files/types/index.d.ts +0 -1
  51. package/api/resources/files/types/index.js +0 -17
  52. package/api/resources/index.d.ts +0 -14
  53. package/api/resources/index.js +0 -53
  54. package/api/resources/profiles/client/Client.d.ts +0 -40
  55. package/api/resources/profiles/client/Client.js +0 -131
  56. package/api/resources/profiles/client/index.d.ts +0 -1
  57. package/api/resources/profiles/client/index.js +0 -17
  58. package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +0 -17
  59. package/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +0 -5
  60. package/api/resources/profiles/client/requests/index.d.ts +0 -1
  61. package/api/resources/profiles/client/requests/index.js +0 -2
  62. package/api/resources/profiles/index.d.ts +0 -1
  63. package/api/resources/profiles/index.js +0 -17
  64. package/api/resources/requests/client/Client.d.ts +0 -38
  65. package/api/resources/requests/client/Client.js +0 -117
  66. package/api/resources/requests/client/index.d.ts +0 -1
  67. package/api/resources/requests/client/index.js +0 -2
  68. package/api/resources/requests/index.d.ts +0 -1
  69. package/api/resources/requests/index.js +0 -17
  70. package/api/resources/sessions/client/Client.d.ts +0 -92
  71. package/api/resources/sessions/client/Client.js +0 -494
  72. package/api/resources/sessions/client/index.d.ts +0 -1
  73. package/api/resources/sessions/client/index.js +0 -17
  74. package/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -12
  75. package/api/resources/sessions/client/requests/SessionRestInputV1.js +0 -5
  76. package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +0 -20
  77. package/api/resources/sessions/client/requests/SessionsEventsRequest.js +0 -5
  78. package/api/resources/sessions/client/requests/SessionsListRequest.d.ts +0 -29
  79. package/api/resources/sessions/client/requests/SessionsListRequest.js +0 -5
  80. package/api/resources/sessions/client/requests/index.d.ts +0 -3
  81. package/api/resources/sessions/client/requests/index.js +0 -2
  82. package/api/resources/sessions/index.d.ts +0 -2
  83. package/api/resources/sessions/index.js +0 -18
  84. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -22
  85. package/api/resources/sessions/types/SessionsEventsResponse.js +0 -5
  86. package/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
  87. package/api/resources/sessions/types/SessionsEventsResponseError.js +0 -5
  88. package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -11
  89. package/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -5
  90. package/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
  91. package/api/resources/sessions/types/SessionsEventsResponseStatus.js +0 -5
  92. package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -11
  93. package/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -5
  94. package/api/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -16
  95. package/api/resources/sessions/types/SessionsListRequestStatus.js +0 -15
  96. package/api/resources/sessions/types/index.d.ts +0 -6
  97. package/api/resources/sessions/types/index.js +0 -22
  98. package/api/resources/windows/client/Client.d.ts +0 -414
  99. package/api/resources/windows/client/Client.js +0 -1763
  100. package/api/resources/windows/client/index.d.ts +0 -1
  101. package/api/resources/windows/client/index.js +0 -17
  102. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  103. package/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  104. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
  105. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
  106. package/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -23
  107. package/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -5
  108. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
  109. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
  110. package/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -27
  111. package/api/resources/windows/client/requests/AsyncFillFormRequest.js +0 -5
  112. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  113. package/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  114. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  115. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  116. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  117. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  118. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  119. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  120. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  121. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  122. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  123. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  124. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  125. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  126. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  127. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  128. package/api/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -23
  129. package/api/resources/windows/client/requests/CreateFormFillerRequest.js +0 -5
  130. package/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -18
  131. package/api/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -5
  132. package/api/resources/windows/client/requests/FillFormRequest.d.ts +0 -27
  133. package/api/resources/windows/client/requests/FillFormRequest.js +0 -5
  134. package/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +0 -23
  135. package/api/resources/windows/client/requests/GetWindowInfoRequest.js +0 -5
  136. package/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -18
  137. package/api/resources/windows/client/requests/ScrapeContentRequest.js +0 -5
  138. package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -27
  139. package/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -5
  140. package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -25
  141. package/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -5
  142. package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -25
  143. package/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -5
  144. package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -25
  145. package/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -5
  146. package/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -21
  147. package/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -5
  148. package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -29
  149. package/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -5
  150. package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -23
  151. package/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -5
  152. package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -35
  153. package/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -5
  154. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -18
  155. package/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -5
  156. package/api/resources/windows/client/requests/index.d.ts +0 -27
  157. package/api/resources/windows/client/requests/index.js +0 -2
  158. package/api/resources/windows/index.d.ts +0 -2
  159. package/api/resources/windows/index.js +0 -18
  160. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -13
  161. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -12
  162. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -13
  163. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -12
  164. package/api/resources/windows/types/index.d.ts +0 -2
  165. package/api/resources/windows/types/index.js +0 -18
  166. package/api/types/AiPromptResponse.d.ts +0 -10
  167. package/api/types/AiPromptResponse.js +0 -5
  168. package/api/types/AiResponseEnvelope.d.ts +0 -6
  169. package/api/types/AiResponseEnvelope.js +0 -5
  170. package/api/types/AirtopProxyConfiguration.d.ts +0 -9
  171. package/api/types/AirtopProxyConfiguration.js +0 -5
  172. package/api/types/AsyncConfig.d.ts +0 -7
  173. package/api/types/AsyncConfig.js +0 -5
  174. package/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
  175. package/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
  176. package/api/types/AutomationOutput.d.ts +0 -10
  177. package/api/types/AutomationOutput.js +0 -5
  178. package/api/types/BrowserWaitNavigationConfig.d.ts +0 -10
  179. package/api/types/BrowserWaitNavigationConfig.js +0 -5
  180. package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -13
  181. package/api/types/BrowserWaitNavigationConfigWaitUntil.js +0 -12
  182. package/api/types/ClickConfig.d.ts +0 -14
  183. package/api/types/ClickConfig.js +0 -5
  184. package/api/types/ClickConfigClickType.d.ts +0 -12
  185. package/api/types/ClickConfigClickType.js +0 -11
  186. package/api/types/ClientProvidedResponseMetadata.d.ts +0 -6
  187. package/api/types/ClientProvidedResponseMetadata.js +0 -5
  188. package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
  189. package/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
  190. package/api/types/CreateFileV1.d.ts +0 -24
  191. package/api/types/CreateFileV1.js +0 -5
  192. package/api/types/CreateFileV1FileType.d.ts +0 -13
  193. package/api/types/CreateFileV1FileType.js +0 -12
  194. package/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
  195. package/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
  196. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -10
  197. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -5
  198. package/api/types/EnvelopeDefaultMeta.d.ts +0 -6
  199. package/api/types/EnvelopeDefaultMeta.js +0 -5
  200. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -10
  201. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -5
  202. package/api/types/ErrorBody.d.ts +0 -9
  203. package/api/types/ErrorBody.js +0 -5
  204. package/api/types/ErrorDetail.d.ts +0 -10
  205. package/api/types/ErrorDetail.js +0 -5
  206. package/api/types/ErrorMessage.d.ts +0 -11
  207. package/api/types/ErrorMessage.js +0 -5
  208. package/api/types/ErrorModel.d.ts +0 -18
  209. package/api/types/ErrorModel.js +0 -5
  210. package/api/types/ExternalFile.d.ts +0 -33
  211. package/api/types/ExternalFile.js +0 -5
  212. package/api/types/ExternalSessionAiResponseMetadata.d.ts +0 -13
  213. package/api/types/ExternalSessionAiResponseMetadata.js +0 -5
  214. package/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -12
  215. package/api/types/ExternalSessionAiResponseMetadataStatus.js +0 -11
  216. package/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -9
  217. package/api/types/ExternalSessionAiResponseMetadataUsage.js +0 -5
  218. package/api/types/ExternalSessionConfig.d.ts +0 -11
  219. package/api/types/ExternalSessionConfig.js +0 -5
  220. package/api/types/ExternalSessionWithConnectionInfo.d.ts +0 -26
  221. package/api/types/ExternalSessionWithConnectionInfo.js +0 -5
  222. package/api/types/FilesResponse.d.ts +0 -10
  223. package/api/types/FilesResponse.js +0 -5
  224. package/api/types/FilesWithPagination.d.ts +0 -10
  225. package/api/types/FilesWithPagination.js +0 -5
  226. package/api/types/GetFileV1.d.ts +0 -24
  227. package/api/types/GetFileV1.js +0 -5
  228. package/api/types/GetFileV1FileType.d.ts +0 -13
  229. package/api/types/GetFileV1FileType.js +0 -12
  230. package/api/types/IntervalMonitorConfig.d.ts +0 -9
  231. package/api/types/IntervalMonitorConfig.js +0 -5
  232. package/api/types/Issue.d.ts +0 -13
  233. package/api/types/Issue.js +0 -5
  234. package/api/types/ListAutomationsOutput.d.ts +0 -7
  235. package/api/types/ListAutomationsOutput.js +0 -5
  236. package/api/types/MicroInteractionConfig.d.ts +0 -10
  237. package/api/types/MicroInteractionConfig.js +0 -5
  238. package/api/types/MicroInteractionConfigWithExperimental.d.ts +0 -12
  239. package/api/types/MicroInteractionConfigWithExperimental.js +0 -5
  240. package/api/types/MicroInteractionExperimentalConfig.d.ts +0 -7
  241. package/api/types/MicroInteractionExperimentalConfig.js +0 -5
  242. package/api/types/MonitorConfig.d.ts +0 -10
  243. package/api/types/MonitorConfig.js +0 -5
  244. package/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -12
  245. package/api/types/MonitorConfigIncludeVisualAnalysis.js +0 -11
  246. package/api/types/OperationOutcome.d.ts +0 -7
  247. package/api/types/OperationOutcome.js +0 -5
  248. package/api/types/OperationOutcomeResponse.d.ts +0 -10
  249. package/api/types/OperationOutcomeResponse.js +0 -5
  250. package/api/types/PageQueryConfig.d.ts +0 -12
  251. package/api/types/PageQueryConfig.js +0 -5
  252. package/api/types/PageQueryExperimentalConfig.d.ts +0 -7
  253. package/api/types/PageQueryExperimentalConfig.js +0 -5
  254. package/api/types/PaginatedExtractionConfig.d.ts +0 -16
  255. package/api/types/PaginatedExtractionConfig.js +0 -5
  256. package/api/types/PaginatedExtractionExperimentalConfig.d.ts +0 -7
  257. package/api/types/PaginatedExtractionExperimentalConfig.js +0 -5
  258. package/api/types/Pagination.d.ts +0 -21
  259. package/api/types/Pagination.js +0 -5
  260. package/api/types/Proxy.d.ts +0 -14
  261. package/api/types/Proxy.js +0 -5
  262. package/api/types/ProxyConfigurationKind.d.ts +0 -9
  263. package/api/types/ProxyConfigurationKind.js +0 -5
  264. package/api/types/ProxyCredentials.d.ts +0 -11
  265. package/api/types/ProxyCredentials.js +0 -5
  266. package/api/types/RequestStatusResponse.d.ts +0 -8
  267. package/api/types/RequestStatusResponse.js +0 -5
  268. package/api/types/ScrapeConfig.d.ts +0 -7
  269. package/api/types/ScrapeConfig.js +0 -5
  270. package/api/types/ScrapeResponse.d.ts +0 -10
  271. package/api/types/ScrapeResponse.js +0 -5
  272. package/api/types/ScrapeResponseContent.d.ts +0 -9
  273. package/api/types/ScrapeResponseContent.js +0 -5
  274. package/api/types/ScrapeResponseEnvelope.d.ts +0 -8
  275. package/api/types/ScrapeResponseEnvelope.js +0 -5
  276. package/api/types/ScrapeResponseOutput.d.ts +0 -12
  277. package/api/types/ScrapeResponseOutput.js +0 -5
  278. package/api/types/ScreenshotConfig.d.ts +0 -13
  279. package/api/types/ScreenshotConfig.js +0 -5
  280. package/api/types/ScreenshotMetadata.d.ts +0 -7
  281. package/api/types/ScreenshotMetadata.js +0 -5
  282. package/api/types/ScreenshotRequestConfig.d.ts +0 -8
  283. package/api/types/ScreenshotRequestConfig.js +0 -5
  284. package/api/types/ScrollByConfig.d.ts +0 -9
  285. package/api/types/ScrollByConfig.js +0 -5
  286. package/api/types/ScrollToEdgeConfig.d.ts +0 -9
  287. package/api/types/ScrollToEdgeConfig.js +0 -5
  288. package/api/types/SessionConfigV1.d.ts +0 -18
  289. package/api/types/SessionConfigV1.js +0 -5
  290. package/api/types/SessionConfigV1Proxy.d.ts +0 -17
  291. package/api/types/SessionConfigV1Proxy.js +0 -5
  292. package/api/types/SessionEventMessage.d.ts +0 -17
  293. package/api/types/SessionEventMessage.js +0 -5
  294. package/api/types/SessionPageQueryHandlerRequestBody.d.ts +0 -21
  295. package/api/types/SessionPageQueryHandlerRequestBody.js +0 -5
  296. package/api/types/SessionResponse.d.ts +0 -10
  297. package/api/types/SessionResponse.js +0 -5
  298. package/api/types/SessionsResponse.d.ts +0 -10
  299. package/api/types/SessionsResponse.js +0 -5
  300. package/api/types/SessionsWithPagination.d.ts +0 -10
  301. package/api/types/SessionsWithPagination.js +0 -5
  302. package/api/types/StatusMessage.d.ts +0 -16
  303. package/api/types/StatusMessage.js +0 -5
  304. package/api/types/StatusMessageStatus.d.ts +0 -15
  305. package/api/types/StatusMessageStatus.js +0 -14
  306. package/api/types/SummaryConfig.d.ts +0 -9
  307. package/api/types/SummaryConfig.js +0 -5
  308. package/api/types/SummaryExperimentalConfig.d.ts +0 -7
  309. package/api/types/SummaryExperimentalConfig.js +0 -5
  310. package/api/types/VisualAnalysisConfig.d.ts +0 -18
  311. package/api/types/VisualAnalysisConfig.js +0 -5
  312. package/api/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -12
  313. package/api/types/VisualAnalysisConfigPartitionDirection.js +0 -11
  314. package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -12
  315. package/api/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -11
  316. package/api/types/VisualAnalysisConfigScope.d.ts +0 -13
  317. package/api/types/VisualAnalysisConfigScope.js +0 -12
  318. package/api/types/Window.d.ts +0 -11
  319. package/api/types/Window.js +0 -5
  320. package/api/types/WindowEventMessage.d.ts +0 -19
  321. package/api/types/WindowEventMessage.js +0 -5
  322. package/api/types/WindowId.d.ts +0 -9
  323. package/api/types/WindowId.js +0 -5
  324. package/api/types/WindowIdResponse.d.ts +0 -10
  325. package/api/types/WindowIdResponse.js +0 -5
  326. package/api/types/WindowResponse.d.ts +0 -10
  327. package/api/types/WindowResponse.js +0 -5
  328. package/api/types/index.d.ts +0 -81
  329. package/api/types/index.js +0 -97
  330. package/biome.json +0 -69
  331. package/config/tsconfig-nobase.json +0 -16
  332. package/core/auth/BasicAuth.d.ts +0 -8
  333. package/core/auth/BasicAuth.js +0 -26
  334. package/core/auth/BearerToken.d.ts +0 -5
  335. package/core/auth/BearerToken.js +0 -15
  336. package/core/auth/index.d.ts +0 -2
  337. package/core/auth/index.js +0 -7
  338. package/core/fetcher/APIResponse.d.ts +0 -10
  339. package/core/fetcher/APIResponse.js +0 -2
  340. package/core/fetcher/Fetcher.d.ts +0 -39
  341. package/core/fetcher/Fetcher.js +0 -100
  342. package/core/fetcher/Supplier.d.ts +0 -4
  343. package/core/fetcher/Supplier.js +0 -22
  344. package/core/fetcher/createRequestUrl.d.ts +0 -1
  345. package/core/fetcher/createRequestUrl.js +0 -12
  346. package/core/fetcher/getFetchFn.d.ts +0 -4
  347. package/core/fetcher/getFetchFn.js +0 -68
  348. package/core/fetcher/getHeader.d.ts +0 -1
  349. package/core/fetcher/getHeader.js +0 -11
  350. package/core/fetcher/getRequestBody.d.ts +0 -7
  351. package/core/fetcher/getRequestBody.js +0 -23
  352. package/core/fetcher/getResponseBody.d.ts +0 -1
  353. package/core/fetcher/getResponseBody.js +0 -54
  354. package/core/fetcher/index.d.ts +0 -5
  355. package/core/fetcher/index.js +0 -9
  356. package/core/fetcher/makeRequest.d.ts +0 -1
  357. package/core/fetcher/makeRequest.js +0 -42
  358. package/core/fetcher/requestWithRetries.d.ts +0 -1
  359. package/core/fetcher/requestWithRetries.js +0 -40
  360. package/core/fetcher/signals.d.ts +0 -11
  361. package/core/fetcher/signals.js +0 -36
  362. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  363. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  364. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  365. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  366. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  367. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  368. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  369. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  370. package/core/index.d.ts +0 -5
  371. package/core/index.js +0 -44
  372. package/core/json.d.ts +0 -15
  373. package/core/json.js +0 -24
  374. package/core/runtime/index.d.ts +0 -1
  375. package/core/runtime/index.js +0 -5
  376. package/core/runtime/runtime.d.ts +0 -9
  377. package/core/runtime/runtime.js +0 -103
  378. package/core/schemas/Schema.d.ts +0 -87
  379. package/core/schemas/Schema.js +0 -24
  380. package/core/schemas/builders/bigint/bigint.d.ts +0 -2
  381. package/core/schemas/builders/bigint/bigint.js +0 -53
  382. package/core/schemas/builders/bigint/index.d.ts +0 -1
  383. package/core/schemas/builders/bigint/index.js +0 -5
  384. package/core/schemas/builders/date/date.d.ts +0 -2
  385. package/core/schemas/builders/date/date.js +0 -62
  386. package/core/schemas/builders/date/index.d.ts +0 -1
  387. package/core/schemas/builders/date/index.js +0 -5
  388. package/core/schemas/builders/enum/enum.d.ts +0 -2
  389. package/core/schemas/builders/enum/enum.js +0 -38
  390. package/core/schemas/builders/enum/index.d.ts +0 -1
  391. package/core/schemas/builders/enum/index.js +0 -5
  392. package/core/schemas/builders/index.d.ts +0 -14
  393. package/core/schemas/builders/index.js +0 -30
  394. package/core/schemas/builders/lazy/index.d.ts +0 -3
  395. package/core/schemas/builders/lazy/index.js +0 -7
  396. package/core/schemas/builders/lazy/lazy.d.ts +0 -5
  397. package/core/schemas/builders/lazy/lazy.js +0 -24
  398. package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
  399. package/core/schemas/builders/lazy/lazyObject.js +0 -11
  400. package/core/schemas/builders/list/index.d.ts +0 -1
  401. package/core/schemas/builders/list/index.js +0 -5
  402. package/core/schemas/builders/list/list.d.ts +0 -2
  403. package/core/schemas/builders/list/list.js +0 -54
  404. package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
  405. package/core/schemas/builders/literals/booleanLiteral.js +0 -28
  406. package/core/schemas/builders/literals/index.d.ts +0 -2
  407. package/core/schemas/builders/literals/index.js +0 -7
  408. package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  409. package/core/schemas/builders/literals/stringLiteral.js +0 -28
  410. package/core/schemas/builders/object/index.d.ts +0 -6
  411. package/core/schemas/builders/object/index.js +0 -11
  412. package/core/schemas/builders/object/object.d.ts +0 -3
  413. package/core/schemas/builders/object/object.js +0 -261
  414. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
  415. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
  416. package/core/schemas/builders/object/property.d.ts +0 -8
  417. package/core/schemas/builders/object/property.js +0 -15
  418. package/core/schemas/builders/object/types.d.ts +0 -31
  419. package/core/schemas/builders/object/types.js +0 -2
  420. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
  421. package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
  422. package/core/schemas/builders/object-like/index.d.ts +0 -2
  423. package/core/schemas/builders/object-like/index.js +0 -6
  424. package/core/schemas/builders/object-like/types.d.ts +0 -7
  425. package/core/schemas/builders/object-like/types.js +0 -2
  426. package/core/schemas/builders/primitives/any.d.ts +0 -1
  427. package/core/schemas/builders/primitives/any.js +0 -6
  428. package/core/schemas/builders/primitives/boolean.d.ts +0 -1
  429. package/core/schemas/builders/primitives/boolean.js +0 -25
  430. package/core/schemas/builders/primitives/index.d.ts +0 -5
  431. package/core/schemas/builders/primitives/index.js +0 -13
  432. package/core/schemas/builders/primitives/number.d.ts +0 -1
  433. package/core/schemas/builders/primitives/number.js +0 -25
  434. package/core/schemas/builders/primitives/string.d.ts +0 -1
  435. package/core/schemas/builders/primitives/string.js +0 -25
  436. package/core/schemas/builders/primitives/unknown.d.ts +0 -1
  437. package/core/schemas/builders/primitives/unknown.js +0 -6
  438. package/core/schemas/builders/record/index.d.ts +0 -2
  439. package/core/schemas/builders/record/index.js +0 -5
  440. package/core/schemas/builders/record/record.d.ts +0 -3
  441. package/core/schemas/builders/record/record.js +0 -93
  442. package/core/schemas/builders/record/types.d.ts +0 -4
  443. package/core/schemas/builders/record/types.js +0 -2
  444. package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
  445. package/core/schemas/builders/schema-utils/JsonError.js +0 -12
  446. package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
  447. package/core/schemas/builders/schema-utils/ParseError.js +0 -12
  448. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
  449. package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
  450. package/core/schemas/builders/schema-utils/index.d.ts +0 -4
  451. package/core/schemas/builders/schema-utils/index.js +0 -11
  452. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
  453. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
  454. package/core/schemas/builders/set/index.d.ts +0 -1
  455. package/core/schemas/builders/set/index.js +0 -5
  456. package/core/schemas/builders/set/set.d.ts +0 -2
  457. package/core/schemas/builders/set/set.js +0 -43
  458. package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
  459. package/core/schemas/builders/undiscriminated-union/index.js +0 -5
  460. package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
  461. package/core/schemas/builders/undiscriminated-union/types.js +0 -2
  462. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
  463. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
  464. package/core/schemas/builders/union/discriminant.d.ts +0 -5
  465. package/core/schemas/builders/union/discriminant.js +0 -9
  466. package/core/schemas/builders/union/index.d.ts +0 -4
  467. package/core/schemas/builders/union/index.js +0 -7
  468. package/core/schemas/builders/union/types.d.ts +0 -13
  469. package/core/schemas/builders/union/types.js +0 -2
  470. package/core/schemas/builders/union/union.d.ts +0 -4
  471. package/core/schemas/builders/union/union.js +0 -129
  472. package/core/schemas/index.d.ts +0 -2
  473. package/core/schemas/index.js +0 -17
  474. package/core/schemas/utils/MaybePromise.d.ts +0 -1
  475. package/core/schemas/utils/MaybePromise.js +0 -2
  476. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
  477. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
  478. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
  479. package/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
  480. package/core/schemas/utils/entries.d.ts +0 -1
  481. package/core/schemas/utils/entries.js +0 -6
  482. package/core/schemas/utils/filterObject.d.ts +0 -1
  483. package/core/schemas/utils/filterObject.js +0 -13
  484. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
  485. package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
  486. package/core/schemas/utils/isPlainObject.d.ts +0 -1
  487. package/core/schemas/utils/isPlainObject.js +0 -17
  488. package/core/schemas/utils/keys.d.ts +0 -1
  489. package/core/schemas/utils/keys.js +0 -6
  490. package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
  491. package/core/schemas/utils/maybeSkipValidation.js +0 -27
  492. package/core/schemas/utils/partition.d.ts +0 -1
  493. package/core/schemas/utils/partition.js +0 -15
  494. package/core/streaming-fetcher/Stream.d.ts +0 -47
  495. package/core/streaming-fetcher/Stream.js +0 -169
  496. package/core/streaming-fetcher/index.d.ts +0 -1
  497. package/core/streaming-fetcher/index.js +0 -5
  498. package/dist/Client.d.ts +0 -46
  499. package/dist/Client.js +0 -42
  500. package/dist/api/errors/ForbiddenError.d.ts +0 -8
  501. package/dist/api/errors/ForbiddenError.js +0 -51
  502. package/dist/api/errors/InternalServerError.d.ts +0 -8
  503. package/dist/api/errors/InternalServerError.js +0 -51
  504. package/dist/api/errors/NotFoundError.d.ts +0 -8
  505. package/dist/api/errors/NotFoundError.js +0 -51
  506. package/dist/api/errors/UnauthorizedError.d.ts +0 -8
  507. package/dist/api/errors/UnauthorizedError.js +0 -51
  508. package/dist/api/errors/UnprocessableEntityError.d.ts +0 -8
  509. package/dist/api/errors/UnprocessableEntityError.js +0 -51
  510. package/dist/api/errors/index.d.ts +0 -5
  511. package/dist/api/errors/index.js +0 -21
  512. package/dist/api/index.d.ts +0 -3
  513. package/dist/api/index.js +0 -19
  514. package/dist/api/resources/automations/client/Client.d.ts +0 -91
  515. package/dist/api/resources/automations/client/Client.js +0 -429
  516. package/dist/api/resources/automations/client/index.d.ts +0 -1
  517. package/dist/api/resources/automations/client/index.js +0 -17
  518. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
  519. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
  520. package/dist/api/resources/automations/client/requests/index.d.ts +0 -1
  521. package/dist/api/resources/automations/client/requests/index.js +0 -2
  522. package/dist/api/resources/automations/index.d.ts +0 -1
  523. package/dist/api/resources/automations/index.js +0 -17
  524. package/dist/api/resources/files/client/Client.d.ts +0 -69
  525. package/dist/api/resources/files/client/Client.js +0 -286
  526. package/dist/api/resources/files/client/index.d.ts +0 -1
  527. package/dist/api/resources/files/client/index.js +0 -17
  528. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -22
  529. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.js +0 -5
  530. package/dist/api/resources/files/client/requests/FilesListRequest.d.ts +0 -24
  531. package/dist/api/resources/files/client/requests/FilesListRequest.js +0 -5
  532. package/dist/api/resources/files/client/requests/index.d.ts +0 -2
  533. package/dist/api/resources/files/client/requests/index.js +0 -2
  534. package/dist/api/resources/files/index.d.ts +0 -2
  535. package/dist/api/resources/files/index.js +0 -18
  536. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -13
  537. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +0 -12
  538. package/dist/api/resources/files/types/index.d.ts +0 -1
  539. package/dist/api/resources/files/types/index.js +0 -17
  540. package/dist/api/resources/index.d.ts +0 -14
  541. package/dist/api/resources/index.js +0 -53
  542. package/dist/api/resources/profiles/client/Client.d.ts +0 -40
  543. package/dist/api/resources/profiles/client/Client.js +0 -131
  544. package/dist/api/resources/profiles/client/index.d.ts +0 -1
  545. package/dist/api/resources/profiles/client/index.js +0 -17
  546. package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +0 -17
  547. package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.js +0 -5
  548. package/dist/api/resources/profiles/client/requests/index.d.ts +0 -1
  549. package/dist/api/resources/profiles/client/requests/index.js +0 -2
  550. package/dist/api/resources/profiles/index.d.ts +0 -1
  551. package/dist/api/resources/profiles/index.js +0 -17
  552. package/dist/api/resources/requests/client/Client.d.ts +0 -38
  553. package/dist/api/resources/requests/client/Client.js +0 -117
  554. package/dist/api/resources/requests/client/index.d.ts +0 -1
  555. package/dist/api/resources/requests/client/index.js +0 -2
  556. package/dist/api/resources/requests/index.d.ts +0 -1
  557. package/dist/api/resources/requests/index.js +0 -17
  558. package/dist/api/resources/sessions/client/Client.d.ts +0 -92
  559. package/dist/api/resources/sessions/client/Client.js +0 -494
  560. package/dist/api/resources/sessions/client/index.d.ts +0 -1
  561. package/dist/api/resources/sessions/client/index.js +0 -17
  562. package/dist/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -12
  563. package/dist/api/resources/sessions/client/requests/SessionRestInputV1.js +0 -5
  564. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +0 -20
  565. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.js +0 -5
  566. package/dist/api/resources/sessions/client/requests/SessionsListRequest.d.ts +0 -29
  567. package/dist/api/resources/sessions/client/requests/SessionsListRequest.js +0 -5
  568. package/dist/api/resources/sessions/client/requests/index.d.ts +0 -3
  569. package/dist/api/resources/sessions/client/requests/index.js +0 -2
  570. package/dist/api/resources/sessions/index.d.ts +0 -2
  571. package/dist/api/resources/sessions/index.js +0 -18
  572. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -22
  573. package/dist/api/resources/sessions/types/SessionsEventsResponse.js +0 -5
  574. package/dist/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
  575. package/dist/api/resources/sessions/types/SessionsEventsResponseError.js +0 -5
  576. package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -11
  577. package/dist/api/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -5
  578. package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
  579. package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.js +0 -5
  580. package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -11
  581. package/dist/api/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -5
  582. package/dist/api/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -16
  583. package/dist/api/resources/sessions/types/SessionsListRequestStatus.js +0 -15
  584. package/dist/api/resources/sessions/types/index.d.ts +0 -6
  585. package/dist/api/resources/sessions/types/index.js +0 -22
  586. package/dist/api/resources/windows/client/Client.d.ts +0 -414
  587. package/dist/api/resources/windows/client/Client.js +0 -1763
  588. package/dist/api/resources/windows/client/index.d.ts +0 -1
  589. package/dist/api/resources/windows/client/index.js +0 -17
  590. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  591. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  592. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
  593. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
  594. package/dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -23
  595. package/dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -5
  596. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
  597. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
  598. package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -27
  599. package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.js +0 -5
  600. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  601. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  602. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  603. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  604. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  605. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  606. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  607. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  608. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  609. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  610. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  611. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  612. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  613. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  614. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  615. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  616. package/dist/api/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -23
  617. package/dist/api/resources/windows/client/requests/CreateFormFillerRequest.js +0 -5
  618. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -18
  619. package/dist/api/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -5
  620. package/dist/api/resources/windows/client/requests/FillFormRequest.d.ts +0 -27
  621. package/dist/api/resources/windows/client/requests/FillFormRequest.js +0 -5
  622. package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +0 -23
  623. package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.js +0 -5
  624. package/dist/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -18
  625. package/dist/api/resources/windows/client/requests/ScrapeContentRequest.js +0 -5
  626. package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -27
  627. package/dist/api/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -5
  628. package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -25
  629. package/dist/api/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -5
  630. package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -25
  631. package/dist/api/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -5
  632. package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -25
  633. package/dist/api/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -5
  634. package/dist/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -21
  635. package/dist/api/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -5
  636. package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -29
  637. package/dist/api/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -5
  638. package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -23
  639. package/dist/api/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -5
  640. package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -35
  641. package/dist/api/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -5
  642. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -18
  643. package/dist/api/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -5
  644. package/dist/api/resources/windows/client/requests/index.d.ts +0 -27
  645. package/dist/api/resources/windows/client/requests/index.js +0 -2
  646. package/dist/api/resources/windows/index.d.ts +0 -2
  647. package/dist/api/resources/windows/index.js +0 -18
  648. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -13
  649. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -12
  650. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -13
  651. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -12
  652. package/dist/api/resources/windows/types/index.d.ts +0 -2
  653. package/dist/api/resources/windows/types/index.js +0 -18
  654. package/dist/api/types/AiPromptResponse.d.ts +0 -10
  655. package/dist/api/types/AiPromptResponse.js +0 -5
  656. package/dist/api/types/AiResponseEnvelope.d.ts +0 -6
  657. package/dist/api/types/AiResponseEnvelope.js +0 -5
  658. package/dist/api/types/AirtopProxyConfiguration.d.ts +0 -9
  659. package/dist/api/types/AirtopProxyConfiguration.js +0 -5
  660. package/dist/api/types/AsyncConfig.d.ts +0 -7
  661. package/dist/api/types/AsyncConfig.js +0 -5
  662. package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
  663. package/dist/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
  664. package/dist/api/types/AutomationOutput.d.ts +0 -10
  665. package/dist/api/types/AutomationOutput.js +0 -5
  666. package/dist/api/types/BrowserWaitNavigationConfig.d.ts +0 -10
  667. package/dist/api/types/BrowserWaitNavigationConfig.js +0 -5
  668. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -13
  669. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.js +0 -12
  670. package/dist/api/types/ClickConfig.d.ts +0 -14
  671. package/dist/api/types/ClickConfig.js +0 -5
  672. package/dist/api/types/ClickConfigClickType.d.ts +0 -12
  673. package/dist/api/types/ClickConfigClickType.js +0 -11
  674. package/dist/api/types/ClientProvidedResponseMetadata.d.ts +0 -6
  675. package/dist/api/types/ClientProvidedResponseMetadata.js +0 -5
  676. package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
  677. package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
  678. package/dist/api/types/CreateFileV1.d.ts +0 -24
  679. package/dist/api/types/CreateFileV1.js +0 -5
  680. package/dist/api/types/CreateFileV1FileType.d.ts +0 -13
  681. package/dist/api/types/CreateFileV1FileType.js +0 -12
  682. package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
  683. package/dist/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
  684. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -10
  685. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -5
  686. package/dist/api/types/EnvelopeDefaultMeta.d.ts +0 -6
  687. package/dist/api/types/EnvelopeDefaultMeta.js +0 -5
  688. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -10
  689. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -5
  690. package/dist/api/types/ErrorBody.d.ts +0 -9
  691. package/dist/api/types/ErrorBody.js +0 -5
  692. package/dist/api/types/ErrorDetail.d.ts +0 -10
  693. package/dist/api/types/ErrorDetail.js +0 -5
  694. package/dist/api/types/ErrorMessage.d.ts +0 -11
  695. package/dist/api/types/ErrorMessage.js +0 -5
  696. package/dist/api/types/ErrorModel.d.ts +0 -18
  697. package/dist/api/types/ErrorModel.js +0 -5
  698. package/dist/api/types/ExternalFile.d.ts +0 -33
  699. package/dist/api/types/ExternalFile.js +0 -5
  700. package/dist/api/types/ExternalSessionAiResponseMetadata.d.ts +0 -13
  701. package/dist/api/types/ExternalSessionAiResponseMetadata.js +0 -5
  702. package/dist/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -12
  703. package/dist/api/types/ExternalSessionAiResponseMetadataStatus.js +0 -11
  704. package/dist/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -9
  705. package/dist/api/types/ExternalSessionAiResponseMetadataUsage.js +0 -5
  706. package/dist/api/types/ExternalSessionConfig.d.ts +0 -11
  707. package/dist/api/types/ExternalSessionConfig.js +0 -5
  708. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +0 -26
  709. package/dist/api/types/ExternalSessionWithConnectionInfo.js +0 -5
  710. package/dist/api/types/FilesResponse.d.ts +0 -10
  711. package/dist/api/types/FilesResponse.js +0 -5
  712. package/dist/api/types/FilesWithPagination.d.ts +0 -10
  713. package/dist/api/types/FilesWithPagination.js +0 -5
  714. package/dist/api/types/GetFileV1.d.ts +0 -24
  715. package/dist/api/types/GetFileV1.js +0 -5
  716. package/dist/api/types/GetFileV1FileType.d.ts +0 -13
  717. package/dist/api/types/GetFileV1FileType.js +0 -12
  718. package/dist/api/types/IntervalMonitorConfig.d.ts +0 -9
  719. package/dist/api/types/IntervalMonitorConfig.js +0 -5
  720. package/dist/api/types/Issue.d.ts +0 -13
  721. package/dist/api/types/Issue.js +0 -5
  722. package/dist/api/types/ListAutomationsOutput.d.ts +0 -7
  723. package/dist/api/types/ListAutomationsOutput.js +0 -5
  724. package/dist/api/types/MicroInteractionConfig.d.ts +0 -10
  725. package/dist/api/types/MicroInteractionConfig.js +0 -5
  726. package/dist/api/types/MicroInteractionConfigWithExperimental.d.ts +0 -12
  727. package/dist/api/types/MicroInteractionConfigWithExperimental.js +0 -5
  728. package/dist/api/types/MicroInteractionExperimentalConfig.d.ts +0 -7
  729. package/dist/api/types/MicroInteractionExperimentalConfig.js +0 -5
  730. package/dist/api/types/MonitorConfig.d.ts +0 -10
  731. package/dist/api/types/MonitorConfig.js +0 -5
  732. package/dist/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -12
  733. package/dist/api/types/MonitorConfigIncludeVisualAnalysis.js +0 -11
  734. package/dist/api/types/OperationOutcome.d.ts +0 -7
  735. package/dist/api/types/OperationOutcome.js +0 -5
  736. package/dist/api/types/OperationOutcomeResponse.d.ts +0 -10
  737. package/dist/api/types/OperationOutcomeResponse.js +0 -5
  738. package/dist/api/types/PageQueryConfig.d.ts +0 -12
  739. package/dist/api/types/PageQueryConfig.js +0 -5
  740. package/dist/api/types/PageQueryExperimentalConfig.d.ts +0 -7
  741. package/dist/api/types/PageQueryExperimentalConfig.js +0 -5
  742. package/dist/api/types/PaginatedExtractionConfig.d.ts +0 -16
  743. package/dist/api/types/PaginatedExtractionConfig.js +0 -5
  744. package/dist/api/types/PaginatedExtractionExperimentalConfig.d.ts +0 -7
  745. package/dist/api/types/PaginatedExtractionExperimentalConfig.js +0 -5
  746. package/dist/api/types/Pagination.d.ts +0 -21
  747. package/dist/api/types/Pagination.js +0 -5
  748. package/dist/api/types/Proxy.d.ts +0 -14
  749. package/dist/api/types/Proxy.js +0 -5
  750. package/dist/api/types/ProxyConfigurationKind.d.ts +0 -9
  751. package/dist/api/types/ProxyConfigurationKind.js +0 -5
  752. package/dist/api/types/ProxyCredentials.d.ts +0 -11
  753. package/dist/api/types/ProxyCredentials.js +0 -5
  754. package/dist/api/types/RequestStatusResponse.d.ts +0 -8
  755. package/dist/api/types/RequestStatusResponse.js +0 -5
  756. package/dist/api/types/ScrapeConfig.d.ts +0 -7
  757. package/dist/api/types/ScrapeConfig.js +0 -5
  758. package/dist/api/types/ScrapeResponse.d.ts +0 -10
  759. package/dist/api/types/ScrapeResponse.js +0 -5
  760. package/dist/api/types/ScrapeResponseContent.d.ts +0 -9
  761. package/dist/api/types/ScrapeResponseContent.js +0 -5
  762. package/dist/api/types/ScrapeResponseEnvelope.d.ts +0 -8
  763. package/dist/api/types/ScrapeResponseEnvelope.js +0 -5
  764. package/dist/api/types/ScrapeResponseOutput.d.ts +0 -12
  765. package/dist/api/types/ScrapeResponseOutput.js +0 -5
  766. package/dist/api/types/ScreenshotConfig.d.ts +0 -13
  767. package/dist/api/types/ScreenshotConfig.js +0 -5
  768. package/dist/api/types/ScreenshotMetadata.d.ts +0 -7
  769. package/dist/api/types/ScreenshotMetadata.js +0 -5
  770. package/dist/api/types/ScreenshotRequestConfig.d.ts +0 -8
  771. package/dist/api/types/ScreenshotRequestConfig.js +0 -5
  772. package/dist/api/types/ScrollByConfig.d.ts +0 -9
  773. package/dist/api/types/ScrollByConfig.js +0 -5
  774. package/dist/api/types/ScrollToEdgeConfig.d.ts +0 -9
  775. package/dist/api/types/ScrollToEdgeConfig.js +0 -5
  776. package/dist/api/types/SessionConfigV1.d.ts +0 -18
  777. package/dist/api/types/SessionConfigV1.js +0 -5
  778. package/dist/api/types/SessionConfigV1Proxy.d.ts +0 -17
  779. package/dist/api/types/SessionConfigV1Proxy.js +0 -5
  780. package/dist/api/types/SessionEventMessage.d.ts +0 -17
  781. package/dist/api/types/SessionEventMessage.js +0 -5
  782. package/dist/api/types/SessionPageQueryHandlerRequestBody.d.ts +0 -21
  783. package/dist/api/types/SessionPageQueryHandlerRequestBody.js +0 -5
  784. package/dist/api/types/SessionResponse.d.ts +0 -10
  785. package/dist/api/types/SessionResponse.js +0 -5
  786. package/dist/api/types/SessionsResponse.d.ts +0 -10
  787. package/dist/api/types/SessionsResponse.js +0 -5
  788. package/dist/api/types/SessionsWithPagination.d.ts +0 -10
  789. package/dist/api/types/SessionsWithPagination.js +0 -5
  790. package/dist/api/types/StatusMessage.d.ts +0 -16
  791. package/dist/api/types/StatusMessage.js +0 -5
  792. package/dist/api/types/StatusMessageStatus.d.ts +0 -15
  793. package/dist/api/types/StatusMessageStatus.js +0 -14
  794. package/dist/api/types/SummaryConfig.d.ts +0 -9
  795. package/dist/api/types/SummaryConfig.js +0 -5
  796. package/dist/api/types/SummaryExperimentalConfig.d.ts +0 -7
  797. package/dist/api/types/SummaryExperimentalConfig.js +0 -5
  798. package/dist/api/types/VisualAnalysisConfig.d.ts +0 -18
  799. package/dist/api/types/VisualAnalysisConfig.js +0 -5
  800. package/dist/api/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -12
  801. package/dist/api/types/VisualAnalysisConfigPartitionDirection.js +0 -11
  802. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -12
  803. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -11
  804. package/dist/api/types/VisualAnalysisConfigScope.d.ts +0 -13
  805. package/dist/api/types/VisualAnalysisConfigScope.js +0 -12
  806. package/dist/api/types/Window.d.ts +0 -11
  807. package/dist/api/types/Window.js +0 -5
  808. package/dist/api/types/WindowEventMessage.d.ts +0 -19
  809. package/dist/api/types/WindowEventMessage.js +0 -5
  810. package/dist/api/types/WindowId.d.ts +0 -9
  811. package/dist/api/types/WindowId.js +0 -5
  812. package/dist/api/types/WindowIdResponse.d.ts +0 -10
  813. package/dist/api/types/WindowIdResponse.js +0 -5
  814. package/dist/api/types/WindowResponse.d.ts +0 -10
  815. package/dist/api/types/WindowResponse.js +0 -5
  816. package/dist/api/types/index.d.ts +0 -81
  817. package/dist/api/types/index.js +0 -97
  818. package/dist/core/auth/BasicAuth.d.ts +0 -8
  819. package/dist/core/auth/BasicAuth.js +0 -26
  820. package/dist/core/auth/BearerToken.d.ts +0 -5
  821. package/dist/core/auth/BearerToken.js +0 -15
  822. package/dist/core/auth/index.d.ts +0 -2
  823. package/dist/core/auth/index.js +0 -7
  824. package/dist/core/fetcher/APIResponse.d.ts +0 -10
  825. package/dist/core/fetcher/APIResponse.js +0 -2
  826. package/dist/core/fetcher/Fetcher.d.ts +0 -39
  827. package/dist/core/fetcher/Fetcher.js +0 -100
  828. package/dist/core/fetcher/Supplier.d.ts +0 -4
  829. package/dist/core/fetcher/Supplier.js +0 -22
  830. package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
  831. package/dist/core/fetcher/createRequestUrl.js +0 -12
  832. package/dist/core/fetcher/getFetchFn.d.ts +0 -4
  833. package/dist/core/fetcher/getFetchFn.js +0 -68
  834. package/dist/core/fetcher/getHeader.d.ts +0 -1
  835. package/dist/core/fetcher/getHeader.js +0 -11
  836. package/dist/core/fetcher/getRequestBody.d.ts +0 -7
  837. package/dist/core/fetcher/getRequestBody.js +0 -23
  838. package/dist/core/fetcher/getResponseBody.d.ts +0 -1
  839. package/dist/core/fetcher/getResponseBody.js +0 -54
  840. package/dist/core/fetcher/index.d.ts +0 -5
  841. package/dist/core/fetcher/index.js +0 -9
  842. package/dist/core/fetcher/makeRequest.d.ts +0 -1
  843. package/dist/core/fetcher/makeRequest.js +0 -42
  844. package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
  845. package/dist/core/fetcher/requestWithRetries.js +0 -40
  846. package/dist/core/fetcher/signals.d.ts +0 -11
  847. package/dist/core/fetcher/signals.js +0 -36
  848. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  849. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  850. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  851. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  852. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  853. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  854. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  855. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  856. package/dist/core/index.d.ts +0 -5
  857. package/dist/core/index.js +0 -44
  858. package/dist/core/json.d.ts +0 -15
  859. package/dist/core/json.js +0 -24
  860. package/dist/core/runtime/index.d.ts +0 -1
  861. package/dist/core/runtime/index.js +0 -5
  862. package/dist/core/runtime/runtime.d.ts +0 -9
  863. package/dist/core/runtime/runtime.js +0 -103
  864. package/dist/core/schemas/Schema.d.ts +0 -87
  865. package/dist/core/schemas/Schema.js +0 -24
  866. package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
  867. package/dist/core/schemas/builders/bigint/bigint.js +0 -53
  868. package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
  869. package/dist/core/schemas/builders/bigint/index.js +0 -5
  870. package/dist/core/schemas/builders/date/date.d.ts +0 -2
  871. package/dist/core/schemas/builders/date/date.js +0 -62
  872. package/dist/core/schemas/builders/date/index.d.ts +0 -1
  873. package/dist/core/schemas/builders/date/index.js +0 -5
  874. package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
  875. package/dist/core/schemas/builders/enum/enum.js +0 -38
  876. package/dist/core/schemas/builders/enum/index.d.ts +0 -1
  877. package/dist/core/schemas/builders/enum/index.js +0 -5
  878. package/dist/core/schemas/builders/index.d.ts +0 -14
  879. package/dist/core/schemas/builders/index.js +0 -30
  880. package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
  881. package/dist/core/schemas/builders/lazy/index.js +0 -7
  882. package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
  883. package/dist/core/schemas/builders/lazy/lazy.js +0 -24
  884. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
  885. package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
  886. package/dist/core/schemas/builders/list/index.d.ts +0 -1
  887. package/dist/core/schemas/builders/list/index.js +0 -5
  888. package/dist/core/schemas/builders/list/list.d.ts +0 -2
  889. package/dist/core/schemas/builders/list/list.js +0 -54
  890. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
  891. package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
  892. package/dist/core/schemas/builders/literals/index.d.ts +0 -2
  893. package/dist/core/schemas/builders/literals/index.js +0 -7
  894. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
  895. package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
  896. package/dist/core/schemas/builders/object/index.d.ts +0 -6
  897. package/dist/core/schemas/builders/object/index.js +0 -11
  898. package/dist/core/schemas/builders/object/object.d.ts +0 -3
  899. package/dist/core/schemas/builders/object/object.js +0 -261
  900. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
  901. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
  902. package/dist/core/schemas/builders/object/property.d.ts +0 -8
  903. package/dist/core/schemas/builders/object/property.js +0 -15
  904. package/dist/core/schemas/builders/object/types.d.ts +0 -31
  905. package/dist/core/schemas/builders/object/types.js +0 -2
  906. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
  907. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
  908. package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
  909. package/dist/core/schemas/builders/object-like/index.js +0 -6
  910. package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
  911. package/dist/core/schemas/builders/object-like/types.js +0 -2
  912. package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
  913. package/dist/core/schemas/builders/primitives/any.js +0 -6
  914. package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
  915. package/dist/core/schemas/builders/primitives/boolean.js +0 -25
  916. package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
  917. package/dist/core/schemas/builders/primitives/index.js +0 -13
  918. package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
  919. package/dist/core/schemas/builders/primitives/number.js +0 -25
  920. package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
  921. package/dist/core/schemas/builders/primitives/string.js +0 -25
  922. package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
  923. package/dist/core/schemas/builders/primitives/unknown.js +0 -6
  924. package/dist/core/schemas/builders/record/index.d.ts +0 -2
  925. package/dist/core/schemas/builders/record/index.js +0 -5
  926. package/dist/core/schemas/builders/record/record.d.ts +0 -3
  927. package/dist/core/schemas/builders/record/record.js +0 -93
  928. package/dist/core/schemas/builders/record/types.d.ts +0 -4
  929. package/dist/core/schemas/builders/record/types.js +0 -2
  930. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
  931. package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
  932. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
  933. package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
  934. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
  935. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
  936. package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
  937. package/dist/core/schemas/builders/schema-utils/index.js +0 -11
  938. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
  939. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
  940. package/dist/core/schemas/builders/set/index.d.ts +0 -1
  941. package/dist/core/schemas/builders/set/index.js +0 -5
  942. package/dist/core/schemas/builders/set/set.d.ts +0 -2
  943. package/dist/core/schemas/builders/set/set.js +0 -43
  944. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
  945. package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
  946. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
  947. package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
  948. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
  949. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
  950. package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
  951. package/dist/core/schemas/builders/union/discriminant.js +0 -9
  952. package/dist/core/schemas/builders/union/index.d.ts +0 -4
  953. package/dist/core/schemas/builders/union/index.js +0 -7
  954. package/dist/core/schemas/builders/union/types.d.ts +0 -13
  955. package/dist/core/schemas/builders/union/types.js +0 -2
  956. package/dist/core/schemas/builders/union/union.d.ts +0 -4
  957. package/dist/core/schemas/builders/union/union.js +0 -129
  958. package/dist/core/schemas/index.d.ts +0 -2
  959. package/dist/core/schemas/index.js +0 -17
  960. package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
  961. package/dist/core/schemas/utils/MaybePromise.js +0 -2
  962. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
  963. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
  964. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
  965. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
  966. package/dist/core/schemas/utils/entries.d.ts +0 -1
  967. package/dist/core/schemas/utils/entries.js +0 -6
  968. package/dist/core/schemas/utils/filterObject.d.ts +0 -1
  969. package/dist/core/schemas/utils/filterObject.js +0 -13
  970. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
  971. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
  972. package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
  973. package/dist/core/schemas/utils/isPlainObject.js +0 -17
  974. package/dist/core/schemas/utils/keys.d.ts +0 -1
  975. package/dist/core/schemas/utils/keys.js +0 -6
  976. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
  977. package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
  978. package/dist/core/schemas/utils/partition.d.ts +0 -1
  979. package/dist/core/schemas/utils/partition.js +0 -15
  980. package/dist/core/streaming-fetcher/Stream.d.ts +0 -47
  981. package/dist/core/streaming-fetcher/Stream.js +0 -169
  982. package/dist/core/streaming-fetcher/index.d.ts +0 -1
  983. package/dist/core/streaming-fetcher/index.js +0 -5
  984. package/dist/environments.d.ts +0 -7
  985. package/dist/environments.js +0 -9
  986. package/dist/errors/AirtopError.d.ts +0 -12
  987. package/dist/errors/AirtopError.js +0 -33
  988. package/dist/errors/AirtopTimeoutError.d.ts +0 -6
  989. package/dist/errors/AirtopTimeoutError.js +0 -13
  990. package/dist/errors/index.d.ts +0 -2
  991. package/dist/errors/index.js +0 -7
  992. package/dist/live-view/types.d.ts +0 -24
  993. package/dist/live-view/types.js +0 -16
  994. package/dist/serialization/index.d.ts +0 -2
  995. package/dist/serialization/index.js +0 -18
  996. package/dist/serialization/resources/automations/client/index.d.ts +0 -1
  997. package/dist/serialization/resources/automations/client/index.js +0 -17
  998. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
  999. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -45
  1000. package/dist/serialization/resources/automations/client/requests/index.d.ts +0 -1
  1001. package/dist/serialization/resources/automations/client/requests/index.js +0 -5
  1002. package/dist/serialization/resources/automations/index.d.ts +0 -1
  1003. package/dist/serialization/resources/automations/index.js +0 -17
  1004. package/dist/serialization/resources/files/client/index.d.ts +0 -1
  1005. package/dist/serialization/resources/files/client/index.js +0 -17
  1006. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -17
  1007. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.js +0 -48
  1008. package/dist/serialization/resources/files/client/requests/index.d.ts +0 -1
  1009. package/dist/serialization/resources/files/client/requests/index.js +0 -5
  1010. package/dist/serialization/resources/files/index.d.ts +0 -2
  1011. package/dist/serialization/resources/files/index.js +0 -18
  1012. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -10
  1013. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +0 -41
  1014. package/dist/serialization/resources/files/types/index.d.ts +0 -1
  1015. package/dist/serialization/resources/files/types/index.js +0 -17
  1016. package/dist/serialization/resources/index.d.ts +0 -11
  1017. package/dist/serialization/resources/index.js +0 -50
  1018. package/dist/serialization/resources/sessions/client/index.d.ts +0 -1
  1019. package/dist/serialization/resources/sessions/client/index.js +0 -17
  1020. package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -13
  1021. package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -44
  1022. package/dist/serialization/resources/sessions/client/requests/index.d.ts +0 -1
  1023. package/dist/serialization/resources/sessions/client/requests/index.js +0 -5
  1024. package/dist/serialization/resources/sessions/index.d.ts +0 -2
  1025. package/dist/serialization/resources/sessions/index.js +0 -18
  1026. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -26
  1027. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -55
  1028. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
  1029. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -46
  1030. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -15
  1031. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -46
  1032. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
  1033. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -46
  1034. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -15
  1035. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -46
  1036. package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -10
  1037. package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.js +0 -41
  1038. package/dist/serialization/resources/sessions/types/index.d.ts +0 -6
  1039. package/dist/serialization/resources/sessions/types/index.js +0 -22
  1040. package/dist/serialization/resources/windows/client/index.d.ts +0 -1
  1041. package/dist/serialization/resources/windows/client/index.js +0 -17
  1042. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  1043. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  1044. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
  1045. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -49
  1046. package/dist/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -18
  1047. package/dist/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -49
  1048. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
  1049. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -49
  1050. package/dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -18
  1051. package/dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.js +0 -49
  1052. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  1053. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  1054. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  1055. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  1056. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  1057. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  1058. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  1059. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  1060. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  1061. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  1062. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  1063. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  1064. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  1065. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  1066. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  1067. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  1068. package/dist/serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -18
  1069. package/dist/serialization/resources/windows/client/requests/CreateFormFillerRequest.js +0 -49
  1070. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -16
  1071. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -47
  1072. package/dist/serialization/resources/windows/client/requests/FillFormRequest.d.ts +0 -18
  1073. package/dist/serialization/resources/windows/client/requests/FillFormRequest.js +0 -49
  1074. package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -14
  1075. package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.js +0 -45
  1076. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -18
  1077. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -49
  1078. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -17
  1079. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -48
  1080. package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -17
  1081. package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -48
  1082. package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -17
  1083. package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -48
  1084. package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -16
  1085. package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -47
  1086. package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -22
  1087. package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -53
  1088. package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -17
  1089. package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -48
  1090. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -22
  1091. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -53
  1092. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -15
  1093. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -46
  1094. package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -26
  1095. package/dist/serialization/resources/windows/client/requests/index.js +0 -55
  1096. package/dist/serialization/resources/windows/index.d.ts +0 -2
  1097. package/dist/serialization/resources/windows/index.js +0 -18
  1098. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -10
  1099. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -41
  1100. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -10
  1101. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -41
  1102. package/dist/serialization/resources/windows/types/index.d.ts +0 -2
  1103. package/dist/serialization/resources/windows/types/index.js +0 -18
  1104. package/dist/serialization/types/AiPromptResponse.d.ts +0 -18
  1105. package/dist/serialization/types/AiPromptResponse.js +0 -49
  1106. package/dist/serialization/types/AiResponseEnvelope.d.ts +0 -12
  1107. package/dist/serialization/types/AiResponseEnvelope.js +0 -43
  1108. package/dist/serialization/types/AirtopProxyConfiguration.d.ts +0 -13
  1109. package/dist/serialization/types/AirtopProxyConfiguration.js +0 -44
  1110. package/dist/serialization/types/AsyncConfig.d.ts +0 -12
  1111. package/dist/serialization/types/AsyncConfig.js +0 -43
  1112. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
  1113. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -46
  1114. package/dist/serialization/types/AutomationOutput.d.ts +0 -16
  1115. package/dist/serialization/types/AutomationOutput.js +0 -47
  1116. package/dist/serialization/types/BrowserWaitNavigationConfig.d.ts +0 -14
  1117. package/dist/serialization/types/BrowserWaitNavigationConfig.js +0 -45
  1118. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -10
  1119. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +0 -41
  1120. package/dist/serialization/types/ClickConfig.d.ts +0 -19
  1121. package/dist/serialization/types/ClickConfig.js +0 -50
  1122. package/dist/serialization/types/ClickConfigClickType.d.ts +0 -10
  1123. package/dist/serialization/types/ClickConfigClickType.js +0 -41
  1124. package/dist/serialization/types/ClientProvidedResponseMetadata.d.ts +0 -12
  1125. package/dist/serialization/types/ClientProvidedResponseMetadata.js +0 -43
  1126. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
  1127. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -41
  1128. package/dist/serialization/types/CreateFileV1.d.ts +0 -21
  1129. package/dist/serialization/types/CreateFileV1.js +0 -52
  1130. package/dist/serialization/types/CreateFileV1FileType.d.ts +0 -10
  1131. package/dist/serialization/types/CreateFileV1FileType.js +0 -41
  1132. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
  1133. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -41
  1134. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -18
  1135. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -49
  1136. package/dist/serialization/types/EnvelopeDefaultMeta.d.ts +0 -12
  1137. package/dist/serialization/types/EnvelopeDefaultMeta.js +0 -43
  1138. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -18
  1139. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -49
  1140. package/dist/serialization/types/ErrorBody.d.ts +0 -13
  1141. package/dist/serialization/types/ErrorBody.js +0 -44
  1142. package/dist/serialization/types/ErrorDetail.d.ts +0 -14
  1143. package/dist/serialization/types/ErrorDetail.js +0 -45
  1144. package/dist/serialization/types/ErrorMessage.d.ts +0 -14
  1145. package/dist/serialization/types/ErrorMessage.js +0 -45
  1146. package/dist/serialization/types/ErrorModel.d.ts +0 -18
  1147. package/dist/serialization/types/ErrorModel.js +0 -49
  1148. package/dist/serialization/types/ExternalFile.d.ts +0 -25
  1149. package/dist/serialization/types/ExternalFile.js +0 -56
  1150. package/dist/serialization/types/ExternalSessionAiResponseMetadata.d.ts +0 -20
  1151. package/dist/serialization/types/ExternalSessionAiResponseMetadata.js +0 -51
  1152. package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -10
  1153. package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.js +0 -41
  1154. package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -13
  1155. package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.js +0 -44
  1156. package/dist/serialization/types/ExternalSessionConfig.d.ts +0 -14
  1157. package/dist/serialization/types/ExternalSessionConfig.js +0 -45
  1158. package/dist/serialization/types/ExternalSessionWithConnectionInfo.d.ts +0 -22
  1159. package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +0 -53
  1160. package/dist/serialization/types/FilesResponse.d.ts +0 -18
  1161. package/dist/serialization/types/FilesResponse.js +0 -49
  1162. package/dist/serialization/types/FilesWithPagination.d.ts +0 -15
  1163. package/dist/serialization/types/FilesWithPagination.js +0 -46
  1164. package/dist/serialization/types/GetFileV1.d.ts +0 -21
  1165. package/dist/serialization/types/GetFileV1.js +0 -52
  1166. package/dist/serialization/types/GetFileV1FileType.d.ts +0 -10
  1167. package/dist/serialization/types/GetFileV1FileType.js +0 -41
  1168. package/dist/serialization/types/IntervalMonitorConfig.d.ts +0 -13
  1169. package/dist/serialization/types/IntervalMonitorConfig.js +0 -44
  1170. package/dist/serialization/types/Issue.d.ts +0 -15
  1171. package/dist/serialization/types/Issue.js +0 -46
  1172. package/dist/serialization/types/ListAutomationsOutput.d.ts +0 -13
  1173. package/dist/serialization/types/ListAutomationsOutput.js +0 -44
  1174. package/dist/serialization/types/MicroInteractionConfig.d.ts +0 -15
  1175. package/dist/serialization/types/MicroInteractionConfig.js +0 -46
  1176. package/dist/serialization/types/MicroInteractionConfigWithExperimental.d.ts +0 -17
  1177. package/dist/serialization/types/MicroInteractionConfigWithExperimental.js +0 -48
  1178. package/dist/serialization/types/MicroInteractionExperimentalConfig.d.ts +0 -12
  1179. package/dist/serialization/types/MicroInteractionExperimentalConfig.js +0 -43
  1180. package/dist/serialization/types/MonitorConfig.d.ts +0 -15
  1181. package/dist/serialization/types/MonitorConfig.js +0 -46
  1182. package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -10
  1183. package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.js +0 -41
  1184. package/dist/serialization/types/OperationOutcome.d.ts +0 -12
  1185. package/dist/serialization/types/OperationOutcome.js +0 -43
  1186. package/dist/serialization/types/OperationOutcomeResponse.d.ts +0 -18
  1187. package/dist/serialization/types/OperationOutcomeResponse.js +0 -49
  1188. package/dist/serialization/types/PageQueryConfig.d.ts +0 -16
  1189. package/dist/serialization/types/PageQueryConfig.js +0 -47
  1190. package/dist/serialization/types/PageQueryExperimentalConfig.d.ts +0 -12
  1191. package/dist/serialization/types/PageQueryExperimentalConfig.js +0 -43
  1192. package/dist/serialization/types/PaginatedExtractionConfig.d.ts +0 -18
  1193. package/dist/serialization/types/PaginatedExtractionConfig.js +0 -49
  1194. package/dist/serialization/types/PaginatedExtractionExperimentalConfig.d.ts +0 -12
  1195. package/dist/serialization/types/PaginatedExtractionExperimentalConfig.js +0 -43
  1196. package/dist/serialization/types/Pagination.d.ts +0 -19
  1197. package/dist/serialization/types/Pagination.js +0 -50
  1198. package/dist/serialization/types/Proxy.d.ts +0 -12
  1199. package/dist/serialization/types/Proxy.js +0 -43
  1200. package/dist/serialization/types/ProxyConfigurationKind.d.ts +0 -14
  1201. package/dist/serialization/types/ProxyConfigurationKind.js +0 -45
  1202. package/dist/serialization/types/ProxyCredentials.d.ts +0 -14
  1203. package/dist/serialization/types/ProxyCredentials.js +0 -45
  1204. package/dist/serialization/types/RequestStatusResponse.d.ts +0 -13
  1205. package/dist/serialization/types/RequestStatusResponse.js +0 -44
  1206. package/dist/serialization/types/ScrapeConfig.d.ts +0 -12
  1207. package/dist/serialization/types/ScrapeConfig.js +0 -43
  1208. package/dist/serialization/types/ScrapeResponse.d.ts +0 -18
  1209. package/dist/serialization/types/ScrapeResponse.js +0 -49
  1210. package/dist/serialization/types/ScrapeResponseContent.d.ts +0 -13
  1211. package/dist/serialization/types/ScrapeResponseContent.js +0 -44
  1212. package/dist/serialization/types/ScrapeResponseEnvelope.d.ts +0 -13
  1213. package/dist/serialization/types/ScrapeResponseEnvelope.js +0 -44
  1214. package/dist/serialization/types/ScrapeResponseOutput.d.ts +0 -15
  1215. package/dist/serialization/types/ScrapeResponseOutput.js +0 -46
  1216. package/dist/serialization/types/ScreenshotConfig.d.ts +0 -15
  1217. package/dist/serialization/types/ScreenshotConfig.js +0 -46
  1218. package/dist/serialization/types/ScreenshotMetadata.d.ts +0 -12
  1219. package/dist/serialization/types/ScreenshotMetadata.js +0 -43
  1220. package/dist/serialization/types/ScreenshotRequestConfig.d.ts +0 -13
  1221. package/dist/serialization/types/ScreenshotRequestConfig.js +0 -44
  1222. package/dist/serialization/types/ScrollByConfig.d.ts +0 -13
  1223. package/dist/serialization/types/ScrollByConfig.js +0 -44
  1224. package/dist/serialization/types/ScrollToEdgeConfig.d.ts +0 -13
  1225. package/dist/serialization/types/ScrollToEdgeConfig.js +0 -44
  1226. package/dist/serialization/types/SessionConfigV1.d.ts +0 -18
  1227. package/dist/serialization/types/SessionConfigV1.js +0 -49
  1228. package/dist/serialization/types/SessionConfigV1Proxy.d.ts +0 -12
  1229. package/dist/serialization/types/SessionConfigV1Proxy.js +0 -47
  1230. package/dist/serialization/types/SessionEventMessage.d.ts +0 -18
  1231. package/dist/serialization/types/SessionEventMessage.js +0 -49
  1232. package/dist/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +0 -18
  1233. package/dist/serialization/types/SessionPageQueryHandlerRequestBody.js +0 -49
  1234. package/dist/serialization/types/SessionResponse.d.ts +0 -18
  1235. package/dist/serialization/types/SessionResponse.js +0 -49
  1236. package/dist/serialization/types/SessionsResponse.d.ts +0 -18
  1237. package/dist/serialization/types/SessionsResponse.js +0 -49
  1238. package/dist/serialization/types/SessionsWithPagination.d.ts +0 -15
  1239. package/dist/serialization/types/SessionsWithPagination.js +0 -46
  1240. package/dist/serialization/types/StatusMessage.d.ts +0 -17
  1241. package/dist/serialization/types/StatusMessage.js +0 -48
  1242. package/dist/serialization/types/StatusMessageStatus.d.ts +0 -10
  1243. package/dist/serialization/types/StatusMessageStatus.js +0 -41
  1244. package/dist/serialization/types/SummaryConfig.d.ts +0 -14
  1245. package/dist/serialization/types/SummaryConfig.js +0 -45
  1246. package/dist/serialization/types/SummaryExperimentalConfig.d.ts +0 -12
  1247. package/dist/serialization/types/SummaryExperimentalConfig.js +0 -43
  1248. package/dist/serialization/types/VisualAnalysisConfig.d.ts +0 -20
  1249. package/dist/serialization/types/VisualAnalysisConfig.js +0 -51
  1250. package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -10
  1251. package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.js +0 -41
  1252. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -10
  1253. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -41
  1254. package/dist/serialization/types/VisualAnalysisConfigScope.d.ts +0 -10
  1255. package/dist/serialization/types/VisualAnalysisConfigScope.js +0 -41
  1256. package/dist/serialization/types/Window.d.ts +0 -14
  1257. package/dist/serialization/types/Window.js +0 -45
  1258. package/dist/serialization/types/WindowEventMessage.d.ts +0 -19
  1259. package/dist/serialization/types/WindowEventMessage.js +0 -50
  1260. package/dist/serialization/types/WindowId.d.ts +0 -13
  1261. package/dist/serialization/types/WindowId.js +0 -44
  1262. package/dist/serialization/types/WindowIdResponse.d.ts +0 -18
  1263. package/dist/serialization/types/WindowIdResponse.js +0 -49
  1264. package/dist/serialization/types/WindowResponse.d.ts +0 -18
  1265. package/dist/serialization/types/WindowResponse.js +0 -49
  1266. package/dist/serialization/types/index.d.ts +0 -81
  1267. package/dist/serialization/types/index.js +0 -97
  1268. package/dist/utils/batch-operate/SessionQueue.d.ts +0 -45
  1269. package/dist/utils/batch-operate/SessionQueue.js +0 -222
  1270. package/dist/utils/batch-operate/WindowQueue.d.ts +0 -24
  1271. package/dist/utils/batch-operate/WindowQueue.js +0 -213
  1272. package/dist/utils/batch-operate/batch-util.d.ts +0 -3
  1273. package/dist/utils/batch-operate/batch-util.js +0 -49
  1274. package/dist/utils/batch-operate/helpers.d.ts +0 -2
  1275. package/dist/utils/batch-operate/helpers.js +0 -19
  1276. package/dist/utils/batch-operate/types.d.ts +0 -29
  1277. package/dist/utils/batch-operate/types.js +0 -2
  1278. package/dist/utils/index.d.ts +0 -3
  1279. package/dist/utils/index.js +0 -19
  1280. package/dist/utils/process-screenshots.d.ts +0 -9
  1281. package/dist/utils/process-screenshots.js +0 -58
  1282. package/dist/version.d.ts +0 -1
  1283. package/dist/version.js +0 -4
  1284. package/dist/wrapper/AirtopClient.d.ts +0 -32
  1285. package/dist/wrapper/AirtopClient.js +0 -109
  1286. package/dist/wrapper/AirtopFiles.d.ts +0 -38
  1287. package/dist/wrapper/AirtopFiles.js +0 -151
  1288. package/dist/wrapper/AirtopRequests.d.ts +0 -18
  1289. package/dist/wrapper/AirtopRequests.js +0 -48
  1290. package/dist/wrapper/AirtopSessions.d.ts +0 -24
  1291. package/dist/wrapper/AirtopSessions.js +0 -96
  1292. package/dist/wrapper/AirtopWindows.d.ts +0 -154
  1293. package/dist/wrapper/AirtopWindows.js +0 -293
  1294. package/environments.d.ts +0 -7
  1295. package/environments.js +0 -9
  1296. package/errors/AirtopError.d.ts +0 -12
  1297. package/errors/AirtopError.js +0 -33
  1298. package/errors/AirtopTimeoutError.d.ts +0 -6
  1299. package/errors/AirtopTimeoutError.js +0 -13
  1300. package/errors/index.d.ts +0 -2
  1301. package/errors/index.js +0 -7
  1302. package/index.d.ts +0 -7
  1303. package/index.js +0 -51
  1304. package/jest.config.mjs +0 -8
  1305. package/lefthook.yml +0 -23
  1306. package/live-view/types.d.ts +0 -24
  1307. package/live-view/types.js +0 -16
  1308. package/reference.md +0 -3284
  1309. package/scripts/rename-to-esm-files.js +0 -115
  1310. package/serialization/index.d.ts +0 -2
  1311. package/serialization/index.js +0 -18
  1312. package/serialization/resources/automations/client/index.d.ts +0 -1
  1313. package/serialization/resources/automations/client/index.js +0 -17
  1314. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
  1315. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -45
  1316. package/serialization/resources/automations/client/requests/index.d.ts +0 -1
  1317. package/serialization/resources/automations/client/requests/index.js +0 -5
  1318. package/serialization/resources/automations/index.d.ts +0 -1
  1319. package/serialization/resources/automations/index.js +0 -17
  1320. package/serialization/resources/files/client/index.d.ts +0 -1
  1321. package/serialization/resources/files/client/index.js +0 -17
  1322. package/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -17
  1323. package/serialization/resources/files/client/requests/CreateFileRestInputV1.js +0 -48
  1324. package/serialization/resources/files/client/requests/index.d.ts +0 -1
  1325. package/serialization/resources/files/client/requests/index.js +0 -5
  1326. package/serialization/resources/files/index.d.ts +0 -2
  1327. package/serialization/resources/files/index.js +0 -18
  1328. package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -10
  1329. package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +0 -41
  1330. package/serialization/resources/files/types/index.d.ts +0 -1
  1331. package/serialization/resources/files/types/index.js +0 -17
  1332. package/serialization/resources/index.d.ts +0 -11
  1333. package/serialization/resources/index.js +0 -50
  1334. package/serialization/resources/sessions/client/index.d.ts +0 -1
  1335. package/serialization/resources/sessions/client/index.js +0 -17
  1336. package/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -13
  1337. package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -44
  1338. package/serialization/resources/sessions/client/requests/index.d.ts +0 -1
  1339. package/serialization/resources/sessions/client/requests/index.js +0 -5
  1340. package/serialization/resources/sessions/index.d.ts +0 -2
  1341. package/serialization/resources/sessions/index.js +0 -18
  1342. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -26
  1343. package/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -55
  1344. package/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
  1345. package/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -46
  1346. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.d.ts +0 -15
  1347. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +0 -46
  1348. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
  1349. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -46
  1350. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.d.ts +0 -15
  1351. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +0 -46
  1352. package/serialization/resources/sessions/types/SessionsListRequestStatus.d.ts +0 -10
  1353. package/serialization/resources/sessions/types/SessionsListRequestStatus.js +0 -41
  1354. package/serialization/resources/sessions/types/index.d.ts +0 -6
  1355. package/serialization/resources/sessions/types/index.js +0 -22
  1356. package/serialization/resources/windows/client/index.d.ts +0 -1
  1357. package/serialization/resources/windows/client/index.js +0 -17
  1358. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  1359. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  1360. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
  1361. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -49
  1362. package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +0 -18
  1363. package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.js +0 -49
  1364. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
  1365. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -49
  1366. package/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts +0 -18
  1367. package/serialization/resources/windows/client/requests/AsyncFillFormRequest.js +0 -49
  1368. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  1369. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  1370. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  1371. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -50
  1372. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  1373. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  1374. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  1375. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  1376. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  1377. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  1378. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  1379. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -49
  1380. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  1381. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -50
  1382. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  1383. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  1384. package/serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts +0 -18
  1385. package/serialization/resources/windows/client/requests/CreateFormFillerRequest.js +0 -49
  1386. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.d.ts +0 -16
  1387. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +0 -47
  1388. package/serialization/resources/windows/client/requests/FillFormRequest.d.ts +0 -18
  1389. package/serialization/resources/windows/client/requests/FillFormRequest.js +0 -49
  1390. package/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +0 -14
  1391. package/serialization/resources/windows/client/requests/ScrapeContentRequest.js +0 -45
  1392. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.d.ts +0 -18
  1393. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +0 -49
  1394. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.d.ts +0 -17
  1395. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +0 -48
  1396. package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.d.ts +0 -17
  1397. package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +0 -48
  1398. package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.d.ts +0 -17
  1399. package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +0 -48
  1400. package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.d.ts +0 -16
  1401. package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +0 -47
  1402. package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.d.ts +0 -22
  1403. package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +0 -53
  1404. package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.d.ts +0 -17
  1405. package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +0 -48
  1406. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.d.ts +0 -22
  1407. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +0 -53
  1408. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.d.ts +0 -15
  1409. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +0 -46
  1410. package/serialization/resources/windows/client/requests/index.d.ts +0 -26
  1411. package/serialization/resources/windows/client/requests/index.js +0 -55
  1412. package/serialization/resources/windows/index.d.ts +0 -2
  1413. package/serialization/resources/windows/index.js +0 -18
  1414. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +0 -10
  1415. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +0 -41
  1416. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +0 -10
  1417. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +0 -41
  1418. package/serialization/resources/windows/types/index.d.ts +0 -2
  1419. package/serialization/resources/windows/types/index.js +0 -18
  1420. package/serialization/types/AiPromptResponse.d.ts +0 -18
  1421. package/serialization/types/AiPromptResponse.js +0 -49
  1422. package/serialization/types/AiResponseEnvelope.d.ts +0 -12
  1423. package/serialization/types/AiResponseEnvelope.js +0 -43
  1424. package/serialization/types/AirtopProxyConfiguration.d.ts +0 -13
  1425. package/serialization/types/AirtopProxyConfiguration.js +0 -44
  1426. package/serialization/types/AsyncConfig.d.ts +0 -12
  1427. package/serialization/types/AsyncConfig.js +0 -43
  1428. package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
  1429. package/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -46
  1430. package/serialization/types/AutomationOutput.d.ts +0 -16
  1431. package/serialization/types/AutomationOutput.js +0 -47
  1432. package/serialization/types/BrowserWaitNavigationConfig.d.ts +0 -14
  1433. package/serialization/types/BrowserWaitNavigationConfig.js +0 -45
  1434. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.d.ts +0 -10
  1435. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +0 -41
  1436. package/serialization/types/ClickConfig.d.ts +0 -19
  1437. package/serialization/types/ClickConfig.js +0 -50
  1438. package/serialization/types/ClickConfigClickType.d.ts +0 -10
  1439. package/serialization/types/ClickConfigClickType.js +0 -41
  1440. package/serialization/types/ClientProvidedResponseMetadata.d.ts +0 -12
  1441. package/serialization/types/ClientProvidedResponseMetadata.js +0 -43
  1442. package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
  1443. package/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -41
  1444. package/serialization/types/CreateFileV1.d.ts +0 -21
  1445. package/serialization/types/CreateFileV1.js +0 -52
  1446. package/serialization/types/CreateFileV1FileType.d.ts +0 -10
  1447. package/serialization/types/CreateFileV1FileType.js +0 -41
  1448. package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
  1449. package/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -41
  1450. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -18
  1451. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -49
  1452. package/serialization/types/EnvelopeDefaultMeta.d.ts +0 -12
  1453. package/serialization/types/EnvelopeDefaultMeta.js +0 -43
  1454. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -18
  1455. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -49
  1456. package/serialization/types/ErrorBody.d.ts +0 -13
  1457. package/serialization/types/ErrorBody.js +0 -44
  1458. package/serialization/types/ErrorDetail.d.ts +0 -14
  1459. package/serialization/types/ErrorDetail.js +0 -45
  1460. package/serialization/types/ErrorMessage.d.ts +0 -14
  1461. package/serialization/types/ErrorMessage.js +0 -45
  1462. package/serialization/types/ErrorModel.d.ts +0 -18
  1463. package/serialization/types/ErrorModel.js +0 -49
  1464. package/serialization/types/ExternalFile.d.ts +0 -25
  1465. package/serialization/types/ExternalFile.js +0 -56
  1466. package/serialization/types/ExternalSessionAiResponseMetadata.d.ts +0 -20
  1467. package/serialization/types/ExternalSessionAiResponseMetadata.js +0 -51
  1468. package/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +0 -10
  1469. package/serialization/types/ExternalSessionAiResponseMetadataStatus.js +0 -41
  1470. package/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +0 -13
  1471. package/serialization/types/ExternalSessionAiResponseMetadataUsage.js +0 -44
  1472. package/serialization/types/ExternalSessionConfig.d.ts +0 -14
  1473. package/serialization/types/ExternalSessionConfig.js +0 -45
  1474. package/serialization/types/ExternalSessionWithConnectionInfo.d.ts +0 -22
  1475. package/serialization/types/ExternalSessionWithConnectionInfo.js +0 -53
  1476. package/serialization/types/FilesResponse.d.ts +0 -18
  1477. package/serialization/types/FilesResponse.js +0 -49
  1478. package/serialization/types/FilesWithPagination.d.ts +0 -15
  1479. package/serialization/types/FilesWithPagination.js +0 -46
  1480. package/serialization/types/GetFileV1.d.ts +0 -21
  1481. package/serialization/types/GetFileV1.js +0 -52
  1482. package/serialization/types/GetFileV1FileType.d.ts +0 -10
  1483. package/serialization/types/GetFileV1FileType.js +0 -41
  1484. package/serialization/types/IntervalMonitorConfig.d.ts +0 -13
  1485. package/serialization/types/IntervalMonitorConfig.js +0 -44
  1486. package/serialization/types/Issue.d.ts +0 -15
  1487. package/serialization/types/Issue.js +0 -46
  1488. package/serialization/types/ListAutomationsOutput.d.ts +0 -13
  1489. package/serialization/types/ListAutomationsOutput.js +0 -44
  1490. package/serialization/types/MicroInteractionConfig.d.ts +0 -15
  1491. package/serialization/types/MicroInteractionConfig.js +0 -46
  1492. package/serialization/types/MicroInteractionConfigWithExperimental.d.ts +0 -17
  1493. package/serialization/types/MicroInteractionConfigWithExperimental.js +0 -48
  1494. package/serialization/types/MicroInteractionExperimentalConfig.d.ts +0 -12
  1495. package/serialization/types/MicroInteractionExperimentalConfig.js +0 -43
  1496. package/serialization/types/MonitorConfig.d.ts +0 -15
  1497. package/serialization/types/MonitorConfig.js +0 -46
  1498. package/serialization/types/MonitorConfigIncludeVisualAnalysis.d.ts +0 -10
  1499. package/serialization/types/MonitorConfigIncludeVisualAnalysis.js +0 -41
  1500. package/serialization/types/OperationOutcome.d.ts +0 -12
  1501. package/serialization/types/OperationOutcome.js +0 -43
  1502. package/serialization/types/OperationOutcomeResponse.d.ts +0 -18
  1503. package/serialization/types/OperationOutcomeResponse.js +0 -49
  1504. package/serialization/types/PageQueryConfig.d.ts +0 -16
  1505. package/serialization/types/PageQueryConfig.js +0 -47
  1506. package/serialization/types/PageQueryExperimentalConfig.d.ts +0 -12
  1507. package/serialization/types/PageQueryExperimentalConfig.js +0 -43
  1508. package/serialization/types/PaginatedExtractionConfig.d.ts +0 -18
  1509. package/serialization/types/PaginatedExtractionConfig.js +0 -49
  1510. package/serialization/types/PaginatedExtractionExperimentalConfig.d.ts +0 -12
  1511. package/serialization/types/PaginatedExtractionExperimentalConfig.js +0 -43
  1512. package/serialization/types/Pagination.d.ts +0 -19
  1513. package/serialization/types/Pagination.js +0 -50
  1514. package/serialization/types/Proxy.d.ts +0 -12
  1515. package/serialization/types/Proxy.js +0 -43
  1516. package/serialization/types/ProxyConfigurationKind.d.ts +0 -14
  1517. package/serialization/types/ProxyConfigurationKind.js +0 -45
  1518. package/serialization/types/ProxyCredentials.d.ts +0 -14
  1519. package/serialization/types/ProxyCredentials.js +0 -45
  1520. package/serialization/types/RequestStatusResponse.d.ts +0 -13
  1521. package/serialization/types/RequestStatusResponse.js +0 -44
  1522. package/serialization/types/ScrapeConfig.d.ts +0 -12
  1523. package/serialization/types/ScrapeConfig.js +0 -43
  1524. package/serialization/types/ScrapeResponse.d.ts +0 -18
  1525. package/serialization/types/ScrapeResponse.js +0 -49
  1526. package/serialization/types/ScrapeResponseContent.d.ts +0 -13
  1527. package/serialization/types/ScrapeResponseContent.js +0 -44
  1528. package/serialization/types/ScrapeResponseEnvelope.d.ts +0 -13
  1529. package/serialization/types/ScrapeResponseEnvelope.js +0 -44
  1530. package/serialization/types/ScrapeResponseOutput.d.ts +0 -15
  1531. package/serialization/types/ScrapeResponseOutput.js +0 -46
  1532. package/serialization/types/ScreenshotConfig.d.ts +0 -15
  1533. package/serialization/types/ScreenshotConfig.js +0 -46
  1534. package/serialization/types/ScreenshotMetadata.d.ts +0 -12
  1535. package/serialization/types/ScreenshotMetadata.js +0 -43
  1536. package/serialization/types/ScreenshotRequestConfig.d.ts +0 -13
  1537. package/serialization/types/ScreenshotRequestConfig.js +0 -44
  1538. package/serialization/types/ScrollByConfig.d.ts +0 -13
  1539. package/serialization/types/ScrollByConfig.js +0 -44
  1540. package/serialization/types/ScrollToEdgeConfig.d.ts +0 -13
  1541. package/serialization/types/ScrollToEdgeConfig.js +0 -44
  1542. package/serialization/types/SessionConfigV1.d.ts +0 -18
  1543. package/serialization/types/SessionConfigV1.js +0 -49
  1544. package/serialization/types/SessionConfigV1Proxy.d.ts +0 -12
  1545. package/serialization/types/SessionConfigV1Proxy.js +0 -47
  1546. package/serialization/types/SessionEventMessage.d.ts +0 -18
  1547. package/serialization/types/SessionEventMessage.js +0 -49
  1548. package/serialization/types/SessionPageQueryHandlerRequestBody.d.ts +0 -18
  1549. package/serialization/types/SessionPageQueryHandlerRequestBody.js +0 -49
  1550. package/serialization/types/SessionResponse.d.ts +0 -18
  1551. package/serialization/types/SessionResponse.js +0 -49
  1552. package/serialization/types/SessionsResponse.d.ts +0 -18
  1553. package/serialization/types/SessionsResponse.js +0 -49
  1554. package/serialization/types/SessionsWithPagination.d.ts +0 -15
  1555. package/serialization/types/SessionsWithPagination.js +0 -46
  1556. package/serialization/types/StatusMessage.d.ts +0 -17
  1557. package/serialization/types/StatusMessage.js +0 -48
  1558. package/serialization/types/StatusMessageStatus.d.ts +0 -10
  1559. package/serialization/types/StatusMessageStatus.js +0 -41
  1560. package/serialization/types/SummaryConfig.d.ts +0 -14
  1561. package/serialization/types/SummaryConfig.js +0 -45
  1562. package/serialization/types/SummaryExperimentalConfig.d.ts +0 -12
  1563. package/serialization/types/SummaryExperimentalConfig.js +0 -43
  1564. package/serialization/types/VisualAnalysisConfig.d.ts +0 -20
  1565. package/serialization/types/VisualAnalysisConfig.js +0 -51
  1566. package/serialization/types/VisualAnalysisConfigPartitionDirection.d.ts +0 -10
  1567. package/serialization/types/VisualAnalysisConfigPartitionDirection.js +0 -41
  1568. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +0 -10
  1569. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +0 -41
  1570. package/serialization/types/VisualAnalysisConfigScope.d.ts +0 -10
  1571. package/serialization/types/VisualAnalysisConfigScope.js +0 -41
  1572. package/serialization/types/Window.d.ts +0 -14
  1573. package/serialization/types/Window.js +0 -45
  1574. package/serialization/types/WindowEventMessage.d.ts +0 -19
  1575. package/serialization/types/WindowEventMessage.js +0 -50
  1576. package/serialization/types/WindowId.d.ts +0 -13
  1577. package/serialization/types/WindowId.js +0 -44
  1578. package/serialization/types/WindowIdResponse.d.ts +0 -18
  1579. package/serialization/types/WindowIdResponse.js +0 -49
  1580. package/serialization/types/WindowResponse.d.ts +0 -18
  1581. package/serialization/types/WindowResponse.js +0 -49
  1582. package/serialization/types/index.d.ts +0 -81
  1583. package/serialization/types/index.js +0 -97
  1584. package/utils/batch-operate/SessionQueue.d.ts +0 -45
  1585. package/utils/batch-operate/SessionQueue.js +0 -222
  1586. package/utils/batch-operate/WindowQueue.d.ts +0 -24
  1587. package/utils/batch-operate/WindowQueue.js +0 -213
  1588. package/utils/batch-operate/batch-util.d.ts +0 -3
  1589. package/utils/batch-operate/batch-util.js +0 -49
  1590. package/utils/batch-operate/helpers.d.ts +0 -2
  1591. package/utils/batch-operate/helpers.js +0 -19
  1592. package/utils/batch-operate/types.d.ts +0 -29
  1593. package/utils/batch-operate/types.js +0 -2
  1594. package/utils/index.d.ts +0 -3
  1595. package/utils/index.js +0 -19
  1596. package/utils/process-screenshots.d.ts +0 -9
  1597. package/utils/process-screenshots.js +0 -58
  1598. package/version.d.ts +0 -1
  1599. package/version.js +0 -4
  1600. package/wrapper/AirtopClient.d.ts +0 -32
  1601. package/wrapper/AirtopClient.js +0 -109
  1602. package/wrapper/AirtopFiles.d.ts +0 -38
  1603. package/wrapper/AirtopFiles.js +0 -151
  1604. package/wrapper/AirtopRequests.d.ts +0 -18
  1605. package/wrapper/AirtopRequests.js +0 -48
  1606. package/wrapper/AirtopSessions.d.ts +0 -24
  1607. package/wrapper/AirtopSessions.js +0 -96
  1608. package/wrapper/AirtopWindows.d.ts +0 -154
  1609. package/wrapper/AirtopWindows.js +0 -293
@@ -1,1763 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.Windows = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const serializers = __importStar(require("../../../../serialization/index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
- const errors = __importStar(require("../../../../errors/index"));
57
- class Windows {
58
- constructor(_options) {
59
- this._options = _options;
60
- }
61
- /**
62
- * Execute a click interaction in a specific browser window asynchronously
63
- *
64
- * @param {string} sessionId - The session id for the window.
65
- * @param {string} windowId - The Airtop window id of the browser window.
66
- * @param {Airtop.AsyncClickRequest} request
67
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @example
70
- * await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
71
- * elementDescription: "The login button"
72
- * })
73
- */
74
- asyncClick(sessionId, windowId, request, requestOptions) {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- var _a, _b, _c;
77
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
79
- method: "POST",
80
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
- contentType: "application/json",
82
- requestType: "json",
83
- body: serializers.AsyncClickRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
84
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
- });
88
- if (_response.ok) {
89
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
90
- unrecognizedObjectKeys: "passthrough",
91
- allowUnrecognizedUnionMembers: true,
92
- allowUnrecognizedEnumValues: true,
93
- skipValidation: true,
94
- breadcrumbsPrefix: ["response"],
95
- });
96
- }
97
- if (_response.error.reason === "status-code") {
98
- throw new errors.AirtopError({
99
- statusCode: _response.error.statusCode,
100
- body: _response.error.body,
101
- });
102
- }
103
- switch (_response.error.reason) {
104
- case "non-json":
105
- throw new errors.AirtopError({
106
- statusCode: _response.error.statusCode,
107
- body: _response.error.rawBody,
108
- });
109
- case "timeout":
110
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/click.");
111
- case "unknown":
112
- throw new errors.AirtopError({
113
- message: _response.error.errorMessage,
114
- });
115
- }
116
- });
117
- }
118
- /**
119
- * Create an automation of a browser window asynchronously
120
- *
121
- * @param {string} sessionId - The session id for the window.
122
- * @param {string} windowId - The Airtop window id of the browser window.
123
- * @param {Airtop.AsyncCreateAutomationRequest} request
124
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
125
- *
126
- * @example
127
- * await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
128
- */
129
- asyncCreateAutomation(sessionId_1, windowId_1) {
130
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
131
- var _a, _b, _c;
132
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
133
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-automation`),
134
- method: "POST",
135
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
136
- contentType: "application/json",
137
- requestType: "json",
138
- body: serializers.AsyncCreateAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
139
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
140
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
141
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
142
- });
143
- if (_response.ok) {
144
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
145
- unrecognizedObjectKeys: "passthrough",
146
- allowUnrecognizedUnionMembers: true,
147
- allowUnrecognizedEnumValues: true,
148
- skipValidation: true,
149
- breadcrumbsPrefix: ["response"],
150
- });
151
- }
152
- if (_response.error.reason === "status-code") {
153
- throw new errors.AirtopError({
154
- statusCode: _response.error.statusCode,
155
- body: _response.error.body,
156
- });
157
- }
158
- switch (_response.error.reason) {
159
- case "non-json":
160
- throw new errors.AirtopError({
161
- statusCode: _response.error.statusCode,
162
- body: _response.error.rawBody,
163
- });
164
- case "timeout":
165
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/create-automation.");
166
- case "unknown":
167
- throw new errors.AirtopError({
168
- message: _response.error.errorMessage,
169
- });
170
- }
171
- });
172
- }
173
- /**
174
- * Create a form filler automation asynchronously
175
- *
176
- * @param {string} sessionId - The session id for the window.
177
- * @param {string} windowId - The Airtop window id of the browser window.
178
- * @param {Airtop.AsyncCreateFormFillerRequest} request
179
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
180
- *
181
- * @example
182
- * await client.windows.asyncCreateFormFiller("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
183
- */
184
- asyncCreateFormFiller(sessionId_1, windowId_1) {
185
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
186
- var _a, _b, _c;
187
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
188
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-form-filler`),
189
- method: "POST",
190
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
- contentType: "application/json",
192
- requestType: "json",
193
- body: serializers.AsyncCreateFormFillerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
194
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
195
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
196
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
197
- });
198
- if (_response.ok) {
199
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
200
- unrecognizedObjectKeys: "passthrough",
201
- allowUnrecognizedUnionMembers: true,
202
- allowUnrecognizedEnumValues: true,
203
- skipValidation: true,
204
- breadcrumbsPrefix: ["response"],
205
- });
206
- }
207
- if (_response.error.reason === "status-code") {
208
- throw new errors.AirtopError({
209
- statusCode: _response.error.statusCode,
210
- body: _response.error.body,
211
- });
212
- }
213
- switch (_response.error.reason) {
214
- case "non-json":
215
- throw new errors.AirtopError({
216
- statusCode: _response.error.statusCode,
217
- body: _response.error.rawBody,
218
- });
219
- case "timeout":
220
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/create-form-filler.");
221
- case "unknown":
222
- throw new errors.AirtopError({
223
- message: _response.error.errorMessage,
224
- });
225
- }
226
- });
227
- }
228
- /**
229
- * Execute an automation of a browser window asynchronously
230
- *
231
- * @param {string} sessionId - The session id for the window.
232
- * @param {string} windowId - The Airtop window id of the browser window.
233
- * @param {Airtop.AsyncExecuteAutomationRequest} request
234
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
235
- *
236
- * @example
237
- * await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
238
- * automationId: "automationId"
239
- * })
240
- */
241
- asyncExecuteAutomation(sessionId, windowId, request, requestOptions) {
242
- return __awaiter(this, void 0, void 0, function* () {
243
- var _a, _b, _c;
244
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
245
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/execute-automation`),
246
- method: "POST",
247
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
- contentType: "application/json",
249
- requestType: "json",
250
- body: serializers.AsyncExecuteAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
251
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
252
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
253
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
254
- });
255
- if (_response.ok) {
256
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
257
- unrecognizedObjectKeys: "passthrough",
258
- allowUnrecognizedUnionMembers: true,
259
- allowUnrecognizedEnumValues: true,
260
- skipValidation: true,
261
- breadcrumbsPrefix: ["response"],
262
- });
263
- }
264
- if (_response.error.reason === "status-code") {
265
- throw new errors.AirtopError({
266
- statusCode: _response.error.statusCode,
267
- body: _response.error.body,
268
- });
269
- }
270
- switch (_response.error.reason) {
271
- case "non-json":
272
- throw new errors.AirtopError({
273
- statusCode: _response.error.statusCode,
274
- body: _response.error.rawBody,
275
- });
276
- case "timeout":
277
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/execute-automation.");
278
- case "unknown":
279
- throw new errors.AirtopError({
280
- message: _response.error.errorMessage,
281
- });
282
- }
283
- });
284
- }
285
- /**
286
- * Fill a form of a browser window asynchronously using a form-filler automation
287
- *
288
- * @param {string} sessionId - The session id for the window.
289
- * @param {string} windowId - The Airtop window id of the browser window.
290
- * @param {Airtop.AsyncFillFormRequest} request
291
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
292
- *
293
- * @example
294
- * await client.windows.asyncFillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
295
- * automationId: "automationId"
296
- * })
297
- */
298
- asyncFillForm(sessionId, windowId, request, requestOptions) {
299
- return __awaiter(this, void 0, void 0, function* () {
300
- var _a, _b, _c;
301
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
302
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/fill-form`),
303
- method: "POST",
304
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
- contentType: "application/json",
306
- requestType: "json",
307
- body: serializers.AsyncFillFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
308
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
309
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
310
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
311
- });
312
- if (_response.ok) {
313
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
314
- unrecognizedObjectKeys: "passthrough",
315
- allowUnrecognizedUnionMembers: true,
316
- allowUnrecognizedEnumValues: true,
317
- skipValidation: true,
318
- breadcrumbsPrefix: ["response"],
319
- });
320
- }
321
- if (_response.error.reason === "status-code") {
322
- throw new errors.AirtopError({
323
- statusCode: _response.error.statusCode,
324
- body: _response.error.body,
325
- });
326
- }
327
- switch (_response.error.reason) {
328
- case "non-json":
329
- throw new errors.AirtopError({
330
- statusCode: _response.error.statusCode,
331
- body: _response.error.rawBody,
332
- });
333
- case "timeout":
334
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/fill-form.");
335
- case "unknown":
336
- throw new errors.AirtopError({
337
- message: _response.error.errorMessage,
338
- });
339
- }
340
- });
341
- }
342
- /**
343
- * @param {string} sessionId - The session id for the window.
344
- * @param {string} windowId - The Airtop window id of the browser window.
345
- * @param {Airtop.AsyncHoverRequest} request
346
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
347
- *
348
- * @example
349
- * await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
350
- * elementDescription: "The search box input in the top right corner"
351
- * })
352
- */
353
- asyncHover(sessionId, windowId, request, requestOptions) {
354
- return __awaiter(this, void 0, void 0, function* () {
355
- var _a, _b, _c;
356
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
357
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
358
- method: "POST",
359
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
360
- contentType: "application/json",
361
- requestType: "json",
362
- body: serializers.AsyncHoverRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
363
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
364
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
365
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
366
- });
367
- if (_response.ok) {
368
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
369
- unrecognizedObjectKeys: "passthrough",
370
- allowUnrecognizedUnionMembers: true,
371
- allowUnrecognizedEnumValues: true,
372
- skipValidation: true,
373
- breadcrumbsPrefix: ["response"],
374
- });
375
- }
376
- if (_response.error.reason === "status-code") {
377
- throw new errors.AirtopError({
378
- statusCode: _response.error.statusCode,
379
- body: _response.error.body,
380
- });
381
- }
382
- switch (_response.error.reason) {
383
- case "non-json":
384
- throw new errors.AirtopError({
385
- statusCode: _response.error.statusCode,
386
- body: _response.error.rawBody,
387
- });
388
- case "timeout":
389
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/hover.");
390
- case "unknown":
391
- throw new errors.AirtopError({
392
- message: _response.error.errorMessage,
393
- });
394
- }
395
- });
396
- }
397
- /**
398
- * @param {string} sessionId - The session id for the window.
399
- * @param {string} windowId - The Airtop window id of the browser window.
400
- * @param {Airtop.AsyncMonitorRequest} request
401
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
402
- *
403
- * @example
404
- * await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
405
- * condition: "Determine if the user appears to be signed in to the website"
406
- * })
407
- */
408
- asyncMonitor(sessionId, windowId, request, requestOptions) {
409
- return __awaiter(this, void 0, void 0, function* () {
410
- var _a, _b, _c;
411
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
412
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
413
- method: "POST",
414
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
415
- contentType: "application/json",
416
- requestType: "json",
417
- body: serializers.AsyncMonitorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
418
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
419
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
420
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
421
- });
422
- if (_response.ok) {
423
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
424
- unrecognizedObjectKeys: "passthrough",
425
- allowUnrecognizedUnionMembers: true,
426
- allowUnrecognizedEnumValues: true,
427
- skipValidation: true,
428
- breadcrumbsPrefix: ["response"],
429
- });
430
- }
431
- if (_response.error.reason === "status-code") {
432
- throw new errors.AirtopError({
433
- statusCode: _response.error.statusCode,
434
- body: _response.error.body,
435
- });
436
- }
437
- switch (_response.error.reason) {
438
- case "non-json":
439
- throw new errors.AirtopError({
440
- statusCode: _response.error.statusCode,
441
- body: _response.error.rawBody,
442
- });
443
- case "timeout":
444
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/monitor.");
445
- case "unknown":
446
- throw new errors.AirtopError({
447
- message: _response.error.errorMessage,
448
- });
449
- }
450
- });
451
- }
452
- /**
453
- * @param {string} sessionId - The session id for the window.
454
- * @param {string} windowId - The Airtop window id of the browser window.
455
- * @param {Airtop.AsyncPageQueryRequest} request
456
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
457
- *
458
- * @example
459
- * await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
460
- * prompt: "What is the main idea of this page?"
461
- * })
462
- */
463
- asyncPageQuery(sessionId, windowId, request, requestOptions) {
464
- return __awaiter(this, void 0, void 0, function* () {
465
- var _a, _b, _c;
466
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
467
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
468
- method: "POST",
469
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
470
- contentType: "application/json",
471
- requestType: "json",
472
- body: serializers.AsyncPageQueryRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
473
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
474
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
475
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
476
- });
477
- if (_response.ok) {
478
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
479
- unrecognizedObjectKeys: "passthrough",
480
- allowUnrecognizedUnionMembers: true,
481
- allowUnrecognizedEnumValues: true,
482
- skipValidation: true,
483
- breadcrumbsPrefix: ["response"],
484
- });
485
- }
486
- if (_response.error.reason === "status-code") {
487
- throw new errors.AirtopError({
488
- statusCode: _response.error.statusCode,
489
- body: _response.error.body,
490
- });
491
- }
492
- switch (_response.error.reason) {
493
- case "non-json":
494
- throw new errors.AirtopError({
495
- statusCode: _response.error.statusCode,
496
- body: _response.error.rawBody,
497
- });
498
- case "timeout":
499
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/page-query.");
500
- case "unknown":
501
- throw new errors.AirtopError({
502
- message: _response.error.errorMessage,
503
- });
504
- }
505
- });
506
- }
507
- /**
508
- * @param {string} sessionId - The session id for the window.
509
- * @param {string} windowId - The Airtop window id of the browser window.
510
- * @param {Airtop.AsyncPaginatedExtractionRequest} request
511
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
512
- *
513
- * @example
514
- * await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
515
- * 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."
516
- * })
517
- */
518
- asyncPaginatedExtraction(sessionId, windowId, request, requestOptions) {
519
- return __awaiter(this, void 0, void 0, function* () {
520
- var _a, _b, _c;
521
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
522
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
523
- method: "POST",
524
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
525
- contentType: "application/json",
526
- requestType: "json",
527
- body: serializers.AsyncPaginatedExtractionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
528
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
529
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
530
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
531
- });
532
- if (_response.ok) {
533
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
534
- unrecognizedObjectKeys: "passthrough",
535
- allowUnrecognizedUnionMembers: true,
536
- allowUnrecognizedEnumValues: true,
537
- skipValidation: true,
538
- breadcrumbsPrefix: ["response"],
539
- });
540
- }
541
- if (_response.error.reason === "status-code") {
542
- throw new errors.AirtopError({
543
- statusCode: _response.error.statusCode,
544
- body: _response.error.body,
545
- });
546
- }
547
- switch (_response.error.reason) {
548
- case "non-json":
549
- throw new errors.AirtopError({
550
- statusCode: _response.error.statusCode,
551
- body: _response.error.rawBody,
552
- });
553
- case "timeout":
554
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
555
- case "unknown":
556
- throw new errors.AirtopError({
557
- message: _response.error.errorMessage,
558
- });
559
- }
560
- });
561
- }
562
- /**
563
- * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
564
- *
565
- * @param {string} sessionId - The session id for the window.
566
- * @param {string} windowId - The Airtop window id of the browser window.
567
- * @param {Airtop.AsyncPromptContentRequest} request
568
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
569
- *
570
- * @example
571
- * await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
572
- * prompt: "What is the main idea of this page?"
573
- * })
574
- */
575
- asyncPromptContent(sessionId, windowId, request, requestOptions) {
576
- return __awaiter(this, void 0, void 0, function* () {
577
- var _a, _b, _c;
578
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
579
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
580
- method: "POST",
581
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
582
- contentType: "application/json",
583
- requestType: "json",
584
- body: serializers.AsyncPromptContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
585
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
586
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
587
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
588
- });
589
- if (_response.ok) {
590
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
591
- unrecognizedObjectKeys: "passthrough",
592
- allowUnrecognizedUnionMembers: true,
593
- allowUnrecognizedEnumValues: true,
594
- skipValidation: true,
595
- breadcrumbsPrefix: ["response"],
596
- });
597
- }
598
- if (_response.error.reason === "status-code") {
599
- throw new errors.AirtopError({
600
- statusCode: _response.error.statusCode,
601
- body: _response.error.body,
602
- });
603
- }
604
- switch (_response.error.reason) {
605
- case "non-json":
606
- throw new errors.AirtopError({
607
- statusCode: _response.error.statusCode,
608
- body: _response.error.rawBody,
609
- });
610
- case "timeout":
611
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/prompt-content.");
612
- case "unknown":
613
- throw new errors.AirtopError({
614
- message: _response.error.errorMessage,
615
- });
616
- }
617
- });
618
- }
619
- /**
620
- * Take a screenshot of the current viewport of a browser window asynchronously
621
- *
622
- * @param {string} sessionId - The session id for the window.
623
- * @param {string} windowId - The Airtop window id of the browser window.
624
- * @param {Airtop.AsyncScreenshotRequest} request
625
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
626
- *
627
- * @example
628
- * await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
629
- */
630
- asyncScreenshot(sessionId_1, windowId_1) {
631
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
632
- var _a, _b, _c;
633
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
634
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
635
- method: "POST",
636
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
637
- contentType: "application/json",
638
- requestType: "json",
639
- body: serializers.AsyncScreenshotRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
640
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
641
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
642
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
643
- });
644
- if (_response.ok) {
645
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
646
- unrecognizedObjectKeys: "passthrough",
647
- allowUnrecognizedUnionMembers: true,
648
- allowUnrecognizedEnumValues: true,
649
- skipValidation: true,
650
- breadcrumbsPrefix: ["response"],
651
- });
652
- }
653
- if (_response.error.reason === "status-code") {
654
- throw new errors.AirtopError({
655
- statusCode: _response.error.statusCode,
656
- body: _response.error.body,
657
- });
658
- }
659
- switch (_response.error.reason) {
660
- case "non-json":
661
- throw new errors.AirtopError({
662
- statusCode: _response.error.statusCode,
663
- body: _response.error.rawBody,
664
- });
665
- case "timeout":
666
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/screenshot.");
667
- case "unknown":
668
- throw new errors.AirtopError({
669
- message: _response.error.errorMessage,
670
- });
671
- }
672
- });
673
- }
674
- /**
675
- * This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
676
- *
677
- * @param {string} sessionId - The session id for the window.
678
- * @param {string} windowId - The Airtop window id of the browser window to summarize.
679
- * @param {Airtop.AsyncSummarizeContentRequest} request
680
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
681
- *
682
- * @example
683
- * await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
684
- */
685
- asyncSummarizeContent(sessionId_1, windowId_1) {
686
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
687
- var _a, _b, _c;
688
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
689
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
690
- method: "POST",
691
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
692
- contentType: "application/json",
693
- requestType: "json",
694
- body: serializers.AsyncSummarizeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
695
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
696
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
697
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
698
- });
699
- if (_response.ok) {
700
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
701
- unrecognizedObjectKeys: "passthrough",
702
- allowUnrecognizedUnionMembers: true,
703
- allowUnrecognizedEnumValues: true,
704
- skipValidation: true,
705
- breadcrumbsPrefix: ["response"],
706
- });
707
- }
708
- if (_response.error.reason === "status-code") {
709
- throw new errors.AirtopError({
710
- statusCode: _response.error.statusCode,
711
- body: _response.error.body,
712
- });
713
- }
714
- switch (_response.error.reason) {
715
- case "non-json":
716
- throw new errors.AirtopError({
717
- statusCode: _response.error.statusCode,
718
- body: _response.error.rawBody,
719
- });
720
- case "timeout":
721
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/summarize-content.");
722
- case "unknown":
723
- throw new errors.AirtopError({
724
- message: _response.error.errorMessage,
725
- });
726
- }
727
- });
728
- }
729
- /**
730
- * @param {string} sessionId - The session id for the window.
731
- * @param {string} windowId - The Airtop window id of the browser window.
732
- * @param {Airtop.AsyncTypeRequest} request
733
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
734
- *
735
- * @example
736
- * await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
737
- * text: "Example text"
738
- * })
739
- */
740
- asyncType(sessionId, windowId, request, requestOptions) {
741
- return __awaiter(this, void 0, void 0, function* () {
742
- var _a, _b, _c;
743
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
744
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `async/sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
745
- method: "POST",
746
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
747
- contentType: "application/json",
748
- requestType: "json",
749
- body: serializers.AsyncTypeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
750
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
751
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
752
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
753
- });
754
- if (_response.ok) {
755
- return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
756
- unrecognizedObjectKeys: "passthrough",
757
- allowUnrecognizedUnionMembers: true,
758
- allowUnrecognizedEnumValues: true,
759
- skipValidation: true,
760
- breadcrumbsPrefix: ["response"],
761
- });
762
- }
763
- if (_response.error.reason === "status-code") {
764
- throw new errors.AirtopError({
765
- statusCode: _response.error.statusCode,
766
- body: _response.error.body,
767
- });
768
- }
769
- switch (_response.error.reason) {
770
- case "non-json":
771
- throw new errors.AirtopError({
772
- statusCode: _response.error.statusCode,
773
- body: _response.error.rawBody,
774
- });
775
- case "timeout":
776
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/type.");
777
- case "unknown":
778
- throw new errors.AirtopError({
779
- message: _response.error.errorMessage,
780
- });
781
- }
782
- });
783
- }
784
- /**
785
- * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
786
- *
787
- * @param {string} sessionId - ID of the session that owns the window.
788
- * @param {Airtop.CreateWindowInputV1Body} request
789
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
790
- *
791
- * @example
792
- * await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
793
- */
794
- create(sessionId_1) {
795
- return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
796
- var _a, _b, _c;
797
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
798
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows`),
799
- method: "POST",
800
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
801
- contentType: "application/json",
802
- requestType: "json",
803
- body: serializers.CreateWindowInputV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
804
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
805
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
806
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
807
- });
808
- if (_response.ok) {
809
- return serializers.WindowIdResponse.parseOrThrow(_response.body, {
810
- unrecognizedObjectKeys: "passthrough",
811
- allowUnrecognizedUnionMembers: true,
812
- allowUnrecognizedEnumValues: true,
813
- skipValidation: true,
814
- breadcrumbsPrefix: ["response"],
815
- });
816
- }
817
- if (_response.error.reason === "status-code") {
818
- throw new errors.AirtopError({
819
- statusCode: _response.error.statusCode,
820
- body: _response.error.body,
821
- });
822
- }
823
- switch (_response.error.reason) {
824
- case "non-json":
825
- throw new errors.AirtopError({
826
- statusCode: _response.error.statusCode,
827
- body: _response.error.rawBody,
828
- });
829
- case "timeout":
830
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows.");
831
- case "unknown":
832
- throw new errors.AirtopError({
833
- message: _response.error.errorMessage,
834
- });
835
- }
836
- });
837
- }
838
- /**
839
- * Get information about a browser window in a session, including the live view url.
840
- *
841
- * @param {string} sessionId - ID of the session that owns the window.
842
- * @param {string} windowId - ID of the browser window, which can either be a normal AirTop windowId or a [CDP TargetId](https://chromedevtools.github.io/devtools-protocol/tot/Target/#type-TargetID) from a browser automation library like Puppeteer (typically associated with the page or main frame). Our SDKs will handle retrieving a TargetId for you from various popular browser automation libraries, but we also have details in our guides on how to do it manually.
843
- * @param {Airtop.GetWindowInfoRequest} request
844
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
845
- *
846
- * @example
847
- * await client.windows.getWindowInfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
848
- * screenResolution: "1280x720"
849
- * })
850
- */
851
- getWindowInfo(sessionId_1, windowId_1) {
852
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
853
- var _a, _b, _c;
854
- const { includeNavigationBar, disableResize, screenResolution } = request;
855
- const _queryParams = {};
856
- if (includeNavigationBar != null) {
857
- _queryParams["includeNavigationBar"] = includeNavigationBar.toString();
858
- }
859
- if (disableResize != null) {
860
- _queryParams["disableResize"] = disableResize.toString();
861
- }
862
- if (screenResolution != null) {
863
- _queryParams["screenResolution"] = screenResolution;
864
- }
865
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
866
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
867
- method: "GET",
868
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
869
- contentType: "application/json",
870
- queryParameters: _queryParams,
871
- requestType: "json",
872
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
873
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
874
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
875
- });
876
- if (_response.ok) {
877
- return serializers.WindowResponse.parseOrThrow(_response.body, {
878
- unrecognizedObjectKeys: "passthrough",
879
- allowUnrecognizedUnionMembers: true,
880
- allowUnrecognizedEnumValues: true,
881
- skipValidation: true,
882
- breadcrumbsPrefix: ["response"],
883
- });
884
- }
885
- if (_response.error.reason === "status-code") {
886
- throw new errors.AirtopError({
887
- statusCode: _response.error.statusCode,
888
- body: _response.error.body,
889
- });
890
- }
891
- switch (_response.error.reason) {
892
- case "non-json":
893
- throw new errors.AirtopError({
894
- statusCode: _response.error.statusCode,
895
- body: _response.error.rawBody,
896
- });
897
- case "timeout":
898
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /sessions/{sessionId}/windows/{windowId}.");
899
- case "unknown":
900
- throw new errors.AirtopError({
901
- message: _response.error.errorMessage,
902
- });
903
- }
904
- });
905
- }
906
- /**
907
- * Loads a specified url on a given window
908
- *
909
- * @param {string} sessionId - ID of the session that owns the window.
910
- * @param {string} windowId - Airtop window ID of the browser window.
911
- * @param {Airtop.WindowLoadUrlV1Body} request
912
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
913
- *
914
- * @example
915
- * await client.windows.loadUrl("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430", {
916
- * url: "https://www.airtop.ai"
917
- * })
918
- */
919
- loadUrl(sessionId, windowId, request, requestOptions) {
920
- return __awaiter(this, void 0, void 0, function* () {
921
- var _a, _b, _c;
922
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
923
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
924
- method: "POST",
925
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
926
- contentType: "application/json",
927
- requestType: "json",
928
- body: serializers.WindowLoadUrlV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
929
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
930
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
931
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
932
- });
933
- if (_response.ok) {
934
- return serializers.OperationOutcomeResponse.parseOrThrow(_response.body, {
935
- unrecognizedObjectKeys: "passthrough",
936
- allowUnrecognizedUnionMembers: true,
937
- allowUnrecognizedEnumValues: true,
938
- skipValidation: true,
939
- breadcrumbsPrefix: ["response"],
940
- });
941
- }
942
- if (_response.error.reason === "status-code") {
943
- throw new errors.AirtopError({
944
- statusCode: _response.error.statusCode,
945
- body: _response.error.body,
946
- });
947
- }
948
- switch (_response.error.reason) {
949
- case "non-json":
950
- throw new errors.AirtopError({
951
- statusCode: _response.error.statusCode,
952
- body: _response.error.rawBody,
953
- });
954
- case "timeout":
955
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}.");
956
- case "unknown":
957
- throw new errors.AirtopError({
958
- message: _response.error.errorMessage,
959
- });
960
- }
961
- });
962
- }
963
- /**
964
- * Closes a browser window in a session
965
- *
966
- * @param {string} sessionId - ID of the session that owns the window.
967
- * @param {string} windowId - Airtop window ID of the browser window.
968
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
969
- *
970
- * @example
971
- * await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430")
972
- */
973
- close(sessionId, windowId, requestOptions) {
974
- return __awaiter(this, void 0, void 0, function* () {
975
- var _a, _b, _c;
976
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
977
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
978
- method: "DELETE",
979
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
980
- contentType: "application/json",
981
- requestType: "json",
982
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
983
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
984
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
985
- });
986
- if (_response.ok) {
987
- return serializers.WindowIdResponse.parseOrThrow(_response.body, {
988
- unrecognizedObjectKeys: "passthrough",
989
- allowUnrecognizedUnionMembers: true,
990
- allowUnrecognizedEnumValues: true,
991
- skipValidation: true,
992
- breadcrumbsPrefix: ["response"],
993
- });
994
- }
995
- if (_response.error.reason === "status-code") {
996
- throw new errors.AirtopError({
997
- statusCode: _response.error.statusCode,
998
- body: _response.error.body,
999
- });
1000
- }
1001
- switch (_response.error.reason) {
1002
- case "non-json":
1003
- throw new errors.AirtopError({
1004
- statusCode: _response.error.statusCode,
1005
- body: _response.error.rawBody,
1006
- });
1007
- case "timeout":
1008
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling DELETE /sessions/{sessionId}/windows/{windowId}.");
1009
- case "unknown":
1010
- throw new errors.AirtopError({
1011
- message: _response.error.errorMessage,
1012
- });
1013
- }
1014
- });
1015
- }
1016
- /**
1017
- * Execute a click interaction in a specific browser window
1018
- *
1019
- * @param {string} sessionId - The session id for the window.
1020
- * @param {string} windowId - The Airtop window id of the browser window.
1021
- * @param {Airtop.SessionClickHandlerRequestBody} request
1022
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1023
- *
1024
- * @example
1025
- * await client.windows.click("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1026
- * elementDescription: "The login button"
1027
- * })
1028
- */
1029
- click(sessionId, windowId, request, requestOptions) {
1030
- return __awaiter(this, void 0, void 0, function* () {
1031
- var _a, _b, _c;
1032
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1033
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
1034
- method: "POST",
1035
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1036
- contentType: "application/json",
1037
- requestType: "json",
1038
- body: serializers.SessionClickHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1039
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1040
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1041
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1042
- });
1043
- if (_response.ok) {
1044
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1045
- unrecognizedObjectKeys: "passthrough",
1046
- allowUnrecognizedUnionMembers: true,
1047
- allowUnrecognizedEnumValues: true,
1048
- skipValidation: true,
1049
- breadcrumbsPrefix: ["response"],
1050
- });
1051
- }
1052
- if (_response.error.reason === "status-code") {
1053
- throw new errors.AirtopError({
1054
- statusCode: _response.error.statusCode,
1055
- body: _response.error.body,
1056
- });
1057
- }
1058
- switch (_response.error.reason) {
1059
- case "non-json":
1060
- throw new errors.AirtopError({
1061
- statusCode: _response.error.statusCode,
1062
- body: _response.error.rawBody,
1063
- });
1064
- case "timeout":
1065
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/click.");
1066
- case "unknown":
1067
- throw new errors.AirtopError({
1068
- message: _response.error.errorMessage,
1069
- });
1070
- }
1071
- });
1072
- }
1073
- /**
1074
- * Create a form-filler automation synchronously for the form loaded in the browser window
1075
- *
1076
- * @param {string} sessionId - The session id for the window.
1077
- * @param {string} windowId - The Airtop window id of the browser window.
1078
- * @param {Airtop.CreateFormFillerRequest} request
1079
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1080
- *
1081
- * @example
1082
- * await client.windows.createFormFiller("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
1083
- */
1084
- createFormFiller(sessionId_1, windowId_1) {
1085
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1086
- var _a, _b, _c;
1087
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1088
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/create-form-filler`),
1089
- method: "POST",
1090
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1091
- contentType: "application/json",
1092
- requestType: "json",
1093
- body: serializers.CreateFormFillerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1094
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1095
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1096
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1097
- });
1098
- if (_response.ok) {
1099
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1100
- unrecognizedObjectKeys: "passthrough",
1101
- allowUnrecognizedUnionMembers: true,
1102
- allowUnrecognizedEnumValues: true,
1103
- skipValidation: true,
1104
- breadcrumbsPrefix: ["response"],
1105
- });
1106
- }
1107
- if (_response.error.reason === "status-code") {
1108
- throw new errors.AirtopError({
1109
- statusCode: _response.error.statusCode,
1110
- body: _response.error.body,
1111
- });
1112
- }
1113
- switch (_response.error.reason) {
1114
- case "non-json":
1115
- throw new errors.AirtopError({
1116
- statusCode: _response.error.statusCode,
1117
- body: _response.error.rawBody,
1118
- });
1119
- case "timeout":
1120
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/create-form-filler.");
1121
- case "unknown":
1122
- throw new errors.AirtopError({
1123
- message: _response.error.errorMessage,
1124
- });
1125
- }
1126
- });
1127
- }
1128
- /**
1129
- * Fill a form of a browser window synchronously using a form-filler automation
1130
- *
1131
- * @param {string} sessionId - The session id for the window.
1132
- * @param {string} windowId - The Airtop window id of the browser window.
1133
- * @param {Airtop.FillFormRequest} request
1134
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1135
- *
1136
- * @example
1137
- * await client.windows.fillForm("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1138
- * automationId: "automationId"
1139
- * })
1140
- */
1141
- fillForm(sessionId, windowId, request, requestOptions) {
1142
- return __awaiter(this, void 0, void 0, function* () {
1143
- var _a, _b, _c;
1144
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1145
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/fill-form`),
1146
- method: "POST",
1147
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1148
- contentType: "application/json",
1149
- requestType: "json",
1150
- body: serializers.FillFormRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1151
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1152
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1153
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1154
- });
1155
- if (_response.ok) {
1156
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1157
- unrecognizedObjectKeys: "passthrough",
1158
- allowUnrecognizedUnionMembers: true,
1159
- allowUnrecognizedEnumValues: true,
1160
- skipValidation: true,
1161
- breadcrumbsPrefix: ["response"],
1162
- });
1163
- }
1164
- if (_response.error.reason === "status-code") {
1165
- throw new errors.AirtopError({
1166
- statusCode: _response.error.statusCode,
1167
- body: _response.error.body,
1168
- });
1169
- }
1170
- switch (_response.error.reason) {
1171
- case "non-json":
1172
- throw new errors.AirtopError({
1173
- statusCode: _response.error.statusCode,
1174
- body: _response.error.rawBody,
1175
- });
1176
- case "timeout":
1177
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/fill-form.");
1178
- case "unknown":
1179
- throw new errors.AirtopError({
1180
- message: _response.error.errorMessage,
1181
- });
1182
- }
1183
- });
1184
- }
1185
- /**
1186
- * Execute a hover interaction in a specific browser window
1187
- *
1188
- * @param {string} sessionId - The session id for the window.
1189
- * @param {string} windowId - The Airtop window id of the browser window.
1190
- * @param {Airtop.SessionHoverHandlerRequestBody} request
1191
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1192
- *
1193
- * @example
1194
- * await client.windows.hover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1195
- * elementDescription: "The search box input in the top right corner"
1196
- * })
1197
- */
1198
- hover(sessionId, windowId, request, requestOptions) {
1199
- return __awaiter(this, void 0, void 0, function* () {
1200
- var _a, _b, _c;
1201
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1202
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
1203
- method: "POST",
1204
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1205
- contentType: "application/json",
1206
- requestType: "json",
1207
- body: serializers.SessionHoverHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1208
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1209
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1210
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1211
- });
1212
- if (_response.ok) {
1213
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1214
- unrecognizedObjectKeys: "passthrough",
1215
- allowUnrecognizedUnionMembers: true,
1216
- allowUnrecognizedEnumValues: true,
1217
- skipValidation: true,
1218
- breadcrumbsPrefix: ["response"],
1219
- });
1220
- }
1221
- if (_response.error.reason === "status-code") {
1222
- throw new errors.AirtopError({
1223
- statusCode: _response.error.statusCode,
1224
- body: _response.error.body,
1225
- });
1226
- }
1227
- switch (_response.error.reason) {
1228
- case "non-json":
1229
- throw new errors.AirtopError({
1230
- statusCode: _response.error.statusCode,
1231
- body: _response.error.rawBody,
1232
- });
1233
- case "timeout":
1234
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/hover.");
1235
- case "unknown":
1236
- throw new errors.AirtopError({
1237
- message: _response.error.errorMessage,
1238
- });
1239
- }
1240
- });
1241
- }
1242
- /**
1243
- * @param {string} sessionId - The session id for the window.
1244
- * @param {string} windowId - The Airtop window id of the browser window.
1245
- * @param {Airtop.SessionMonitorHandlerRequestBody} request
1246
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1247
- *
1248
- * @example
1249
- * await client.windows.monitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1250
- * condition: "Determine if the user appears to be signed in to the website"
1251
- * })
1252
- */
1253
- monitor(sessionId, windowId, request, requestOptions) {
1254
- return __awaiter(this, void 0, void 0, function* () {
1255
- var _a, _b, _c;
1256
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1257
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
1258
- method: "POST",
1259
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1260
- contentType: "application/json",
1261
- requestType: "json",
1262
- body: serializers.SessionMonitorHandlerRequestBody.jsonOrThrow(request, {
1263
- unrecognizedObjectKeys: "strip",
1264
- }),
1265
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1266
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1267
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1268
- });
1269
- if (_response.ok) {
1270
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1271
- unrecognizedObjectKeys: "passthrough",
1272
- allowUnrecognizedUnionMembers: true,
1273
- allowUnrecognizedEnumValues: true,
1274
- skipValidation: true,
1275
- breadcrumbsPrefix: ["response"],
1276
- });
1277
- }
1278
- if (_response.error.reason === "status-code") {
1279
- throw new errors.AirtopError({
1280
- statusCode: _response.error.statusCode,
1281
- body: _response.error.body,
1282
- });
1283
- }
1284
- switch (_response.error.reason) {
1285
- case "non-json":
1286
- throw new errors.AirtopError({
1287
- statusCode: _response.error.statusCode,
1288
- body: _response.error.rawBody,
1289
- });
1290
- case "timeout":
1291
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/monitor.");
1292
- case "unknown":
1293
- throw new errors.AirtopError({
1294
- message: _response.error.errorMessage,
1295
- });
1296
- }
1297
- });
1298
- }
1299
- /**
1300
- * 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?).
1301
- *
1302
- * @param {string} sessionId - The session id for the window.
1303
- * @param {string} windowId - The Airtop window id of the browser window.
1304
- * @param {Airtop.SessionPageQueryHandlerRequestBody} request
1305
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1306
- *
1307
- * @example
1308
- * await client.windows.pageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1309
- * prompt: "What is the main idea of this page?"
1310
- * })
1311
- */
1312
- pageQuery(sessionId, windowId, request, requestOptions) {
1313
- return __awaiter(this, void 0, void 0, function* () {
1314
- var _a, _b, _c;
1315
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1316
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
1317
- method: "POST",
1318
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1319
- contentType: "application/json",
1320
- requestType: "json",
1321
- body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
1322
- unrecognizedObjectKeys: "strip",
1323
- }),
1324
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1325
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1326
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1327
- });
1328
- if (_response.ok) {
1329
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1330
- unrecognizedObjectKeys: "passthrough",
1331
- allowUnrecognizedUnionMembers: true,
1332
- allowUnrecognizedEnumValues: true,
1333
- skipValidation: true,
1334
- breadcrumbsPrefix: ["response"],
1335
- });
1336
- }
1337
- if (_response.error.reason === "status-code") {
1338
- throw new errors.AirtopError({
1339
- statusCode: _response.error.statusCode,
1340
- body: _response.error.body,
1341
- });
1342
- }
1343
- switch (_response.error.reason) {
1344
- case "non-json":
1345
- throw new errors.AirtopError({
1346
- statusCode: _response.error.statusCode,
1347
- body: _response.error.rawBody,
1348
- });
1349
- case "timeout":
1350
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/page-query.");
1351
- case "unknown":
1352
- throw new errors.AirtopError({
1353
- message: _response.error.errorMessage,
1354
- });
1355
- }
1356
- });
1357
- }
1358
- /**
1359
- * Submit a prompt that queries the content of a specific browser window and paginates through pages to return a list of results.
1360
- *
1361
- * @param {string} sessionId - The session id for the window.
1362
- * @param {string} windowId - The Airtop window id of the browser window.
1363
- * @param {Airtop.SessionPaginatedExtractionHandlerRequestBody} request
1364
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1365
- *
1366
- * @example
1367
- * await client.windows.paginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1368
- * 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."
1369
- * })
1370
- */
1371
- paginatedExtraction(sessionId, windowId, request, requestOptions) {
1372
- return __awaiter(this, void 0, void 0, function* () {
1373
- var _a, _b, _c;
1374
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1375
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
1376
- method: "POST",
1377
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1378
- contentType: "application/json",
1379
- requestType: "json",
1380
- body: serializers.SessionPaginatedExtractionHandlerRequestBody.jsonOrThrow(request, {
1381
- unrecognizedObjectKeys: "strip",
1382
- }),
1383
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1384
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1385
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1386
- });
1387
- if (_response.ok) {
1388
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1389
- unrecognizedObjectKeys: "passthrough",
1390
- allowUnrecognizedUnionMembers: true,
1391
- allowUnrecognizedEnumValues: true,
1392
- skipValidation: true,
1393
- breadcrumbsPrefix: ["response"],
1394
- });
1395
- }
1396
- if (_response.error.reason === "status-code") {
1397
- throw new errors.AirtopError({
1398
- statusCode: _response.error.statusCode,
1399
- body: _response.error.body,
1400
- });
1401
- }
1402
- switch (_response.error.reason) {
1403
- case "non-json":
1404
- throw new errors.AirtopError({
1405
- statusCode: _response.error.statusCode,
1406
- body: _response.error.rawBody,
1407
- });
1408
- case "timeout":
1409
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
1410
- case "unknown":
1411
- throw new errors.AirtopError({
1412
- message: _response.error.errorMessage,
1413
- });
1414
- }
1415
- });
1416
- }
1417
- /**
1418
- * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
1419
- *
1420
- * @param {string} sessionId - The session id for the window.
1421
- * @param {string} windowId - The Airtop window id of the browser window.
1422
- * @param {Airtop.SessionPageQueryHandlerRequestBody} request
1423
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1424
- *
1425
- * @example
1426
- * await client.windows.promptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1427
- * prompt: "What is the main idea of this page?"
1428
- * })
1429
- */
1430
- promptContent(sessionId, windowId, request, requestOptions) {
1431
- return __awaiter(this, void 0, void 0, function* () {
1432
- var _a, _b, _c;
1433
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1434
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
1435
- method: "POST",
1436
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1437
- contentType: "application/json",
1438
- requestType: "json",
1439
- body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
1440
- unrecognizedObjectKeys: "strip",
1441
- }),
1442
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1443
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1444
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1445
- });
1446
- if (_response.ok) {
1447
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1448
- unrecognizedObjectKeys: "passthrough",
1449
- allowUnrecognizedUnionMembers: true,
1450
- allowUnrecognizedEnumValues: true,
1451
- skipValidation: true,
1452
- breadcrumbsPrefix: ["response"],
1453
- });
1454
- }
1455
- if (_response.error.reason === "status-code") {
1456
- throw new errors.AirtopError({
1457
- statusCode: _response.error.statusCode,
1458
- body: _response.error.body,
1459
- });
1460
- }
1461
- switch (_response.error.reason) {
1462
- case "non-json":
1463
- throw new errors.AirtopError({
1464
- statusCode: _response.error.statusCode,
1465
- body: _response.error.rawBody,
1466
- });
1467
- case "timeout":
1468
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/prompt-content.");
1469
- case "unknown":
1470
- throw new errors.AirtopError({
1471
- message: _response.error.errorMessage,
1472
- });
1473
- }
1474
- });
1475
- }
1476
- /**
1477
- * Scrape a window and return the content as markdown
1478
- *
1479
- * @param {string} sessionId - The session id for the window.
1480
- * @param {string} windowId - The Airtop window id of the browser window to scrape.
1481
- * @param {Airtop.ScrapeContentRequest} request
1482
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1483
- *
1484
- * @example
1485
- * await client.windows.scrapeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
1486
- */
1487
- scrapeContent(sessionId_1, windowId_1) {
1488
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1489
- var _a, _b, _c;
1490
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1491
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scrape-content`),
1492
- method: "POST",
1493
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1494
- contentType: "application/json",
1495
- requestType: "json",
1496
- body: serializers.ScrapeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1497
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1498
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1499
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1500
- });
1501
- if (_response.ok) {
1502
- return serializers.ScrapeResponse.parseOrThrow(_response.body, {
1503
- unrecognizedObjectKeys: "passthrough",
1504
- allowUnrecognizedUnionMembers: true,
1505
- allowUnrecognizedEnumValues: true,
1506
- skipValidation: true,
1507
- breadcrumbsPrefix: ["response"],
1508
- });
1509
- }
1510
- if (_response.error.reason === "status-code") {
1511
- throw new errors.AirtopError({
1512
- statusCode: _response.error.statusCode,
1513
- body: _response.error.body,
1514
- });
1515
- }
1516
- switch (_response.error.reason) {
1517
- case "non-json":
1518
- throw new errors.AirtopError({
1519
- statusCode: _response.error.statusCode,
1520
- body: _response.error.rawBody,
1521
- });
1522
- case "timeout":
1523
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scrape-content.");
1524
- case "unknown":
1525
- throw new errors.AirtopError({
1526
- message: _response.error.errorMessage,
1527
- });
1528
- }
1529
- });
1530
- }
1531
- /**
1532
- * Take a screenshot of a browser window
1533
- *
1534
- * @param {string} sessionId - The session id for the window.
1535
- * @param {string} windowId - The Airtop window id of the browser window.
1536
- * @param {Airtop.SessionScreenshotHandlerRequestBody} request
1537
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1538
- *
1539
- * @example
1540
- * await client.windows.screenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
1541
- */
1542
- screenshot(sessionId_1, windowId_1) {
1543
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1544
- var _a, _b, _c;
1545
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1546
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
1547
- method: "POST",
1548
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1549
- contentType: "application/json",
1550
- requestType: "json",
1551
- body: serializers.SessionScreenshotHandlerRequestBody.jsonOrThrow(request, {
1552
- unrecognizedObjectKeys: "strip",
1553
- }),
1554
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1555
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1556
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1557
- });
1558
- if (_response.ok) {
1559
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1560
- unrecognizedObjectKeys: "passthrough",
1561
- allowUnrecognizedUnionMembers: true,
1562
- allowUnrecognizedEnumValues: true,
1563
- skipValidation: true,
1564
- breadcrumbsPrefix: ["response"],
1565
- });
1566
- }
1567
- if (_response.error.reason === "status-code") {
1568
- throw new errors.AirtopError({
1569
- statusCode: _response.error.statusCode,
1570
- body: _response.error.body,
1571
- });
1572
- }
1573
- switch (_response.error.reason) {
1574
- case "non-json":
1575
- throw new errors.AirtopError({
1576
- statusCode: _response.error.statusCode,
1577
- body: _response.error.rawBody,
1578
- });
1579
- case "timeout":
1580
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/screenshot.");
1581
- case "unknown":
1582
- throw new errors.AirtopError({
1583
- message: _response.error.errorMessage,
1584
- });
1585
- }
1586
- });
1587
- }
1588
- /**
1589
- * Execute a scroll interaction in a specific browser window
1590
- *
1591
- * @param {string} sessionId - The session id for the window.
1592
- * @param {string} windowId - The Airtop window id of the browser window.
1593
- * @param {Airtop.SessionScrollHandlerRequestBody} request
1594
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1595
- *
1596
- * @example
1597
- * await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
1598
- */
1599
- scroll(sessionId_1, windowId_1) {
1600
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1601
- var _a, _b, _c;
1602
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1603
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scroll`),
1604
- method: "POST",
1605
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1606
- contentType: "application/json",
1607
- requestType: "json",
1608
- body: serializers.SessionScrollHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1609
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1610
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1611
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1612
- });
1613
- if (_response.ok) {
1614
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1615
- unrecognizedObjectKeys: "passthrough",
1616
- allowUnrecognizedUnionMembers: true,
1617
- allowUnrecognizedEnumValues: true,
1618
- skipValidation: true,
1619
- breadcrumbsPrefix: ["response"],
1620
- });
1621
- }
1622
- if (_response.error.reason === "status-code") {
1623
- throw new errors.AirtopError({
1624
- statusCode: _response.error.statusCode,
1625
- body: _response.error.body,
1626
- });
1627
- }
1628
- switch (_response.error.reason) {
1629
- case "non-json":
1630
- throw new errors.AirtopError({
1631
- statusCode: _response.error.statusCode,
1632
- body: _response.error.rawBody,
1633
- });
1634
- case "timeout":
1635
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scroll.");
1636
- case "unknown":
1637
- throw new errors.AirtopError({
1638
- message: _response.error.errorMessage,
1639
- });
1640
- }
1641
- });
1642
- }
1643
- /**
1644
- * This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
1645
- *
1646
- * @param {string} sessionId - The session id for the window.
1647
- * @param {string} windowId - The Airtop window id of the browser window to summarize.
1648
- * @param {Airtop.SessionSummaryHandlerRequestBody} request
1649
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1650
- *
1651
- * @example
1652
- * await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
1653
- */
1654
- summarizeContent(sessionId_1, windowId_1) {
1655
- return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1656
- var _a, _b, _c;
1657
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1658
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
1659
- method: "POST",
1660
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1661
- contentType: "application/json",
1662
- requestType: "json",
1663
- body: serializers.SessionSummaryHandlerRequestBody.jsonOrThrow(request, {
1664
- unrecognizedObjectKeys: "strip",
1665
- }),
1666
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1667
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1668
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1669
- });
1670
- if (_response.ok) {
1671
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1672
- unrecognizedObjectKeys: "passthrough",
1673
- allowUnrecognizedUnionMembers: true,
1674
- allowUnrecognizedEnumValues: true,
1675
- skipValidation: true,
1676
- breadcrumbsPrefix: ["response"],
1677
- });
1678
- }
1679
- if (_response.error.reason === "status-code") {
1680
- throw new errors.AirtopError({
1681
- statusCode: _response.error.statusCode,
1682
- body: _response.error.body,
1683
- });
1684
- }
1685
- switch (_response.error.reason) {
1686
- case "non-json":
1687
- throw new errors.AirtopError({
1688
- statusCode: _response.error.statusCode,
1689
- body: _response.error.rawBody,
1690
- });
1691
- case "timeout":
1692
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/summarize-content.");
1693
- case "unknown":
1694
- throw new errors.AirtopError({
1695
- message: _response.error.errorMessage,
1696
- });
1697
- }
1698
- });
1699
- }
1700
- /**
1701
- * Execute a type interaction in a specific browser window
1702
- *
1703
- * @param {string} sessionId - The session id for the window.
1704
- * @param {string} windowId - The Airtop window id of the browser window.
1705
- * @param {Airtop.SessionTypeHandlerRequestBody} request
1706
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
1707
- *
1708
- * @example
1709
- * await client.windows.type("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
1710
- * text: "Example text"
1711
- * })
1712
- */
1713
- type(sessionId, windowId, request, requestOptions) {
1714
- return __awaiter(this, void 0, void 0, function* () {
1715
- var _a, _b, _c;
1716
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1717
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
1718
- method: "POST",
1719
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36-beta0", "User-Agent": "@airtop/sdk/0.1.36-beta0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1720
- contentType: "application/json",
1721
- requestType: "json",
1722
- body: serializers.SessionTypeHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1723
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1724
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1725
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1726
- });
1727
- if (_response.ok) {
1728
- return serializers.AiPromptResponse.parseOrThrow(_response.body, {
1729
- unrecognizedObjectKeys: "passthrough",
1730
- allowUnrecognizedUnionMembers: true,
1731
- allowUnrecognizedEnumValues: true,
1732
- skipValidation: true,
1733
- breadcrumbsPrefix: ["response"],
1734
- });
1735
- }
1736
- if (_response.error.reason === "status-code") {
1737
- throw new errors.AirtopError({
1738
- statusCode: _response.error.statusCode,
1739
- body: _response.error.body,
1740
- });
1741
- }
1742
- switch (_response.error.reason) {
1743
- case "non-json":
1744
- throw new errors.AirtopError({
1745
- statusCode: _response.error.statusCode,
1746
- body: _response.error.rawBody,
1747
- });
1748
- case "timeout":
1749
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/type.");
1750
- case "unknown":
1751
- throw new errors.AirtopError({
1752
- message: _response.error.errorMessage,
1753
- });
1754
- }
1755
- });
1756
- }
1757
- _getAuthorizationHeader() {
1758
- return __awaiter(this, void 0, void 0, function* () {
1759
- return `Bearer ${yield core.Supplier.get(this._options.apiKey)}`;
1760
- });
1761
- }
1762
- }
1763
- exports.Windows = Windows;