@airtop/sdk 0.1.35-beta0 → 0.1.36

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 (286) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +6 -11
  3. package/README.md +10 -9
  4. package/api/resources/automations/client/Client.d.ts +8 -8
  5. package/api/resources/automations/client/Client.js +12 -12
  6. package/api/resources/index.d.ts +0 -3
  7. package/api/resources/index.js +1 -4
  8. package/api/resources/profiles/client/Client.js +1 -1
  9. package/api/resources/requests/client/Client.js +1 -1
  10. package/api/resources/sessions/client/Client.d.ts +0 -10
  11. package/api/resources/sessions/client/Client.js +6 -52
  12. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  13. package/api/resources/sessions/types/index.d.ts +1 -1
  14. package/api/resources/sessions/types/index.js +1 -1
  15. package/api/resources/windows/client/Client.d.ts +39 -99
  16. package/api/resources/windows/client/Client.js +125 -400
  17. package/{dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts → api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts} +2 -4
  18. package/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +27 -0
  19. package/api/resources/windows/client/requests/{AsyncScreenshotRequest.d.ts → CreateFormFillerRequest.d.ts} +2 -2
  20. package/api/resources/windows/client/requests/FillFormRequest.d.ts +27 -0
  21. package/api/resources/windows/client/requests/index.d.ts +4 -9
  22. package/api/types/index.d.ts +0 -20
  23. package/api/types/index.js +0 -20
  24. package/dist/Client.d.ts +0 -3
  25. package/dist/Client.js +6 -11
  26. package/dist/api/resources/automations/client/Client.d.ts +8 -8
  27. package/dist/api/resources/automations/client/Client.js +12 -12
  28. package/dist/api/resources/index.d.ts +0 -3
  29. package/dist/api/resources/index.js +1 -4
  30. package/dist/api/resources/profiles/client/Client.js +1 -1
  31. package/dist/api/resources/requests/client/Client.js +1 -1
  32. package/dist/api/resources/sessions/client/Client.d.ts +0 -10
  33. package/dist/api/resources/sessions/client/Client.js +6 -52
  34. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  35. package/dist/api/resources/sessions/types/index.d.ts +1 -1
  36. package/dist/api/resources/sessions/types/index.js +1 -1
  37. package/dist/api/resources/windows/client/Client.d.ts +39 -99
  38. package/dist/api/resources/windows/client/Client.js +125 -400
  39. package/{api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts → dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts} +2 -4
  40. package/dist/api/resources/windows/client/requests/AsyncFillFormRequest.d.ts +27 -0
  41. package/dist/api/resources/windows/client/requests/{AsyncScreenshotRequest.d.ts → CreateFormFillerRequest.d.ts} +2 -2
  42. package/dist/api/resources/windows/client/requests/FillFormRequest.d.ts +27 -0
  43. package/dist/api/resources/windows/client/requests/index.d.ts +4 -9
  44. package/dist/api/types/index.d.ts +0 -20
  45. package/dist/api/types/index.js +0 -20
  46. package/dist/serialization/resources/index.d.ts +0 -3
  47. package/dist/serialization/resources/index.js +1 -4
  48. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  49. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  50. package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
  51. package/dist/serialization/resources/sessions/types/index.js +1 -1
  52. package/dist/serialization/resources/windows/client/requests/{AsyncHoverRequest.d.ts → AsyncCreateFormFillerRequest.d.ts} +4 -5
  53. package/dist/serialization/resources/windows/client/requests/{AsyncSummarizeContentRequest.js → AsyncCreateFormFillerRequest.js} +4 -5
  54. package/{serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts → dist/serialization/resources/windows/client/requests/AsyncFillFormRequest.d.ts} +4 -5
  55. package/dist/serialization/resources/windows/client/requests/{AsyncMonitorRequest.js → AsyncFillFormRequest.js} +4 -5
  56. package/dist/serialization/resources/windows/client/requests/{AsyncPageQueryRequest.d.ts → CreateFormFillerRequest.d.ts} +4 -6
  57. package/dist/serialization/resources/windows/client/requests/{AsyncClickRequest.js → CreateFormFillerRequest.js} +4 -6
  58. package/dist/serialization/resources/windows/client/requests/{AsyncMonitorRequest.d.ts → FillFormRequest.d.ts} +4 -5
  59. package/{serialization/resources/windows/client/requests/AsyncMonitorRequest.js → dist/serialization/resources/windows/client/requests/FillFormRequest.js} +4 -5
  60. package/dist/serialization/resources/windows/client/requests/index.d.ts +4 -9
  61. package/dist/serialization/resources/windows/client/requests/index.js +9 -19
  62. package/dist/serialization/types/index.d.ts +0 -20
  63. package/dist/serialization/types/index.js +0 -20
  64. package/dist/version.d.ts +1 -1
  65. package/dist/version.js +1 -1
  66. package/dist/wrapper/AirtopClient.d.ts +1 -3
  67. package/dist/wrapper/AirtopClient.js +3 -5
  68. package/dist/wrapper/AirtopRequests.js +1 -1
  69. package/dist/wrapper/AirtopWindows.d.ts +27 -1
  70. package/dist/wrapper/AirtopWindows.js +40 -0
  71. package/package.json +2 -3
  72. package/reference.md +257 -1274
  73. package/serialization/resources/index.d.ts +0 -3
  74. package/serialization/resources/index.js +1 -4
  75. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  76. package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  77. package/serialization/resources/sessions/types/index.d.ts +1 -1
  78. package/serialization/resources/sessions/types/index.js +1 -1
  79. package/serialization/resources/windows/client/requests/AsyncCreateFormFillerRequest.d.ts +18 -0
  80. package/serialization/resources/windows/client/requests/{AsyncSummarizeContentRequest.js → AsyncCreateFormFillerRequest.js} +4 -5
  81. package/serialization/resources/windows/client/requests/{AsyncScreenshotRequest.d.ts → AsyncFillFormRequest.d.ts} +4 -4
  82. package/{dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js → serialization/resources/windows/client/requests/AsyncFillFormRequest.js} +4 -4
  83. package/{dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts → serialization/resources/windows/client/requests/CreateFormFillerRequest.d.ts} +4 -6
  84. package/{dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js → serialization/resources/windows/client/requests/CreateFormFillerRequest.js} +4 -5
  85. package/{dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts → serialization/resources/windows/client/requests/FillFormRequest.d.ts} +4 -4
  86. package/serialization/resources/windows/client/requests/{AsyncScreenshotRequest.js → FillFormRequest.js} +4 -4
  87. package/serialization/resources/windows/client/requests/index.d.ts +4 -9
  88. package/serialization/resources/windows/client/requests/index.js +9 -19
  89. package/serialization/types/index.d.ts +0 -20
  90. package/serialization/types/index.js +0 -20
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/wrapper/AirtopClient.d.ts +1 -3
  94. package/wrapper/AirtopClient.js +3 -5
  95. package/wrapper/AirtopRequests.js +1 -1
  96. package/wrapper/AirtopWindows.d.ts +27 -1
  97. package/wrapper/AirtopWindows.js +40 -0
  98. package/api/resources/files/client/Client.d.ts +0 -69
  99. package/api/resources/files/client/Client.js +0 -286
  100. package/api/resources/files/client/index.d.ts +0 -1
  101. package/api/resources/files/client/index.js +0 -17
  102. package/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -20
  103. package/api/resources/files/client/requests/FilesListRequest.d.ts +0 -24
  104. package/api/resources/files/client/requests/index.d.ts +0 -2
  105. package/api/resources/files/client/requests/index.js +0 -2
  106. package/api/resources/files/index.d.ts +0 -2
  107. package/api/resources/files/index.js +0 -18
  108. package/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -13
  109. package/api/resources/files/types/CreateFileRestInputV1FileType.js +0 -12
  110. package/api/resources/files/types/index.d.ts +0 -1
  111. package/api/resources/files/types/index.js +0 -17
  112. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  113. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  114. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  115. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  116. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  117. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  118. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  119. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  120. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  121. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  122. package/api/types/CreateFileV1.d.ts +0 -24
  123. package/api/types/CreateFileV1.js +0 -5
  124. package/api/types/CreateFileV1FileType.d.ts +0 -13
  125. package/api/types/CreateFileV1FileType.js +0 -12
  126. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -10
  127. package/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -5
  128. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -10
  129. package/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -5
  130. package/api/types/ExtensionConfigurationOutput.d.ts +0 -13
  131. package/api/types/ExtensionConfigurationOutput.js +0 -5
  132. package/api/types/ExternalFile.d.ts +0 -33
  133. package/api/types/ExternalFile.js +0 -5
  134. package/api/types/FilesResponse.d.ts +0 -10
  135. package/api/types/FilesResponse.js +0 -5
  136. package/api/types/FilesWithPagination.d.ts +0 -10
  137. package/api/types/FilesWithPagination.js +0 -5
  138. package/api/types/GetFileV1.d.ts +0 -24
  139. package/api/types/GetFileV1.js +0 -5
  140. package/api/types/GetFileV1FileType.d.ts +0 -13
  141. package/api/types/GetFileV1FileType.js +0 -12
  142. package/dist/api/resources/files/client/Client.d.ts +0 -69
  143. package/dist/api/resources/files/client/Client.js +0 -286
  144. package/dist/api/resources/files/client/index.d.ts +0 -1
  145. package/dist/api/resources/files/client/index.js +0 -17
  146. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -20
  147. package/dist/api/resources/files/client/requests/CreateFileRestInputV1.js +0 -5
  148. package/dist/api/resources/files/client/requests/FilesListRequest.d.ts +0 -24
  149. package/dist/api/resources/files/client/requests/FilesListRequest.js +0 -5
  150. package/dist/api/resources/files/client/requests/index.d.ts +0 -2
  151. package/dist/api/resources/files/client/requests/index.js +0 -2
  152. package/dist/api/resources/files/index.d.ts +0 -2
  153. package/dist/api/resources/files/index.js +0 -18
  154. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -13
  155. package/dist/api/resources/files/types/CreateFileRestInputV1FileType.js +0 -12
  156. package/dist/api/resources/files/types/index.d.ts +0 -1
  157. package/dist/api/resources/files/types/index.js +0 -17
  158. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  159. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  160. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  161. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  162. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  163. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  164. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  165. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  166. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  167. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  168. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  169. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  170. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  171. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  172. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  173. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  174. package/dist/api/types/CreateFileV1.d.ts +0 -24
  175. package/dist/api/types/CreateFileV1.js +0 -5
  176. package/dist/api/types/CreateFileV1FileType.d.ts +0 -13
  177. package/dist/api/types/CreateFileV1FileType.js +0 -12
  178. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -10
  179. package/dist/api/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -5
  180. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -10
  181. package/dist/api/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -5
  182. package/dist/api/types/ExtensionConfigurationOutput.d.ts +0 -13
  183. package/dist/api/types/ExtensionConfigurationOutput.js +0 -5
  184. package/dist/api/types/ExternalFile.d.ts +0 -33
  185. package/dist/api/types/ExternalFile.js +0 -5
  186. package/dist/api/types/FilesResponse.d.ts +0 -10
  187. package/dist/api/types/FilesResponse.js +0 -5
  188. package/dist/api/types/FilesWithPagination.d.ts +0 -10
  189. package/dist/api/types/FilesWithPagination.js +0 -5
  190. package/dist/api/types/GetFileV1.d.ts +0 -24
  191. package/dist/api/types/GetFileV1.js +0 -5
  192. package/dist/api/types/GetFileV1FileType.d.ts +0 -13
  193. package/dist/api/types/GetFileV1FileType.js +0 -12
  194. package/dist/serialization/resources/files/client/index.d.ts +0 -1
  195. package/dist/serialization/resources/files/client/index.js +0 -17
  196. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -16
  197. package/dist/serialization/resources/files/client/requests/CreateFileRestInputV1.js +0 -47
  198. package/dist/serialization/resources/files/client/requests/index.d.ts +0 -1
  199. package/dist/serialization/resources/files/client/requests/index.js +0 -5
  200. package/dist/serialization/resources/files/index.d.ts +0 -2
  201. package/dist/serialization/resources/files/index.js +0 -18
  202. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -10
  203. package/dist/serialization/resources/files/types/CreateFileRestInputV1FileType.js +0 -41
  204. package/dist/serialization/resources/files/types/index.d.ts +0 -1
  205. package/dist/serialization/resources/files/types/index.js +0 -17
  206. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  207. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  208. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  209. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  210. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  211. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  212. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  213. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  214. package/dist/serialization/types/CreateFileV1.d.ts +0 -21
  215. package/dist/serialization/types/CreateFileV1.js +0 -52
  216. package/dist/serialization/types/CreateFileV1FileType.d.ts +0 -10
  217. package/dist/serialization/types/CreateFileV1FileType.js +0 -41
  218. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -18
  219. package/dist/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -49
  220. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -18
  221. package/dist/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -49
  222. package/dist/serialization/types/ExternalFile.d.ts +0 -25
  223. package/dist/serialization/types/ExternalFile.js +0 -56
  224. package/dist/serialization/types/FilesResponse.d.ts +0 -18
  225. package/dist/serialization/types/FilesResponse.js +0 -49
  226. package/dist/serialization/types/FilesWithPagination.d.ts +0 -15
  227. package/dist/serialization/types/FilesWithPagination.js +0 -46
  228. package/dist/serialization/types/GetFileV1.d.ts +0 -21
  229. package/dist/serialization/types/GetFileV1.js +0 -52
  230. package/dist/serialization/types/GetFileV1FileType.d.ts +0 -10
  231. package/dist/serialization/types/GetFileV1FileType.js +0 -41
  232. package/dist/wrapper/AirtopFiles.d.ts +0 -38
  233. package/dist/wrapper/AirtopFiles.js +0 -151
  234. package/serialization/resources/files/client/index.d.ts +0 -1
  235. package/serialization/resources/files/client/index.js +0 -17
  236. package/serialization/resources/files/client/requests/CreateFileRestInputV1.d.ts +0 -16
  237. package/serialization/resources/files/client/requests/CreateFileRestInputV1.js +0 -47
  238. package/serialization/resources/files/client/requests/index.d.ts +0 -1
  239. package/serialization/resources/files/client/requests/index.js +0 -5
  240. package/serialization/resources/files/index.d.ts +0 -2
  241. package/serialization/resources/files/index.js +0 -18
  242. package/serialization/resources/files/types/CreateFileRestInputV1FileType.d.ts +0 -10
  243. package/serialization/resources/files/types/CreateFileRestInputV1FileType.js +0 -41
  244. package/serialization/resources/files/types/index.d.ts +0 -1
  245. package/serialization/resources/files/types/index.js +0 -17
  246. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  247. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -51
  248. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  249. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -50
  250. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  251. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -51
  252. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  253. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -50
  254. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  255. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -51
  256. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  257. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  258. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -55
  259. package/serialization/types/CreateFileV1.d.ts +0 -21
  260. package/serialization/types/CreateFileV1.js +0 -52
  261. package/serialization/types/CreateFileV1FileType.d.ts +0 -10
  262. package/serialization/types/CreateFileV1FileType.js +0 -41
  263. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.d.ts +0 -18
  264. package/serialization/types/EnvelopeCreateFileV1EnvelopeDefaultMeta.js +0 -49
  265. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.d.ts +0 -18
  266. package/serialization/types/EnvelopeGetFileV1EnvelopeDefaultMeta.js +0 -49
  267. package/serialization/types/ExternalFile.d.ts +0 -25
  268. package/serialization/types/ExternalFile.js +0 -56
  269. package/serialization/types/FilesResponse.d.ts +0 -18
  270. package/serialization/types/FilesResponse.js +0 -49
  271. package/serialization/types/FilesWithPagination.d.ts +0 -15
  272. package/serialization/types/FilesWithPagination.js +0 -46
  273. package/serialization/types/GetFileV1.d.ts +0 -21
  274. package/serialization/types/GetFileV1.js +0 -52
  275. package/serialization/types/GetFileV1FileType.d.ts +0 -10
  276. package/serialization/types/GetFileV1FileType.js +0 -41
  277. package/wrapper/AirtopFiles.d.ts +0 -38
  278. package/wrapper/AirtopFiles.js +0 -151
  279. /package/api/resources/{files/client/requests/CreateFileRestInputV1.js → windows/client/requests/AsyncCreateFormFillerRequest.js} +0 -0
  280. /package/api/resources/{files/client/requests/FilesListRequest.js → windows/client/requests/AsyncFillFormRequest.js} +0 -0
  281. /package/api/resources/windows/client/requests/{AsyncClickRequest.js → CreateFormFillerRequest.js} +0 -0
  282. /package/api/resources/windows/client/requests/{AsyncHoverRequest.js → FillFormRequest.js} +0 -0
  283. /package/{api/resources/windows/client/requests/AsyncMonitorRequest.js → dist/api/resources/windows/client/requests/AsyncCreateFormFillerRequest.js} +0 -0
  284. /package/{api/resources/windows/client/requests/AsyncPageQueryRequest.js → dist/api/resources/windows/client/requests/AsyncFillFormRequest.js} +0 -0
  285. /package/{api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js → dist/api/resources/windows/client/requests/CreateFormFillerRequest.js} +0 -0
  286. /package/{api/resources/windows/client/requests/AsyncPromptContentRequest.js → dist/api/resources/windows/client/requests/FillFormRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -5,7 +5,6 @@ import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Windows } from "./api/resources/windows/client/Client";
7
7
  import { Automations } from "./api/resources/automations/client/Client";
8
- import { Files } from "./api/resources/files/client/Client";
9
8
  import { Profiles } from "./api/resources/profiles/client/Client";
10
9
  import { Requests } from "./api/resources/requests/client/Client";
11
10
  import { Sessions } from "./api/resources/sessions/client/Client";
@@ -32,14 +31,12 @@ export declare class AirtopClient {
32
31
  protected readonly _options: AirtopClient.Options;
33
32
  protected _windows: Windows | undefined;
34
33
  protected _automations: Automations | undefined;
35
- protected _files: Files | undefined;
36
34
  protected _profiles: Profiles | undefined;
37
35
  protected _requests: Requests | undefined;
38
36
  protected _sessions: Sessions | undefined;
39
37
  constructor(_options: AirtopClient.Options);
40
38
  get windows(): Windows;
41
39
  get automations(): Automations;
42
- get files(): Files;
43
40
  get profiles(): Profiles;
44
41
  get requests(): Requests;
45
42
  get sessions(): Sessions;
package/Client.js CHANGED
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AirtopClient = void 0;
7
7
  const Client_1 = require("./api/resources/windows/client/Client");
8
8
  const Client_2 = require("./api/resources/automations/client/Client");
9
- const Client_3 = require("./api/resources/files/client/Client");
10
- const Client_4 = require("./api/resources/profiles/client/Client");
11
- const Client_5 = require("./api/resources/requests/client/Client");
12
- const Client_6 = require("./api/resources/sessions/client/Client");
9
+ const Client_3 = require("./api/resources/profiles/client/Client");
10
+ const Client_4 = require("./api/resources/requests/client/Client");
11
+ const Client_5 = require("./api/resources/sessions/client/Client");
13
12
  class AirtopClient {
14
13
  constructor(_options) {
15
14
  this._options = _options;
@@ -22,21 +21,17 @@ class AirtopClient {
22
21
  var _a;
23
22
  return ((_a = this._automations) !== null && _a !== void 0 ? _a : (this._automations = new Client_2.Automations(this._options)));
24
23
  }
25
- get files() {
26
- var _a;
27
- return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_3.Files(this._options)));
28
- }
29
24
  get profiles() {
30
25
  var _a;
31
- return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_4.Profiles(this._options)));
26
+ return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_3.Profiles(this._options)));
32
27
  }
33
28
  get requests() {
34
29
  var _a;
35
- return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_5.Requests(this._options)));
30
+ return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_4.Requests(this._options)));
36
31
  }
37
32
  get sessions() {
38
33
  var _a;
39
- return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_6.Sessions(this._options)));
34
+ return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_5.Sessions(this._options)));
40
35
  }
41
36
  }
42
37
  exports.AirtopClient = AirtopClient;
package/README.md CHANGED
@@ -23,9 +23,10 @@ Instantiate and use the client with the following:
23
23
  import { AirtopClient } from "@airtop/sdk";
24
24
 
25
25
  const client = new AirtopClient({ apiKey: "YOUR_API_KEY" });
26
- await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
27
- elementDescription: "The login button",
28
- });
26
+ await client.windows.asyncCreateAutomation(
27
+ "6aac6f73-bd89-4a76-ab32-5a6c422e8b0b",
28
+ "0334da2a-91b0-42c5-6156-76a5eba87430",
29
+ );
29
30
  ```
30
31
 
31
32
  ## Request And Response Types
@@ -36,7 +37,7 @@ following namespace:
36
37
  ```typescript
37
38
  import { Airtop } from "@airtop/sdk";
38
39
 
39
- const request: Airtop.AsyncClickRequest = {
40
+ const request: Airtop.AsyncCreateAutomationRequest = {
40
41
  ...
41
42
  };
42
43
  ```
@@ -50,7 +51,7 @@ will be thrown.
50
51
  import { AirtopError } from "@airtop/sdk";
51
52
 
52
53
  try {
53
- await client.windows.asyncClick(...);
54
+ await client.windows.asyncCreateAutomation(...);
54
55
  } catch (err) {
55
56
  if (err instanceof AirtopError) {
56
57
  console.log(err.statusCode);
@@ -67,7 +68,7 @@ try {
67
68
  If you would like to send additional headers as part of the request, use the `headers` request option.
68
69
 
69
70
  ```typescript
70
- const response = await client.windows.asyncClick(..., {
71
+ const response = await client.windows.asyncCreateAutomation(..., {
71
72
  headers: {
72
73
  'X-Custom-Header': 'custom value'
73
74
  }
@@ -89,7 +90,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
89
90
  Use the `maxRetries` request option to configure this behavior.
90
91
 
91
92
  ```typescript
92
- const response = await client.windows.asyncClick(..., {
93
+ const response = await client.windows.asyncCreateAutomation(..., {
93
94
  maxRetries: 0 // override maxRetries at the request level
94
95
  });
95
96
  ```
@@ -99,7 +100,7 @@ const response = await client.windows.asyncClick(..., {
99
100
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
100
101
 
101
102
  ```typescript
102
- const response = await client.windows.asyncClick(..., {
103
+ const response = await client.windows.asyncCreateAutomation(..., {
103
104
  timeoutInSeconds: 30 // override timeout to 30s
104
105
  });
105
106
  ```
@@ -110,7 +111,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
110
111
 
111
112
  ```typescript
112
113
  const controller = new AbortController();
113
- const response = await client.windows.asyncClick(..., {
114
+ const response = await client.windows.asyncCreateAutomation(..., {
114
115
  abortSignal: controller.signal
115
116
  });
116
117
  controller.abort(); // aborts the request
@@ -32,9 +32,9 @@ export declare class Automations {
32
32
  * @param {Automations.RequestOptions} requestOptions - Request-specific configuration.
33
33
  *
34
34
  * @example
35
- * await client.automations.listAutomations()
35
+ * await client.automations.list()
36
36
  */
37
- listAutomations(requestOptions?: Automations.RequestOptions): Promise<Airtop.ListAutomationsOutput>;
37
+ list(requestOptions?: Automations.RequestOptions): Promise<Airtop.ListAutomationsOutput>;
38
38
  /**
39
39
  * Update the description of a specific automation
40
40
  *
@@ -48,13 +48,13 @@ export declare class Automations {
48
48
  * @throws {@link Airtop.InternalServerError}
49
49
  *
50
50
  * @example
51
- * await client.automations.updateAutomationDescription({
51
+ * await client.automations.update({
52
52
  * description: "description",
53
53
  * id: "id",
54
54
  * orgId: "orgId"
55
55
  * })
56
56
  */
57
- updateAutomationDescription(request: Airtop.UpdateAutomationDescriptionInputBody, requestOptions?: Automations.RequestOptions): Promise<Airtop.AutomationOutput>;
57
+ update(request: Airtop.UpdateAutomationDescriptionInputBody, requestOptions?: Automations.RequestOptions): Promise<Airtop.AutomationOutput>;
58
58
  /**
59
59
  * Get a specific automation by ID
60
60
  *
@@ -68,9 +68,9 @@ export declare class Automations {
68
68
  * @throws {@link Airtop.InternalServerError}
69
69
  *
70
70
  * @example
71
- * await client.automations.getAutomation("automationId")
71
+ * await client.automations.get("automationId")
72
72
  */
73
- getAutomation(automationId: string, requestOptions?: Automations.RequestOptions): Promise<Airtop.AutomationOutput>;
73
+ get(automationId: string, requestOptions?: Automations.RequestOptions): Promise<Airtop.AutomationOutput>;
74
74
  /**
75
75
  * Delete a specific automation
76
76
  *
@@ -84,8 +84,8 @@ export declare class Automations {
84
84
  * @throws {@link Airtop.InternalServerError}
85
85
  *
86
86
  * @example
87
- * await client.automations.deleteAutomation("automationId")
87
+ * await client.automations.delete("automationId")
88
88
  */
89
- deleteAutomation(automationId: string, requestOptions?: Automations.RequestOptions): Promise<Airtop.DeleteAutomationOutputWrapperBody>;
89
+ delete(automationId: string, requestOptions?: Automations.RequestOptions): Promise<Airtop.DeleteAutomationOutputWrapperBody>;
90
90
  protected _getAuthorizationHeader(): Promise<string>;
91
91
  }
@@ -65,15 +65,15 @@ class Automations {
65
65
  * @param {Automations.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
- * await client.automations.listAutomations()
68
+ * await client.automations.list()
69
69
  */
70
- listAutomations(requestOptions) {
70
+ list(requestOptions) {
71
71
  return __awaiter(this, void 0, void 0, function* () {
72
72
  var _a, _b, _c;
73
73
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
74
  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, "automations"),
75
75
  method: "GET",
76
- 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
+ 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),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,19 +123,19 @@ class Automations {
123
123
  * @throws {@link Airtop.InternalServerError}
124
124
  *
125
125
  * @example
126
- * await client.automations.updateAutomationDescription({
126
+ * await client.automations.update({
127
127
  * description: "description",
128
128
  * id: "id",
129
129
  * orgId: "orgId"
130
130
  * })
131
131
  */
132
- updateAutomationDescription(request, requestOptions) {
132
+ update(request, requestOptions) {
133
133
  return __awaiter(this, void 0, void 0, function* () {
134
134
  var _a, _b, _c;
135
135
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
136
136
  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, "automations/description"),
137
137
  method: "PUT",
138
- 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),
138
+ 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),
139
139
  contentType: "application/json",
140
140
  requestType: "json",
141
141
  body: serializers.UpdateAutomationDescriptionInputBody.jsonOrThrow(request, {
@@ -231,15 +231,15 @@ class Automations {
231
231
  * @throws {@link Airtop.InternalServerError}
232
232
  *
233
233
  * @example
234
- * await client.automations.getAutomation("automationId")
234
+ * await client.automations.get("automationId")
235
235
  */
236
- getAutomation(automationId, requestOptions) {
236
+ get(automationId, requestOptions) {
237
237
  return __awaiter(this, void 0, void 0, function* () {
238
238
  var _a, _b, _c;
239
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
240
  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, `automations/${encodeURIComponent(automationId)}`),
241
241
  method: "GET",
242
- 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),
242
+ 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),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -332,15 +332,15 @@ class Automations {
332
332
  * @throws {@link Airtop.InternalServerError}
333
333
  *
334
334
  * @example
335
- * await client.automations.deleteAutomation("automationId")
335
+ * await client.automations.delete("automationId")
336
336
  */
337
- deleteAutomation(automationId, requestOptions) {
337
+ delete(automationId, requestOptions) {
338
338
  return __awaiter(this, void 0, void 0, function* () {
339
339
  var _a, _b, _c;
340
340
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
341
341
  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, `automations/${encodeURIComponent(automationId)}`),
342
342
  method: "DELETE",
343
- 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
+ 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),
344
344
  contentType: "application/json",
345
345
  requestType: "json",
346
346
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,7 +1,5 @@
1
1
  export * as windows from "./windows";
2
2
  export * from "./windows/types";
3
- export * as files from "./files";
4
- export * from "./files/types";
5
3
  export * as sessions from "./sessions";
6
4
  export * from "./sessions/types";
7
5
  export * as automations from "./automations";
@@ -9,6 +7,5 @@ export * as profiles from "./profiles";
9
7
  export * as requests from "./requests";
10
8
  export * from "./windows/client/requests";
11
9
  export * from "./automations/client/requests";
12
- export * from "./files/client/requests";
13
10
  export * from "./profiles/client/requests";
14
11
  export * from "./sessions/client/requests";
@@ -36,11 +36,9 @@ 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.files = exports.windows = void 0;
39
+ exports.requests = exports.profiles = exports.automations = exports.sessions = 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);
44
42
  exports.sessions = __importStar(require("./sessions"));
45
43
  __exportStar(require("./sessions/types"), exports);
46
44
  exports.automations = __importStar(require("./automations"));
@@ -48,6 +46,5 @@ exports.profiles = __importStar(require("./profiles"));
48
46
  exports.requests = __importStar(require("./requests"));
49
47
  __exportStar(require("./windows/client/requests"), exports);
50
48
  __exportStar(require("./automations/client/requests"), exports);
51
- __exportStar(require("./files/client/requests"), exports);
52
49
  __exportStar(require("./profiles/client/requests"), exports);
53
50
  __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.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),
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),
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.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),
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),
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,
@@ -27,7 +27,6 @@ export declare class Sessions {
27
27
  protected readonly _options: Sessions.Options;
28
28
  constructor(_options: Sessions.Options);
29
29
  /**
30
- * Get a paginated list of sessions filtered by ID or status
31
30
  * Get a paginated list of sessions filtered by ID or status
32
31
  *
33
32
  * @param {Airtop.SessionsListRequest} request
@@ -80,15 +79,6 @@ export declare class Sessions {
80
79
  * Get a session event stream for a given session ID
81
80
  */
82
81
  events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
83
- /**
84
- * @param {string} sessionId - ID of the session.
85
- * @param {string} extensionConfigurationName - Name under which to save the extension configuration.
86
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
87
- *
88
- * @example
89
- * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
90
- */
91
- saveExtensionConfigurationOnTermination(sessionId: string, profileName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
92
82
  /**
93
83
  * @param {string} sessionId - ID of the session.
94
84
  * @param {string} profileName - Name under which to save the profile.
@@ -60,7 +60,6 @@ class Sessions {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * Get a paginated list of sessions filtered by ID or status
64
63
  * Get a paginated list of sessions filtered by ID or status
65
64
  *
66
65
  * @param {Airtop.SessionsListRequest} request
@@ -103,7 +102,7 @@ class Sessions {
103
102
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
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"),
105
104
  method: "GET",
106
- 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),
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),
107
106
  contentType: "application/json",
108
107
  queryParameters: _queryParams,
109
108
  requestType: "json",
@@ -181,7 +180,7 @@ class Sessions {
181
180
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
182
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"),
183
182
  method: "POST",
184
- 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),
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),
185
184
  contentType: "application/json",
186
185
  requestType: "json",
187
186
  body: serializers.SessionRestInputV1.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -238,7 +237,7 @@ class Sessions {
238
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
239
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)}`),
240
239
  method: "GET",
241
- 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),
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),
242
241
  contentType: "application/json",
243
242
  requestType: "json",
244
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -317,7 +316,7 @@ class Sessions {
317
316
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
318
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)}`),
319
318
  method: "DELETE",
320
- 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),
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),
321
320
  contentType: "application/json",
322
321
  requestType: "json",
323
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -365,7 +364,7 @@ class Sessions {
365
364
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
366
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`),
367
366
  method: "GET",
368
- 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),
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),
369
368
  contentType: "application/json",
370
369
  queryParameters: _queryParams,
371
370
  requestType: "json",
@@ -441,51 +440,6 @@ class Sessions {
441
440
  }
442
441
  });
443
442
  }
444
- /**
445
- * @param {string} sessionId - ID of the session.
446
- * @param {string} extensionConfigurationName - Name under which to save the extension configuration.
447
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
448
- *
449
- * @example
450
- * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
451
- */
452
- saveExtensionConfigurationOnTermination(sessionId, profileName, requestOptions) {
453
- return __awaiter(this, void 0, void 0, function* () {
454
- var _a, _b, _c;
455
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
456
- 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)}`),
457
- method: "PUT",
458
- 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),
459
- contentType: "application/json",
460
- requestType: "json",
461
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
462
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
463
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
464
- });
465
- if (_response.ok) {
466
- return;
467
- }
468
- if (_response.error.reason === "status-code") {
469
- throw new errors.AirtopError({
470
- statusCode: _response.error.statusCode,
471
- body: _response.error.body,
472
- });
473
- }
474
- switch (_response.error.reason) {
475
- case "non-json":
476
- throw new errors.AirtopError({
477
- statusCode: _response.error.statusCode,
478
- body: _response.error.rawBody,
479
- });
480
- case "timeout":
481
- throw new errors.AirtopTimeoutError("Timeout exceeded when calling PUT /sessions/{sessionId}/save-profile-on-termination/{profileName}.");
482
- case "unknown":
483
- throw new errors.AirtopError({
484
- message: _response.error.errorMessage,
485
- });
486
- }
487
- });
488
- }
489
443
  /**
490
444
  * @param {string} sessionId - ID of the session.
491
445
  * @param {string} profileName - Name under which to save the profile.
@@ -500,7 +454,7 @@ class Sessions {
500
454
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
501
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)}`),
502
456
  method: "PUT",
503
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airtop/sdk", "X-Fern-SDK-Version": "0.1.34", "User-Agent": "@airtop/sdk/0.1.34", "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.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),
504
458
  contentType: "application/json",
505
459
  requestType: "json",
506
460
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,11 +5,8 @@ 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.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
8
+ export type SessionsEventsResponse = Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent;
9
9
  export declare namespace SessionsEventsResponse {
10
- interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
11
- event: "sessionEvent";
12
- }
13
10
  interface Status extends Airtop.SessionsEventsResponseStatus {
14
11
  event: "status";
15
12
  }
@@ -19,4 +16,7 @@ export declare namespace SessionsEventsResponse {
19
16
  interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
20
17
  event: "windowEvent";
21
18
  }
19
+ interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
20
+ event: "sessionEvent";
21
+ }
22
22
  }
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
- export * from "./SessionsEventsResponseSessionEvent";
3
2
  export * from "./SessionsEventsResponseStatus";
4
3
  export * from "./SessionsEventsResponseError";
5
4
  export * from "./SessionsEventsResponseWindowEvent";
5
+ export * from "./SessionsEventsResponseSessionEvent";
6
6
  export * from "./SessionsEventsResponse";
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./SessionsListRequestStatus"), exports);
18
- __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
19
18
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
19
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
20
  __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
21
+ __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);