@airtop/sdk 0.1.31-beta2 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/Client.d.ts +0 -6
  2. package/Client.js +6 -16
  3. package/README.md +6 -8
  4. package/api/errors/index.d.ts +0 -2
  5. package/api/errors/index.js +0 -2
  6. package/api/resources/index.d.ts +0 -3
  7. package/api/resources/index.js +1 -4
  8. package/api/resources/profiles/client/Client.js +2 -2
  9. package/api/resources/requests/client/Client.js +2 -2
  10. package/api/resources/sessions/client/Client.d.ts +0 -9
  11. package/api/resources/sessions/client/Client.js +12 -65
  12. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +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 +0 -138
  16. package/api/resources/windows/client/Client.js +30 -729
  17. package/api/resources/windows/client/requests/index.d.ts +0 -11
  18. package/api/types/SessionConfigV1.d.ts +0 -2
  19. package/api/types/index.d.ts +0 -7
  20. package/api/types/index.js +0 -7
  21. package/dist/Client.d.ts +0 -6
  22. package/dist/Client.js +6 -16
  23. package/dist/api/errors/index.d.ts +0 -2
  24. package/dist/api/errors/index.js +0 -2
  25. package/dist/api/resources/index.d.ts +0 -3
  26. package/dist/api/resources/index.js +1 -4
  27. package/dist/api/resources/profiles/client/Client.js +2 -2
  28. package/dist/api/resources/requests/client/Client.js +2 -2
  29. package/dist/api/resources/sessions/client/Client.d.ts +0 -9
  30. package/dist/api/resources/sessions/client/Client.js +12 -65
  31. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +4 -4
  32. package/dist/api/resources/sessions/types/index.d.ts +1 -1
  33. package/dist/api/resources/sessions/types/index.js +1 -1
  34. package/dist/api/resources/windows/client/Client.d.ts +0 -138
  35. package/dist/api/resources/windows/client/Client.js +30 -729
  36. package/dist/api/resources/windows/client/requests/index.d.ts +0 -11
  37. package/dist/api/types/SessionConfigV1.d.ts +0 -2
  38. package/dist/api/types/index.d.ts +0 -7
  39. package/dist/api/types/index.js +0 -7
  40. package/dist/serialization/resources/index.d.ts +0 -2
  41. package/dist/serialization/resources/index.js +1 -3
  42. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  43. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  44. package/dist/serialization/resources/sessions/types/index.d.ts +1 -1
  45. package/dist/serialization/resources/sessions/types/index.js +1 -1
  46. package/dist/serialization/resources/windows/client/requests/index.d.ts +0 -11
  47. package/dist/serialization/resources/windows/client/requests/index.js +1 -23
  48. package/dist/serialization/types/SessionConfigV1.d.ts +0 -1
  49. package/dist/serialization/types/SessionConfigV1.js +0 -1
  50. package/dist/serialization/types/index.d.ts +0 -7
  51. package/dist/serialization/types/index.js +0 -7
  52. package/dist/wrapper/AirtopClient.d.ts +0 -1
  53. package/dist/wrapper/AirtopClient.js +0 -3
  54. package/dist/wrapper/AirtopWindows.d.ts +1 -1
  55. package/package.json +2 -3
  56. package/reference.md +155 -1298
  57. package/serialization/resources/index.d.ts +0 -2
  58. package/serialization/resources/index.js +1 -3
  59. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +5 -5
  60. package/serialization/resources/sessions/types/SessionsEventsResponse.js +2 -2
  61. package/serialization/resources/sessions/types/index.d.ts +1 -1
  62. package/serialization/resources/sessions/types/index.js +1 -1
  63. package/serialization/resources/windows/client/requests/index.d.ts +0 -11
  64. package/serialization/resources/windows/client/requests/index.js +1 -23
  65. package/serialization/types/SessionConfigV1.d.ts +0 -1
  66. package/serialization/types/SessionConfigV1.js +0 -1
  67. package/serialization/types/index.d.ts +0 -7
  68. package/serialization/types/index.js +0 -7
  69. package/wrapper/AirtopClient.d.ts +0 -1
  70. package/wrapper/AirtopClient.js +0 -3
  71. package/wrapper/AirtopWindows.d.ts +1 -1
  72. package/api/errors/ForbiddenError.d.ts +0 -8
  73. package/api/errors/ForbiddenError.js +0 -41
  74. package/api/errors/UnauthorizedError.d.ts +0 -8
  75. package/api/errors/UnauthorizedError.js +0 -41
  76. package/api/resources/automations/client/Client.d.ts +0 -87
  77. package/api/resources/automations/client/Client.js +0 -451
  78. package/api/resources/automations/client/index.d.ts +0 -1
  79. package/api/resources/automations/client/index.js +0 -17
  80. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
  81. package/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
  82. package/api/resources/automations/client/requests/index.d.ts +0 -1
  83. package/api/resources/automations/client/requests/index.js +0 -2
  84. package/api/resources/automations/index.d.ts +0 -1
  85. package/api/resources/automations/index.js +0 -17
  86. package/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
  87. package/api/resources/extensionConfigurations/client/Client.js +0 -149
  88. package/api/resources/extensionConfigurations/client/index.d.ts +0 -1
  89. package/api/resources/extensionConfigurations/client/index.js +0 -2
  90. package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
  91. package/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +0 -5
  92. package/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
  93. package/api/resources/extensionConfigurations/client/requests/index.js +0 -2
  94. package/api/resources/extensionConfigurations/index.d.ts +0 -1
  95. package/api/resources/extensionConfigurations/index.js +0 -17
  96. package/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  97. package/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  98. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
  99. package/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
  100. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
  101. package/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
  102. package/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  103. package/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  104. package/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  105. package/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  106. package/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  107. package/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  108. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  109. package/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  110. package/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  111. package/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  112. package/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  113. package/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  114. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  115. package/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  116. package/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  117. package/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  118. package/api/types/AsyncConfig.d.ts +0 -7
  119. package/api/types/AsyncConfig.js +0 -5
  120. package/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
  121. package/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
  122. package/api/types/AutomationOutput.d.ts +0 -10
  123. package/api/types/AutomationOutput.js +0 -5
  124. package/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
  125. package/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
  126. package/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
  127. package/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
  128. package/api/types/ExtensionConfigurationOutput.d.ts +0 -13
  129. package/api/types/ExtensionConfigurationOutput.js +0 -5
  130. package/api/types/ListAutomationsOutput.d.ts +0 -7
  131. package/api/types/ListAutomationsOutput.js +0 -5
  132. package/dist/api/errors/ForbiddenError.d.ts +0 -8
  133. package/dist/api/errors/ForbiddenError.js +0 -41
  134. package/dist/api/errors/UnauthorizedError.d.ts +0 -8
  135. package/dist/api/errors/UnauthorizedError.js +0 -41
  136. package/dist/api/resources/automations/client/Client.d.ts +0 -87
  137. package/dist/api/resources/automations/client/Client.js +0 -451
  138. package/dist/api/resources/automations/client/index.d.ts +0 -1
  139. package/dist/api/resources/automations/client/index.js +0 -17
  140. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -19
  141. package/dist/api/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -5
  142. package/dist/api/resources/automations/client/requests/index.d.ts +0 -1
  143. package/dist/api/resources/automations/client/requests/index.js +0 -2
  144. package/dist/api/resources/automations/index.d.ts +0 -1
  145. package/dist/api/resources/automations/index.js +0 -17
  146. package/dist/api/resources/extensionConfigurations/client/Client.d.ts +0 -40
  147. package/dist/api/resources/extensionConfigurations/client/Client.js +0 -149
  148. package/dist/api/resources/extensionConfigurations/client/index.d.ts +0 -1
  149. package/dist/api/resources/extensionConfigurations/client/index.js +0 -2
  150. package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.d.ts +0 -13
  151. package/dist/api/resources/extensionConfigurations/client/requests/ExtensionConfigurationDeleteRequest.js +0 -5
  152. package/dist/api/resources/extensionConfigurations/client/requests/index.d.ts +0 -1
  153. package/dist/api/resources/extensionConfigurations/client/requests/index.js +0 -2
  154. package/dist/api/resources/extensionConfigurations/index.d.ts +0 -1
  155. package/dist/api/resources/extensionConfigurations/index.js +0 -17
  156. package/dist/api/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -29
  157. package/dist/api/resources/windows/client/requests/AsyncClickRequest.js +0 -5
  158. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -23
  159. package/dist/api/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -5
  160. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -27
  161. package/dist/api/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -5
  162. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -27
  163. package/dist/api/resources/windows/client/requests/AsyncHoverRequest.js +0 -5
  164. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -27
  165. package/dist/api/resources/windows/client/requests/AsyncMonitorRequest.js +0 -5
  166. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -29
  167. package/dist/api/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -5
  168. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -27
  169. package/dist/api/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -5
  170. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -29
  171. package/dist/api/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -5
  172. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -23
  173. package/dist/api/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -5
  174. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -25
  175. package/dist/api/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -5
  176. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -37
  177. package/dist/api/resources/windows/client/requests/AsyncTypeRequest.js +0 -5
  178. package/dist/api/types/AsyncConfig.d.ts +0 -7
  179. package/dist/api/types/AsyncConfig.js +0 -5
  180. package/dist/api/types/AsyncSessionAiResponseEnvelope.d.ts +0 -9
  181. package/dist/api/types/AsyncSessionAiResponseEnvelope.js +0 -5
  182. package/dist/api/types/AutomationOutput.d.ts +0 -10
  183. package/dist/api/types/AutomationOutput.js +0 -5
  184. package/dist/api/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -4
  185. package/dist/api/types/CreateAutomationRequestBodyConfiguration.js +0 -5
  186. package/dist/api/types/DeleteAutomationOutputWrapperBody.d.ts +0 -4
  187. package/dist/api/types/DeleteAutomationOutputWrapperBody.js +0 -5
  188. package/dist/api/types/ExtensionConfigurationOutput.d.ts +0 -13
  189. package/dist/api/types/ExtensionConfigurationOutput.js +0 -5
  190. package/dist/api/types/ListAutomationsOutput.d.ts +0 -7
  191. package/dist/api/types/ListAutomationsOutput.js +0 -5
  192. package/dist/serialization/resources/automations/client/index.d.ts +0 -1
  193. package/dist/serialization/resources/automations/client/index.js +0 -17
  194. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
  195. package/dist/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -35
  196. package/dist/serialization/resources/automations/client/requests/index.d.ts +0 -1
  197. package/dist/serialization/resources/automations/client/requests/index.js +0 -5
  198. package/dist/serialization/resources/automations/index.d.ts +0 -1
  199. package/dist/serialization/resources/automations/index.js +0 -17
  200. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  201. package/dist/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -41
  202. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
  203. package/dist/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -39
  204. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
  205. package/dist/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -39
  206. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  207. package/dist/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -40
  208. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  209. package/dist/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -40
  210. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  211. package/dist/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -41
  212. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  213. package/dist/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -40
  214. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  215. package/dist/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -41
  216. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  217. package/dist/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -39
  218. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  219. package/dist/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -40
  220. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  221. package/dist/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -45
  222. package/dist/serialization/types/AsyncConfig.d.ts +0 -12
  223. package/dist/serialization/types/AsyncConfig.js +0 -33
  224. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
  225. package/dist/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -36
  226. package/dist/serialization/types/AutomationOutput.d.ts +0 -16
  227. package/dist/serialization/types/AutomationOutput.js +0 -37
  228. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
  229. package/dist/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -31
  230. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
  231. package/dist/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -31
  232. package/dist/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
  233. package/dist/serialization/types/ExtensionConfigurationOutput.js +0 -36
  234. package/dist/serialization/types/ListAutomationsOutput.d.ts +0 -13
  235. package/dist/serialization/types/ListAutomationsOutput.js +0 -34
  236. package/serialization/resources/automations/client/index.d.ts +0 -1
  237. package/serialization/resources/automations/client/index.js +0 -17
  238. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.d.ts +0 -14
  239. package/serialization/resources/automations/client/requests/UpdateAutomationDescriptionInputBody.js +0 -35
  240. package/serialization/resources/automations/client/requests/index.d.ts +0 -1
  241. package/serialization/resources/automations/client/requests/index.js +0 -5
  242. package/serialization/resources/automations/index.d.ts +0 -1
  243. package/serialization/resources/automations/index.js +0 -17
  244. package/serialization/resources/windows/client/requests/AsyncClickRequest.d.ts +0 -20
  245. package/serialization/resources/windows/client/requests/AsyncClickRequest.js +0 -41
  246. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.d.ts +0 -18
  247. package/serialization/resources/windows/client/requests/AsyncCreateAutomationRequest.js +0 -39
  248. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.d.ts +0 -18
  249. package/serialization/resources/windows/client/requests/AsyncExecuteAutomationRequest.js +0 -39
  250. package/serialization/resources/windows/client/requests/AsyncHoverRequest.d.ts +0 -19
  251. package/serialization/resources/windows/client/requests/AsyncHoverRequest.js +0 -40
  252. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.d.ts +0 -19
  253. package/serialization/resources/windows/client/requests/AsyncMonitorRequest.js +0 -40
  254. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.d.ts +0 -20
  255. package/serialization/resources/windows/client/requests/AsyncPageQueryRequest.js +0 -41
  256. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.d.ts +0 -19
  257. package/serialization/resources/windows/client/requests/AsyncPaginatedExtractionRequest.js +0 -40
  258. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.d.ts +0 -20
  259. package/serialization/resources/windows/client/requests/AsyncPromptContentRequest.js +0 -41
  260. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.d.ts +0 -18
  261. package/serialization/resources/windows/client/requests/AsyncScreenshotRequest.js +0 -39
  262. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.d.ts +0 -19
  263. package/serialization/resources/windows/client/requests/AsyncSummarizeContentRequest.js +0 -40
  264. package/serialization/resources/windows/client/requests/AsyncTypeRequest.d.ts +0 -24
  265. package/serialization/resources/windows/client/requests/AsyncTypeRequest.js +0 -45
  266. package/serialization/types/AsyncConfig.d.ts +0 -12
  267. package/serialization/types/AsyncConfig.js +0 -33
  268. package/serialization/types/AsyncSessionAiResponseEnvelope.d.ts +0 -15
  269. package/serialization/types/AsyncSessionAiResponseEnvelope.js +0 -36
  270. package/serialization/types/AutomationOutput.d.ts +0 -16
  271. package/serialization/types/AutomationOutput.js +0 -37
  272. package/serialization/types/CreateAutomationRequestBodyConfiguration.d.ts +0 -10
  273. package/serialization/types/CreateAutomationRequestBodyConfiguration.js +0 -31
  274. package/serialization/types/DeleteAutomationOutputWrapperBody.d.ts +0 -10
  275. package/serialization/types/DeleteAutomationOutputWrapperBody.js +0 -31
  276. package/serialization/types/ExtensionConfigurationOutput.d.ts +0 -15
  277. package/serialization/types/ExtensionConfigurationOutput.js +0 -36
  278. package/serialization/types/ListAutomationsOutput.d.ts +0 -13
  279. package/serialization/types/ListAutomationsOutput.js +0 -34
package/Client.d.ts CHANGED
@@ -4,8 +4,6 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Windows } from "./api/resources/windows/client/Client";
7
- import { Automations } from "./api/resources/automations/client/Client";
8
- import { ExtensionConfigurations } from "./api/resources/extensionConfigurations/client/Client";
9
7
  import { Profiles } from "./api/resources/profiles/client/Client";
10
8
  import { Requests } from "./api/resources/requests/client/Client";
11
9
  import { Sessions } from "./api/resources/sessions/client/Client";
@@ -29,10 +27,6 @@ export declare class AirtopClient {
29
27
  constructor(_options: AirtopClient.Options);
30
28
  protected _windows: Windows | undefined;
31
29
  get windows(): Windows;
32
- protected _automations: Automations | undefined;
33
- get automations(): Automations;
34
- protected _extensionConfigurations: ExtensionConfigurations | undefined;
35
- get extensionConfigurations(): ExtensionConfigurations;
36
30
  protected _profiles: Profiles | undefined;
37
31
  get profiles(): Profiles;
38
32
  protected _requests: Requests | undefined;
package/Client.js CHANGED
@@ -5,11 +5,9 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AirtopClient = void 0;
7
7
  const Client_1 = require("./api/resources/windows/client/Client");
8
- const Client_2 = require("./api/resources/automations/client/Client");
9
- const Client_3 = require("./api/resources/extensionConfigurations/client/Client");
10
- const Client_4 = require("./api/resources/profiles/client/Client");
11
- const Client_5 = require("./api/resources/requests/client/Client");
12
- const Client_6 = require("./api/resources/sessions/client/Client");
8
+ const Client_2 = require("./api/resources/profiles/client/Client");
9
+ const Client_3 = require("./api/resources/requests/client/Client");
10
+ const Client_4 = require("./api/resources/sessions/client/Client");
13
11
  class AirtopClient {
14
12
  constructor(_options) {
15
13
  this._options = _options;
@@ -18,25 +16,17 @@ class AirtopClient {
18
16
  var _a;
19
17
  return ((_a = this._windows) !== null && _a !== void 0 ? _a : (this._windows = new Client_1.Windows(this._options)));
20
18
  }
21
- get automations() {
22
- var _a;
23
- return ((_a = this._automations) !== null && _a !== void 0 ? _a : (this._automations = new Client_2.Automations(this._options)));
24
- }
25
- get extensionConfigurations() {
26
- var _a;
27
- return ((_a = this._extensionConfigurations) !== null && _a !== void 0 ? _a : (this._extensionConfigurations = new Client_3.ExtensionConfigurations(this._options)));
28
- }
29
19
  get profiles() {
30
20
  var _a;
31
- return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_4.Profiles(this._options)));
21
+ return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_2.Profiles(this._options)));
32
22
  }
33
23
  get requests() {
34
24
  var _a;
35
- return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_5.Requests(this._options)));
25
+ return ((_a = this._requests) !== null && _a !== void 0 ? _a : (this._requests = new Client_3.Requests(this._options)));
36
26
  }
37
27
  get sessions() {
38
28
  var _a;
39
- return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_6.Sessions(this._options)));
29
+ return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_4.Sessions(this._options)));
40
30
  }
41
31
  }
42
32
  exports.AirtopClient = AirtopClient;
package/README.md CHANGED
@@ -19,9 +19,7 @@ Instantiate and use the client with the following:
19
19
  import { AirtopClient } from "@airtop/sdk";
20
20
 
21
21
  const client = new AirtopClient({ apiKey: "YOUR_API_KEY" });
22
- await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
23
- elementDescription: "The login button",
24
- });
22
+ await client.windows.create("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b");
25
23
  ```
26
24
 
27
25
  ## Request And Response Types
@@ -32,7 +30,7 @@ following namespace:
32
30
  ```typescript
33
31
  import { Airtop } from "@airtop/sdk";
34
32
 
35
- const request: Airtop.AsyncClickRequest = {
33
+ const request: Airtop.CreateWindowInputV1Body = {
36
34
  ...
37
35
  };
38
36
  ```
@@ -46,7 +44,7 @@ will be thrown.
46
44
  import { AirtopError } from "@airtop/sdk";
47
45
 
48
46
  try {
49
- await client.windows.asyncClick(...);
47
+ await client.windows.create(...);
50
48
  } catch (err) {
51
49
  if (err instanceof AirtopError) {
52
50
  console.log(err.statusCode);
@@ -73,7 +71,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
73
71
  Use the `maxRetries` request option to configure this behavior.
74
72
 
75
73
  ```typescript
76
- const response = await client.windows.asyncClick(..., {
74
+ const response = await client.windows.create(..., {
77
75
  maxRetries: 0 // override maxRetries at the request level
78
76
  });
79
77
  ```
@@ -83,7 +81,7 @@ const response = await client.windows.asyncClick(..., {
83
81
  The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
84
82
 
85
83
  ```typescript
86
- const response = await client.windows.asyncClick(..., {
84
+ const response = await client.windows.create(..., {
87
85
  timeoutInSeconds: 30 // override timeout to 30s
88
86
  });
89
87
  ```
@@ -94,7 +92,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
94
92
 
95
93
  ```typescript
96
94
  const controller = new AbortController();
97
- const response = await client.windows.asyncClick(..., {
95
+ const response = await client.windows.create(..., {
98
96
  abortSignal: controller.signal
99
97
  });
100
98
  controller.abort(); // aborts the request
@@ -1,5 +1,3 @@
1
- export * from "./UnauthorizedError";
2
- export * from "./ForbiddenError";
3
1
  export * from "./NotFoundError";
4
2
  export * from "./UnprocessableEntityError";
5
3
  export * from "./InternalServerError";
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./UnauthorizedError"), exports);
18
- __exportStar(require("./ForbiddenError"), exports);
19
17
  __exportStar(require("./NotFoundError"), exports);
20
18
  __exportStar(require("./UnprocessableEntityError"), exports);
21
19
  __exportStar(require("./InternalServerError"), exports);
@@ -2,11 +2,8 @@ export * as windows from "./windows";
2
2
  export * from "./windows/types";
3
3
  export * as sessions from "./sessions";
4
4
  export * from "./sessions/types";
5
- export * as automations from "./automations";
6
- export * as extensionConfigurations from "./extensionConfigurations";
7
5
  export * as profiles from "./profiles";
8
6
  export * as requests from "./requests";
9
7
  export * from "./windows/client/requests";
10
- export * from "./automations/client/requests";
11
8
  export * from "./profiles/client/requests";
12
9
  export * from "./sessions/client/requests";
@@ -26,16 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.requests = exports.profiles = exports.extensionConfigurations = exports.automations = exports.sessions = exports.windows = void 0;
29
+ exports.requests = exports.profiles = exports.sessions = exports.windows = void 0;
30
30
  exports.windows = __importStar(require("./windows"));
31
31
  __exportStar(require("./windows/types"), exports);
32
32
  exports.sessions = __importStar(require("./sessions"));
33
33
  __exportStar(require("./sessions/types"), exports);
34
- exports.automations = __importStar(require("./automations"));
35
- exports.extensionConfigurations = __importStar(require("./extensionConfigurations"));
36
34
  exports.profiles = __importStar(require("./profiles"));
37
35
  exports.requests = __importStar(require("./requests"));
38
36
  __exportStar(require("./windows/client/requests"), exports);
39
- __exportStar(require("./automations/client/requests"), exports);
40
37
  __exportStar(require("./profiles/client/requests"), exports);
41
38
  __exportStar(require("./sessions/client/requests"), exports);
@@ -84,8 +84,8 @@ class Profiles {
84
84
  Authorization: yield this._getAuthorizationHeader(),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "@airtop/sdk",
87
- "X-Fern-SDK-Version": "0.1.31-beta2",
88
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
87
+ "X-Fern-SDK-Version": "0.1.31",
88
+ "User-Agent": "@airtop/sdk/0.1.31",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -65,8 +65,8 @@ class Requests {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@airtop/sdk",
68
- "X-Fern-SDK-Version": "0.1.31-beta2",
69
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
68
+ "X-Fern-SDK-Version": "0.1.31",
69
+ "User-Agent": "@airtop/sdk/0.1.31",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -75,15 +75,6 @@ export declare class Sessions {
75
75
  * Get a session event stream for a given session ID
76
76
  */
77
77
  events(id: string, request?: Airtop.SessionsEventsRequest, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
78
- /**
79
- * @param {string} sessionId - ID of the session.
80
- * @param {string} extensionConfigurationName - Name under which to save the extension configuration.
81
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @example
84
- * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
85
- */
86
- saveExtensionConfigurationOnTermination(sessionId: string, extensionConfigurationName: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
87
78
  /**
88
79
  * @param {string} sessionId - ID of the session.
89
80
  * @param {string} profileName - Name under which to save the profile.
@@ -94,8 +94,8 @@ class Sessions {
94
94
  Authorization: yield this._getAuthorizationHeader(),
95
95
  "X-Fern-Language": "JavaScript",
96
96
  "X-Fern-SDK-Name": "@airtop/sdk",
97
- "X-Fern-SDK-Version": "0.1.31-beta2",
98
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
97
+ "X-Fern-SDK-Version": "0.1.31",
98
+ "User-Agent": "@airtop/sdk/0.1.31",
99
99
  "X-Fern-Runtime": core.RUNTIME.type,
100
100
  "X-Fern-Runtime-Version": core.RUNTIME.version,
101
101
  },
@@ -180,8 +180,8 @@ class Sessions {
180
180
  Authorization: yield this._getAuthorizationHeader(),
181
181
  "X-Fern-Language": "JavaScript",
182
182
  "X-Fern-SDK-Name": "@airtop/sdk",
183
- "X-Fern-SDK-Version": "0.1.31-beta2",
184
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
183
+ "X-Fern-SDK-Version": "0.1.31",
184
+ "User-Agent": "@airtop/sdk/0.1.31",
185
185
  "X-Fern-Runtime": core.RUNTIME.type,
186
186
  "X-Fern-Runtime-Version": core.RUNTIME.version,
187
187
  },
@@ -245,8 +245,8 @@ class Sessions {
245
245
  Authorization: yield this._getAuthorizationHeader(),
246
246
  "X-Fern-Language": "JavaScript",
247
247
  "X-Fern-SDK-Name": "@airtop/sdk",
248
- "X-Fern-SDK-Version": "0.1.31-beta2",
249
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
248
+ "X-Fern-SDK-Version": "0.1.31",
249
+ "User-Agent": "@airtop/sdk/0.1.31",
250
250
  "X-Fern-Runtime": core.RUNTIME.type,
251
251
  "X-Fern-Runtime-Version": core.RUNTIME.version,
252
252
  },
@@ -332,8 +332,8 @@ class Sessions {
332
332
  Authorization: yield this._getAuthorizationHeader(),
333
333
  "X-Fern-Language": "JavaScript",
334
334
  "X-Fern-SDK-Name": "@airtop/sdk",
335
- "X-Fern-SDK-Version": "0.1.31-beta2",
336
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
335
+ "X-Fern-SDK-Version": "0.1.31",
336
+ "User-Agent": "@airtop/sdk/0.1.31",
337
337
  "X-Fern-Runtime": core.RUNTIME.type,
338
338
  "X-Fern-Runtime-Version": core.RUNTIME.version,
339
339
  },
@@ -388,8 +388,8 @@ class Sessions {
388
388
  Authorization: yield this._getAuthorizationHeader(),
389
389
  "X-Fern-Language": "JavaScript",
390
390
  "X-Fern-SDK-Name": "@airtop/sdk",
391
- "X-Fern-SDK-Version": "0.1.31-beta2",
392
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
391
+ "X-Fern-SDK-Version": "0.1.31",
392
+ "User-Agent": "@airtop/sdk/0.1.31",
393
393
  "X-Fern-Runtime": core.RUNTIME.type,
394
394
  "X-Fern-Runtime-Version": core.RUNTIME.version,
395
395
  },
@@ -468,59 +468,6 @@ class Sessions {
468
468
  }
469
469
  });
470
470
  }
471
- /**
472
- * @param {string} sessionId - ID of the session.
473
- * @param {string} extensionConfigurationName - Name under which to save the extension configuration.
474
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
475
- *
476
- * @example
477
- * await client.sessions.saveExtensionConfigurationOnTermination("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "myExtensionConfiguration")
478
- */
479
- saveExtensionConfigurationOnTermination(sessionId, extensionConfigurationName, requestOptions) {
480
- var _a, _b;
481
- return __awaiter(this, void 0, void 0, function* () {
482
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
483
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/save-extension-configuration-on-termination/${encodeURIComponent(extensionConfigurationName)}`),
484
- method: "PUT",
485
- headers: {
486
- Authorization: yield this._getAuthorizationHeader(),
487
- "X-Fern-Language": "JavaScript",
488
- "X-Fern-SDK-Name": "@airtop/sdk",
489
- "X-Fern-SDK-Version": "0.1.31-beta2",
490
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
491
- "X-Fern-Runtime": core.RUNTIME.type,
492
- "X-Fern-Runtime-Version": core.RUNTIME.version,
493
- },
494
- contentType: "application/json",
495
- requestType: "json",
496
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
497
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
498
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
499
- });
500
- if (_response.ok) {
501
- return;
502
- }
503
- if (_response.error.reason === "status-code") {
504
- throw new errors.AirtopError({
505
- statusCode: _response.error.statusCode,
506
- body: _response.error.body,
507
- });
508
- }
509
- switch (_response.error.reason) {
510
- case "non-json":
511
- throw new errors.AirtopError({
512
- statusCode: _response.error.statusCode,
513
- body: _response.error.rawBody,
514
- });
515
- case "timeout":
516
- throw new errors.AirtopTimeoutError();
517
- case "unknown":
518
- throw new errors.AirtopError({
519
- message: _response.error.errorMessage,
520
- });
521
- }
522
- });
523
- }
524
471
  /**
525
472
  * @param {string} sessionId - ID of the session.
526
473
  * @param {string} profileName - Name under which to save the profile.
@@ -539,8 +486,8 @@ class Sessions {
539
486
  Authorization: yield this._getAuthorizationHeader(),
540
487
  "X-Fern-Language": "JavaScript",
541
488
  "X-Fern-SDK-Name": "@airtop/sdk",
542
- "X-Fern-SDK-Version": "0.1.31-beta2",
543
- "User-Agent": "@airtop/sdk/0.1.31-beta2",
489
+ "X-Fern-SDK-Version": "0.1.31",
490
+ "User-Agent": "@airtop/sdk/0.1.31",
544
491
  "X-Fern-Runtime": core.RUNTIME.type,
545
492
  "X-Fern-Runtime-Version": core.RUNTIME.version,
546
493
  },
@@ -5,8 +5,11 @@ import * as Airtop from "../../../index";
5
5
  /**
6
6
  * Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
7
7
  */
8
- export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_ | Airtop.SessionsEventsResponse.WindowEvent;
8
+ export declare type SessionsEventsResponse = Airtop.SessionsEventsResponse.WindowEvent | Airtop.SessionsEventsResponse.SessionEvent | Airtop.SessionsEventsResponse.Status | Airtop.SessionsEventsResponse.Error_;
9
9
  export declare namespace SessionsEventsResponse {
10
+ interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
11
+ event: "windowEvent";
12
+ }
10
13
  interface SessionEvent extends Airtop.SessionsEventsResponseSessionEvent {
11
14
  event: "sessionEvent";
12
15
  }
@@ -16,7 +19,4 @@ export declare namespace SessionsEventsResponse {
16
19
  interface Error_ extends Airtop.SessionsEventsResponseError {
17
20
  event: "error";
18
21
  }
19
- interface WindowEvent extends Airtop.SessionsEventsResponseWindowEvent {
20
- event: "windowEvent";
21
- }
22
22
  }
@@ -1,6 +1,6 @@
1
1
  export * from "./SessionsListRequestStatus";
2
+ export * from "./SessionsEventsResponseWindowEvent";
2
3
  export * from "./SessionsEventsResponseSessionEvent";
3
4
  export * from "./SessionsEventsResponseStatus";
4
5
  export * from "./SessionsEventsResponseError";
5
- export * from "./SessionsEventsResponseWindowEvent";
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("./SessionsEventsResponseWindowEvent"), exports);
18
19
  __exportStar(require("./SessionsEventsResponseSessionEvent"), exports);
19
20
  __exportStar(require("./SessionsEventsResponseStatus"), exports);
20
21
  __exportStar(require("./SessionsEventsResponseError"), exports);
21
- __exportStar(require("./SessionsEventsResponseWindowEvent"), exports);
22
22
  __exportStar(require("./SessionsEventsResponse"), exports);
@@ -22,144 +22,6 @@ export declare namespace Windows {
22
22
  export declare class Windows {
23
23
  protected readonly _options: Windows.Options;
24
24
  constructor(_options: Windows.Options);
25
- /**
26
- * Execute a click interaction in a specific browser window asynchronously
27
- *
28
- * @param {string} sessionId - The session id for the window.
29
- * @param {string} windowId - The Airtop window id of the browser window.
30
- * @param {Airtop.AsyncClickRequest} request
31
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
32
- *
33
- * @example
34
- * await client.windows.asyncClick("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
35
- * elementDescription: "The login button"
36
- * })
37
- */
38
- asyncClick(sessionId: string, windowId: string, request: Airtop.AsyncClickRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
39
- /**
40
- * Create an automation of a browser window asynchronously
41
- *
42
- * @param {string} sessionId - The session id for the window.
43
- * @param {string} windowId - The Airtop window id of the browser window.
44
- * @param {Airtop.AsyncCreateAutomationRequest} request
45
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
46
- *
47
- * @example
48
- * await client.windows.asyncCreateAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
49
- */
50
- asyncCreateAutomation(sessionId: string, windowId: string, request?: Airtop.AsyncCreateAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
51
- /**
52
- * Execute an automation of a browser window asynchronously
53
- *
54
- * @param {string} sessionId - The session id for the window.
55
- * @param {string} windowId - The Airtop window id of the browser window.
56
- * @param {Airtop.AsyncExecuteAutomationRequest} request
57
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
58
- *
59
- * @example
60
- * await client.windows.asyncExecuteAutomation("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
61
- * automationId: "automationId"
62
- * })
63
- */
64
- asyncExecuteAutomation(sessionId: string, windowId: string, request: Airtop.AsyncExecuteAutomationRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
65
- /**
66
- * @param {string} sessionId - The session id for the window.
67
- * @param {string} windowId - The Airtop window id of the browser window.
68
- * @param {Airtop.AsyncHoverRequest} request
69
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
70
- *
71
- * @example
72
- * await client.windows.asyncHover("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
73
- * elementDescription: "The search box input in the top right corner"
74
- * })
75
- */
76
- asyncHover(sessionId: string, windowId: string, request: Airtop.AsyncHoverRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
77
- /**
78
- * @param {string} sessionId - The session id for the window.
79
- * @param {string} windowId - The Airtop window id of the browser window.
80
- * @param {Airtop.AsyncMonitorRequest} request
81
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @example
84
- * await client.windows.asyncMonitor("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
85
- * condition: "Determine if the user appears to be signed in to the website"
86
- * })
87
- */
88
- asyncMonitor(sessionId: string, windowId: string, request: Airtop.AsyncMonitorRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
89
- /**
90
- * @param {string} sessionId - The session id for the window.
91
- * @param {string} windowId - The Airtop window id of the browser window.
92
- * @param {Airtop.AsyncPageQueryRequest} request
93
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
94
- *
95
- * @example
96
- * await client.windows.asyncPageQuery("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
97
- * prompt: "What is the main idea of this page?"
98
- * })
99
- */
100
- asyncPageQuery(sessionId: string, windowId: string, request: Airtop.AsyncPageQueryRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
101
- /**
102
- * @param {string} sessionId - The session id for the window.
103
- * @param {string} windowId - The Airtop window id of the browser window.
104
- * @param {Airtop.AsyncPaginatedExtractionRequest} request
105
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
106
- *
107
- * @example
108
- * await client.windows.asyncPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
109
- * prompt: "This site contains a list of results about <provide details about the list>. Navigate through 3 pages of results and return the title and <provide details about the data you want to extract> about each result in this list."
110
- * })
111
- */
112
- asyncPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.AsyncPaginatedExtractionRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
113
- /**
114
- * This endpoint is deprecated. Please use the `pageQuery` endpoint instead.
115
- *
116
- * @param {string} sessionId - The session id for the window.
117
- * @param {string} windowId - The Airtop window id of the browser window.
118
- * @param {Airtop.AsyncPromptContentRequest} request
119
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
120
- *
121
- * @example
122
- * await client.windows.asyncPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
123
- * prompt: "What is the main idea of this page?"
124
- * })
125
- */
126
- asyncPromptContent(sessionId: string, windowId: string, request: Airtop.AsyncPromptContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
127
- /**
128
- * Take a screenshot of the current viewport of a browser window asynchronously
129
- *
130
- * @param {string} sessionId - The session id for the window.
131
- * @param {string} windowId - The Airtop window id of the browser window.
132
- * @param {Airtop.AsyncScreenshotRequest} request
133
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
134
- *
135
- * @example
136
- * await client.windows.asyncScreenshot("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
137
- */
138
- asyncScreenshot(sessionId: string, windowId: string, request?: Airtop.AsyncScreenshotRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
139
- /**
140
- * This endpoint is deprecated. Please use the `pageQuery` endpoint and ask for a summary in the prompt instead.
141
- *
142
- * @param {string} sessionId - The session id for the window.
143
- * @param {string} windowId - The Airtop window id of the browser window to summarize.
144
- * @param {Airtop.AsyncSummarizeContentRequest} request
145
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
146
- *
147
- * @example
148
- * await client.windows.asyncSummarizeContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
149
- */
150
- asyncSummarizeContent(sessionId: string, windowId: string, request?: Airtop.AsyncSummarizeContentRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
151
- /**
152
- * @param {string} sessionId - The session id for the window.
153
- * @param {string} windowId - The Airtop window id of the browser window.
154
- * @param {Airtop.AsyncTypeRequest} request
155
- * @param {Windows.RequestOptions} requestOptions - Request-specific configuration.
156
- *
157
- * @example
158
- * await client.windows.asyncType("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
159
- * text: "Example text"
160
- * })
161
- */
162
- asyncType(sessionId: string, windowId: string, request: Airtop.AsyncTypeRequest, requestOptions?: Windows.RequestOptions): Promise<Airtop.AsyncSessionAiResponseEnvelope>;
163
25
  /**
164
26
  * Creates a new browser window in a session. Optionally, you can specify a url to load on the window upon creation.
165
27
  *