@airtop/sdk 0.1.34 → 0.1.35-beta0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (786) hide show
  1. package/Client.d.ts +14 -4
  2. package/Client.js +16 -6
  3. package/README.md +35 -17
  4. package/api/errors/ForbiddenError.d.ts +8 -0
  5. package/api/errors/ForbiddenError.js +51 -0
  6. package/api/errors/InternalServerError.js +17 -7
  7. package/api/errors/NotFoundError.js +17 -7
  8. package/api/errors/UnauthorizedError.d.ts +8 -0
  9. package/api/errors/UnauthorizedError.js +51 -0
  10. package/api/errors/UnprocessableEntityError.js +17 -7
  11. package/api/errors/index.d.ts +2 -0
  12. package/api/errors/index.js +2 -0
  13. package/api/resources/automations/client/Client.d.ts +91 -0
  14. package/api/resources/automations/client/Client.js +429 -0
  15. package/api/resources/automations/client/index.d.ts +1 -0
  16. package/api/resources/automations/client/index.js +17 -0
  17. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +19 -0
  18. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +5 -0
  19. package/api/resources/automations/client/requests/index.d.ts +1 -0
  20. package/api/resources/automations/client/requests/index.js +2 -0
  21. package/api/resources/automations/index.d.ts +1 -0
  22. package/api/resources/automations/index.js +17 -0
  23. package/api/resources/files/client/Client.d.ts +69 -0
  24. package/api/resources/files/client/Client.js +286 -0
  25. package/api/resources/files/client/index.d.ts +1 -0
  26. package/api/resources/files/client/index.js +17 -0
  27. package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +20 -0
  28. package/api/resources/files/client/requests/CreateFileRestInputV1.js +5 -0
  29. package/api/resources/files/client/requests/FilesListRequest.d.ts +24 -0
  30. package/api/resources/files/client/requests/FilesListRequest.js +5 -0
  31. package/api/resources/files/client/requests/index.d.ts +2 -0
  32. package/api/resources/files/client/requests/index.js +2 -0
  33. package/api/resources/files/index.d.ts +2 -0
  34. package/api/resources/files/index.js +18 -0
  35. package/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +13 -0
  36. package/api/resources/files/types/CreateFileRestInputV1FileType.js +12 -0
  37. package/api/resources/files/types/index.d.ts +1 -0
  38. package/api/resources/files/types/index.js +17 -0
  39. package/api/resources/index.d.ts +5 -0
  40. package/api/resources/index.js +23 -8
  41. package/api/resources/profiles/client/Client.d.ts +4 -0
  42. package/api/resources/profiles/client/Client.js +23 -21
  43. package/api/resources/requests/client/Client.d.ts +4 -0
  44. package/api/resources/requests/client/Client.js +21 -19
  45. package/api/resources/sessions/client/Client.d.ts +15 -1
  46. package/api/resources/sessions/client/Client.js +98 -88
  47. package/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +7 -0
  48. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  49. package/api/resources/sessions/types/SessionsListRequestStatus.d.ts +1 -1
  50. package/api/resources/sessions/types/index.d.ts +1 -1
  51. package/api/resources/sessions/types/index.js +1 -1
  52. package/api/resources/windows/client/Client.d.ts +142 -0
  53. package/api/resources/windows/client/Client.js +700 -199
  54. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  55. package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  56. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +23 -0
  57. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +5 -0
  58. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +27 -0
  59. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +5 -0
  60. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  61. package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  62. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  63. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  64. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  65. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  66. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  67. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  68. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  69. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  70. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  71. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  72. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  73. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  74. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  75. package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  76. package/api/resources/windows/client/requests/index.d.ts +11 -0
  77. package/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
  78. package/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
  79. package/api/types/AsyncConfig.d.ts +7 -0
  80. package/api/types/AsyncConfig.js +5 -0
  81. package/api/types/AsyncSessionAiResponseEnvelope.d.ts +9 -0
  82. package/api/types/AsyncSessionAiResponseEnvelope.js +5 -0
  83. package/api/types/AutomationOutput.d.ts +10 -0
  84. package/api/types/AutomationOutput.js +5 -0
  85. package/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +1 -1
  86. package/api/types/ClickConfigClickType.d.ts +1 -1
  87. package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +4 -0
  88. package/api/types/CreateAutomationRequestBodyConfiguration.js +5 -0
  89. package/api/types/CreateFileV1.d.ts +24 -0
  90. package/api/types/CreateFileV1.js +5 -0
  91. package/api/types/CreateFileV1FileType.d.ts +13 -0
  92. package/api/types/CreateFileV1FileType.js +12 -0
  93. package/api/types/DeleteAutomationOutputWrapperBody.d.ts +4 -0
  94. package/api/types/DeleteAutomationOutputWrapperBody.js +5 -0
  95. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +10 -0
  96. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +5 -0
  97. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +10 -0
  98. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +5 -0
  99. package/api/types/ExtensionConfigurationOutput.d.ts +13 -0
  100. package/api/types/ExtensionConfigurationOutput.js +5 -0
  101. package/api/types/ExternalFile.d.ts +33 -0
  102. package/api/types/ExternalFile.js +5 -0
  103. package/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +1 -1
  104. package/api/types/FilesResponse.d.ts +10 -0
  105. package/api/types/FilesResponse.js +5 -0
  106. package/api/types/FilesWithPagination.d.ts +10 -0
  107. package/api/types/FilesWithPagination.js +5 -0
  108. package/api/types/GetFileV1.d.ts +24 -0
  109. package/api/types/GetFileV1.js +5 -0
  110. package/api/types/GetFileV1FileType.d.ts +13 -0
  111. package/api/types/GetFileV1FileType.js +12 -0
  112. package/api/types/ListAutomationsOutput.d.ts +7 -0
  113. package/api/types/ListAutomationsOutput.js +5 -0
  114. package/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +1 -1
  115. package/api/types/Proxy.d.ts +1 -1
  116. package/api/types/SessionConfigV1Proxy.d.ts +1 -1
  117. package/api/types/StatusMessageStatus.d.ts +1 -1
  118. package/api/types/VisualAnalysisConfigPartitionDirection.d.ts +1 -1
  119. package/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
  120. package/api/types/VisualAnalysisConfigScope.d.ts +1 -1
  121. package/api/types/index.d.ts +26 -0
  122. package/api/types/index.js +26 -0
  123. package/biome.json +3 -0
  124. package/core/auth/BearerToken.d.ts +1 -1
  125. package/core/fetcher/APIResponse.d.ts +1 -1
  126. package/core/fetcher/Fetcher.d.ts +3 -3
  127. package/core/fetcher/Fetcher.js +6 -5
  128. package/core/fetcher/Supplier.d.ts +1 -1
  129. package/core/fetcher/createRequestUrl.d.ts +1 -1
  130. package/core/fetcher/createRequestUrl.js +1 -2
  131. package/core/fetcher/getFetchFn.js +18 -9
  132. package/core/fetcher/getHeader.js +1 -2
  133. package/core/fetcher/getRequestBody.js +5 -5
  134. package/core/fetcher/getResponseBody.js +4 -2
  135. package/core/fetcher/makeRequest.d.ts +1 -1
  136. package/core/fetcher/requestWithRetries.js +17 -9
  137. package/core/fetcher/signals.d.ts +0 -1
  138. package/core/fetcher/signals.js +2 -3
  139. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
  140. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
  141. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -2
  142. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  143. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -2
  144. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
  145. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  146. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +19 -10
  147. package/core/index.js +17 -7
  148. package/core/json.d.ts +15 -0
  149. package/core/json.js +24 -0
  150. package/core/runtime/runtime.d.ts +1 -1
  151. package/core/runtime/runtime.js +51 -41
  152. package/core/schemas/Schema.d.ts +8 -5
  153. package/core/schemas/Schema.js +3 -0
  154. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  155. package/core/schemas/builders/bigint/bigint.js +53 -0
  156. package/core/schemas/builders/bigint/index.d.ts +1 -0
  157. package/core/schemas/builders/bigint/index.js +5 -0
  158. package/core/schemas/builders/date/date.js +1 -2
  159. package/core/schemas/builders/enum/enum.js +1 -2
  160. package/core/schemas/builders/index.d.ts +1 -0
  161. package/core/schemas/builders/index.js +1 -0
  162. package/core/schemas/builders/lazy/lazy.d.ts +1 -1
  163. package/core/schemas/builders/lazy/lazy.js +3 -4
  164. package/core/schemas/builders/lazy/lazyObject.js +1 -2
  165. package/core/schemas/builders/list/list.js +1 -2
  166. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  167. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  168. package/core/schemas/builders/object/object.d.ts +1 -1
  169. package/core/schemas/builders/object/object.js +31 -3
  170. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  171. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  172. package/core/schemas/builders/object/property.js +2 -3
  173. package/core/schemas/builders/object/types.d.ts +16 -11
  174. package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  175. package/core/schemas/builders/object-like/types.d.ts +1 -1
  176. package/core/schemas/builders/record/record.js +2 -4
  177. package/core/schemas/builders/record/types.d.ts +2 -2
  178. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  179. package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  180. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  181. package/core/schemas/builders/set/set.js +1 -2
  182. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  183. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  184. package/core/schemas/builders/union/discriminant.js +1 -2
  185. package/core/schemas/builders/union/types.d.ts +6 -6
  186. package/core/schemas/builders/union/union.d.ts +1 -1
  187. package/core/schemas/builders/union/union.js +1 -2
  188. package/core/schemas/utils/MaybePromise.d.ts +1 -1
  189. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  190. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  191. package/core/schemas/utils/entries.d.ts +1 -1
  192. package/core/schemas/utils/entries.js +1 -2
  193. package/core/schemas/utils/filterObject.d.ts +1 -1
  194. package/core/schemas/utils/filterObject.js +1 -2
  195. package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
  196. package/core/schemas/utils/isPlainObject.js +1 -2
  197. package/core/schemas/utils/keys.d.ts +1 -1
  198. package/core/schemas/utils/keys.js +1 -2
  199. package/core/schemas/utils/maybeSkipValidation.js +1 -2
  200. package/core/schemas/utils/partition.js +1 -2
  201. package/core/streaming-fetcher/Stream.d.ts +0 -1
  202. package/core/streaming-fetcher/Stream.js +20 -21
  203. package/dist/Client.d.ts +14 -4
  204. package/dist/Client.js +16 -6
  205. package/dist/api/errors/ForbiddenError.d.ts +8 -0
  206. package/dist/api/errors/ForbiddenError.js +51 -0
  207. package/dist/api/errors/InternalServerError.js +17 -7
  208. package/dist/api/errors/NotFoundError.js +17 -7
  209. package/dist/api/errors/UnauthorizedError.d.ts +8 -0
  210. package/dist/api/errors/UnauthorizedError.js +51 -0
  211. package/dist/api/errors/UnprocessableEntityError.js +17 -7
  212. package/dist/api/errors/index.d.ts +2 -0
  213. package/dist/api/errors/index.js +2 -0
  214. package/dist/api/resources/automations/client/Client.d.ts +91 -0
  215. package/dist/api/resources/automations/client/Client.js +429 -0
  216. package/dist/api/resources/automations/client/index.d.ts +1 -0
  217. package/dist/api/resources/automations/client/index.js +17 -0
  218. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +19 -0
  219. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +5 -0
  220. package/dist/api/resources/automations/client/requests/index.d.ts +1 -0
  221. package/dist/api/resources/automations/client/requests/index.js +2 -0
  222. package/dist/api/resources/automations/index.d.ts +1 -0
  223. package/dist/api/resources/automations/index.js +17 -0
  224. package/dist/api/resources/files/client/Client.d.ts +69 -0
  225. package/dist/api/resources/files/client/Client.js +286 -0
  226. package/dist/api/resources/files/client/index.d.ts +1 -0
  227. package/dist/api/resources/files/client/index.js +17 -0
  228. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +20 -0
  229. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.js +5 -0
  230. package/dist/api/resources/files/client/requests/FilesListRequest.d.ts +24 -0
  231. package/dist/api/resources/files/client/requests/FilesListRequest.js +5 -0
  232. package/dist/api/resources/files/client/requests/index.d.ts +2 -0
  233. package/dist/api/resources/files/client/requests/index.js +2 -0
  234. package/dist/api/resources/files/index.d.ts +2 -0
  235. package/dist/api/resources/files/index.js +18 -0
  236. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +13 -0
  237. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +12 -0
  238. package/dist/api/resources/files/types/index.d.ts +1 -0
  239. package/dist/api/resources/files/types/index.js +17 -0
  240. package/dist/api/resources/index.d.ts +5 -0
  241. package/dist/api/resources/index.js +23 -8
  242. package/dist/api/resources/profiles/client/Client.d.ts +4 -0
  243. package/dist/api/resources/profiles/client/Client.js +23 -21
  244. package/dist/api/resources/requests/client/Client.d.ts +4 -0
  245. package/dist/api/resources/requests/client/Client.js +21 -19
  246. package/dist/api/resources/sessions/client/Client.d.ts +15 -1
  247. package/dist/api/resources/sessions/client/Client.js +98 -88
  248. package/dist/api/resources/sessions/client/requests/SessionsEventsRequest.d.ts +7 -0
  249. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  250. package/dist/api/resources/sessions/types/SessionsListRequestStatus.d.ts +1 -1
  251. package/dist/api/resources/sessions/types/index.d.ts +1 -1
  252. package/dist/api/resources/sessions/types/index.js +1 -1
  253. package/dist/api/resources/windows/client/Client.d.ts +142 -0
  254. package/dist/api/resources/windows/client/Client.js +700 -199
  255. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  256. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  257. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +23 -0
  258. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +5 -0
  259. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +27 -0
  260. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +5 -0
  261. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  262. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  263. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  264. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  265. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  266. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  267. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  268. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  269. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  270. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  271. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  272. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  273. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  274. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  275. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  276. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  277. package/dist/api/resources/windows/client/requests/index.d.ts +11 -0
  278. package/dist/api/resources/windows/types/CreateWindowInputV1BodyWaitUntil.d.ts +1 -1
  279. package/dist/api/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.d.ts +1 -1
  280. package/dist/api/types/AsyncConfig.d.ts +7 -0
  281. package/dist/api/types/AsyncConfig.js +5 -0
  282. package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +9 -0
  283. package/dist/api/types/AsyncSessionAiResponseEnvelope.js +5 -0
  284. package/dist/api/types/AutomationOutput.d.ts +10 -0
  285. package/dist/api/types/AutomationOutput.js +5 -0
  286. package/dist/api/types/BrowserWaitNavigationConfigWaitUntil.d.ts +1 -1
  287. package/dist/api/types/ClickConfigClickType.d.ts +1 -1
  288. package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +4 -0
  289. package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +5 -0
  290. package/dist/api/types/CreateFileV1.d.ts +24 -0
  291. package/dist/api/types/CreateFileV1.js +5 -0
  292. package/dist/api/types/CreateFileV1FileType.d.ts +13 -0
  293. package/dist/api/types/CreateFileV1FileType.js +12 -0
  294. package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +4 -0
  295. package/dist/api/types/DeleteAutomationOutputWrapperBody.js +5 -0
  296. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +10 -0
  297. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +5 -0
  298. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +10 -0
  299. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +5 -0
  300. package/dist/api/types/ExtensionConfigurationOutput.d.ts +13 -0
  301. package/dist/api/types/ExtensionConfigurationOutput.js +5 -0
  302. package/dist/api/types/ExternalFile.d.ts +33 -0
  303. package/dist/api/types/ExternalFile.js +5 -0
  304. package/dist/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +1 -1
  305. package/dist/api/types/FilesResponse.d.ts +10 -0
  306. package/dist/api/types/FilesResponse.js +5 -0
  307. package/dist/api/types/FilesWithPagination.d.ts +10 -0
  308. package/dist/api/types/FilesWithPagination.js +5 -0
  309. package/dist/api/types/GetFileV1.d.ts +24 -0
  310. package/dist/api/types/GetFileV1.js +5 -0
  311. package/dist/api/types/GetFileV1FileType.d.ts +13 -0
  312. package/dist/api/types/GetFileV1FileType.js +12 -0
  313. package/dist/api/types/ListAutomationsOutput.d.ts +7 -0
  314. package/dist/api/types/ListAutomationsOutput.js +5 -0
  315. package/dist/api/types/MonitorConfigIncludeVisualAnalysis.d.ts +1 -1
  316. package/dist/api/types/Proxy.d.ts +1 -1
  317. package/dist/api/types/SessionConfigV1Proxy.d.ts +1 -1
  318. package/dist/api/types/StatusMessageStatus.d.ts +1 -1
  319. package/dist/api/types/VisualAnalysisConfigPartitionDirection.d.ts +1 -1
  320. package/dist/api/types/VisualAnalysisConfigResultSelectionStrategy.d.ts +1 -1
  321. package/dist/api/types/VisualAnalysisConfigScope.d.ts +1 -1
  322. package/dist/api/types/index.d.ts +26 -0
  323. package/dist/api/types/index.js +26 -0
  324. package/dist/core/auth/BearerToken.d.ts +1 -1
  325. package/dist/core/fetcher/APIResponse.d.ts +1 -1
  326. package/dist/core/fetcher/Fetcher.d.ts +3 -3
  327. package/dist/core/fetcher/Fetcher.js +6 -5
  328. package/dist/core/fetcher/Supplier.d.ts +1 -1
  329. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  330. package/dist/core/fetcher/createRequestUrl.js +1 -2
  331. package/dist/core/fetcher/getFetchFn.js +18 -9
  332. package/dist/core/fetcher/getHeader.js +1 -2
  333. package/dist/core/fetcher/getRequestBody.js +5 -5
  334. package/dist/core/fetcher/getResponseBody.js +4 -2
  335. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  336. package/dist/core/fetcher/requestWithRetries.js +17 -9
  337. package/dist/core/fetcher/signals.d.ts +0 -1
  338. package/dist/core/fetcher/signals.js +2 -3
  339. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
  340. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
  341. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -2
  342. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  343. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -2
  344. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
  345. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  346. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +19 -10
  347. package/dist/core/index.js +17 -7
  348. package/dist/core/json.d.ts +15 -0
  349. package/dist/core/json.js +24 -0
  350. package/dist/core/runtime/runtime.d.ts +1 -1
  351. package/dist/core/runtime/runtime.js +51 -41
  352. package/dist/core/schemas/Schema.d.ts +8 -5
  353. package/dist/core/schemas/Schema.js +3 -0
  354. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  355. package/dist/core/schemas/builders/bigint/bigint.js +53 -0
  356. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  357. package/dist/core/schemas/builders/bigint/index.js +5 -0
  358. package/dist/core/schemas/builders/date/date.js +1 -2
  359. package/dist/core/schemas/builders/enum/enum.js +1 -2
  360. package/dist/core/schemas/builders/index.d.ts +1 -0
  361. package/dist/core/schemas/builders/index.js +1 -0
  362. package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
  363. package/dist/core/schemas/builders/lazy/lazy.js +3 -4
  364. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
  365. package/dist/core/schemas/builders/list/list.js +1 -2
  366. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  367. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  368. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  369. package/dist/core/schemas/builders/object/object.js +31 -3
  370. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  371. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  372. package/dist/core/schemas/builders/object/property.js +2 -3
  373. package/dist/core/schemas/builders/object/types.d.ts +16 -11
  374. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  375. package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
  376. package/dist/core/schemas/builders/record/record.js +2 -4
  377. package/dist/core/schemas/builders/record/types.d.ts +2 -2
  378. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  379. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  380. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  381. package/dist/core/schemas/builders/set/set.js +1 -2
  382. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  383. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  384. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  385. package/dist/core/schemas/builders/union/types.d.ts +6 -6
  386. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  387. package/dist/core/schemas/builders/union/union.js +1 -2
  388. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
  389. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  390. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  391. package/dist/core/schemas/utils/entries.d.ts +1 -1
  392. package/dist/core/schemas/utils/entries.js +1 -2
  393. package/dist/core/schemas/utils/filterObject.d.ts +1 -1
  394. package/dist/core/schemas/utils/filterObject.js +1 -2
  395. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
  396. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  397. package/dist/core/schemas/utils/keys.d.ts +1 -1
  398. package/dist/core/schemas/utils/keys.js +1 -2
  399. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
  400. package/dist/core/schemas/utils/partition.js +1 -2
  401. package/dist/core/streaming-fetcher/Stream.d.ts +0 -1
  402. package/dist/core/streaming-fetcher/Stream.js +20 -21
  403. package/dist/environments.d.ts +1 -1
  404. package/dist/errors/AirtopError.js +2 -1
  405. package/dist/errors/AirtopTimeoutError.d.ts +1 -1
  406. package/dist/errors/AirtopTimeoutError.js +2 -2
  407. package/dist/index.js +17 -7
  408. package/dist/live-view/types.d.ts +1 -1
  409. package/dist/live-view/types.js +1 -1
  410. package/dist/serialization/resources/automations/client/index.d.ts +1 -0
  411. package/dist/serialization/resources/automations/client/index.js +17 -0
  412. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +14 -0
  413. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +45 -0
  414. package/dist/serialization/resources/automations/client/requests/index.d.ts +1 -0
  415. package/dist/serialization/resources/automations/client/requests/index.js +5 -0
  416. package/dist/serialization/resources/automations/index.d.ts +1 -0
  417. package/dist/serialization/resources/automations/index.js +17 -0
  418. package/dist/serialization/resources/files/client/index.d.ts +1 -0
  419. package/dist/serialization/resources/files/client/index.js +17 -0
  420. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +16 -0
  421. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.js +47 -0
  422. package/dist/serialization/resources/files/client/requests/index.d.ts +1 -0
  423. package/dist/serialization/resources/files/client/requests/index.js +5 -0
  424. package/dist/serialization/resources/files/index.d.ts +2 -0
  425. package/dist/serialization/resources/files/index.js +18 -0
  426. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +10 -0
  427. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +41 -0
  428. package/dist/serialization/resources/files/types/index.d.ts +1 -0
  429. package/dist/serialization/resources/files/types/index.js +17 -0
  430. package/dist/serialization/resources/index.d.ts +5 -0
  431. package/dist/serialization/resources/index.js +23 -8
  432. package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +17 -7
  433. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  434. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +19 -9
  435. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +17 -7
  436. package/dist/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +17 -7
  437. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +17 -7
  438. package/dist/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +17 -7
  439. package/dist/serialization/resources/sessions/types/SessionsListRequestStatus.js +17 -7
  440. package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
  441. package/dist/serialization/resources/sessions/types/index.js +1 -1
  442. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  443. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  444. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +18 -0
  445. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +49 -0
  446. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +18 -0
  447. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +49 -0
  448. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  449. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  450. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  451. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  452. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  453. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  454. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  455. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  456. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  457. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  458. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  459. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  460. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  461. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  462. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  463. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  464. package/dist/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +17 -7
  465. package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.js +17 -7
  466. package/dist/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +17 -7
  467. package/dist/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +17 -7
  468. package/dist/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +17 -7
  469. package/dist/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +17 -7
  470. package/dist/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +17 -7
  471. package/dist/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +17 -7
  472. package/dist/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +17 -7
  473. package/dist/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +17 -7
  474. package/dist/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +17 -7
  475. package/dist/serialization/resources/windows/client/requests/index.d.ts +11 -0
  476. package/dist/serialization/resources/windows/client/requests/index.js +23 -1
  477. package/dist/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +17 -7
  478. package/dist/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +17 -7
  479. package/dist/serialization/types/AiPromptResponse.js +17 -7
  480. package/dist/serialization/types/AiResponseEnvelope.js +17 -7
  481. package/dist/serialization/types/AirtopProxyConfiguration.js +17 -7
  482. package/dist/serialization/types/AsyncConfig.d.ts +12 -0
  483. package/dist/serialization/types/AsyncConfig.js +43 -0
  484. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +15 -0
  485. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +46 -0
  486. package/dist/serialization/types/AutomationOutput.d.ts +16 -0
  487. package/dist/serialization/types/AutomationOutput.js +47 -0
  488. package/dist/serialization/types/BrowserWaitNavigationConfig.js +17 -7
  489. package/dist/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +17 -7
  490. package/dist/serialization/types/ClickConfig.js +17 -7
  491. package/dist/serialization/types/ClickConfigClickType.js +17 -7
  492. package/dist/serialization/types/ClientProvidedResponseMetadata.js +17 -7
  493. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +10 -0
  494. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +41 -0
  495. package/dist/serialization/types/CreateFileV1.d.ts +21 -0
  496. package/dist/serialization/types/CreateFileV1.js +52 -0
  497. package/dist/serialization/types/CreateFileV1FileType.d.ts +10 -0
  498. package/dist/serialization/types/CreateFileV1FileType.js +41 -0
  499. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +10 -0
  500. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +41 -0
  501. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +18 -0
  502. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +49 -0
  503. package/dist/serialization/types/EnvelopeDefaultMeta.js +17 -7
  504. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +18 -0
  505. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +49 -0
  506. package/dist/serialization/types/ErrorBody.js +17 -7
  507. package/dist/serialization/types/ErrorDetail.js +17 -7
  508. package/dist/serialization/types/ErrorMessage.js +17 -7
  509. package/dist/serialization/types/ErrorModel.js +17 -7
  510. package/dist/serialization/types/ExternalFile.d.ts +25 -0
  511. package/dist/serialization/types/ExternalFile.js +56 -0
  512. package/dist/serialization/types/ExternalSessionAiResponseMetadata.js +17 -7
  513. package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.js +17 -7
  514. package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.js +17 -7
  515. package/dist/serialization/types/ExternalSessionConfig.js +17 -7
  516. package/dist/serialization/types/ExternalSessionWithConnectionInfo.js +17 -7
  517. package/dist/serialization/types/FilesResponse.d.ts +18 -0
  518. package/dist/serialization/types/FilesResponse.js +49 -0
  519. package/dist/serialization/types/FilesWithPagination.d.ts +15 -0
  520. package/dist/serialization/types/FilesWithPagination.js +46 -0
  521. package/dist/serialization/types/GetFileV1.d.ts +21 -0
  522. package/dist/serialization/types/GetFileV1.js +52 -0
  523. package/dist/serialization/types/GetFileV1FileType.d.ts +10 -0
  524. package/dist/serialization/types/GetFileV1FileType.js +41 -0
  525. package/dist/serialization/types/IntervalMonitorConfig.js +17 -7
  526. package/dist/serialization/types/Issue.js +17 -7
  527. package/dist/serialization/types/ListAutomationsOutput.d.ts +13 -0
  528. package/dist/serialization/types/ListAutomationsOutput.js +44 -0
  529. package/dist/serialization/types/MicroInteractionConfig.js +17 -7
  530. package/dist/serialization/types/MicroInteractionConfigWithExperimental.js +17 -7
  531. package/dist/serialization/types/MicroInteractionExperimentalConfig.js +17 -7
  532. package/dist/serialization/types/MonitorConfig.js +17 -7
  533. package/dist/serialization/types/MonitorConfigIncludeVisualAnalysis.js +17 -7
  534. package/dist/serialization/types/OperationOutcome.js +17 -7
  535. package/dist/serialization/types/OperationOutcomeResponse.js +17 -7
  536. package/dist/serialization/types/PageQueryConfig.js +17 -7
  537. package/dist/serialization/types/PageQueryExperimentalConfig.js +17 -7
  538. package/dist/serialization/types/PaginatedExtractionConfig.js +17 -7
  539. package/dist/serialization/types/PaginatedExtractionExperimentalConfig.js +17 -7
  540. package/dist/serialization/types/Pagination.js +17 -7
  541. package/dist/serialization/types/Proxy.js +17 -7
  542. package/dist/serialization/types/ProxyConfigurationKind.js +17 -7
  543. package/dist/serialization/types/ProxyCredentials.js +17 -7
  544. package/dist/serialization/types/RequestStatusResponse.js +17 -7
  545. package/dist/serialization/types/ScrapeConfig.js +17 -7
  546. package/dist/serialization/types/ScrapeResponse.js +17 -7
  547. package/dist/serialization/types/ScrapeResponseContent.js +17 -7
  548. package/dist/serialization/types/ScrapeResponseEnvelope.js +17 -7
  549. package/dist/serialization/types/ScrapeResponseOutput.js +17 -7
  550. package/dist/serialization/types/ScreenshotConfig.js +17 -7
  551. package/dist/serialization/types/ScreenshotMetadata.js +17 -7
  552. package/dist/serialization/types/ScreenshotRequestConfig.js +17 -7
  553. package/dist/serialization/types/ScrollByConfig.js +17 -7
  554. package/dist/serialization/types/ScrollToEdgeConfig.js +17 -7
  555. package/dist/serialization/types/SessionConfigV1.js +17 -7
  556. package/dist/serialization/types/SessionConfigV1Proxy.js +17 -7
  557. package/dist/serialization/types/SessionEventMessage.js +17 -7
  558. package/dist/serialization/types/SessionPageQueryHandlerRequestBody.js +17 -7
  559. package/dist/serialization/types/SessionResponse.js +17 -7
  560. package/dist/serialization/types/SessionsResponse.js +17 -7
  561. package/dist/serialization/types/SessionsWithPagination.js +17 -7
  562. package/dist/serialization/types/StatusMessage.js +17 -7
  563. package/dist/serialization/types/StatusMessageStatus.js +17 -7
  564. package/dist/serialization/types/SummaryConfig.js +17 -7
  565. package/dist/serialization/types/SummaryExperimentalConfig.js +17 -7
  566. package/dist/serialization/types/VisualAnalysisConfig.js +17 -7
  567. package/dist/serialization/types/VisualAnalysisConfigPartitionDirection.js +17 -7
  568. package/dist/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +17 -7
  569. package/dist/serialization/types/VisualAnalysisConfigScope.js +17 -7
  570. package/dist/serialization/types/Window.js +17 -7
  571. package/dist/serialization/types/WindowEventMessage.js +17 -7
  572. package/dist/serialization/types/WindowId.js +17 -7
  573. package/dist/serialization/types/WindowIdResponse.js +17 -7
  574. package/dist/serialization/types/WindowResponse.js +17 -7
  575. package/dist/serialization/types/index.d.ts +26 -0
  576. package/dist/serialization/types/index.js +26 -0
  577. package/dist/utils/batch-operate/SessionQueue.js +2 -2
  578. package/dist/utils/batch-operate/WindowQueue.js +2 -2
  579. package/dist/utils/batch-operate/batch-util.d.ts +1 -1
  580. package/dist/utils/batch-operate/types.d.ts +5 -5
  581. package/dist/utils/process-screenshots.d.ts +1 -2
  582. package/dist/utils/process-screenshots.js +1 -2
  583. package/dist/version.d.ts +1 -0
  584. package/dist/version.js +4 -0
  585. package/dist/wrapper/AirtopClient.d.ts +5 -2
  586. package/dist/wrapper/AirtopClient.js +24 -8
  587. package/dist/wrapper/AirtopFiles.d.ts +38 -0
  588. package/dist/wrapper/AirtopFiles.js +151 -0
  589. package/dist/wrapper/AirtopRequests.js +2 -2
  590. package/dist/wrapper/AirtopSessions.js +7 -5
  591. package/dist/wrapper/AirtopWindows.d.ts +1 -1
  592. package/dist/wrapper/AirtopWindows.js +22 -12
  593. package/environments.d.ts +1 -1
  594. package/errors/AirtopError.js +2 -1
  595. package/errors/AirtopTimeoutError.d.ts +1 -1
  596. package/errors/AirtopTimeoutError.js +2 -2
  597. package/index.js +17 -7
  598. package/{jest.config.js → jest.config.mjs} +4 -1
  599. package/live-view/types.d.ts +1 -1
  600. package/live-view/types.js +1 -1
  601. package/package.json +18 -14
  602. package/reference.md +2009 -175
  603. package/scripts/rename-to-esm-files.js +115 -0
  604. package/serialization/resources/automations/client/index.d.ts +1 -0
  605. package/serialization/resources/automations/client/index.js +17 -0
  606. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +14 -0
  607. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +45 -0
  608. package/serialization/resources/automations/client/requests/index.d.ts +1 -0
  609. package/serialization/resources/automations/client/requests/index.js +5 -0
  610. package/serialization/resources/automations/index.d.ts +1 -0
  611. package/serialization/resources/automations/index.js +17 -0
  612. package/serialization/resources/files/client/index.d.ts +1 -0
  613. package/serialization/resources/files/client/index.js +17 -0
  614. package/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +16 -0
  615. package/serialization/resources/files/client/requests/CreateFileRestInputV1.js +47 -0
  616. package/serialization/resources/files/client/requests/index.d.ts +1 -0
  617. package/serialization/resources/files/client/requests/index.js +5 -0
  618. package/serialization/resources/files/index.d.ts +2 -0
  619. package/serialization/resources/files/index.js +18 -0
  620. package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +10 -0
  621. package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +41 -0
  622. package/serialization/resources/files/types/index.d.ts +1 -0
  623. package/serialization/resources/files/types/index.js +17 -0
  624. package/serialization/resources/index.d.ts +5 -0
  625. package/serialization/resources/index.js +23 -8
  626. package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +17 -7
  627. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  628. package/serialization/resources/sessions/types/SessionsEventsResponse.js +19 -9
  629. package/serialization/resources/sessions/types/SessionsEventsResponseError.js +17 -7
  630. package/serialization/resources/sessions/types/SessionsEventsResponseSessionEvent.js +17 -7
  631. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +17 -7
  632. package/serialization/resources/sessions/types/SessionsEventsResponseWindowEvent.js +17 -7
  633. package/serialization/resources/sessions/types/SessionsListRequestStatus.js +17 -7
  634. package/serialization/resources/sessions/types/index.d.ts +1 -1
  635. package/serialization/resources/sessions/types/index.js +1 -1
  636. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  637. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  638. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +18 -0
  639. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +49 -0
  640. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +18 -0
  641. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +49 -0
  642. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  643. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  644. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  645. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  646. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  647. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  648. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  649. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  650. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  651. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  652. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  653. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  654. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  655. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  656. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  657. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  658. package/serialization/resources/windows/client/requests/CreateWindowInputV1Body.js +17 -7
  659. package/serialization/resources/windows/client/requests/ScrapeContentRequest.js +17 -7
  660. package/serialization/resources/windows/client/requests/SessionClickHandlerRequestBody.js +17 -7
  661. package/serialization/resources/windows/client/requests/SessionHoverHandlerRequestBody.js +17 -7
  662. package/serialization/resources/windows/client/requests/SessionMonitorHandlerRequestBody.js +17 -7
  663. package/serialization/resources/windows/client/requests/SessionPaginatedExtractionHandlerRequestBody.js +17 -7
  664. package/serialization/resources/windows/client/requests/SessionScreenshotHandlerRequestBody.js +17 -7
  665. package/serialization/resources/windows/client/requests/SessionScrollHandlerRequestBody.js +17 -7
  666. package/serialization/resources/windows/client/requests/SessionSummaryHandlerRequestBody.js +17 -7
  667. package/serialization/resources/windows/client/requests/SessionTypeHandlerRequestBody.js +17 -7
  668. package/serialization/resources/windows/client/requests/WindowLoadUrlV1Body.js +17 -7
  669. package/serialization/resources/windows/client/requests/index.d.ts +11 -0
  670. package/serialization/resources/windows/client/requests/index.js +23 -1
  671. package/serialization/resources/windows/types/CreateWindowInputV1BodyWaitUntil.js +17 -7
  672. package/serialization/resources/windows/types/WindowLoadUrlV1BodyWaitUntil.js +17 -7
  673. package/serialization/types/AiPromptResponse.js +17 -7
  674. package/serialization/types/AiResponseEnvelope.js +17 -7
  675. package/serialization/types/AirtopProxyConfiguration.js +17 -7
  676. package/serialization/types/AsyncConfig.d.ts +12 -0
  677. package/serialization/types/AsyncConfig.js +43 -0
  678. package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +15 -0
  679. package/serialization/types/AsyncSessionAiResponseEnvelope.js +46 -0
  680. package/serialization/types/AutomationOutput.d.ts +16 -0
  681. package/serialization/types/AutomationOutput.js +47 -0
  682. package/serialization/types/BrowserWaitNavigationConfig.js +17 -7
  683. package/serialization/types/BrowserWaitNavigationConfigWaitUntil.js +17 -7
  684. package/serialization/types/ClickConfig.js +17 -7
  685. package/serialization/types/ClickConfigClickType.js +17 -7
  686. package/serialization/types/ClientProvidedResponseMetadata.js +17 -7
  687. package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +10 -0
  688. package/serialization/types/CreateAutomationRequestBodyConfiguration.js +41 -0
  689. package/serialization/types/CreateFileV1.d.ts +21 -0
  690. package/serialization/types/CreateFileV1.js +52 -0
  691. package/serialization/types/CreateFileV1FileType.d.ts +10 -0
  692. package/serialization/types/CreateFileV1FileType.js +41 -0
  693. package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +10 -0
  694. package/serialization/types/DeleteAutomationOutputWrapperBody.js +41 -0
  695. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +18 -0
  696. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +49 -0
  697. package/serialization/types/EnvelopeDefaultMeta.js +17 -7
  698. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +18 -0
  699. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +49 -0
  700. package/serialization/types/ErrorBody.js +17 -7
  701. package/serialization/types/ErrorDetail.js +17 -7
  702. package/serialization/types/ErrorMessage.js +17 -7
  703. package/serialization/types/ErrorModel.js +17 -7
  704. package/serialization/types/ExternalFile.d.ts +25 -0
  705. package/serialization/types/ExternalFile.js +56 -0
  706. package/serialization/types/ExternalSessionAiResponseMetadata.js +17 -7
  707. package/serialization/types/ExternalSessionAiResponseMetadataStatus.js +17 -7
  708. package/serialization/types/ExternalSessionAiResponseMetadataUsage.js +17 -7
  709. package/serialization/types/ExternalSessionConfig.js +17 -7
  710. package/serialization/types/ExternalSessionWithConnectionInfo.js +17 -7
  711. package/serialization/types/FilesResponse.d.ts +18 -0
  712. package/serialization/types/FilesResponse.js +49 -0
  713. package/serialization/types/FilesWithPagination.d.ts +15 -0
  714. package/serialization/types/FilesWithPagination.js +46 -0
  715. package/serialization/types/GetFileV1.d.ts +21 -0
  716. package/serialization/types/GetFileV1.js +52 -0
  717. package/serialization/types/GetFileV1FileType.d.ts +10 -0
  718. package/serialization/types/GetFileV1FileType.js +41 -0
  719. package/serialization/types/IntervalMonitorConfig.js +17 -7
  720. package/serialization/types/Issue.js +17 -7
  721. package/serialization/types/ListAutomationsOutput.d.ts +13 -0
  722. package/serialization/types/ListAutomationsOutput.js +44 -0
  723. package/serialization/types/MicroInteractionConfig.js +17 -7
  724. package/serialization/types/MicroInteractionConfigWithExperimental.js +17 -7
  725. package/serialization/types/MicroInteractionExperimentalConfig.js +17 -7
  726. package/serialization/types/MonitorConfig.js +17 -7
  727. package/serialization/types/MonitorConfigIncludeVisualAnalysis.js +17 -7
  728. package/serialization/types/OperationOutcome.js +17 -7
  729. package/serialization/types/OperationOutcomeResponse.js +17 -7
  730. package/serialization/types/PageQueryConfig.js +17 -7
  731. package/serialization/types/PageQueryExperimentalConfig.js +17 -7
  732. package/serialization/types/PaginatedExtractionConfig.js +17 -7
  733. package/serialization/types/PaginatedExtractionExperimentalConfig.js +17 -7
  734. package/serialization/types/Pagination.js +17 -7
  735. package/serialization/types/Proxy.js +17 -7
  736. package/serialization/types/ProxyConfigurationKind.js +17 -7
  737. package/serialization/types/ProxyCredentials.js +17 -7
  738. package/serialization/types/RequestStatusResponse.js +17 -7
  739. package/serialization/types/ScrapeConfig.js +17 -7
  740. package/serialization/types/ScrapeResponse.js +17 -7
  741. package/serialization/types/ScrapeResponseContent.js +17 -7
  742. package/serialization/types/ScrapeResponseEnvelope.js +17 -7
  743. package/serialization/types/ScrapeResponseOutput.js +17 -7
  744. package/serialization/types/ScreenshotConfig.js +17 -7
  745. package/serialization/types/ScreenshotMetadata.js +17 -7
  746. package/serialization/types/ScreenshotRequestConfig.js +17 -7
  747. package/serialization/types/ScrollByConfig.js +17 -7
  748. package/serialization/types/ScrollToEdgeConfig.js +17 -7
  749. package/serialization/types/SessionConfigV1.js +17 -7
  750. package/serialization/types/SessionConfigV1Proxy.js +17 -7
  751. package/serialization/types/SessionEventMessage.js +17 -7
  752. package/serialization/types/SessionPageQueryHandlerRequestBody.js +17 -7
  753. package/serialization/types/SessionResponse.js +17 -7
  754. package/serialization/types/SessionsResponse.js +17 -7
  755. package/serialization/types/SessionsWithPagination.js +17 -7
  756. package/serialization/types/StatusMessage.js +17 -7
  757. package/serialization/types/StatusMessageStatus.js +17 -7
  758. package/serialization/types/SummaryConfig.js +17 -7
  759. package/serialization/types/SummaryExperimentalConfig.js +17 -7
  760. package/serialization/types/VisualAnalysisConfig.js +17 -7
  761. package/serialization/types/VisualAnalysisConfigPartitionDirection.js +17 -7
  762. package/serialization/types/VisualAnalysisConfigResultSelectionStrategy.js +17 -7
  763. package/serialization/types/VisualAnalysisConfigScope.js +17 -7
  764. package/serialization/types/Window.js +17 -7
  765. package/serialization/types/WindowEventMessage.js +17 -7
  766. package/serialization/types/WindowId.js +17 -7
  767. package/serialization/types/WindowIdResponse.js +17 -7
  768. package/serialization/types/WindowResponse.js +17 -7
  769. package/serialization/types/index.d.ts +26 -0
  770. package/serialization/types/index.js +26 -0
  771. package/utils/batch-operate/SessionQueue.js +2 -2
  772. package/utils/batch-operate/WindowQueue.js +2 -2
  773. package/utils/batch-operate/batch-util.d.ts +1 -1
  774. package/utils/batch-operate/types.d.ts +5 -5
  775. package/utils/process-screenshots.d.ts +1 -2
  776. package/utils/process-screenshots.js +1 -2
  777. package/version.d.ts +1 -0
  778. package/version.js +4 -0
  779. package/wrapper/AirtopClient.d.ts +5 -2
  780. package/wrapper/AirtopClient.js +24 -8
  781. package/wrapper/AirtopFiles.d.ts +38 -0
  782. package/wrapper/AirtopFiles.js +151 -0
  783. package/wrapper/AirtopRequests.js +2 -2
  784. package/wrapper/AirtopSessions.js +7 -5
  785. package/wrapper/AirtopWindows.d.ts +1 -1
  786. package/wrapper/AirtopWindows.js +22 -12
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  }) : function(o, v) {
19
19
  o["default"] = v;
20
20
  });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
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
+ })();
28
38
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
39
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
40
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -48,6 +58,617 @@ class Windows {
48
58
  constructor(_options) {
49
59
  this._options = _options;
50
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.35", "User-Agent": "@airtop/sdk/0.1.35", "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.35", "User-Agent": "@airtop/sdk/0.1.35", "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
+ * Execute an automation of a browser window 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.AsyncExecuteAutomationRequest} request
179
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
180
+ *
181
+ * @example
182
+ * await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
183
+ * automationId: "automationId"
184
+ * })
185
+ */
186
+ asyncExecuteAutomation(sessionId, windowId, request, requestOptions) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ var _a, _b, _c;
189
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
190
+ 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`),
191
+ method: "POST",
192
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
+ contentType: "application/json",
194
+ requestType: "json",
195
+ body: serializers.AsyncExecuteAutomationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
196
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
197
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
198
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
199
+ });
200
+ if (_response.ok) {
201
+ return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
202
+ unrecognizedObjectKeys: "passthrough",
203
+ allowUnrecognizedUnionMembers: true,
204
+ allowUnrecognizedEnumValues: true,
205
+ skipValidation: true,
206
+ breadcrumbsPrefix: ["response"],
207
+ });
208
+ }
209
+ if (_response.error.reason === "status-code") {
210
+ throw new errors.AirtopError({
211
+ statusCode: _response.error.statusCode,
212
+ body: _response.error.body,
213
+ });
214
+ }
215
+ switch (_response.error.reason) {
216
+ case "non-json":
217
+ throw new errors.AirtopError({
218
+ statusCode: _response.error.statusCode,
219
+ body: _response.error.rawBody,
220
+ });
221
+ case "timeout":
222
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/execute-automation.");
223
+ case "unknown":
224
+ throw new errors.AirtopError({
225
+ message: _response.error.errorMessage,
226
+ });
227
+ }
228
+ });
229
+ }
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.AsyncHoverRequest} request
234
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
235
+ *
236
+ * @example
237
+ * await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
238
+ * elementDescription: "The search box input in the top right corner"
239
+ * })
240
+ */
241
+ asyncHover(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)}/hover`),
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.35", "User-Agent": "@airtop/sdk/0.1.35", "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.AsyncHoverRequest.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}/hover.");
278
+ case "unknown":
279
+ throw new errors.AirtopError({
280
+ message: _response.error.errorMessage,
281
+ });
282
+ }
283
+ });
284
+ }
285
+ /**
286
+ * @param {string} sessionId - The session id for the window.
287
+ * @param {string} windowId - The Airtop window id of the browser window.
288
+ * @param {Airtop.AsyncMonitorRequest} request
289
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
290
+ *
291
+ * @example
292
+ * await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
293
+ * condition: "Determine if the user appears to be signed in to the website"
294
+ * })
295
+ */
296
+ asyncMonitor(sessionId, windowId, request, requestOptions) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ var _a, _b, _c;
299
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
300
+ 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`),
301
+ method: "POST",
302
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
+ contentType: "application/json",
304
+ requestType: "json",
305
+ body: serializers.AsyncMonitorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
306
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
307
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
308
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
309
+ });
310
+ if (_response.ok) {
311
+ return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
312
+ unrecognizedObjectKeys: "passthrough",
313
+ allowUnrecognizedUnionMembers: true,
314
+ allowUnrecognizedEnumValues: true,
315
+ skipValidation: true,
316
+ breadcrumbsPrefix: ["response"],
317
+ });
318
+ }
319
+ if (_response.error.reason === "status-code") {
320
+ throw new errors.AirtopError({
321
+ statusCode: _response.error.statusCode,
322
+ body: _response.error.body,
323
+ });
324
+ }
325
+ switch (_response.error.reason) {
326
+ case "non-json":
327
+ throw new errors.AirtopError({
328
+ statusCode: _response.error.statusCode,
329
+ body: _response.error.rawBody,
330
+ });
331
+ case "timeout":
332
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/monitor.");
333
+ case "unknown":
334
+ throw new errors.AirtopError({
335
+ message: _response.error.errorMessage,
336
+ });
337
+ }
338
+ });
339
+ }
340
+ /**
341
+ * @param {string} sessionId - The session id for the window.
342
+ * @param {string} windowId - The Airtop window id of the browser window.
343
+ * @param {Airtop.AsyncPageQueryRequest} request
344
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
345
+ *
346
+ * @example
347
+ * await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
348
+ * prompt: "What is the main idea of this page?"
349
+ * })
350
+ */
351
+ asyncPageQuery(sessionId, windowId, request, requestOptions) {
352
+ return __awaiter(this, void 0, void 0, function* () {
353
+ var _a, _b, _c;
354
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
355
+ 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`),
356
+ method: "POST",
357
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
358
+ contentType: "application/json",
359
+ requestType: "json",
360
+ body: serializers.AsyncPageQueryRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
361
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
362
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
363
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
364
+ });
365
+ if (_response.ok) {
366
+ return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
367
+ unrecognizedObjectKeys: "passthrough",
368
+ allowUnrecognizedUnionMembers: true,
369
+ allowUnrecognizedEnumValues: true,
370
+ skipValidation: true,
371
+ breadcrumbsPrefix: ["response"],
372
+ });
373
+ }
374
+ if (_response.error.reason === "status-code") {
375
+ throw new errors.AirtopError({
376
+ statusCode: _response.error.statusCode,
377
+ body: _response.error.body,
378
+ });
379
+ }
380
+ switch (_response.error.reason) {
381
+ case "non-json":
382
+ throw new errors.AirtopError({
383
+ statusCode: _response.error.statusCode,
384
+ body: _response.error.rawBody,
385
+ });
386
+ case "timeout":
387
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/page-query.");
388
+ case "unknown":
389
+ throw new errors.AirtopError({
390
+ message: _response.error.errorMessage,
391
+ });
392
+ }
393
+ });
394
+ }
395
+ /**
396
+ * @param {string} sessionId - The session id for the window.
397
+ * @param {string} windowId - The Airtop window id of the browser window.
398
+ * @param {Airtop.AsyncPaginatedExtractionRequest} request
399
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
400
+ *
401
+ * @example
402
+ * await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
403
+ * 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."
404
+ * })
405
+ */
406
+ asyncPaginatedExtraction(sessionId, windowId, request, requestOptions) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ var _a, _b, _c;
409
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
410
+ 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`),
411
+ method: "POST",
412
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
+ contentType: "application/json",
414
+ requestType: "json",
415
+ body: serializers.AsyncPaginatedExtractionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
416
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
417
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
418
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
419
+ });
420
+ if (_response.ok) {
421
+ return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
422
+ unrecognizedObjectKeys: "passthrough",
423
+ allowUnrecognizedUnionMembers: true,
424
+ allowUnrecognizedEnumValues: true,
425
+ skipValidation: true,
426
+ breadcrumbsPrefix: ["response"],
427
+ });
428
+ }
429
+ if (_response.error.reason === "status-code") {
430
+ throw new errors.AirtopError({
431
+ statusCode: _response.error.statusCode,
432
+ body: _response.error.body,
433
+ });
434
+ }
435
+ switch (_response.error.reason) {
436
+ case "non-json":
437
+ throw new errors.AirtopError({
438
+ statusCode: _response.error.statusCode,
439
+ body: _response.error.rawBody,
440
+ });
441
+ case "timeout":
442
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
443
+ case "unknown":
444
+ throw new errors.AirtopError({
445
+ message: _response.error.errorMessage,
446
+ });
447
+ }
448
+ });
449
+ }
450
+ /**
451
+ * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
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.AsyncPromptContentRequest} request
456
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
457
+ *
458
+ * @example
459
+ * await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
460
+ * prompt: "What is the main idea of this page?"
461
+ * })
462
+ */
463
+ asyncPromptContent(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)}/prompt-content`),
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.35", "User-Agent": "@airtop/sdk/0.1.35", "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.AsyncPromptContentRequest.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}/prompt-content.");
500
+ case "unknown":
501
+ throw new errors.AirtopError({
502
+ message: _response.error.errorMessage,
503
+ });
504
+ }
505
+ });
506
+ }
507
+ /**
508
+ * Take a screenshot of the current viewport of a browser window asynchronously
509
+ *
510
+ * @param {string} sessionId - The session id for the window.
511
+ * @param {string} windowId - The Airtop window id of the browser window.
512
+ * @param {Airtop.AsyncScreenshotRequest} request
513
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
514
+ *
515
+ * @example
516
+ * await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
517
+ */
518
+ asyncScreenshot(sessionId_1, windowId_1) {
519
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
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)}/screenshot`),
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.35", "User-Agent": "@airtop/sdk/0.1.35", "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.AsyncScreenshotRequest.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}/screenshot.");
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 and ask for a summary in the prompt instead.
564
+ *
565
+ * @param {string} sessionId - The session id for the window.
566
+ * @param {string} windowId - The Airtop window id of the browser window to summarize.
567
+ * @param {Airtop.AsyncSummarizeContentRequest} request
568
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
569
+ *
570
+ * @example
571
+ * await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
572
+ */
573
+ asyncSummarizeContent(sessionId_1, windowId_1) {
574
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
575
+ var _a, _b, _c;
576
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
577
+ 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`),
578
+ method: "POST",
579
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
580
+ contentType: "application/json",
581
+ requestType: "json",
582
+ body: serializers.AsyncSummarizeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
583
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
584
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
585
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
586
+ });
587
+ if (_response.ok) {
588
+ return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
589
+ unrecognizedObjectKeys: "passthrough",
590
+ allowUnrecognizedUnionMembers: true,
591
+ allowUnrecognizedEnumValues: true,
592
+ skipValidation: true,
593
+ breadcrumbsPrefix: ["response"],
594
+ });
595
+ }
596
+ if (_response.error.reason === "status-code") {
597
+ throw new errors.AirtopError({
598
+ statusCode: _response.error.statusCode,
599
+ body: _response.error.body,
600
+ });
601
+ }
602
+ switch (_response.error.reason) {
603
+ case "non-json":
604
+ throw new errors.AirtopError({
605
+ statusCode: _response.error.statusCode,
606
+ body: _response.error.rawBody,
607
+ });
608
+ case "timeout":
609
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/summarize-content.");
610
+ case "unknown":
611
+ throw new errors.AirtopError({
612
+ message: _response.error.errorMessage,
613
+ });
614
+ }
615
+ });
616
+ }
617
+ /**
618
+ * @param {string} sessionId - The session id for the window.
619
+ * @param {string} windowId - The Airtop window id of the browser window.
620
+ * @param {Airtop.AsyncTypeRequest} request
621
+ * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
622
+ *
623
+ * @example
624
+ * await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
625
+ * text: "Example text"
626
+ * })
627
+ */
628
+ asyncType(sessionId, windowId, request, requestOptions) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ var _a, _b, _c;
631
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
632
+ 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`),
633
+ method: "POST",
634
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
635
+ contentType: "application/json",
636
+ requestType: "json",
637
+ body: serializers.AsyncTypeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
638
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
639
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
640
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
641
+ });
642
+ if (_response.ok) {
643
+ return serializers.AsyncSessionAiResponseEnvelope.parseOrThrow(_response.body, {
644
+ unrecognizedObjectKeys: "passthrough",
645
+ allowUnrecognizedUnionMembers: true,
646
+ allowUnrecognizedEnumValues: true,
647
+ skipValidation: true,
648
+ breadcrumbsPrefix: ["response"],
649
+ });
650
+ }
651
+ if (_response.error.reason === "status-code") {
652
+ throw new errors.AirtopError({
653
+ statusCode: _response.error.statusCode,
654
+ body: _response.error.body,
655
+ });
656
+ }
657
+ switch (_response.error.reason) {
658
+ case "non-json":
659
+ throw new errors.AirtopError({
660
+ statusCode: _response.error.statusCode,
661
+ body: _response.error.rawBody,
662
+ });
663
+ case "timeout":
664
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /async/sessions/{sessionId}/windows/{windowId}/type.");
665
+ case "unknown":
666
+ throw new errors.AirtopError({
667
+ message: _response.error.errorMessage,
668
+ });
669
+ }
670
+ });
671
+ }
51
672
  /**
52
673
  * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
53
674
  *
@@ -58,21 +679,13 @@ class Windows {
58
679
  * @example
59
680
  * await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
60
681
  */
61
- create(sessionId, request = {}, requestOptions) {
62
- var _a, _b;
63
- return __awaiter(this, void 0, void 0, function* () {
682
+ create(sessionId_1) {
683
+ return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
684
+ var _a, _b, _c;
64
685
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
65
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows`),
686
+ 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`),
66
687
  method: "POST",
67
- headers: {
68
- Authorization: yield this._getAuthorizationHeader(),
69
- "X-Fern-Language": "JavaScript",
70
- "X-Fern-SDK-Name": "@airtop/sdk",
71
- "X-Fern-SDK-Version": "0.1.34",
72
- "User-Agent": "@airtop/sdk/0.1.34",
73
- "X-Fern-Runtime": core.RUNTIME.type,
74
- "X-Fern-Runtime-Version": core.RUNTIME.version,
75
- },
688
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
689
  contentType: "application/json",
77
690
  requestType: "json",
78
691
  body: serializers.CreateWindowInputV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -102,7 +715,7 @@ class Windows {
102
715
  body: _response.error.rawBody,
103
716
  });
104
717
  case "timeout":
105
- throw new errors.AirtopTimeoutError();
718
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows.");
106
719
  case "unknown":
107
720
  throw new errors.AirtopError({
108
721
  message: _response.error.errorMessage,
@@ -123,9 +736,9 @@ class Windows {
123
736
  * screenResolution: "1280x720"
124
737
  * })
125
738
  */
126
- getWindowInfo(sessionId, windowId, request = {}, requestOptions) {
127
- var _a, _b;
128
- return __awaiter(this, void 0, void 0, function* () {
739
+ getWindowInfo(sessionId_1, windowId_1) {
740
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
741
+ var _a, _b, _c;
129
742
  const { includeNavigationBar, disableResize, screenResolution } = request;
130
743
  const _queryParams = {};
131
744
  if (includeNavigationBar != null) {
@@ -138,17 +751,9 @@ class Windows {
138
751
  _queryParams["screenResolution"] = screenResolution;
139
752
  }
140
753
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
141
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
754
+ 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)}`),
142
755
  method: "GET",
143
- headers: {
144
- Authorization: yield this._getAuthorizationHeader(),
145
- "X-Fern-Language": "JavaScript",
146
- "X-Fern-SDK-Name": "@airtop/sdk",
147
- "X-Fern-SDK-Version": "0.1.34",
148
- "User-Agent": "@airtop/sdk/0.1.34",
149
- "X-Fern-Runtime": core.RUNTIME.type,
150
- "X-Fern-Runtime-Version": core.RUNTIME.version,
151
- },
756
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
757
  contentType: "application/json",
153
758
  queryParameters: _queryParams,
154
759
  requestType: "json",
@@ -178,7 +783,7 @@ class Windows {
178
783
  body: _response.error.rawBody,
179
784
  });
180
785
  case "timeout":
181
- throw new errors.AirtopTimeoutError();
786
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /sessions/{sessionId}/windows/{windowId}.");
182
787
  case "unknown":
183
788
  throw new errors.AirtopError({
184
789
  message: _response.error.errorMessage,
@@ -200,20 +805,12 @@ class Windows {
200
805
  * })
201
806
  */
202
807
  loadUrl(sessionId, windowId, request, requestOptions) {
203
- var _a, _b;
204
808
  return __awaiter(this, void 0, void 0, function* () {
809
+ var _a, _b, _c;
205
810
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
206
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
811
+ 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)}`),
207
812
  method: "POST",
208
- headers: {
209
- Authorization: yield this._getAuthorizationHeader(),
210
- "X-Fern-Language": "JavaScript",
211
- "X-Fern-SDK-Name": "@airtop/sdk",
212
- "X-Fern-SDK-Version": "0.1.34",
213
- "User-Agent": "@airtop/sdk/0.1.34",
214
- "X-Fern-Runtime": core.RUNTIME.type,
215
- "X-Fern-Runtime-Version": core.RUNTIME.version,
216
- },
813
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
217
814
  contentType: "application/json",
218
815
  requestType: "json",
219
816
  body: serializers.WindowLoadUrlV1Body.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -243,7 +840,7 @@ class Windows {
243
840
  body: _response.error.rawBody,
244
841
  });
245
842
  case "timeout":
246
- throw new errors.AirtopTimeoutError();
843
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}.");
247
844
  case "unknown":
248
845
  throw new errors.AirtopError({
249
846
  message: _response.error.errorMessage,
@@ -262,20 +859,12 @@ class Windows {
262
859
  * await client.windows.close("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430")
263
860
  */
264
861
  close(sessionId, windowId, requestOptions) {
265
- var _a, _b;
266
862
  return __awaiter(this, void 0, void 0, function* () {
863
+ var _a, _b, _c;
267
864
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
268
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}`),
865
+ 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)}`),
269
866
  method: "DELETE",
270
- headers: {
271
- Authorization: yield this._getAuthorizationHeader(),
272
- "X-Fern-Language": "JavaScript",
273
- "X-Fern-SDK-Name": "@airtop/sdk",
274
- "X-Fern-SDK-Version": "0.1.34",
275
- "User-Agent": "@airtop/sdk/0.1.34",
276
- "X-Fern-Runtime": core.RUNTIME.type,
277
- "X-Fern-Runtime-Version": core.RUNTIME.version,
278
- },
867
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
868
  contentType: "application/json",
280
869
  requestType: "json",
281
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -304,7 +893,7 @@ class Windows {
304
893
  body: _response.error.rawBody,
305
894
  });
306
895
  case "timeout":
307
- throw new errors.AirtopTimeoutError();
896
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling DELETE /sessions/{sessionId}/windows/{windowId}.");
308
897
  case "unknown":
309
898
  throw new errors.AirtopError({
310
899
  message: _response.error.errorMessage,
@@ -326,20 +915,12 @@ class Windows {
326
915
  * })
327
916
  */
328
917
  click(sessionId, windowId, request, requestOptions) {
329
- var _a, _b;
330
918
  return __awaiter(this, void 0, void 0, function* () {
919
+ var _a, _b, _c;
331
920
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
332
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/click`),
921
+ 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`),
333
922
  method: "POST",
334
- headers: {
335
- Authorization: yield this._getAuthorizationHeader(),
336
- "X-Fern-Language": "JavaScript",
337
- "X-Fern-SDK-Name": "@airtop/sdk",
338
- "X-Fern-SDK-Version": "0.1.34",
339
- "User-Agent": "@airtop/sdk/0.1.34",
340
- "X-Fern-Runtime": core.RUNTIME.type,
341
- "X-Fern-Runtime-Version": core.RUNTIME.version,
342
- },
923
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
343
924
  contentType: "application/json",
344
925
  requestType: "json",
345
926
  body: serializers.SessionClickHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -369,7 +950,7 @@ class Windows {
369
950
  body: _response.error.rawBody,
370
951
  });
371
952
  case "timeout":
372
- throw new errors.AirtopTimeoutError();
953
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/click.");
373
954
  case "unknown":
374
955
  throw new errors.AirtopError({
375
956
  message: _response.error.errorMessage,
@@ -391,20 +972,12 @@ class Windows {
391
972
  * })
392
973
  */
393
974
  hover(sessionId, windowId, request, requestOptions) {
394
- var _a, _b;
395
975
  return __awaiter(this, void 0, void 0, function* () {
976
+ var _a, _b, _c;
396
977
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
397
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/hover`),
978
+ 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`),
398
979
  method: "POST",
399
- headers: {
400
- Authorization: yield this._getAuthorizationHeader(),
401
- "X-Fern-Language": "JavaScript",
402
- "X-Fern-SDK-Name": "@airtop/sdk",
403
- "X-Fern-SDK-Version": "0.1.34",
404
- "User-Agent": "@airtop/sdk/0.1.34",
405
- "X-Fern-Runtime": core.RUNTIME.type,
406
- "X-Fern-Runtime-Version": core.RUNTIME.version,
407
- },
980
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
981
  contentType: "application/json",
409
982
  requestType: "json",
410
983
  body: serializers.SessionHoverHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -434,7 +1007,7 @@ class Windows {
434
1007
  body: _response.error.rawBody,
435
1008
  });
436
1009
  case "timeout":
437
- throw new errors.AirtopTimeoutError();
1010
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/hover.");
438
1011
  case "unknown":
439
1012
  throw new errors.AirtopError({
440
1013
  message: _response.error.errorMessage,
@@ -454,20 +1027,12 @@ class Windows {
454
1027
  * })
455
1028
  */
456
1029
  monitor(sessionId, windowId, request, requestOptions) {
457
- var _a, _b;
458
1030
  return __awaiter(this, void 0, void 0, function* () {
1031
+ var _a, _b, _c;
459
1032
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
460
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/monitor`),
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)}/monitor`),
461
1034
  method: "POST",
462
- headers: {
463
- Authorization: yield this._getAuthorizationHeader(),
464
- "X-Fern-Language": "JavaScript",
465
- "X-Fern-SDK-Name": "@airtop/sdk",
466
- "X-Fern-SDK-Version": "0.1.34",
467
- "User-Agent": "@airtop/sdk/0.1.34",
468
- "X-Fern-Runtime": core.RUNTIME.type,
469
- "X-Fern-Runtime-Version": core.RUNTIME.version,
470
- },
1035
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
471
1036
  contentType: "application/json",
472
1037
  requestType: "json",
473
1038
  body: serializers.SessionMonitorHandlerRequestBody.jsonOrThrow(request, {
@@ -499,7 +1064,7 @@ class Windows {
499
1064
  body: _response.error.rawBody,
500
1065
  });
501
1066
  case "timeout":
502
- throw new errors.AirtopTimeoutError();
1067
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/monitor.");
503
1068
  case "unknown":
504
1069
  throw new errors.AirtopError({
505
1070
  message: _response.error.errorMessage,
@@ -521,20 +1086,12 @@ class Windows {
521
1086
  * })
522
1087
  */
523
1088
  pageQuery(sessionId, windowId, request, requestOptions) {
524
- var _a, _b;
525
1089
  return __awaiter(this, void 0, void 0, function* () {
1090
+ var _a, _b, _c;
526
1091
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
527
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/page-query`),
1092
+ 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`),
528
1093
  method: "POST",
529
- headers: {
530
- Authorization: yield this._getAuthorizationHeader(),
531
- "X-Fern-Language": "JavaScript",
532
- "X-Fern-SDK-Name": "@airtop/sdk",
533
- "X-Fern-SDK-Version": "0.1.34",
534
- "User-Agent": "@airtop/sdk/0.1.34",
535
- "X-Fern-Runtime": core.RUNTIME.type,
536
- "X-Fern-Runtime-Version": core.RUNTIME.version,
537
- },
1094
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
538
1095
  contentType: "application/json",
539
1096
  requestType: "json",
540
1097
  body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
@@ -566,7 +1123,7 @@ class Windows {
566
1123
  body: _response.error.rawBody,
567
1124
  });
568
1125
  case "timeout":
569
- throw new errors.AirtopTimeoutError();
1126
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/page-query.");
570
1127
  case "unknown":
571
1128
  throw new errors.AirtopError({
572
1129
  message: _response.error.errorMessage,
@@ -588,20 +1145,12 @@ class Windows {
588
1145
  * })
589
1146
  */
590
1147
  paginatedExtraction(sessionId, windowId, request, requestOptions) {
591
- var _a, _b;
592
1148
  return __awaiter(this, void 0, void 0, function* () {
1149
+ var _a, _b, _c;
593
1150
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
594
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/paginated-extraction`),
1151
+ 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`),
595
1152
  method: "POST",
596
- headers: {
597
- Authorization: yield this._getAuthorizationHeader(),
598
- "X-Fern-Language": "JavaScript",
599
- "X-Fern-SDK-Name": "@airtop/sdk",
600
- "X-Fern-SDK-Version": "0.1.34",
601
- "User-Agent": "@airtop/sdk/0.1.34",
602
- "X-Fern-Runtime": core.RUNTIME.type,
603
- "X-Fern-Runtime-Version": core.RUNTIME.version,
604
- },
1153
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
605
1154
  contentType: "application/json",
606
1155
  requestType: "json",
607
1156
  body: serializers.SessionPaginatedExtractionHandlerRequestBody.jsonOrThrow(request, {
@@ -633,7 +1182,7 @@ class Windows {
633
1182
  body: _response.error.rawBody,
634
1183
  });
635
1184
  case "timeout":
636
- throw new errors.AirtopTimeoutError();
1185
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/paginated-extraction.");
637
1186
  case "unknown":
638
1187
  throw new errors.AirtopError({
639
1188
  message: _response.error.errorMessage,
@@ -655,20 +1204,12 @@ class Windows {
655
1204
  * })
656
1205
  */
657
1206
  promptContent(sessionId, windowId, request, requestOptions) {
658
- var _a, _b;
659
1207
  return __awaiter(this, void 0, void 0, function* () {
1208
+ var _a, _b, _c;
660
1209
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
661
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/prompt-content`),
1210
+ 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`),
662
1211
  method: "POST",
663
- headers: {
664
- Authorization: yield this._getAuthorizationHeader(),
665
- "X-Fern-Language": "JavaScript",
666
- "X-Fern-SDK-Name": "@airtop/sdk",
667
- "X-Fern-SDK-Version": "0.1.34",
668
- "User-Agent": "@airtop/sdk/0.1.34",
669
- "X-Fern-Runtime": core.RUNTIME.type,
670
- "X-Fern-Runtime-Version": core.RUNTIME.version,
671
- },
1212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
672
1213
  contentType: "application/json",
673
1214
  requestType: "json",
674
1215
  body: serializers.SessionPageQueryHandlerRequestBody.jsonOrThrow(request, {
@@ -700,7 +1241,7 @@ class Windows {
700
1241
  body: _response.error.rawBody,
701
1242
  });
702
1243
  case "timeout":
703
- throw new errors.AirtopTimeoutError();
1244
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/prompt-content.");
704
1245
  case "unknown":
705
1246
  throw new errors.AirtopError({
706
1247
  message: _response.error.errorMessage,
@@ -719,21 +1260,13 @@ class Windows {
719
1260
  * @example
720
1261
  * await client.windows.scrapeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
721
1262
  */
722
- scrapeContent(sessionId, windowId, request = {}, requestOptions) {
723
- var _a, _b;
724
- return __awaiter(this, void 0, void 0, function* () {
1263
+ scrapeContent(sessionId_1, windowId_1) {
1264
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1265
+ var _a, _b, _c;
725
1266
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
726
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scrape-content`),
1267
+ 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`),
727
1268
  method: "POST",
728
- headers: {
729
- Authorization: yield this._getAuthorizationHeader(),
730
- "X-Fern-Language": "JavaScript",
731
- "X-Fern-SDK-Name": "@airtop/sdk",
732
- "X-Fern-SDK-Version": "0.1.34",
733
- "User-Agent": "@airtop/sdk/0.1.34",
734
- "X-Fern-Runtime": core.RUNTIME.type,
735
- "X-Fern-Runtime-Version": core.RUNTIME.version,
736
- },
1269
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
737
1270
  contentType: "application/json",
738
1271
  requestType: "json",
739
1272
  body: serializers.ScrapeContentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -763,7 +1296,7 @@ class Windows {
763
1296
  body: _response.error.rawBody,
764
1297
  });
765
1298
  case "timeout":
766
- throw new errors.AirtopTimeoutError();
1299
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scrape-content.");
767
1300
  case "unknown":
768
1301
  throw new errors.AirtopError({
769
1302
  message: _response.error.errorMessage,
@@ -782,21 +1315,13 @@ class Windows {
782
1315
  * @example
783
1316
  * await client.windows.screenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
784
1317
  */
785
- screenshot(sessionId, windowId, request = {}, requestOptions) {
786
- var _a, _b;
787
- return __awaiter(this, void 0, void 0, function* () {
1318
+ screenshot(sessionId_1, windowId_1) {
1319
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1320
+ var _a, _b, _c;
788
1321
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
789
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/screenshot`),
1322
+ 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`),
790
1323
  method: "POST",
791
- headers: {
792
- Authorization: yield this._getAuthorizationHeader(),
793
- "X-Fern-Language": "JavaScript",
794
- "X-Fern-SDK-Name": "@airtop/sdk",
795
- "X-Fern-SDK-Version": "0.1.34",
796
- "User-Agent": "@airtop/sdk/0.1.34",
797
- "X-Fern-Runtime": core.RUNTIME.type,
798
- "X-Fern-Runtime-Version": core.RUNTIME.version,
799
- },
1324
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
800
1325
  contentType: "application/json",
801
1326
  requestType: "json",
802
1327
  body: serializers.SessionScreenshotHandlerRequestBody.jsonOrThrow(request, {
@@ -828,7 +1353,7 @@ class Windows {
828
1353
  body: _response.error.rawBody,
829
1354
  });
830
1355
  case "timeout":
831
- throw new errors.AirtopTimeoutError();
1356
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/screenshot.");
832
1357
  case "unknown":
833
1358
  throw new errors.AirtopError({
834
1359
  message: _response.error.errorMessage,
@@ -847,21 +1372,13 @@ class Windows {
847
1372
  * @example
848
1373
  * await client.windows.scroll("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
849
1374
  */
850
- scroll(sessionId, windowId, request = {}, requestOptions) {
851
- var _a, _b;
852
- return __awaiter(this, void 0, void 0, function* () {
1375
+ scroll(sessionId_1, windowId_1) {
1376
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1377
+ var _a, _b, _c;
853
1378
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
854
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/scroll`),
1379
+ 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`),
855
1380
  method: "POST",
856
- headers: {
857
- Authorization: yield this._getAuthorizationHeader(),
858
- "X-Fern-Language": "JavaScript",
859
- "X-Fern-SDK-Name": "@airtop/sdk",
860
- "X-Fern-SDK-Version": "0.1.34",
861
- "User-Agent": "@airtop/sdk/0.1.34",
862
- "X-Fern-Runtime": core.RUNTIME.type,
863
- "X-Fern-Runtime-Version": core.RUNTIME.version,
864
- },
1381
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
865
1382
  contentType: "application/json",
866
1383
  requestType: "json",
867
1384
  body: serializers.SessionScrollHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -891,7 +1408,7 @@ class Windows {
891
1408
  body: _response.error.rawBody,
892
1409
  });
893
1410
  case "timeout":
894
- throw new errors.AirtopTimeoutError();
1411
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/scroll.");
895
1412
  case "unknown":
896
1413
  throw new errors.AirtopError({
897
1414
  message: _response.error.errorMessage,
@@ -910,21 +1427,13 @@ class Windows {
910
1427
  * @example
911
1428
  * await client.windows.summarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
912
1429
  */
913
- summarizeContent(sessionId, windowId, request = {}, requestOptions) {
914
- var _a, _b;
915
- return __awaiter(this, void 0, void 0, function* () {
1430
+ summarizeContent(sessionId_1, windowId_1) {
1431
+ return __awaiter(this, arguments, void 0, function* (sessionId, windowId, request = {}, requestOptions) {
1432
+ var _a, _b, _c;
916
1433
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
917
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/summarize-content`),
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)}/summarize-content`),
918
1435
  method: "POST",
919
- headers: {
920
- Authorization: yield this._getAuthorizationHeader(),
921
- "X-Fern-Language": "JavaScript",
922
- "X-Fern-SDK-Name": "@airtop/sdk",
923
- "X-Fern-SDK-Version": "0.1.34",
924
- "User-Agent": "@airtop/sdk/0.1.34",
925
- "X-Fern-Runtime": core.RUNTIME.type,
926
- "X-Fern-Runtime-Version": core.RUNTIME.version,
927
- },
1436
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
928
1437
  contentType: "application/json",
929
1438
  requestType: "json",
930
1439
  body: serializers.SessionSummaryHandlerRequestBody.jsonOrThrow(request, {
@@ -956,7 +1465,7 @@ class Windows {
956
1465
  body: _response.error.rawBody,
957
1466
  });
958
1467
  case "timeout":
959
- throw new errors.AirtopTimeoutError();
1468
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/summarize-content.");
960
1469
  case "unknown":
961
1470
  throw new errors.AirtopError({
962
1471
  message: _response.error.errorMessage,
@@ -978,20 +1487,12 @@ class Windows {
978
1487
  * })
979
1488
  */
980
1489
  type(sessionId, windowId, request, requestOptions) {
981
- var _a, _b;
982
1490
  return __awaiter(this, void 0, void 0, function* () {
1491
+ var _a, _b, _c;
983
1492
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
984
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/windows/${encodeURIComponent(windowId)}/type`),
1493
+ 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`),
985
1494
  method: "POST",
986
- headers: {
987
- Authorization: yield this._getAuthorizationHeader(),
988
- "X-Fern-Language": "JavaScript",
989
- "X-Fern-SDK-Name": "@airtop/sdk",
990
- "X-Fern-SDK-Version": "0.1.34",
991
- "User-Agent": "@airtop/sdk/0.1.34",
992
- "X-Fern-Runtime": core.RUNTIME.type,
993
- "X-Fern-Runtime-Version": core.RUNTIME.version,
994
- },
1495
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.35", "User-Agent": "@airtop/sdk/0.1.35", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
995
1496
  contentType: "application/json",
996
1497
  requestType: "json",
997
1498
  body: serializers.SessionTypeHandlerRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1021,7 +1522,7 @@ class Windows {
1021
1522
  body: _response.error.rawBody,
1022
1523
  });
1023
1524
  case "timeout":
1024
- throw new errors.AirtopTimeoutError();
1525
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /sessions/{sessionId}/windows/{windowId}/type.");
1025
1526
  case "unknown":
1026
1527
  throw new errors.AirtopError({
1027
1528
  message: _response.error.errorMessage,