@airtop/sdk 0.1.36 → 0.1.37-beta1

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 (327) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/README.md +9 -10
  4. package/api/resources/automations/client/Client.js +4 -4
  5. package/api/resources/files/client/Client.d.ts +69 -0
  6. package/api/resources/files/client/Client.js +286 -0
  7. package/api/resources/files/client/index.d.ts +1 -0
  8. package/api/resources/files/client/index.js +17 -0
  9. package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +20 -0
  10. package/api/resources/files/client/requests/CreateFileRestInputV1.js +5 -0
  11. package/api/resources/files/client/requests/FilesListRequest.d.ts +24 -0
  12. package/api/resources/files/client/requests/FilesListRequest.js +5 -0
  13. package/api/resources/files/client/requests/index.d.ts +2 -0
  14. package/api/resources/files/client/requests/index.js +2 -0
  15. package/api/resources/files/index.d.ts +2 -0
  16. package/api/resources/files/index.js +18 -0
  17. package/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +13 -0
  18. package/api/resources/files/types/CreateFileRestInputV1FileType.js +12 -0
  19. package/api/resources/files/types/index.d.ts +1 -0
  20. package/api/resources/files/types/index.js +17 -0
  21. package/api/resources/index.d.ts +3 -0
  22. package/api/resources/index.js +4 -1
  23. package/api/resources/profiles/client/Client.js +1 -1
  24. package/api/resources/requests/client/Client.js +1 -1
  25. package/api/resources/sessions/client/Client.js +6 -6
  26. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -4
  27. package/api/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +11 -0
  28. package/api/resources/sessions/types/SessionsEventsResponseFileEvent.js +5 -0
  29. package/api/resources/sessions/types/index.d.ts +2 -1
  30. package/api/resources/sessions/types/index.js +2 -1
  31. package/api/resources/windows/client/Client.d.ts +126 -0
  32. package/api/resources/windows/client/Client.js +577 -21
  33. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  34. package/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  35. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  36. package/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  37. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  38. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  39. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  40. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  41. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  42. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  43. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  44. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  45. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  46. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  47. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  48. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  49. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  50. package/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  51. package/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  52. package/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  53. package/api/resources/windows/client/requests/index.d.ts +10 -0
  54. package/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  55. package/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  56. package/api/types/CreateFileV1.d.ts +24 -0
  57. package/api/types/CreateFileV1.js +5 -0
  58. package/api/types/CreateFileV1FileType.d.ts +13 -0
  59. package/api/types/CreateFileV1FileType.js +12 -0
  60. package/api/types/CreateFileV1Status.d.ts +13 -0
  61. package/api/types/CreateFileV1Status.js +12 -0
  62. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +10 -0
  63. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +5 -0
  64. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +10 -0
  65. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +5 -0
  66. package/api/types/ExternalFile.d.ts +35 -0
  67. package/api/types/ExternalFile.js +5 -0
  68. package/api/types/FileEventMessage.d.ts +16 -0
  69. package/api/types/FileEventMessage.js +5 -0
  70. package/api/types/FileEventMessageStatus.d.ts +13 -0
  71. package/api/types/FileEventMessageStatus.js +12 -0
  72. package/api/types/FilesResponse.d.ts +10 -0
  73. package/api/types/FilesResponse.js +5 -0
  74. package/api/types/FilesWithPagination.d.ts +10 -0
  75. package/api/types/FilesWithPagination.js +5 -0
  76. package/api/types/GetFileV1.d.ts +26 -0
  77. package/api/types/GetFileV1.js +5 -0
  78. package/api/types/GetFileV1FileType.d.ts +13 -0
  79. package/api/types/GetFileV1FileType.js +12 -0
  80. package/api/types/GetFileV1Status.d.ts +13 -0
  81. package/api/types/GetFileV1Status.js +12 -0
  82. package/api/types/index.d.ts +14 -0
  83. package/api/types/index.js +14 -0
  84. package/dist/Client.d.ts +3 -0
  85. package/dist/Client.js +11 -6
  86. package/dist/api/resources/automations/client/Client.js +4 -4
  87. package/dist/api/resources/files/client/Client.d.ts +69 -0
  88. package/dist/api/resources/files/client/Client.js +286 -0
  89. package/dist/api/resources/files/client/index.d.ts +1 -0
  90. package/dist/api/resources/files/client/index.js +17 -0
  91. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +20 -0
  92. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.js +5 -0
  93. package/dist/api/resources/files/client/requests/FilesListRequest.d.ts +24 -0
  94. package/dist/api/resources/files/client/requests/FilesListRequest.js +5 -0
  95. package/dist/api/resources/files/client/requests/index.d.ts +2 -0
  96. package/dist/api/resources/files/client/requests/index.js +2 -0
  97. package/dist/api/resources/files/index.d.ts +2 -0
  98. package/dist/api/resources/files/index.js +18 -0
  99. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +13 -0
  100. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +12 -0
  101. package/dist/api/resources/files/types/index.d.ts +1 -0
  102. package/dist/api/resources/files/types/index.js +17 -0
  103. package/dist/api/resources/index.d.ts +3 -0
  104. package/dist/api/resources/index.js +4 -1
  105. package/dist/api/resources/profiles/client/Client.js +1 -1
  106. package/dist/api/resources/requests/client/Client.js +1 -1
  107. package/dist/api/resources/sessions/client/Client.js +6 -6
  108. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +7 -4
  109. package/dist/api/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +11 -0
  110. package/dist/api/resources/sessions/types/SessionsEventsResponseFileEvent.js +5 -0
  111. package/dist/api/resources/sessions/types/index.d.ts +2 -1
  112. package/dist/api/resources/sessions/types/index.js +2 -1
  113. package/dist/api/resources/windows/client/Client.d.ts +126 -0
  114. package/dist/api/resources/windows/client/Client.js +577 -21
  115. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +29 -0
  116. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +5 -0
  117. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +27 -0
  118. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +5 -0
  119. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +27 -0
  120. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +5 -0
  121. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +29 -0
  122. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +5 -0
  123. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +27 -0
  124. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +5 -0
  125. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +29 -0
  126. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +5 -0
  127. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +23 -0
  128. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +5 -0
  129. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +25 -0
  130. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +5 -0
  131. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +37 -0
  132. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +5 -0
  133. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.d.ts +25 -0
  134. package/dist/api/resources/windows/client/requests/OperatorPromptV1Body.js +5 -0
  135. package/dist/api/resources/windows/client/requests/index.d.ts +10 -0
  136. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.d.ts +9 -0
  137. package/dist/api/types/AsyncOperatorPromptResponseEnvelope.js +5 -0
  138. package/dist/api/types/CreateFileV1.d.ts +24 -0
  139. package/dist/api/types/CreateFileV1.js +5 -0
  140. package/dist/api/types/CreateFileV1FileType.d.ts +13 -0
  141. package/dist/api/types/CreateFileV1FileType.js +12 -0
  142. package/dist/api/types/CreateFileV1Status.d.ts +13 -0
  143. package/dist/api/types/CreateFileV1Status.js +12 -0
  144. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +10 -0
  145. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +5 -0
  146. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +10 -0
  147. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +5 -0
  148. package/dist/api/types/ExternalFile.d.ts +35 -0
  149. package/dist/api/types/ExternalFile.js +5 -0
  150. package/dist/api/types/FileEventMessage.d.ts +16 -0
  151. package/dist/api/types/FileEventMessage.js +5 -0
  152. package/dist/api/types/FileEventMessageStatus.d.ts +13 -0
  153. package/dist/api/types/FileEventMessageStatus.js +12 -0
  154. package/dist/api/types/FilesResponse.d.ts +10 -0
  155. package/dist/api/types/FilesResponse.js +5 -0
  156. package/dist/api/types/FilesWithPagination.d.ts +10 -0
  157. package/dist/api/types/FilesWithPagination.js +5 -0
  158. package/dist/api/types/GetFileV1.d.ts +26 -0
  159. package/dist/api/types/GetFileV1.js +5 -0
  160. package/dist/api/types/GetFileV1FileType.d.ts +13 -0
  161. package/dist/api/types/GetFileV1FileType.js +12 -0
  162. package/dist/api/types/GetFileV1Status.d.ts +13 -0
  163. package/dist/api/types/GetFileV1Status.js +12 -0
  164. package/dist/api/types/index.d.ts +14 -0
  165. package/dist/api/types/index.js +14 -0
  166. package/dist/serialization/resources/files/client/index.d.ts +1 -0
  167. package/dist/serialization/resources/files/client/index.js +17 -0
  168. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +16 -0
  169. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.js +47 -0
  170. package/dist/serialization/resources/files/client/requests/index.d.ts +1 -0
  171. package/dist/serialization/resources/files/client/requests/index.js +5 -0
  172. package/dist/serialization/resources/files/index.d.ts +2 -0
  173. package/dist/serialization/resources/files/index.js +18 -0
  174. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +10 -0
  175. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +41 -0
  176. package/dist/serialization/resources/files/types/index.d.ts +1 -0
  177. package/dist/serialization/resources/files/types/index.js +17 -0
  178. package/dist/serialization/resources/index.d.ts +3 -0
  179. package/dist/serialization/resources/index.js +4 -1
  180. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -5
  181. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -2
  182. package/dist/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +15 -0
  183. package/dist/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.js +46 -0
  184. package/dist/serialization/resources/sessions/types/index.d.ts +2 -1
  185. package/dist/serialization/resources/sessions/types/index.js +2 -1
  186. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  187. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  188. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  189. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  190. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  191. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  192. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  193. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  194. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  195. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  196. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  197. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  198. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  199. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  200. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  201. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  202. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  203. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  204. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  205. package/dist/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  206. package/dist/serialization/resources/windows/client/requests/index.d.ts +10 -0
  207. package/dist/serialization/resources/windows/client/requests/index.js +21 -1
  208. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  209. package/dist/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  210. package/dist/serialization/types/CreateFileV1.d.ts +22 -0
  211. package/dist/serialization/types/CreateFileV1.js +53 -0
  212. package/dist/serialization/types/CreateFileV1FileType.d.ts +10 -0
  213. package/dist/serialization/types/CreateFileV1FileType.js +41 -0
  214. package/dist/serialization/types/CreateFileV1Status.d.ts +10 -0
  215. package/dist/serialization/types/CreateFileV1Status.js +41 -0
  216. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +18 -0
  217. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +49 -0
  218. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +18 -0
  219. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +49 -0
  220. package/dist/serialization/types/ExternalFile.d.ts +26 -0
  221. package/dist/serialization/types/ExternalFile.js +57 -0
  222. package/dist/serialization/types/FileEventMessage.d.ts +17 -0
  223. package/dist/serialization/types/FileEventMessage.js +48 -0
  224. package/dist/serialization/types/FileEventMessageStatus.d.ts +10 -0
  225. package/dist/serialization/types/FileEventMessageStatus.js +41 -0
  226. package/dist/serialization/types/FilesResponse.d.ts +18 -0
  227. package/dist/serialization/types/FilesResponse.js +49 -0
  228. package/dist/serialization/types/FilesWithPagination.d.ts +15 -0
  229. package/dist/serialization/types/FilesWithPagination.js +46 -0
  230. package/dist/serialization/types/GetFileV1.d.ts +23 -0
  231. package/dist/serialization/types/GetFileV1.js +54 -0
  232. package/dist/serialization/types/GetFileV1FileType.d.ts +10 -0
  233. package/dist/serialization/types/GetFileV1FileType.js +41 -0
  234. package/dist/serialization/types/GetFileV1Status.d.ts +10 -0
  235. package/dist/serialization/types/GetFileV1Status.js +41 -0
  236. package/dist/serialization/types/index.d.ts +14 -0
  237. package/dist/serialization/types/index.js +14 -0
  238. package/dist/version.d.ts +1 -1
  239. package/dist/version.js +1 -1
  240. package/dist/wrapper/AirtopClient.d.ts +3 -0
  241. package/dist/wrapper/AirtopClient.js +5 -0
  242. package/dist/wrapper/AirtopFiles.d.ts +50 -0
  243. package/dist/wrapper/AirtopFiles.js +180 -0
  244. package/dist/wrapper/AirtopSessions.d.ts +59 -0
  245. package/dist/wrapper/AirtopSessions.js +236 -17
  246. package/package.json +1 -1
  247. package/reference.md +1122 -166
  248. package/serialization/resources/files/client/index.d.ts +1 -0
  249. package/serialization/resources/files/client/index.js +17 -0
  250. package/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +16 -0
  251. package/serialization/resources/files/client/requests/CreateFileRestInputV1.js +47 -0
  252. package/serialization/resources/files/client/requests/index.d.ts +1 -0
  253. package/serialization/resources/files/client/requests/index.js +5 -0
  254. package/serialization/resources/files/index.d.ts +2 -0
  255. package/serialization/resources/files/index.js +18 -0
  256. package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +10 -0
  257. package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +41 -0
  258. package/serialization/resources/files/types/index.d.ts +1 -0
  259. package/serialization/resources/files/types/index.js +17 -0
  260. package/serialization/resources/index.d.ts +3 -0
  261. package/serialization/resources/index.js +4 -1
  262. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +9 -5
  263. package/serialization/resources/sessions/types/SessionsEventsResponse.js +4 -2
  264. package/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.d.ts +15 -0
  265. package/serialization/resources/sessions/types/SessionsEventsResponseFileEvent.js +46 -0
  266. package/serialization/resources/sessions/types/index.d.ts +2 -1
  267. package/serialization/resources/sessions/types/index.js +2 -1
  268. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +20 -0
  269. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +51 -0
  270. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +19 -0
  271. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +50 -0
  272. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +19 -0
  273. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +50 -0
  274. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +20 -0
  275. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +51 -0
  276. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +19 -0
  277. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +50 -0
  278. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +20 -0
  279. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +51 -0
  280. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +18 -0
  281. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +49 -0
  282. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +19 -0
  283. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +50 -0
  284. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +24 -0
  285. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +55 -0
  286. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.d.ts +17 -0
  287. package/serialization/resources/windows/client/requests/OperatorPromptV1Body.js +48 -0
  288. package/serialization/resources/windows/client/requests/index.d.ts +10 -0
  289. package/serialization/resources/windows/client/requests/index.js +21 -1
  290. package/serialization/types/AsyncOperatorPromptResponseEnvelope.d.ts +15 -0
  291. package/serialization/types/AsyncOperatorPromptResponseEnvelope.js +46 -0
  292. package/serialization/types/CreateFileV1.d.ts +22 -0
  293. package/serialization/types/CreateFileV1.js +53 -0
  294. package/serialization/types/CreateFileV1FileType.d.ts +10 -0
  295. package/serialization/types/CreateFileV1FileType.js +41 -0
  296. package/serialization/types/CreateFileV1Status.d.ts +10 -0
  297. package/serialization/types/CreateFileV1Status.js +41 -0
  298. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +18 -0
  299. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +49 -0
  300. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +18 -0
  301. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +49 -0
  302. package/serialization/types/ExternalFile.d.ts +26 -0
  303. package/serialization/types/ExternalFile.js +57 -0
  304. package/serialization/types/FileEventMessage.d.ts +17 -0
  305. package/serialization/types/FileEventMessage.js +48 -0
  306. package/serialization/types/FileEventMessageStatus.d.ts +10 -0
  307. package/serialization/types/FileEventMessageStatus.js +41 -0
  308. package/serialization/types/FilesResponse.d.ts +18 -0
  309. package/serialization/types/FilesResponse.js +49 -0
  310. package/serialization/types/FilesWithPagination.d.ts +15 -0
  311. package/serialization/types/FilesWithPagination.js +46 -0
  312. package/serialization/types/GetFileV1.d.ts +23 -0
  313. package/serialization/types/GetFileV1.js +54 -0
  314. package/serialization/types/GetFileV1FileType.d.ts +10 -0
  315. package/serialization/types/GetFileV1FileType.js +41 -0
  316. package/serialization/types/GetFileV1Status.d.ts +10 -0
  317. package/serialization/types/GetFileV1Status.js +41 -0
  318. package/serialization/types/index.d.ts +14 -0
  319. package/serialization/types/index.js +14 -0
  320. package/version.d.ts +1 -1
  321. package/version.js +1 -1
  322. package/wrapper/AirtopClient.d.ts +3 -0
  323. package/wrapper/AirtopClient.js +5 -0
  324. package/wrapper/AirtopFiles.d.ts +50 -0
  325. package/wrapper/AirtopFiles.js +180 -0
  326. package/wrapper/AirtopSessions.d.ts +59 -0
  327. package/wrapper/AirtopSessions.js +236 -17
@@ -0,0 +1,286 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Files = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const serializers = __importStar(require("../../../../serialization/index"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class Files {
58
+ constructor(_options) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Get a list of files filtered by session ID
63
+ *
64
+ * @param {Airtop.FilesListRequest} request
65
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @example
68
+ * await client.files.list({
69
+ * offset: 1,
70
+ * limit: 10
71
+ * })
72
+ */
73
+ list() {
74
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
+ var _a, _b, _c;
76
+ const { sessionIds, offset, limit } = request;
77
+ const _queryParams = {};
78
+ if (sessionIds != null) {
79
+ if (Array.isArray(sessionIds)) {
80
+ _queryParams["sessionIds"] = sessionIds.map((item) => item);
81
+ }
82
+ else {
83
+ _queryParams["sessionIds"] = sessionIds;
84
+ }
85
+ }
86
+ if (offset != null) {
87
+ _queryParams["offset"] = offset.toString();
88
+ }
89
+ if (limit != null) {
90
+ _queryParams["limit"] = limit.toString();
91
+ }
92
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
+ 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, "files"),
94
+ method: "GET",
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ contentType: "application/json",
97
+ queryParameters: _queryParams,
98
+ requestType: "json",
99
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
+ });
103
+ if (_response.ok) {
104
+ return serializers.FilesResponse.parseOrThrow(_response.body, {
105
+ unrecognizedObjectKeys: "passthrough",
106
+ allowUnrecognizedUnionMembers: true,
107
+ allowUnrecognizedEnumValues: true,
108
+ skipValidation: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ });
111
+ }
112
+ if (_response.error.reason === "status-code") {
113
+ throw new errors.AirtopError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.body,
116
+ });
117
+ }
118
+ switch (_response.error.reason) {
119
+ case "non-json":
120
+ throw new errors.AirtopError({
121
+ statusCode: _response.error.statusCode,
122
+ body: _response.error.rawBody,
123
+ });
124
+ case "timeout":
125
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /files.");
126
+ case "unknown":
127
+ throw new errors.AirtopError({
128
+ message: _response.error.errorMessage,
129
+ });
130
+ }
131
+ });
132
+ }
133
+ /**
134
+ * @param {Airtop.CreateFileRestInputV1} request
135
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
136
+ *
137
+ * @example
138
+ * await client.files.create({
139
+ * fileName: "fileName"
140
+ * })
141
+ */
142
+ create(request, requestOptions) {
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ var _a, _b, _c;
145
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
146
+ 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, "files"),
147
+ method: "POST",
148
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ contentType: "application/json",
150
+ requestType: "json",
151
+ body: serializers.CreateFileRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
152
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
153
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
154
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
155
+ });
156
+ if (_response.ok) {
157
+ return serializers.EnvelopeCreateFileV1EnvelopeDefaultMeta.parseOrThrow(_response.body, {
158
+ unrecognizedObjectKeys: "passthrough",
159
+ allowUnrecognizedUnionMembers: true,
160
+ allowUnrecognizedEnumValues: true,
161
+ skipValidation: true,
162
+ breadcrumbsPrefix: ["response"],
163
+ });
164
+ }
165
+ if (_response.error.reason === "status-code") {
166
+ throw new errors.AirtopError({
167
+ statusCode: _response.error.statusCode,
168
+ body: _response.error.body,
169
+ });
170
+ }
171
+ switch (_response.error.reason) {
172
+ case "non-json":
173
+ throw new errors.AirtopError({
174
+ statusCode: _response.error.statusCode,
175
+ body: _response.error.rawBody,
176
+ });
177
+ case "timeout":
178
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling POST /files.");
179
+ case "unknown":
180
+ throw new errors.AirtopError({
181
+ message: _response.error.errorMessage,
182
+ });
183
+ }
184
+ });
185
+ }
186
+ /**
187
+ * @param {string} id - ID of the file
188
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
189
+ *
190
+ * @example
191
+ * await client.files.get("id")
192
+ */
193
+ get(id, requestOptions) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ var _a, _b, _c;
196
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
197
+ 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, `files/${encodeURIComponent(id)}`),
198
+ method: "GET",
199
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
+ contentType: "application/json",
201
+ requestType: "json",
202
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
203
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
204
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
205
+ });
206
+ if (_response.ok) {
207
+ return serializers.EnvelopeGetFileV1EnvelopeDefaultMeta.parseOrThrow(_response.body, {
208
+ unrecognizedObjectKeys: "passthrough",
209
+ allowUnrecognizedUnionMembers: true,
210
+ allowUnrecognizedEnumValues: true,
211
+ skipValidation: true,
212
+ breadcrumbsPrefix: ["response"],
213
+ });
214
+ }
215
+ if (_response.error.reason === "status-code") {
216
+ throw new errors.AirtopError({
217
+ statusCode: _response.error.statusCode,
218
+ body: _response.error.body,
219
+ });
220
+ }
221
+ switch (_response.error.reason) {
222
+ case "non-json":
223
+ throw new errors.AirtopError({
224
+ statusCode: _response.error.statusCode,
225
+ body: _response.error.rawBody,
226
+ });
227
+ case "timeout":
228
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling GET /files/{id}.");
229
+ case "unknown":
230
+ throw new errors.AirtopError({
231
+ message: _response.error.errorMessage,
232
+ });
233
+ }
234
+ });
235
+ }
236
+ /**
237
+ * @param {string} id - ID of the file
238
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
239
+ *
240
+ * @example
241
+ * await client.files.delete("id")
242
+ */
243
+ delete(id, requestOptions) {
244
+ return __awaiter(this, void 0, void 0, function* () {
245
+ var _a, _b, _c;
246
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
247
+ 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, `files/${encodeURIComponent(id)}`),
248
+ method: "DELETE",
249
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
+ contentType: "application/json",
251
+ requestType: "json",
252
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
253
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
254
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
255
+ });
256
+ if (_response.ok) {
257
+ return;
258
+ }
259
+ if (_response.error.reason === "status-code") {
260
+ throw new errors.AirtopError({
261
+ statusCode: _response.error.statusCode,
262
+ body: _response.error.body,
263
+ });
264
+ }
265
+ switch (_response.error.reason) {
266
+ case "non-json":
267
+ throw new errors.AirtopError({
268
+ statusCode: _response.error.statusCode,
269
+ body: _response.error.rawBody,
270
+ });
271
+ case "timeout":
272
+ throw new errors.AirtopTimeoutError("Timeout exceeded when calling DELETE /files/{id}.");
273
+ case "unknown":
274
+ throw new errors.AirtopError({
275
+ message: _response.error.errorMessage,
276
+ });
277
+ }
278
+ });
279
+ }
280
+ _getAuthorizationHeader() {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ return `Bearer ${yield core.Supplier.get(this._options.apiKey)}`;
283
+ });
284
+ }
285
+ }
286
+ exports.Files = Files;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * fileName: "fileName"
9
+ * }
10
+ */
11
+ export interface CreateFileRestInputV1 {
12
+ /** Name of the file */
13
+ fileName: string;
14
+ /** Type of the file */
15
+ fileType?: Airtop.CreateFileRestInputV1FileType;
16
+ /** File ID. Must be unique. Leave blank to get one generated for you */
17
+ id?: string;
18
+ /** IDs of the associated sessions */
19
+ sessionIds?: string[];
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * offset: 1,
8
+ * limit: 10
9
+ * }
10
+ */
11
+ export interface FilesListRequest {
12
+ /**
13
+ * A comma-separated list of IDs of the sessionId of the files to retrieve.
14
+ */
15
+ sessionIds?: string | string[];
16
+ /**
17
+ * Offset for pagination.
18
+ */
19
+ offset?: number;
20
+ /**
21
+ * Limit for pagination.
22
+ */
23
+ limit?: number;
24
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type FilesListRequest } from "./FilesListRequest";
2
+ export { type CreateFileRestInputV1 } from "./CreateFileRestInputV1";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Type of the file
6
+ */
7
+ export type CreateFileRestInputV1FileType = "browser_download" | "screenshot" | "video" | "customer_upload";
8
+ export declare const CreateFileRestInputV1FileType: {
9
+ readonly BrowserDownload: "browser_download";
10
+ readonly Screenshot: "screenshot";
11
+ readonly Video: "video";
12
+ readonly CustomerUpload: "customer_upload";
13
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateFileRestInputV1FileType = void 0;
7
+ exports.CreateFileRestInputV1FileType = {
8
+ BrowserDownload: "browser_download",
9
+ Screenshot: "screenshot",
10
+ Video: "video",
11
+ CustomerUpload: "customer_upload",
12
+ };
@@ -0,0 +1 @@
1
+ export * from "./CreateFileRestInputV1FileType";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateFileRestInputV1FileType"), exports);
@@ -1,5 +1,7 @@
1
1
  export * as windows from "./windows";
2
2
  export * from "./windows/types";
3
+ export * as files from "./files";
4
+ export * from "./files/types";
3
5
  export * as sessions from "./sessions";
4
6
  export * from "./sessions/types";
5
7
  export * as automations from "./automations";
@@ -7,5 +9,6 @@ export * as profiles from "./profiles";
7
9
  export * as requests from "./requests";
8
10
  export * from "./windows/client/requests";
9
11
  export * from "./automations/client/requests";
12
+ export * from "./files/client/requests";
10
13
  export * from "./profiles/client/requests";
11
14
  export * from "./sessions/client/requests";
@@ -36,9 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.requests = exports.profiles = exports.automations = exports.sessions = exports.windows = void 0;
39
+ exports.requests = exports.profiles = exports.automations = exports.sessions = exports.files = exports.windows = void 0;
40
40
  exports.windows = __importStar(require("./windows"));
41
41
  __exportStar(require("./windows/types"), exports);
42
+ exports.files = __importStar(require("./files"));
43
+ __exportStar(require("./files/types"), exports);
42
44
  exports.sessions = __importStar(require("./sessions"));
43
45
  __exportStar(require("./sessions/types"), exports);
44
46
  exports.automations = __importStar(require("./automations"));
@@ -46,5 +48,6 @@ exports.profiles = __importStar(require("./profiles"));
46
48
  exports.requests = __importStar(require("./requests"));
47
49
  __exportStar(require("./windows/client/requests"), exports);
48
50
  __exportStar(require("./automations/client/requests"), exports);
51
+ __exportStar(require("./files/client/requests"), exports);
49
52
  __exportStar(require("./profiles/client/requests"), exports);
50
53
  __exportStar(require("./sessions/client/requests"), exports);
@@ -90,7 +90,7 @@ class Profiles {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  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, "profiles"),
92
92
  method: "DELETE",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -71,7 +71,7 @@ class Requests {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  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, `requests/${encodeURIComponent(requestId)}/status`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -102,7 +102,7 @@ class Sessions {
102
102
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
103
103
  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"),
104
104
  method: "GET",
105
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
106
  contentType: "application/json",
107
107
  queryParameters: _queryParams,
108
108
  requestType: "json",
@@ -180,7 +180,7 @@ class Sessions {
180
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
181
181
  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"),
182
182
  method: "POST",
183
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
184
184
  contentType: "application/json",
185
185
  requestType: "json",
186
186
  body: serializers.SessionRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Sessions {
237
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
238
  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(id)}`),
239
239
  method: "GET",
240
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Sessions {
316
316
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
317
317
  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(id)}`),
318
318
  method: "DELETE",
319
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
319
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -364,7 +364,7 @@ class Sessions {
364
364
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
365
365
  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(id)}/events`),
366
366
  method: "GET",
367
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
367
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
368
  contentType: "application/json",
369
369
  queryParameters: _queryParams,
370
370
  requestType: "json",
@@ -454,7 +454,7 @@ class Sessions {
454
454
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
455
455
  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)}/save-profile-on-termination/${encodeURIComponent(profileName)}`),
456
456
  method: "PUT",
457
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.36", "User-Agent": "@airtop/sdk/0.1.36", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
457
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.37-beta1", "User-Agent": "@airtop/sdk/0.1.37-beta1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
458
458
  contentType: "application/json",
459
459
  requestType: "json",
460
460
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,8 +5,14 @@ import * as Airtop from "../../../index";
5
5
  /**
6
6
  * Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
7
7
  */
8
- export type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
8
+ export type SessionsEventsResponse = Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.FileEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
+ interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
11
+ event: "sessionEvent";
12
+ }
13
+ interface FileEvent extends Airtop.SessionsEventsResponseFileEvent {
14
+ event: "fileEvent";
15
+ }
10
16
  interface Status extends Airtop.SessionsEventsResponseStatus {
11
17
  event: "status";
12
18
  }
@@ -16,7 +22,4 @@ export declare namespace SessionsEventsResponse {
16
22
  interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
17
23
  event: "windowEvent";
18
24
  }
19
- interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
20
- event: "sessionEvent";
21
- }
22
25
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Airtop from "../../../index";
5
+ export interface SessionsEventsResponseFileEvent {
6
+ data: Airtop.FileEventMessage;
7
+ /** The event ID. */
8
+ id?: number;
9
+ /** The retry time in milliseconds. */
10
+ retry?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  export * from "./SessionsListRequestStatus";
2
+ export * from "./SessionsEventsResponseSessionEvent";
3
+ export * from "./SessionsEventsResponseFileEvent";
2
4
  export * from "./SessionsEventsResponseStatus";
3
5
  export * from "./SessionsEventsResponseError";
4
6
  export * from "./SessionsEventsResponseWindowEvent";
5
- export * from "./SessionsEventsResponseSessionEvent";
6
7
  export * from "./SessionsEventsResponse";