@airtop/sdk 0.0.7 → 0.0.8

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 (485) hide show
  1. package/Client.d.ts +4 -4
  2. package/Client.js +5 -0
  3. package/README.md +6 -6
  4. package/api/errors/InternalServerError.d.ts +1 -1
  5. package/api/errors/NotFoundError.d.ts +1 -1
  6. package/api/errors/UnprocessableEntityError.d.ts +1 -1
  7. package/api/index.d.ts +1 -1
  8. package/api/index.js +1 -1
  9. package/api/resources/index.d.ts +3 -2
  10. package/api/resources/index.js +4 -3
  11. package/api/resources/profiles/client/Client.d.ts +7 -27
  12. package/api/resources/profiles/client/Client.js +26 -125
  13. package/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +3 -9
  14. package/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +3 -9
  15. package/api/resources/sessions/client/Client.d.ts +10 -67
  16. package/api/resources/sessions/client/Client.js +33 -441
  17. package/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -2
  18. package/api/resources/sessions/client/requests/index.d.ts +0 -2
  19. package/api/resources/sessions/index.d.ts +0 -1
  20. package/api/resources/sessions/index.js +0 -1
  21. package/api/resources/windows/client/Client.d.ts +70 -0
  22. package/api/resources/windows/client/Client.js +320 -0
  23. package/api/resources/windows/client/index.d.ts +1 -0
  24. package/{serialization/resources/sessions/types → api/resources/windows/client}/index.js +1 -3
  25. package/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +23 -0
  26. package/api/resources/{sessions/client/requests/SessionPromptContentRequest.d.ts → windows/client/requests/PromptContentRequest.d.ts} +5 -5
  27. package/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +12 -0
  28. package/api/resources/windows/client/requests/SummarizeContentRequest.d.ts +14 -0
  29. package/api/resources/windows/client/requests/index.d.ts +4 -0
  30. package/api/resources/windows/client/requests/index.js +2 -0
  31. package/api/resources/windows/index.d.ts +1 -0
  32. package/api/resources/{sessions/types → windows}/index.js +1 -3
  33. package/api/types/AiResponseEnvelope.d.ts +9 -0
  34. package/api/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +10 -0
  35. package/api/types/ClientProvidedResponseMetadata.d.ts +1 -1
  36. package/api/types/DefaultMetaWrapper.d.ts +6 -0
  37. package/api/types/ErrorEnvelope.d.ts +12 -0
  38. package/{dist/api/types/ProfileV1.d.ts → api/types/ExternalProfileV1.d.ts} +3 -5
  39. package/api/types/ExternalSessionAiResponseMetadata.d.ts +10 -0
  40. package/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +9 -0
  41. package/api/types/{CleanScrapeResponseDataStatus.js → ExternalSessionAiResponseMetadataStatus.js} +3 -3
  42. package/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +9 -0
  43. package/api/types/ExternalSessionConfig.d.ts +11 -0
  44. package/api/types/ExternalSessionWithConnectionInfo.d.ts +24 -0
  45. package/api/types/ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +10 -0
  46. package/{dist/api/types/SessionAiResponseIssue.d.ts → api/types/Issue.d.ts} +1 -1
  47. package/api/types/ListExternalProfileV1EnvelopeDefaultMetaWrapper.d.ts +10 -0
  48. package/api/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +10 -0
  49. package/api/types/ScrapeResponseEnvelope.d.ts +9 -0
  50. package/api/types/ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +10 -0
  51. package/{dist/api/types/CleanScrapeResponseOutput.d.ts → api/types/ScrapeResponseOutput.d.ts} +2 -2
  52. package/api/types/SessionConfigV1.d.ts +1 -5
  53. package/api/types/Window.d.ts +11 -0
  54. package/api/types/WindowEnvelopeDefaultMetaWrapper.d.ts +10 -0
  55. package/api/types/index.d.ts +19 -27
  56. package/api/types/index.js +19 -27
  57. package/core/auth/BasicAuth.d.ts +8 -0
  58. package/core/auth/BasicAuth.js +26 -0
  59. package/core/auth/BearerToken.d.ts +5 -0
  60. package/core/auth/BearerToken.js +15 -0
  61. package/core/auth/index.d.ts +2 -0
  62. package/core/auth/index.js +7 -0
  63. package/core/index.d.ts +1 -1
  64. package/core/index.js +1 -1
  65. package/dist/Client.d.ts +4 -4
  66. package/dist/Client.js +5 -0
  67. package/dist/api/errors/InternalServerError.d.ts +1 -1
  68. package/dist/api/errors/NotFoundError.d.ts +1 -1
  69. package/dist/api/errors/UnprocessableEntityError.d.ts +1 -1
  70. package/dist/api/index.d.ts +1 -1
  71. package/dist/api/index.js +1 -1
  72. package/dist/api/resources/index.d.ts +3 -2
  73. package/dist/api/resources/index.js +4 -3
  74. package/dist/api/resources/profiles/client/Client.d.ts +7 -27
  75. package/dist/api/resources/profiles/client/Client.js +26 -125
  76. package/dist/api/resources/profiles/client/requests/ProfilesDeleteRequest.d.ts +3 -9
  77. package/dist/api/resources/profiles/client/requests/ProfilesGetRequest.d.ts +3 -9
  78. package/dist/api/resources/sessions/client/Client.d.ts +10 -67
  79. package/dist/api/resources/sessions/client/Client.js +33 -441
  80. package/dist/api/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -2
  81. package/dist/api/resources/sessions/client/requests/index.d.ts +0 -2
  82. package/dist/api/resources/sessions/index.d.ts +0 -1
  83. package/dist/api/resources/sessions/index.js +0 -1
  84. package/dist/api/resources/windows/client/Client.d.ts +70 -0
  85. package/dist/api/resources/windows/client/Client.js +320 -0
  86. package/dist/api/resources/windows/client/index.d.ts +1 -0
  87. package/dist/{serialization/resources/sessions/types → api/resources/windows/client}/index.js +1 -3
  88. package/dist/api/resources/windows/client/requests/GetWindowInfoRequest.d.ts +23 -0
  89. package/dist/api/resources/{sessions/client/requests/SessionPromptContentRequest.d.ts → windows/client/requests/PromptContentRequest.d.ts} +5 -5
  90. package/dist/api/resources/windows/client/requests/ScrapeContentRequest.d.ts +12 -0
  91. package/dist/api/resources/windows/client/requests/SummarizeContentRequest.d.ts +14 -0
  92. package/dist/api/resources/windows/client/requests/index.d.ts +4 -0
  93. package/dist/api/resources/windows/client/requests/index.js +2 -0
  94. package/dist/api/resources/windows/index.d.ts +1 -0
  95. package/dist/api/resources/{sessions/types → windows}/index.js +1 -3
  96. package/dist/api/types/AiResponseEnvelope.d.ts +9 -0
  97. package/dist/api/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +10 -0
  98. package/dist/api/types/ClientProvidedResponseMetadata.d.ts +1 -1
  99. package/dist/api/types/DefaultMetaWrapper.d.ts +6 -0
  100. package/dist/api/types/ErrorEnvelope.d.ts +12 -0
  101. package/{api/types/ProfileV1.d.ts → dist/api/types/ExternalProfileV1.d.ts} +3 -5
  102. package/dist/api/types/ExternalSessionAiResponseMetadata.d.ts +10 -0
  103. package/dist/api/types/ExternalSessionAiResponseMetadataStatus.d.ts +9 -0
  104. package/{api/types/SessionAiResponseDataStatus.js → dist/api/types/ExternalSessionAiResponseMetadataStatus.js} +3 -3
  105. package/dist/api/types/ExternalSessionAiResponseMetadataUsage.d.ts +9 -0
  106. package/dist/api/types/ExternalSessionConfig.d.ts +11 -0
  107. package/dist/api/types/ExternalSessionWithConnectionInfo.d.ts +24 -0
  108. package/dist/api/types/ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +10 -0
  109. package/{api/types/SessionAiResponseIssue.d.ts → dist/api/types/Issue.d.ts} +1 -1
  110. package/dist/api/types/ListExternalProfileV1EnvelopeDefaultMetaWrapper.d.ts +10 -0
  111. package/dist/api/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +10 -0
  112. package/dist/api/types/ScrapeResponseEnvelope.d.ts +9 -0
  113. package/dist/api/types/ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +10 -0
  114. package/{api/types/CleanScrapeResponseOutput.d.ts → dist/api/types/ScrapeResponseOutput.d.ts} +2 -2
  115. package/dist/api/types/SessionConfigV1.d.ts +1 -5
  116. package/dist/api/types/Window.d.ts +11 -0
  117. package/dist/api/types/WindowEnvelopeDefaultMetaWrapper.d.ts +10 -0
  118. package/dist/api/types/index.d.ts +19 -27
  119. package/dist/api/types/index.js +19 -27
  120. package/dist/core/auth/BasicAuth.d.ts +8 -0
  121. package/dist/core/auth/BasicAuth.js +26 -0
  122. package/dist/core/auth/BearerToken.d.ts +5 -0
  123. package/dist/core/auth/BearerToken.js +15 -0
  124. package/dist/core/auth/index.d.ts +2 -0
  125. package/dist/core/auth/index.js +7 -0
  126. package/dist/core/index.d.ts +1 -1
  127. package/dist/core/index.js +1 -1
  128. package/dist/serialization/index.d.ts +1 -1
  129. package/dist/serialization/index.js +1 -1
  130. package/dist/serialization/resources/index.d.ts +2 -1
  131. package/dist/serialization/resources/index.js +3 -2
  132. package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -1
  133. package/dist/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -1
  134. package/dist/serialization/resources/sessions/client/requests/index.d.ts +0 -2
  135. package/dist/serialization/resources/sessions/client/requests/index.js +1 -5
  136. package/dist/serialization/resources/sessions/index.d.ts +0 -1
  137. package/dist/serialization/resources/sessions/index.js +0 -1
  138. package/dist/serialization/resources/windows/client/index.d.ts +1 -0
  139. package/dist/serialization/resources/windows/client/index.js +17 -0
  140. package/dist/serialization/resources/windows/client/requests/PromptContentRequest.d.ts +16 -0
  141. package/{serialization/resources/sessions/client/requests/SessionPromptContentRequest.js → dist/serialization/resources/windows/client/requests/PromptContentRequest.js} +5 -5
  142. package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +14 -0
  143. package/dist/serialization/resources/windows/client/requests/ScrapeContentRequest.js +35 -0
  144. package/dist/serialization/resources/windows/client/requests/SummarizeContentRequest.d.ts +15 -0
  145. package/dist/serialization/resources/{sessions/client/requests/SessionPromptPaginatedExtractionRequest.js → windows/client/requests/SummarizeContentRequest.js} +5 -6
  146. package/dist/serialization/resources/windows/client/requests/index.d.ts +3 -0
  147. package/dist/serialization/resources/windows/client/requests/index.js +9 -0
  148. package/dist/serialization/resources/windows/index.d.ts +1 -0
  149. package/dist/serialization/resources/windows/index.js +17 -0
  150. package/dist/serialization/types/{ErrorMessage.d.ts → AiResponseEnvelope.d.ts} +6 -5
  151. package/dist/serialization/types/AiResponseEnvelope.js +36 -0
  152. package/dist/serialization/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +18 -0
  153. package/dist/serialization/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js +39 -0
  154. package/dist/serialization/types/ClientProvidedResponseMetadata.d.ts +1 -1
  155. package/dist/serialization/types/ClientProvidedResponseMetadata.js +1 -1
  156. package/dist/serialization/types/DefaultMetaWrapper.d.ts +12 -0
  157. package/dist/serialization/types/{StatusMessageStatus.js → DefaultMetaWrapper.js} +4 -2
  158. package/dist/serialization/types/ErrorEnvelope.d.ts +18 -0
  159. package/dist/serialization/types/{CleanScrapeResponseData.js → ErrorEnvelope.js} +9 -6
  160. package/{serialization/types/ProfileV1.d.ts → dist/serialization/types/ExternalProfileV1.d.ts} +4 -5
  161. package/dist/serialization/types/{ErrorDetail.js → ExternalProfileV1.js} +5 -5
  162. package/dist/serialization/types/ExternalSessionAiResponseMetadata.d.ts +18 -0
  163. package/dist/serialization/types/{SessionAiResponseMetadata.js → ExternalSessionAiResponseMetadata.js} +7 -4
  164. package/dist/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +10 -0
  165. package/dist/serialization/types/{CleanScrapeResponseDataStatus.js → ExternalSessionAiResponseMetadataStatus.js} +2 -2
  166. package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +13 -0
  167. package/dist/serialization/types/ExternalSessionAiResponseMetadataUsage.js +34 -0
  168. package/dist/serialization/types/ExternalSessionConfig.d.ts +14 -0
  169. package/dist/serialization/types/{LiveViewConnectionInfo.js → ExternalSessionConfig.js} +5 -4
  170. package/dist/serialization/types/ExternalSessionWithConnectionInfo.d.ts +21 -0
  171. package/dist/serialization/types/{Session.js → ExternalSessionWithConnectionInfo.js} +10 -8
  172. package/dist/serialization/types/ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +18 -0
  173. package/dist/serialization/types/ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js +39 -0
  174. package/{serialization/types/SessionAiResponseIssue.d.ts → dist/serialization/types/Issue.d.ts} +2 -2
  175. package/dist/serialization/types/{SessionAiResponseIssue.js → Issue.js} +2 -2
  176. package/dist/serialization/types/ListExternalProfileV1EnvelopeDefaultMetaWrapper.d.ts +18 -0
  177. package/dist/serialization/types/{ConnectionInfo.js → ListExternalProfileV1EnvelopeDefaultMetaWrapper.js} +9 -7
  178. package/dist/serialization/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +18 -0
  179. package/dist/serialization/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js +39 -0
  180. package/dist/serialization/types/ScrapeResponseEnvelope.d.ts +16 -0
  181. package/dist/serialization/types/ScrapeResponseEnvelope.js +37 -0
  182. package/dist/serialization/types/ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +18 -0
  183. package/dist/serialization/types/ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js +39 -0
  184. package/{serialization/types/CleanScrapeResponseOutput.d.ts → dist/serialization/types/ScrapeResponseOutput.d.ts} +3 -3
  185. package/{serialization/types/CleanScrapeResponseOutput.js → dist/serialization/types/ScrapeResponseOutput.js} +3 -3
  186. package/dist/serialization/types/SessionConfigV1.d.ts +3 -5
  187. package/dist/serialization/types/SessionConfigV1.js +3 -5
  188. package/dist/serialization/types/Window.d.ts +14 -0
  189. package/{serialization/types/ErrorMessage.js → dist/serialization/types/Window.js} +5 -5
  190. package/dist/serialization/types/WindowEnvelopeDefaultMetaWrapper.d.ts +18 -0
  191. package/{serialization/types/CleanScrapeResponse.js → dist/serialization/types/WindowEnvelopeDefaultMetaWrapper.js} +9 -7
  192. package/dist/serialization/types/index.d.ts +19 -27
  193. package/dist/serialization/types/index.js +19 -27
  194. package/package.json +20 -3
  195. package/reference.md +45 -224
  196. package/serialization/index.d.ts +1 -1
  197. package/serialization/index.js +1 -1
  198. package/serialization/resources/index.d.ts +2 -1
  199. package/serialization/resources/index.js +3 -2
  200. package/serialization/resources/sessions/client/requests/SessionRestInputV1.d.ts +0 -1
  201. package/serialization/resources/sessions/client/requests/SessionRestInputV1.js +0 -1
  202. package/serialization/resources/sessions/client/requests/index.d.ts +0 -2
  203. package/serialization/resources/sessions/client/requests/index.js +1 -5
  204. package/serialization/resources/sessions/index.d.ts +0 -1
  205. package/serialization/resources/sessions/index.js +0 -1
  206. package/serialization/resources/windows/client/index.d.ts +1 -0
  207. package/serialization/resources/windows/client/index.js +17 -0
  208. package/serialization/resources/windows/client/requests/PromptContentRequest.d.ts +16 -0
  209. package/{dist/serialization/resources/sessions/client/requests/SessionPromptContentRequest.js → serialization/resources/windows/client/requests/PromptContentRequest.js} +5 -5
  210. package/serialization/resources/windows/client/requests/ScrapeContentRequest.d.ts +14 -0
  211. package/serialization/resources/windows/client/requests/ScrapeContentRequest.js +35 -0
  212. package/serialization/resources/windows/client/requests/SummarizeContentRequest.d.ts +15 -0
  213. package/serialization/resources/{sessions/client/requests/SessionPromptPaginatedExtractionRequest.js → windows/client/requests/SummarizeContentRequest.js} +5 -6
  214. package/serialization/resources/windows/client/requests/index.d.ts +3 -0
  215. package/serialization/resources/windows/client/requests/index.js +9 -0
  216. package/serialization/resources/windows/index.d.ts +1 -0
  217. package/serialization/resources/windows/index.js +17 -0
  218. package/serialization/types/{ErrorMessage.d.ts → AiResponseEnvelope.d.ts} +6 -5
  219. package/serialization/types/AiResponseEnvelope.js +36 -0
  220. package/serialization/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +18 -0
  221. package/serialization/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js +39 -0
  222. package/serialization/types/ClientProvidedResponseMetadata.d.ts +1 -1
  223. package/serialization/types/ClientProvidedResponseMetadata.js +1 -1
  224. package/serialization/types/DefaultMetaWrapper.d.ts +12 -0
  225. package/{dist/serialization/types/SessionAiResponseDataStatus.js → serialization/types/DefaultMetaWrapper.js} +4 -2
  226. package/serialization/types/ErrorEnvelope.d.ts +18 -0
  227. package/serialization/types/ErrorEnvelope.js +39 -0
  228. package/{dist/serialization/types/ProfileV1.d.ts → serialization/types/ExternalProfileV1.d.ts} +4 -5
  229. package/serialization/types/{ErrorDetail.js → ExternalProfileV1.js} +5 -5
  230. package/serialization/types/ExternalSessionAiResponseMetadata.d.ts +18 -0
  231. package/serialization/types/{SessionAiResponseMetadata.js → ExternalSessionAiResponseMetadata.js} +7 -4
  232. package/serialization/types/ExternalSessionAiResponseMetadataStatus.d.ts +10 -0
  233. package/serialization/types/{CleanScrapeResponseDataStatus.js → ExternalSessionAiResponseMetadataStatus.js} +2 -2
  234. package/serialization/types/ExternalSessionAiResponseMetadataUsage.d.ts +13 -0
  235. package/serialization/types/ExternalSessionAiResponseMetadataUsage.js +34 -0
  236. package/serialization/types/ExternalSessionConfig.d.ts +14 -0
  237. package/{dist/serialization/types/ProfileOutputV1Body.js → serialization/types/ExternalSessionConfig.js} +5 -5
  238. package/serialization/types/ExternalSessionWithConnectionInfo.d.ts +21 -0
  239. package/serialization/types/{Session.js → ExternalSessionWithConnectionInfo.js} +10 -8
  240. package/serialization/types/ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +18 -0
  241. package/serialization/types/ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js +39 -0
  242. package/{dist/serialization/types/SessionAiResponseIssue.d.ts → serialization/types/Issue.d.ts} +2 -2
  243. package/serialization/types/{SessionAiResponseIssue.js → Issue.js} +2 -2
  244. package/serialization/types/ListExternalProfileV1EnvelopeDefaultMetaWrapper.d.ts +18 -0
  245. package/serialization/types/ListExternalProfileV1EnvelopeDefaultMetaWrapper.js +39 -0
  246. package/serialization/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.d.ts +18 -0
  247. package/serialization/types/ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js +39 -0
  248. package/serialization/types/ScrapeResponseEnvelope.d.ts +16 -0
  249. package/serialization/types/ScrapeResponseEnvelope.js +37 -0
  250. package/serialization/types/ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.d.ts +18 -0
  251. package/serialization/types/ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js +39 -0
  252. package/{dist/serialization/types/CleanScrapeResponseOutput.d.ts → serialization/types/ScrapeResponseOutput.d.ts} +3 -3
  253. package/{dist/serialization/types/CleanScrapeResponseOutput.js → serialization/types/ScrapeResponseOutput.js} +3 -3
  254. package/serialization/types/SessionConfigV1.d.ts +3 -5
  255. package/serialization/types/SessionConfigV1.js +3 -5
  256. package/serialization/types/Window.d.ts +14 -0
  257. package/{dist/serialization/types/ErrorMessage.js → serialization/types/Window.js} +5 -5
  258. package/serialization/types/WindowEnvelopeDefaultMetaWrapper.d.ts +18 -0
  259. package/{dist/serialization/types/CleanScrapeResponse.js → serialization/types/WindowEnvelopeDefaultMetaWrapper.js} +9 -7
  260. package/serialization/types/index.d.ts +19 -27
  261. package/serialization/types/index.js +19 -27
  262. package/api/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +0 -18
  263. package/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -16
  264. package/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
  265. package/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
  266. package/api/resources/sessions/types/index.d.ts +0 -3
  267. package/api/types/CleanScrapeResponse.d.ts +0 -12
  268. package/api/types/CleanScrapeResponseData.d.ts +0 -10
  269. package/api/types/CleanScrapeResponseDataStatus.d.ts +0 -12
  270. package/api/types/ConnectionInfo.d.ts +0 -14
  271. package/api/types/ErrorDetail.d.ts +0 -10
  272. package/api/types/ErrorMessage.d.ts +0 -11
  273. package/api/types/ErrorModel.d.ts +0 -20
  274. package/api/types/LiveViewConnectionInfo.d.ts +0 -9
  275. package/api/types/LiveViewUrlOutputV1Body.d.ts +0 -13
  276. package/api/types/ProfileOutputV1Body.d.ts +0 -10
  277. package/api/types/ProfilesOutputV1Body.d.ts +0 -9
  278. package/api/types/Session.d.ts +0 -20
  279. package/api/types/SessionAiResponse.d.ts +0 -16
  280. package/api/types/SessionAiResponseData.d.ts +0 -10
  281. package/api/types/SessionAiResponseDataStatus.d.ts +0 -12
  282. package/api/types/SessionAiResponseMetadata.d.ts +0 -10
  283. package/api/types/SessionAiResponseMetadataUsage.d.ts +0 -14
  284. package/api/types/SessionAiResponseResponseMetadataModelUsage.d.ts +0 -10
  285. package/api/types/SessionConfig.d.ts +0 -15
  286. package/api/types/SessionOutputV1Body.d.ts +0 -12
  287. package/api/types/SessionWithConnectionInfo.d.ts +0 -10
  288. package/api/types/SessionsOutputV1Body.d.ts +0 -10
  289. package/api/types/StatusMessage.d.ts +0 -14
  290. package/api/types/StatusMessageStatus.d.ts +0 -13
  291. package/api/types/StatusMessageStatus.js +0 -12
  292. package/core/streaming-fetcher/Stream.d.ts +0 -48
  293. package/core/streaming-fetcher/Stream.js +0 -170
  294. package/core/streaming-fetcher/index.d.ts +0 -1
  295. package/core/streaming-fetcher/index.js +0 -5
  296. package/dist/api/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +0 -18
  297. package/dist/api/resources/sessions/types/SessionsEventsResponse.d.ts +0 -16
  298. package/dist/api/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -11
  299. package/dist/api/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -11
  300. package/dist/api/resources/sessions/types/index.d.ts +0 -3
  301. package/dist/api/types/CleanScrapeResponse.d.ts +0 -12
  302. package/dist/api/types/CleanScrapeResponseData.d.ts +0 -10
  303. package/dist/api/types/CleanScrapeResponseDataStatus.d.ts +0 -12
  304. package/dist/api/types/CleanScrapeResponseDataStatus.js +0 -11
  305. package/dist/api/types/ConnectionInfo.d.ts +0 -14
  306. package/dist/api/types/ErrorDetail.d.ts +0 -10
  307. package/dist/api/types/ErrorMessage.d.ts +0 -11
  308. package/dist/api/types/ErrorModel.d.ts +0 -20
  309. package/dist/api/types/LiveViewConnectionInfo.d.ts +0 -9
  310. package/dist/api/types/LiveViewUrlOutputV1Body.d.ts +0 -13
  311. package/dist/api/types/ProfileOutputV1Body.d.ts +0 -10
  312. package/dist/api/types/ProfileV1.js +0 -5
  313. package/dist/api/types/ProfilesOutputV1Body.d.ts +0 -9
  314. package/dist/api/types/ProfilesOutputV1Body.js +0 -5
  315. package/dist/api/types/Session.d.ts +0 -20
  316. package/dist/api/types/Session.js +0 -5
  317. package/dist/api/types/SessionAiResponse.d.ts +0 -16
  318. package/dist/api/types/SessionAiResponse.js +0 -5
  319. package/dist/api/types/SessionAiResponseData.d.ts +0 -10
  320. package/dist/api/types/SessionAiResponseData.js +0 -5
  321. package/dist/api/types/SessionAiResponseDataStatus.d.ts +0 -12
  322. package/dist/api/types/SessionAiResponseDataStatus.js +0 -11
  323. package/dist/api/types/SessionAiResponseIssue.js +0 -5
  324. package/dist/api/types/SessionAiResponseMetadata.d.ts +0 -10
  325. package/dist/api/types/SessionAiResponseMetadata.js +0 -5
  326. package/dist/api/types/SessionAiResponseMetadataUsage.d.ts +0 -14
  327. package/dist/api/types/SessionAiResponseMetadataUsage.js +0 -5
  328. package/dist/api/types/SessionAiResponseResponseMetadataModelUsage.d.ts +0 -10
  329. package/dist/api/types/SessionAiResponseResponseMetadataModelUsage.js +0 -5
  330. package/dist/api/types/SessionConfig.d.ts +0 -15
  331. package/dist/api/types/SessionConfig.js +0 -5
  332. package/dist/api/types/SessionOutputV1Body.d.ts +0 -12
  333. package/dist/api/types/SessionOutputV1Body.js +0 -5
  334. package/dist/api/types/SessionWithConnectionInfo.d.ts +0 -10
  335. package/dist/api/types/SessionWithConnectionInfo.js +0 -5
  336. package/dist/api/types/SessionsOutputV1Body.d.ts +0 -10
  337. package/dist/api/types/SessionsOutputV1Body.js +0 -5
  338. package/dist/api/types/StatusMessage.d.ts +0 -14
  339. package/dist/api/types/StatusMessage.js +0 -5
  340. package/dist/api/types/StatusMessageStatus.d.ts +0 -13
  341. package/dist/api/types/StatusMessageStatus.js +0 -12
  342. package/dist/core/streaming-fetcher/Stream.d.ts +0 -48
  343. package/dist/core/streaming-fetcher/Stream.js +0 -170
  344. package/dist/core/streaming-fetcher/index.d.ts +0 -1
  345. package/dist/core/streaming-fetcher/index.js +0 -5
  346. package/dist/serialization/resources/sessions/client/requests/SessionPromptContentRequest.d.ts +0 -16
  347. package/dist/serialization/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +0 -16
  348. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -18
  349. package/dist/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -41
  350. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
  351. package/dist/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -36
  352. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
  353. package/dist/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -36
  354. package/dist/serialization/resources/sessions/types/index.d.ts +0 -3
  355. package/dist/serialization/types/CleanScrapeResponse.d.ts +0 -16
  356. package/dist/serialization/types/CleanScrapeResponseData.d.ts +0 -15
  357. package/dist/serialization/types/CleanScrapeResponseDataStatus.d.ts +0 -10
  358. package/dist/serialization/types/ConnectionInfo.d.ts +0 -16
  359. package/dist/serialization/types/ErrorDetail.d.ts +0 -14
  360. package/dist/serialization/types/ErrorModel.d.ts +0 -19
  361. package/dist/serialization/types/ErrorModel.js +0 -40
  362. package/dist/serialization/types/LiveViewConnectionInfo.d.ts +0 -13
  363. package/dist/serialization/types/LiveViewUrlOutputV1Body.d.ts +0 -15
  364. package/dist/serialization/types/LiveViewUrlOutputV1Body.js +0 -36
  365. package/dist/serialization/types/ProfileOutputV1Body.d.ts +0 -14
  366. package/dist/serialization/types/ProfileV1.js +0 -36
  367. package/dist/serialization/types/ProfilesOutputV1Body.d.ts +0 -14
  368. package/dist/serialization/types/ProfilesOutputV1Body.js +0 -35
  369. package/dist/serialization/types/Session.d.ts +0 -19
  370. package/dist/serialization/types/SessionAiResponse.d.ts +0 -19
  371. package/dist/serialization/types/SessionAiResponse.js +0 -40
  372. package/dist/serialization/types/SessionAiResponseData.d.ts +0 -14
  373. package/dist/serialization/types/SessionAiResponseData.js +0 -35
  374. package/dist/serialization/types/SessionAiResponseDataStatus.d.ts +0 -10
  375. package/dist/serialization/types/SessionAiResponseMetadata.d.ts +0 -15
  376. package/dist/serialization/types/SessionAiResponseMetadataUsage.d.ts +0 -16
  377. package/dist/serialization/types/SessionAiResponseMetadataUsage.js +0 -37
  378. package/dist/serialization/types/SessionAiResponseResponseMetadataModelUsage.d.ts +0 -16
  379. package/dist/serialization/types/SessionAiResponseResponseMetadataModelUsage.js +0 -37
  380. package/dist/serialization/types/SessionConfig.d.ts +0 -16
  381. package/dist/serialization/types/SessionConfig.js +0 -37
  382. package/dist/serialization/types/SessionOutputV1Body.d.ts +0 -16
  383. package/dist/serialization/types/SessionOutputV1Body.js +0 -37
  384. package/dist/serialization/types/SessionWithConnectionInfo.d.ts +0 -15
  385. package/dist/serialization/types/SessionWithConnectionInfo.js +0 -36
  386. package/dist/serialization/types/SessionsOutputV1Body.d.ts +0 -14
  387. package/dist/serialization/types/SessionsOutputV1Body.js +0 -35
  388. package/dist/serialization/types/StatusMessage.d.ts +0 -16
  389. package/dist/serialization/types/StatusMessage.js +0 -37
  390. package/dist/serialization/types/StatusMessageStatus.d.ts +0 -10
  391. package/serialization/resources/sessions/client/requests/SessionPromptContentRequest.d.ts +0 -16
  392. package/serialization/resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.d.ts +0 -16
  393. package/serialization/resources/sessions/types/SessionsEventsResponse.d.ts +0 -18
  394. package/serialization/resources/sessions/types/SessionsEventsResponse.js +0 -41
  395. package/serialization/resources/sessions/types/SessionsEventsResponseError.d.ts +0 -15
  396. package/serialization/resources/sessions/types/SessionsEventsResponseError.js +0 -36
  397. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.d.ts +0 -15
  398. package/serialization/resources/sessions/types/SessionsEventsResponseStatus.js +0 -36
  399. package/serialization/resources/sessions/types/index.d.ts +0 -3
  400. package/serialization/types/CleanScrapeResponse.d.ts +0 -16
  401. package/serialization/types/CleanScrapeResponseData.d.ts +0 -15
  402. package/serialization/types/CleanScrapeResponseData.js +0 -36
  403. package/serialization/types/CleanScrapeResponseDataStatus.d.ts +0 -10
  404. package/serialization/types/ConnectionInfo.d.ts +0 -16
  405. package/serialization/types/ConnectionInfo.js +0 -37
  406. package/serialization/types/ErrorDetail.d.ts +0 -14
  407. package/serialization/types/ErrorModel.d.ts +0 -19
  408. package/serialization/types/ErrorModel.js +0 -40
  409. package/serialization/types/LiveViewConnectionInfo.d.ts +0 -13
  410. package/serialization/types/LiveViewConnectionInfo.js +0 -34
  411. package/serialization/types/LiveViewUrlOutputV1Body.d.ts +0 -15
  412. package/serialization/types/LiveViewUrlOutputV1Body.js +0 -36
  413. package/serialization/types/ProfileOutputV1Body.d.ts +0 -14
  414. package/serialization/types/ProfileOutputV1Body.js +0 -35
  415. package/serialization/types/ProfileV1.js +0 -36
  416. package/serialization/types/ProfilesOutputV1Body.d.ts +0 -14
  417. package/serialization/types/ProfilesOutputV1Body.js +0 -35
  418. package/serialization/types/Session.d.ts +0 -19
  419. package/serialization/types/SessionAiResponse.d.ts +0 -19
  420. package/serialization/types/SessionAiResponse.js +0 -40
  421. package/serialization/types/SessionAiResponseData.d.ts +0 -14
  422. package/serialization/types/SessionAiResponseData.js +0 -35
  423. package/serialization/types/SessionAiResponseDataStatus.d.ts +0 -10
  424. package/serialization/types/SessionAiResponseDataStatus.js +0 -31
  425. package/serialization/types/SessionAiResponseMetadata.d.ts +0 -15
  426. package/serialization/types/SessionAiResponseMetadataUsage.d.ts +0 -16
  427. package/serialization/types/SessionAiResponseMetadataUsage.js +0 -37
  428. package/serialization/types/SessionAiResponseResponseMetadataModelUsage.d.ts +0 -16
  429. package/serialization/types/SessionAiResponseResponseMetadataModelUsage.js +0 -37
  430. package/serialization/types/SessionConfig.d.ts +0 -16
  431. package/serialization/types/SessionConfig.js +0 -37
  432. package/serialization/types/SessionOutputV1Body.d.ts +0 -16
  433. package/serialization/types/SessionOutputV1Body.js +0 -37
  434. package/serialization/types/SessionWithConnectionInfo.d.ts +0 -15
  435. package/serialization/types/SessionWithConnectionInfo.js +0 -36
  436. package/serialization/types/SessionsOutputV1Body.d.ts +0 -14
  437. package/serialization/types/SessionsOutputV1Body.js +0 -35
  438. package/serialization/types/StatusMessage.d.ts +0 -16
  439. package/serialization/types/StatusMessage.js +0 -37
  440. package/serialization/types/StatusMessageStatus.d.ts +0 -10
  441. package/serialization/types/StatusMessageStatus.js +0 -31
  442. /package/api/resources/{sessions/client/requests/SessionPromptContentRequest.js → windows/client/requests/GetWindowInfoRequest.js} +0 -0
  443. /package/api/resources/{sessions/client/requests/SessionPromptPaginatedExtractionRequest.js → windows/client/requests/PromptContentRequest.js} +0 -0
  444. /package/api/resources/{sessions/types/SessionsEventsResponse.js → windows/client/requests/ScrapeContentRequest.js} +0 -0
  445. /package/api/resources/{sessions/types/SessionsEventsResponseError.js → windows/client/requests/SummarizeContentRequest.js} +0 -0
  446. /package/api/{resources/sessions/types/SessionsEventsResponseStatus.js → types/AiResponseEnvelope.js} +0 -0
  447. /package/api/types/{CleanScrapeResponse.js → AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js} +0 -0
  448. /package/api/types/{CleanScrapeResponseData.js → DefaultMetaWrapper.js} +0 -0
  449. /package/api/types/{CleanScrapeResponseOutput.js → ErrorEnvelope.js} +0 -0
  450. /package/api/types/{ConnectionInfo.js → ExternalProfileV1.js} +0 -0
  451. /package/api/types/{ErrorDetail.js → ExternalSessionAiResponseMetadata.js} +0 -0
  452. /package/api/types/{ErrorMessage.js → ExternalSessionAiResponseMetadataUsage.js} +0 -0
  453. /package/api/types/{ErrorModel.js → ExternalSessionConfig.js} +0 -0
  454. /package/api/types/{LiveViewConnectionInfo.js → ExternalSessionWithConnectionInfo.js} +0 -0
  455. /package/api/types/{LiveViewUrlOutputV1Body.js → ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js} +0 -0
  456. /package/api/types/{ProfileOutputV1Body.js → Issue.js} +0 -0
  457. /package/api/types/{ProfileV1.js → ListExternalProfileV1EnvelopeDefaultMetaWrapper.js} +0 -0
  458. /package/api/types/{ProfilesOutputV1Body.js → ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js} +0 -0
  459. /package/api/types/{Session.js → ScrapeResponseEnvelope.js} +0 -0
  460. /package/api/types/{SessionAiResponse.js → ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js} +0 -0
  461. /package/api/types/{SessionAiResponseData.js → ScrapeResponseOutput.js} +0 -0
  462. /package/api/types/{SessionAiResponseIssue.js → Window.js} +0 -0
  463. /package/api/types/{SessionAiResponseMetadata.js → WindowEnvelopeDefaultMetaWrapper.js} +0 -0
  464. /package/{api/types/SessionAiResponseMetadataUsage.js → dist/api/resources/windows/client/requests/GetWindowInfoRequest.js} +0 -0
  465. /package/{api/types/SessionAiResponseResponseMetadataModelUsage.js → dist/api/resources/windows/client/requests/PromptContentRequest.js} +0 -0
  466. /package/{api/types/SessionConfig.js → dist/api/resources/windows/client/requests/ScrapeContentRequest.js} +0 -0
  467. /package/{api/types/SessionOutputV1Body.js → dist/api/resources/windows/client/requests/SummarizeContentRequest.js} +0 -0
  468. /package/{api/types/SessionWithConnectionInfo.js → dist/api/types/AiResponseEnvelope.js} +0 -0
  469. /package/{api/types/SessionsOutputV1Body.js → dist/api/types/AiResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js} +0 -0
  470. /package/{api/types/StatusMessage.js → dist/api/types/DefaultMetaWrapper.js} +0 -0
  471. /package/dist/api/{resources/sessions/client/requests/SessionPromptContentRequest.js → types/ErrorEnvelope.js} +0 -0
  472. /package/dist/api/{resources/sessions/client/requests/SessionPromptPaginatedExtractionRequest.js → types/ExternalProfileV1.js} +0 -0
  473. /package/dist/api/{resources/sessions/types/SessionsEventsResponse.js → types/ExternalSessionAiResponseMetadata.js} +0 -0
  474. /package/dist/api/{resources/sessions/types/SessionsEventsResponseError.js → types/ExternalSessionAiResponseMetadataUsage.js} +0 -0
  475. /package/dist/api/{resources/sessions/types/SessionsEventsResponseStatus.js → types/ExternalSessionConfig.js} +0 -0
  476. /package/dist/api/types/{CleanScrapeResponse.js → ExternalSessionWithConnectionInfo.js} +0 -0
  477. /package/dist/api/types/{CleanScrapeResponseData.js → ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js} +0 -0
  478. /package/dist/api/types/{CleanScrapeResponseOutput.js → Issue.js} +0 -0
  479. /package/dist/api/types/{ConnectionInfo.js → ListExternalProfileV1EnvelopeDefaultMetaWrapper.js} +0 -0
  480. /package/dist/api/types/{ErrorDetail.js → ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper.js} +0 -0
  481. /package/dist/api/types/{ErrorMessage.js → ScrapeResponseEnvelope.js} +0 -0
  482. /package/dist/api/types/{ErrorModel.js → ScrapeResponseEnvelopeExternalSessionAiResponseMetadataWrapper.js} +0 -0
  483. /package/dist/api/types/{LiveViewConnectionInfo.js → ScrapeResponseOutput.js} +0 -0
  484. /package/dist/api/types/{LiveViewUrlOutputV1Body.js → Window.js} +0 -0
  485. /package/dist/api/types/{ProfileOutputV1Body.js → WindowEnvelopeDefaultMetaWrapper.js} +0 -0
@@ -41,7 +41,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Profiles = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Airtop = __importStar(require("../../../index"));
45
44
  const url_join_1 = __importDefault(require("url-join"));
46
45
  const serializers = __importStar(require("../../../../serialization/index"));
47
46
  const errors = __importStar(require("../../../../errors/index"));
@@ -50,43 +49,36 @@ class Profiles {
50
49
  this._options = _options;
51
50
  }
52
51
  /**
53
- * Get profiles, searching by name or tags
52
+ * Get profiles matching by id
54
53
  *
55
54
  * @param {Airtop.ProfilesGetRequest} request
56
55
  * @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
57
56
  *
58
57
  * @example
59
- * await client.profiles.get({
60
- * name: "^Acme.*"
61
- * })
58
+ * await client.profiles.get()
62
59
  */
63
60
  get(request = {}, requestOptions) {
64
61
  var _a, _b;
65
62
  return __awaiter(this, void 0, void 0, function* () {
66
- const { name, tags } = request;
63
+ const { profileIds } = request;
67
64
  const _queryParams = {};
68
- if (name != null) {
69
- _queryParams["name"] = name;
70
- }
71
- if (tags != null) {
72
- if (Array.isArray(tags)) {
73
- _queryParams["tags"] = tags.map((item) => item);
65
+ if (profileIds != null) {
66
+ if (Array.isArray(profileIds)) {
67
+ _queryParams["profileIds"] = profileIds.map((item) => item);
74
68
  }
75
69
  else {
76
- _queryParams["tags"] = tags;
70
+ _queryParams["profileIds"] = profileIds;
77
71
  }
78
72
  }
79
73
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
74
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, "profiles"),
81
75
  method: "GET",
82
76
  headers: {
83
- "x-airtop-token": (yield core.Supplier.get(this._options.airtopToken)) != null
84
- ? yield core.Supplier.get(this._options.airtopToken)
85
- : undefined,
77
+ Authorization: yield this._getAuthorizationHeader(),
86
78
  "X-Fern-Language": "JavaScript",
87
79
  "X-Fern-SDK-Name": "@airtop/sdk",
88
- "X-Fern-SDK-Version": "0.0.7",
89
- "User-Agent": "@airtop/sdk/0.0.7",
80
+ "X-Fern-SDK-Version": "0.0.8",
81
+ "User-Agent": "@airtop/sdk/0.0.8",
90
82
  "X-Fern-Runtime": core.RUNTIME.type,
91
83
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
84
  },
@@ -98,7 +90,7 @@ class Profiles {
98
90
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
91
  });
100
92
  if (_response.ok) {
101
- return serializers.ProfilesOutputV1Body.parseOrThrow(_response.body, {
93
+ return serializers.ListExternalProfileV1EnvelopeDefaultMetaWrapper.parseOrThrow(_response.body, {
102
94
  unrecognizedObjectKeys: "passthrough",
103
95
  allowUnrecognizedUnionMembers: true,
104
96
  allowUnrecognizedEnumValues: true,
@@ -128,43 +120,36 @@ class Profiles {
128
120
  });
129
121
  }
130
122
  /**
131
- * Delete profiles matching query
123
+ * Delete profiles matching by id
132
124
  *
133
125
  * @param {Airtop.ProfilesDeleteRequest} request
134
126
  * @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
135
127
  *
136
128
  * @example
137
- * await client.profiles.delete({
138
- * name: "^Acme.*"
139
- * })
129
+ * await client.profiles.delete()
140
130
  */
141
131
  delete(request = {}, requestOptions) {
142
132
  var _a, _b;
143
133
  return __awaiter(this, void 0, void 0, function* () {
144
- const { name, tags } = request;
134
+ const { profileIds } = request;
145
135
  const _queryParams = {};
146
- if (name != null) {
147
- _queryParams["name"] = name;
148
- }
149
- if (tags != null) {
150
- if (Array.isArray(tags)) {
151
- _queryParams["tags"] = tags.map((item) => item);
136
+ if (profileIds != null) {
137
+ if (Array.isArray(profileIds)) {
138
+ _queryParams["profileIds"] = profileIds.map((item) => item);
152
139
  }
153
140
  else {
154
- _queryParams["tags"] = tags;
141
+ _queryParams["profileIds"] = profileIds;
155
142
  }
156
143
  }
157
144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
158
145
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, "profiles"),
159
146
  method: "DELETE",
160
147
  headers: {
161
- "x-airtop-token": (yield core.Supplier.get(this._options.airtopToken)) != null
162
- ? yield core.Supplier.get(this._options.airtopToken)
163
- : undefined,
148
+ Authorization: yield this._getAuthorizationHeader(),
164
149
  "X-Fern-Language": "JavaScript",
165
150
  "X-Fern-SDK-Name": "@airtop/sdk",
166
- "X-Fern-SDK-Version": "0.0.7",
167
- "User-Agent": "@airtop/sdk/0.0.7",
151
+ "X-Fern-SDK-Version": "0.0.8",
152
+ "User-Agent": "@airtop/sdk/0.0.8",
168
153
  "X-Fern-Runtime": core.RUNTIME.type,
169
154
  "X-Fern-Runtime-Version": core.RUNTIME.version,
170
155
  },
@@ -199,97 +184,13 @@ class Profiles {
199
184
  }
200
185
  });
201
186
  }
202
- /**
203
- * Get a profile by ID
204
- *
205
- * @param {string} id - name of the profile to get
206
- * @param {Profiles.RequestOptions} requestOptions - Request-specific configuration.
207
- *
208
- * @throws {@link Airtop.NotFoundError}
209
- * @throws {@link Airtop.UnprocessableEntityError}
210
- * @throws {@link Airtop.InternalServerError}
211
- *
212
- * @example
213
- * await client.profiles.getById("4a61a55c-391b-4f73-957e-ffbd29ac7cba")
214
- */
215
- getById(id, requestOptions) {
216
- var _a, _b;
187
+ _getAuthorizationHeader() {
217
188
  return __awaiter(this, void 0, void 0, function* () {
218
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
219
- url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AirtopEnvironment.Default, `profiles/${encodeURIComponent(id)}`),
220
- method: "GET",
221
- headers: {
222
- "x-airtop-token": (yield core.Supplier.get(this._options.airtopToken)) != null
223
- ? yield core.Supplier.get(this._options.airtopToken)
224
- : undefined,
225
- "X-Fern-Language": "JavaScript",
226
- "X-Fern-SDK-Name": "@airtop/sdk",
227
- "X-Fern-SDK-Version": "0.0.7",
228
- "User-Agent": "@airtop/sdk/0.0.7",
229
- "X-Fern-Runtime": core.RUNTIME.type,
230
- "X-Fern-Runtime-Version": core.RUNTIME.version,
231
- },
232
- contentType: "application/json",
233
- requestType: "json",
234
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
235
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
236
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
237
- });
238
- if (_response.ok) {
239
- return serializers.ProfileOutputV1Body.parseOrThrow(_response.body, {
240
- unrecognizedObjectKeys: "passthrough",
241
- allowUnrecognizedUnionMembers: true,
242
- allowUnrecognizedEnumValues: true,
243
- skipValidation: true,
244
- breadcrumbsPrefix: ["response"],
245
- });
246
- }
247
- if (_response.error.reason === "status-code") {
248
- switch (_response.error.statusCode) {
249
- case 404:
250
- throw new Airtop.NotFoundError(serializers.ErrorModel.parseOrThrow(_response.error.body, {
251
- unrecognizedObjectKeys: "passthrough",
252
- allowUnrecognizedUnionMembers: true,
253
- allowUnrecognizedEnumValues: true,
254
- skipValidation: true,
255
- breadcrumbsPrefix: ["response"],
256
- }));
257
- case 422:
258
- throw new Airtop.UnprocessableEntityError(serializers.ErrorModel.parseOrThrow(_response.error.body, {
259
- unrecognizedObjectKeys: "passthrough",
260
- allowUnrecognizedUnionMembers: true,
261
- allowUnrecognizedEnumValues: true,
262
- skipValidation: true,
263
- breadcrumbsPrefix: ["response"],
264
- }));
265
- case 500:
266
- throw new Airtop.InternalServerError(serializers.ErrorModel.parseOrThrow(_response.error.body, {
267
- unrecognizedObjectKeys: "passthrough",
268
- allowUnrecognizedUnionMembers: true,
269
- allowUnrecognizedEnumValues: true,
270
- skipValidation: true,
271
- breadcrumbsPrefix: ["response"],
272
- }));
273
- default:
274
- throw new errors.AirtopError({
275
- statusCode: _response.error.statusCode,
276
- body: _response.error.body,
277
- });
278
- }
279
- }
280
- switch (_response.error.reason) {
281
- case "non-json":
282
- throw new errors.AirtopError({
283
- statusCode: _response.error.statusCode,
284
- body: _response.error.rawBody,
285
- });
286
- case "timeout":
287
- throw new errors.AirtopTimeoutError();
288
- case "unknown":
289
- throw new errors.AirtopError({
290
- message: _response.error.errorMessage,
291
- });
189
+ const bearer = yield core.Supplier.get(this._options.apiKey);
190
+ if (bearer != null) {
191
+ return `Bearer ${bearer}`;
292
192
  }
193
+ return undefined;
293
194
  });
294
195
  }
295
196
  }
@@ -3,17 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * name: "^Acme.*"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface ProfilesDeleteRequest {
11
9
  /**
12
- * Name to search for, supports regex, case insensitive
10
+ * A comma separated list of profile ids to search for
13
11
  */
14
- name?: string;
15
- /**
16
- * a comma separated list of tags to filter by (joined by OR, e.g. tag is red OR blue)
17
- */
18
- tags?: string | string[];
12
+ profileIds?: string | string[];
19
13
  }
@@ -3,17 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * name: "^Acme.*"
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface ProfilesGetRequest {
11
9
  /**
12
- * Name to search for, supports regex, case insensitive
10
+ * A comma separated list of profile ids to search for
13
11
  */
14
- name?: string;
15
- /**
16
- * a comma separated list of tags to filter by (joined by OR, e.g. tag is red OR blue)
17
- */
18
- tags?: string | string[];
12
+ profileIds?: string | string[];
19
13
  }
@@ -7,8 +7,7 @@ import * as Airtop from "../../../index";
7
7
  export declare namespace Sessions {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.AirtopEnvironment | string>;
10
- /** Override the x-airtop-token header */
11
- airtopToken?: core.Supplier<string | undefined>;
10
+ apiKey?: core.Supplier<core.BearerToken | undefined>;
12
11
  fetcher?: core.FetchFunction;
13
12
  }
14
13
  interface RequestOptions {
@@ -18,8 +17,6 @@ export declare namespace Sessions {
18
17
  maxRetries?: number;
19
18
  /** A hook to abort the request. */
20
19
  abortSignal?: AbortSignal;
21
- /** Override the x-airtop-token header */
22
- airtopToken?: string | undefined;
23
20
  }
24
21
  }
25
22
  export declare class Sessions {
@@ -38,15 +35,15 @@ export declare class Sessions {
38
35
  * @example
39
36
  * await client.sessions.list()
40
37
  */
41
- list(request?: Airtop.SessionsListRequest, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionsOutputV1Body>;
38
+ list(request?: Airtop.SessionsListRequest, requestOptions?: Sessions.RequestOptions): Promise<Airtop.ListExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper>;
42
39
  /**
43
40
  * @param {Airtop.SessionRestInputV1} request
44
41
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
45
42
  *
46
43
  * @example
47
- * await client.sessions.post()
44
+ * await client.sessions.create()
48
45
  */
49
- post(request?: Airtop.SessionRestInputV1, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionOutputV1Body>;
46
+ create(request?: Airtop.SessionRestInputV1, requestOptions?: Sessions.RequestOptions): Promise<Airtop.ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper>;
50
47
  /**
51
48
  * Get a session by ID
52
49
  *
@@ -58,72 +55,18 @@ export declare class Sessions {
58
55
  * @throws {@link Airtop.InternalServerError}
59
56
  *
60
57
  * @example
61
- * await client.sessions.get("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
58
+ * await client.sessions.getinfo("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
62
59
  */
63
- get(id: string, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionOutputV1Body>;
60
+ getinfo(id: string, requestOptions?: Sessions.RequestOptions): Promise<Airtop.ExternalSessionWithConnectionInfoEnvelopeDefaultMetaWrapper>;
64
61
  /**
65
- * Ends a session by ID
62
+ * Ends a session by ID. If a given session id does not exist within the organization, it is ignored.
66
63
  *
67
64
  * @param {string} id - UUID of the session to delete
68
65
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
69
66
  *
70
67
  * @example
71
- * await client.sessions.delete("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
68
+ * await client.sessions.terminate("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b")
72
69
  */
73
- delete(id: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
74
- /**
75
- * Get a session event stream for a given session ID
76
- */
77
- events(id: string, requestOptions?: Sessions.RequestOptions): Promise<core.Stream<Airtop.SessionsEventsResponse>>;
78
- /**
79
- * @param {string} id - UUID of the session to create a url for
80
- * @param {string} windowId - id of the browser window, either the browserId (uuid) or targetId (simple string)
81
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
82
- *
83
- * @example
84
- * await client.sessions.window("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "7334da2a-91b0-42c5-6156-76a5eba87430")
85
- */
86
- window(id: string, windowId: string, requestOptions?: Sessions.RequestOptions): Promise<Airtop.LiveViewUrlOutputV1Body>;
87
- /**
88
- * @param {string} sessionId - The session id to scrape
89
- * @param {string} windowId - The window id to scrape
90
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
91
- *
92
- * @example
93
- * await client.sessions.cleanScrapeSession("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
94
- */
95
- cleanScrapeSession(sessionId: string, windowId: string, requestOptions?: Sessions.RequestOptions): Promise<Airtop.CleanScrapeResponse>;
96
- /**
97
- * @param {string} sessionId - The session id to submit a prompt about
98
- * @param {string} windowId - The window id to submit a prompt about
99
- * @param {Airtop.SessionPromptContentRequest} request
100
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
101
- *
102
- * @example
103
- * await client.sessions.sessionPromptContent("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
104
- * prompt: "What is the main idea of this page?"
105
- * })
106
- */
107
- sessionPromptContent(sessionId: string, windowId: string, request: Airtop.SessionPromptContentRequest, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionAiResponse>;
108
- /**
109
- * @param {string} sessionId - The session id to perform a paginated extraction on
110
- * @param {string} windowId - The window id to perform a paginated extraction on
111
- * @param {Airtop.SessionPromptPaginatedExtractionRequest} request
112
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
113
- *
114
- * @example
115
- * await client.sessions.sessionPromptPaginatedExtraction("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430", {
116
- * prompt: "For each page on return all the items listed including a subfield"
117
- * })
118
- */
119
- sessionPromptPaginatedExtraction(sessionId: string, windowId: string, request: Airtop.SessionPromptPaginatedExtractionRequest, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionAiResponse>;
120
- /**
121
- * @param {string} sessionId - The session id to summarize
122
- * @param {string} windowId - The window id to summarize
123
- * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
124
- *
125
- * @example
126
- * await client.sessions.summary("6aac6f73-bd89-4a76-ab32-5a6c422e8b0b", "0334da2a-91b0-42c5-6156-76a5eba87430")
127
- */
128
- summary(sessionId: string, windowId: string, requestOptions?: Sessions.RequestOptions): Promise<Airtop.SessionAiResponse>;
70
+ terminate(id: string, requestOptions?: Sessions.RequestOptions): Promise<void>;
71
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
129
72
  }