@lusor/sdk 0.0.0-stage → 1.0.0

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 (976) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE-APACHE-2.0.txt +177 -0
  4. package/README.md +108 -2
  5. package/THIRD_PARTY_NOTICES.md +21 -0
  6. package/dist/BaseClient.d.ts +54 -0
  7. package/dist/BaseClient.js +43 -0
  8. package/dist/Client.d.ts +68 -0
  9. package/dist/Client.js +105 -0
  10. package/dist/api/errors/BadGatewayError.d.ts +7 -0
  11. package/dist/api/errors/BadGatewayError.js +17 -0
  12. package/dist/api/errors/BadRequestError.d.ts +5 -0
  13. package/dist/api/errors/BadRequestError.js +17 -0
  14. package/dist/api/errors/ConflictError.d.ts +7 -0
  15. package/dist/api/errors/ConflictError.js +17 -0
  16. package/dist/api/errors/ForbiddenError.d.ts +7 -0
  17. package/dist/api/errors/ForbiddenError.js +17 -0
  18. package/dist/api/errors/GatewayTimeoutError.d.ts +7 -0
  19. package/dist/api/errors/GatewayTimeoutError.js +17 -0
  20. package/dist/api/errors/GoneError.d.ts +5 -0
  21. package/dist/api/errors/GoneError.js +17 -0
  22. package/dist/api/errors/InternalServerError.d.ts +7 -0
  23. package/dist/api/errors/InternalServerError.js +17 -0
  24. package/dist/api/errors/NotFoundError.d.ts +7 -0
  25. package/dist/api/errors/NotFoundError.js +17 -0
  26. package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
  27. package/dist/api/errors/PaymentRequiredError.js +17 -0
  28. package/dist/api/errors/PreconditionFailedError.d.ts +7 -0
  29. package/dist/api/errors/PreconditionFailedError.js +17 -0
  30. package/dist/api/errors/ServiceUnavailableError.d.ts +7 -0
  31. package/dist/api/errors/ServiceUnavailableError.js +17 -0
  32. package/dist/api/errors/TooManyRequestsError.d.ts +7 -0
  33. package/dist/api/errors/TooManyRequestsError.js +17 -0
  34. package/dist/api/errors/UnauthorizedError.d.ts +7 -0
  35. package/dist/api/errors/UnauthorizedError.js +17 -0
  36. package/dist/api/errors/UnprocessableEntityError.d.ts +7 -0
  37. package/dist/api/errors/UnprocessableEntityError.js +17 -0
  38. package/dist/api/errors/index.d.ts +14 -0
  39. package/dist/api/errors/index.js +14 -0
  40. package/dist/api/index.d.ts +3 -0
  41. package/dist/api/index.js +3 -0
  42. package/dist/api/resources/agents/client/Client.d.ts +209 -0
  43. package/dist/api/resources/agents/client/Client.js +596 -0
  44. package/dist/api/resources/agents/client/index.d.ts +1 -0
  45. package/dist/api/resources/agents/client/index.js +1 -0
  46. package/dist/api/resources/agents/client/requests/ArchiveAgentsRequest.d.ts +13 -0
  47. package/dist/api/resources/agents/client/requests/ArchiveAgentsRequest.js +2 -0
  48. package/dist/api/resources/agents/client/requests/CreateAgentInput.d.ts +53 -0
  49. package/dist/api/resources/agents/client/requests/CreateAgentInput.js +2 -0
  50. package/dist/api/resources/agents/client/requests/GetAgentsRequest.d.ts +16 -0
  51. package/dist/api/resources/agents/client/requests/GetAgentsRequest.js +2 -0
  52. package/dist/api/resources/agents/client/requests/ListAgentsRequest.d.ts +16 -0
  53. package/dist/api/resources/agents/client/requests/ListAgentsRequest.js +2 -0
  54. package/dist/api/resources/agents/client/requests/ListArchivedAgentsRequest.d.ts +12 -0
  55. package/dist/api/resources/agents/client/requests/ListArchivedAgentsRequest.js +2 -0
  56. package/dist/api/resources/agents/client/requests/RestoreAgentsRequest.d.ts +13 -0
  57. package/dist/api/resources/agents/client/requests/RestoreAgentsRequest.js +2 -0
  58. package/dist/api/resources/agents/client/requests/RetargetQueueAgentsRequest.d.ts +13 -0
  59. package/dist/api/resources/agents/client/requests/RetargetQueueAgentsRequest.js +2 -0
  60. package/dist/api/resources/agents/client/requests/UpdateAgentInput.d.ts +30 -0
  61. package/dist/api/resources/agents/client/requests/UpdateAgentInput.js +2 -0
  62. package/dist/api/resources/agents/client/requests/index.d.ts +8 -0
  63. package/dist/api/resources/agents/client/requests/index.js +1 -0
  64. package/dist/api/resources/agents/exports.d.ts +3 -0
  65. package/dist/api/resources/agents/exports.js +4 -0
  66. package/dist/api/resources/agents/index.d.ts +3 -0
  67. package/dist/api/resources/agents/index.js +3 -0
  68. package/dist/api/resources/agents/resources/index.d.ts +3 -0
  69. package/dist/api/resources/agents/resources/index.js +3 -0
  70. package/dist/api/resources/agents/resources/turns/client/Client.d.ts +100 -0
  71. package/dist/api/resources/agents/resources/turns/client/Client.js +240 -0
  72. package/dist/api/resources/agents/resources/turns/client/index.d.ts +1 -0
  73. package/dist/api/resources/agents/resources/turns/client/index.js +1 -0
  74. package/dist/api/resources/agents/resources/turns/client/requests/CancelTurnsRequest.d.ts +16 -0
  75. package/dist/api/resources/agents/resources/turns/client/requests/CancelTurnsRequest.js +2 -0
  76. package/dist/api/resources/agents/resources/turns/client/requests/CreateAgentTurnInput.d.ts +23 -0
  77. package/dist/api/resources/agents/resources/turns/client/requests/CreateAgentTurnInput.js +2 -0
  78. package/dist/api/resources/agents/resources/turns/client/requests/ListTurnsRequest.d.ts +20 -0
  79. package/dist/api/resources/agents/resources/turns/client/requests/ListTurnsRequest.js +2 -0
  80. package/dist/api/resources/agents/resources/turns/client/requests/index.d.ts +3 -0
  81. package/dist/api/resources/agents/resources/turns/client/requests/index.js +1 -0
  82. package/dist/api/resources/agents/resources/turns/exports.d.ts +2 -0
  83. package/dist/api/resources/agents/resources/turns/exports.js +3 -0
  84. package/dist/api/resources/agents/resources/turns/index.d.ts +2 -0
  85. package/dist/api/resources/agents/resources/turns/index.js +2 -0
  86. package/dist/api/resources/agents/resources/turns/types/CancelTurnsResponse.d.ts +14 -0
  87. package/dist/api/resources/agents/resources/turns/types/CancelTurnsResponse.js +2 -0
  88. package/dist/api/resources/agents/resources/turns/types/index.d.ts +1 -0
  89. package/dist/api/resources/agents/resources/turns/types/index.js +1 -0
  90. package/dist/api/resources/agents/types/RetargetQueueAgentsResponse.d.ts +4 -0
  91. package/dist/api/resources/agents/types/RetargetQueueAgentsResponse.js +2 -0
  92. package/dist/api/resources/agents/types/index.d.ts +1 -0
  93. package/dist/api/resources/agents/types/index.js +1 -0
  94. package/dist/api/resources/appInstalls/client/Client.d.ts +216 -0
  95. package/dist/api/resources/appInstalls/client/Client.js +591 -0
  96. package/dist/api/resources/appInstalls/client/index.d.ts +1 -0
  97. package/dist/api/resources/appInstalls/client/index.js +1 -0
  98. package/dist/api/resources/appInstalls/client/requests/AppInstallBatchInput.d.ts +16 -0
  99. package/dist/api/resources/appInstalls/client/requests/AppInstallBatchInput.js +2 -0
  100. package/dist/api/resources/appInstalls/client/requests/AppStoreInstallInput.d.ts +21 -0
  101. package/dist/api/resources/appInstalls/client/requests/AppStoreInstallInput.js +2 -0
  102. package/dist/api/resources/appInstalls/client/requests/CancelBatchAppInstallsRequest.d.ts +15 -0
  103. package/dist/api/resources/appInstalls/client/requests/CancelBatchAppInstallsRequest.js +2 -0
  104. package/dist/api/resources/appInstalls/client/requests/CreateAppInstallsRequest.d.ts +19 -0
  105. package/dist/api/resources/appInstalls/client/requests/CreateAppInstallsRequest.js +2 -0
  106. package/dist/api/resources/appInstalls/client/requests/EventsAppInstallsRequest.d.ts +13 -0
  107. package/dist/api/resources/appInstalls/client/requests/EventsAppInstallsRequest.js +2 -0
  108. package/dist/api/resources/appInstalls/client/requests/GetActiveBatchAppInstallsRequest.d.ts +13 -0
  109. package/dist/api/resources/appInstalls/client/requests/GetActiveBatchAppInstallsRequest.js +2 -0
  110. package/dist/api/resources/appInstalls/client/requests/ListAppInstallsRequest.d.ts +15 -0
  111. package/dist/api/resources/appInstalls/client/requests/ListAppInstallsRequest.js +2 -0
  112. package/dist/api/resources/appInstalls/client/requests/UninstallAppInstallsRequest.d.ts +15 -0
  113. package/dist/api/resources/appInstalls/client/requests/UninstallAppInstallsRequest.js +2 -0
  114. package/dist/api/resources/appInstalls/client/requests/index.d.ts +8 -0
  115. package/dist/api/resources/appInstalls/client/requests/index.js +1 -0
  116. package/dist/api/resources/appInstalls/exports.d.ts +2 -0
  117. package/dist/api/resources/appInstalls/exports.js +3 -0
  118. package/dist/api/resources/appInstalls/index.d.ts +2 -0
  119. package/dist/api/resources/appInstalls/index.js +2 -0
  120. package/dist/api/resources/appInstalls/types/CancelBatchAppInstallsResponse.d.ts +3 -0
  121. package/dist/api/resources/appInstalls/types/CancelBatchAppInstallsResponse.js +2 -0
  122. package/dist/api/resources/appInstalls/types/CreateAppInstallsResponse.d.ts +4 -0
  123. package/dist/api/resources/appInstalls/types/CreateAppInstallsResponse.js +2 -0
  124. package/dist/api/resources/appInstalls/types/ListAppInstallsResponse.d.ts +4 -0
  125. package/dist/api/resources/appInstalls/types/ListAppInstallsResponse.js +2 -0
  126. package/dist/api/resources/appInstalls/types/UninstallAppInstallsResponse.d.ts +4 -0
  127. package/dist/api/resources/appInstalls/types/UninstallAppInstallsResponse.js +2 -0
  128. package/dist/api/resources/appInstalls/types/index.d.ts +4 -0
  129. package/dist/api/resources/appInstalls/types/index.js +4 -0
  130. package/dist/api/resources/catalog/client/Client.d.ts +46 -0
  131. package/dist/api/resources/catalog/client/Client.js +144 -0
  132. package/dist/api/resources/catalog/client/index.d.ts +1 -0
  133. package/dist/api/resources/catalog/client/index.js +1 -0
  134. package/dist/api/resources/catalog/client/requests/GetAppIconCatalogRequest.d.ts +16 -0
  135. package/dist/api/resources/catalog/client/requests/GetAppIconCatalogRequest.js +2 -0
  136. package/dist/api/resources/catalog/client/requests/ListAppsCatalogRequest.d.ts +12 -0
  137. package/dist/api/resources/catalog/client/requests/ListAppsCatalogRequest.js +2 -0
  138. package/dist/api/resources/catalog/client/requests/index.d.ts +2 -0
  139. package/dist/api/resources/catalog/client/requests/index.js +1 -0
  140. package/dist/api/resources/catalog/exports.d.ts +2 -0
  141. package/dist/api/resources/catalog/exports.js +3 -0
  142. package/dist/api/resources/catalog/index.d.ts +2 -0
  143. package/dist/api/resources/catalog/index.js +2 -0
  144. package/dist/api/resources/catalog/types/ListAppsCatalogResponse.d.ts +4 -0
  145. package/dist/api/resources/catalog/types/ListAppsCatalogResponse.js +2 -0
  146. package/dist/api/resources/catalog/types/index.d.ts +1 -0
  147. package/dist/api/resources/catalog/types/index.js +1 -0
  148. package/dist/api/resources/datasets/client/Client.d.ts +109 -0
  149. package/dist/api/resources/datasets/client/Client.js +303 -0
  150. package/dist/api/resources/datasets/client/index.d.ts +1 -0
  151. package/dist/api/resources/datasets/client/index.js +1 -0
  152. package/dist/api/resources/datasets/client/requests/DeleteDatasetsRequest.d.ts +10 -0
  153. package/dist/api/resources/datasets/client/requests/DeleteDatasetsRequest.js +2 -0
  154. package/dist/api/resources/datasets/client/requests/GetDatasetsRequest.d.ts +10 -0
  155. package/dist/api/resources/datasets/client/requests/GetDatasetsRequest.js +2 -0
  156. package/dist/api/resources/datasets/client/requests/PromoteDatasetInput.d.ts +13 -0
  157. package/dist/api/resources/datasets/client/requests/PromoteDatasetInput.js +2 -0
  158. package/dist/api/resources/datasets/client/requests/UpdateDatasetInput.d.ts +13 -0
  159. package/dist/api/resources/datasets/client/requests/UpdateDatasetInput.js +2 -0
  160. package/dist/api/resources/datasets/client/requests/index.d.ts +4 -0
  161. package/dist/api/resources/datasets/client/requests/index.js +1 -0
  162. package/dist/api/resources/datasets/exports.d.ts +2 -0
  163. package/dist/api/resources/datasets/exports.js +3 -0
  164. package/dist/api/resources/datasets/index.d.ts +1 -0
  165. package/dist/api/resources/datasets/index.js +1 -0
  166. package/dist/api/resources/devices/client/Client.d.ts +979 -0
  167. package/dist/api/resources/devices/client/Client.js +2576 -0
  168. package/dist/api/resources/devices/client/index.d.ts +1 -0
  169. package/dist/api/resources/devices/client/index.js +1 -0
  170. package/dist/api/resources/devices/client/requests/BackDevicesRequest.d.ts +46 -0
  171. package/dist/api/resources/devices/client/requests/BackDevicesRequest.js +2 -0
  172. package/dist/api/resources/devices/client/requests/ChainRequest.d.ts +50 -0
  173. package/dist/api/resources/devices/client/requests/ChainRequest.js +2 -0
  174. package/dist/api/resources/devices/client/requests/ClearDevicesRequest.d.ts +46 -0
  175. package/dist/api/resources/devices/client/requests/ClearDevicesRequest.js +2 -0
  176. package/dist/api/resources/devices/client/requests/ClearGeoDevicesRequest.d.ts +39 -0
  177. package/dist/api/resources/devices/client/requests/ClearGeoDevicesRequest.js +2 -0
  178. package/dist/api/resources/devices/client/requests/DeployDevicesRequest.d.ts +15 -0
  179. package/dist/api/resources/devices/client/requests/DeployDevicesRequest.js +2 -0
  180. package/dist/api/resources/devices/client/requests/DeviceDeployPreviewInput.d.ts +41 -0
  181. package/dist/api/resources/devices/client/requests/DeviceDeployPreviewInput.js +13 -0
  182. package/dist/api/resources/devices/client/requests/DeviceGeoInput.d.ts +48 -0
  183. package/dist/api/resources/devices/client/requests/DeviceGeoInput.js +2 -0
  184. package/dist/api/resources/devices/client/requests/DeviceLanguageInput.d.ts +44 -0
  185. package/dist/api/resources/devices/client/requests/DeviceLanguageInput.js +2 -0
  186. package/dist/api/resources/devices/client/requests/GetAdvertisingIdDevicesRequest.d.ts +13 -0
  187. package/dist/api/resources/devices/client/requests/GetAdvertisingIdDevicesRequest.js +2 -0
  188. package/dist/api/resources/devices/client/requests/GetGeoDevicesRequest.d.ts +13 -0
  189. package/dist/api/resources/devices/client/requests/GetGeoDevicesRequest.js +2 -0
  190. package/dist/api/resources/devices/client/requests/GetIdentityDevicesRequest.d.ts +13 -0
  191. package/dist/api/resources/devices/client/requests/GetIdentityDevicesRequest.js +2 -0
  192. package/dist/api/resources/devices/client/requests/GetInternetLocationDevicesRequest.d.ts +13 -0
  193. package/dist/api/resources/devices/client/requests/GetInternetLocationDevicesRequest.js +2 -0
  194. package/dist/api/resources/devices/client/requests/GetLanguageDevicesRequest.d.ts +13 -0
  195. package/dist/api/resources/devices/client/requests/GetLanguageDevicesRequest.js +2 -0
  196. package/dist/api/resources/devices/client/requests/GetResetDevicesRequest.d.ts +13 -0
  197. package/dist/api/resources/devices/client/requests/GetResetDevicesRequest.js +2 -0
  198. package/dist/api/resources/devices/client/requests/GetStaticIpDevicesRequest.d.ts +15 -0
  199. package/dist/api/resources/devices/client/requests/GetStaticIpDevicesRequest.js +2 -0
  200. package/dist/api/resources/devices/client/requests/HomeDevicesRequest.d.ts +46 -0
  201. package/dist/api/resources/devices/client/requests/HomeDevicesRequest.js +2 -0
  202. package/dist/api/resources/devices/client/requests/KeyInput.d.ts +47 -0
  203. package/dist/api/resources/devices/client/requests/KeyInput.js +2 -0
  204. package/dist/api/resources/devices/client/requests/ListDevicesRequest.d.ts +12 -0
  205. package/dist/api/resources/devices/client/requests/ListDevicesRequest.js +2 -0
  206. package/dist/api/resources/devices/client/requests/ListInWorkspaceDevicesRequest.d.ts +10 -0
  207. package/dist/api/resources/devices/client/requests/ListInWorkspaceDevicesRequest.js +2 -0
  208. package/dist/api/resources/devices/client/requests/ListInternetLocationsRequest.d.ts +10 -0
  209. package/dist/api/resources/devices/client/requests/ListInternetLocationsRequest.js +2 -0
  210. package/dist/api/resources/devices/client/requests/OccupancyDevicesRequest.d.ts +13 -0
  211. package/dist/api/resources/devices/client/requests/OccupancyDevicesRequest.js +2 -0
  212. package/dist/api/resources/devices/client/requests/PreviewRemoveDevicesRequest.d.ts +17 -0
  213. package/dist/api/resources/devices/client/requests/PreviewRemoveDevicesRequest.js +2 -0
  214. package/dist/api/resources/devices/client/requests/RecentDevicesRequest.d.ts +46 -0
  215. package/dist/api/resources/devices/client/requests/RecentDevicesRequest.js +2 -0
  216. package/dist/api/resources/devices/client/requests/RemoveDevicesRequest.d.ts +18 -0
  217. package/dist/api/resources/devices/client/requests/RemoveDevicesRequest.js +2 -0
  218. package/dist/api/resources/devices/client/requests/ResetAdvertisingIdDevicesRequest.d.ts +39 -0
  219. package/dist/api/resources/devices/client/requests/ResetAdvertisingIdDevicesRequest.js +2 -0
  220. package/dist/api/resources/devices/client/requests/ScreenshotDevicesRequest.d.ts +13 -0
  221. package/dist/api/resources/devices/client/requests/ScreenshotDevicesRequest.js +2 -0
  222. package/dist/api/resources/devices/client/requests/SetIdentityDevicesRequest.d.ts +42 -0
  223. package/dist/api/resources/devices/client/requests/SetIdentityDevicesRequest.js +2 -0
  224. package/dist/api/resources/devices/client/requests/ShellInput.d.ts +45 -0
  225. package/dist/api/resources/devices/client/requests/ShellInput.js +2 -0
  226. package/dist/api/resources/devices/client/requests/StartAppInput.d.ts +58 -0
  227. package/dist/api/resources/devices/client/requests/StartAppInput.js +2 -0
  228. package/dist/api/resources/devices/client/requests/StateDevicesRequest.d.ts +13 -0
  229. package/dist/api/resources/devices/client/requests/StateDevicesRequest.js +2 -0
  230. package/dist/api/resources/devices/client/requests/StopAppInput.d.ts +51 -0
  231. package/dist/api/resources/devices/client/requests/StopAppInput.js +2 -0
  232. package/dist/api/resources/devices/client/requests/SwipeInput.d.ts +61 -0
  233. package/dist/api/resources/devices/client/requests/SwipeInput.js +2 -0
  234. package/dist/api/resources/devices/client/requests/TakeScreenshotDevicesRequest.d.ts +46 -0
  235. package/dist/api/resources/devices/client/requests/TakeScreenshotDevicesRequest.js +2 -0
  236. package/dist/api/resources/devices/client/requests/TapInput.d.ts +58 -0
  237. package/dist/api/resources/devices/client/requests/TapInput.js +2 -0
  238. package/dist/api/resources/devices/client/requests/TypeTextInput.d.ts +60 -0
  239. package/dist/api/resources/devices/client/requests/TypeTextInput.js +2 -0
  240. package/dist/api/resources/devices/client/requests/index.d.ts +35 -0
  241. package/dist/api/resources/devices/client/requests/index.js +1 -0
  242. package/dist/api/resources/devices/exports.d.ts +3 -0
  243. package/dist/api/resources/devices/exports.js +4 -0
  244. package/dist/api/resources/devices/index.d.ts +3 -0
  245. package/dist/api/resources/devices/index.js +3 -0
  246. package/dist/api/resources/devices/resources/index.d.ts +3 -0
  247. package/dist/api/resources/devices/resources/index.js +3 -0
  248. package/dist/api/resources/devices/resources/sessions/client/Client.d.ts +62 -0
  249. package/dist/api/resources/devices/resources/sessions/client/Client.js +162 -0
  250. package/dist/api/resources/devices/resources/sessions/client/index.d.ts +1 -0
  251. package/dist/api/resources/devices/resources/sessions/client/index.js +1 -0
  252. package/dist/api/resources/devices/resources/sessions/client/requests/CreateSessionInput.d.ts +57 -0
  253. package/dist/api/resources/devices/resources/sessions/client/requests/CreateSessionInput.js +2 -0
  254. package/dist/api/resources/devices/resources/sessions/client/requests/ListSessionsRequest.d.ts +16 -0
  255. package/dist/api/resources/devices/resources/sessions/client/requests/ListSessionsRequest.js +2 -0
  256. package/dist/api/resources/devices/resources/sessions/client/requests/index.d.ts +2 -0
  257. package/dist/api/resources/devices/resources/sessions/client/requests/index.js +1 -0
  258. package/dist/api/resources/devices/resources/sessions/exports.d.ts +2 -0
  259. package/dist/api/resources/devices/resources/sessions/exports.js +3 -0
  260. package/dist/api/resources/devices/resources/sessions/index.d.ts +2 -0
  261. package/dist/api/resources/devices/resources/sessions/index.js +2 -0
  262. package/dist/api/resources/devices/resources/sessions/types/ListSessionsResponse.d.ts +4 -0
  263. package/dist/api/resources/devices/resources/sessions/types/ListSessionsResponse.js +2 -0
  264. package/dist/api/resources/devices/resources/sessions/types/index.d.ts +1 -0
  265. package/dist/api/resources/devices/resources/sessions/types/index.js +1 -0
  266. package/dist/api/resources/devices/types/ClearGeoDevicesResponse.d.ts +4 -0
  267. package/dist/api/resources/devices/types/ClearGeoDevicesResponse.js +2 -0
  268. package/dist/api/resources/devices/types/DeployDevicesResponse.d.ts +4 -0
  269. package/dist/api/resources/devices/types/DeployDevicesResponse.js +2 -0
  270. package/dist/api/resources/devices/types/GetAdvertisingIdDevicesResponse.d.ts +4 -0
  271. package/dist/api/resources/devices/types/GetAdvertisingIdDevicesResponse.js +2 -0
  272. package/dist/api/resources/devices/types/GetGeoDevicesResponse.d.ts +4 -0
  273. package/dist/api/resources/devices/types/GetGeoDevicesResponse.js +2 -0
  274. package/dist/api/resources/devices/types/GetIdentityDevicesResponse.d.ts +4 -0
  275. package/dist/api/resources/devices/types/GetIdentityDevicesResponse.js +2 -0
  276. package/dist/api/resources/devices/types/GetInternetLocationDevicesResponse.d.ts +4 -0
  277. package/dist/api/resources/devices/types/GetInternetLocationDevicesResponse.js +2 -0
  278. package/dist/api/resources/devices/types/GetLanguageDevicesResponse.d.ts +4 -0
  279. package/dist/api/resources/devices/types/GetLanguageDevicesResponse.js +2 -0
  280. package/dist/api/resources/devices/types/GetResetDevicesResponse.d.ts +4 -0
  281. package/dist/api/resources/devices/types/GetResetDevicesResponse.js +2 -0
  282. package/dist/api/resources/devices/types/GetStaticIpDevicesResponse.d.ts +4 -0
  283. package/dist/api/resources/devices/types/GetStaticIpDevicesResponse.js +2 -0
  284. package/dist/api/resources/devices/types/ListDevicesResponse.d.ts +4 -0
  285. package/dist/api/resources/devices/types/ListDevicesResponse.js +2 -0
  286. package/dist/api/resources/devices/types/ListInWorkspaceDevicesResponse.d.ts +4 -0
  287. package/dist/api/resources/devices/types/ListInWorkspaceDevicesResponse.js +2 -0
  288. package/dist/api/resources/devices/types/ListInternetLocationsResponse.d.ts +9 -0
  289. package/dist/api/resources/devices/types/ListInternetLocationsResponse.js +2 -0
  290. package/dist/api/resources/devices/types/OccupancyDevicesResponse.d.ts +4 -0
  291. package/dist/api/resources/devices/types/OccupancyDevicesResponse.js +2 -0
  292. package/dist/api/resources/devices/types/PreviewDeployDevicesResponse.d.ts +4 -0
  293. package/dist/api/resources/devices/types/PreviewDeployDevicesResponse.js +2 -0
  294. package/dist/api/resources/devices/types/PreviewRemoveDevicesResponse.d.ts +4 -0
  295. package/dist/api/resources/devices/types/PreviewRemoveDevicesResponse.js +2 -0
  296. package/dist/api/resources/devices/types/RemoveDevicesResponse.d.ts +4 -0
  297. package/dist/api/resources/devices/types/RemoveDevicesResponse.js +2 -0
  298. package/dist/api/resources/devices/types/ResetAdvertisingIdDevicesResponse.d.ts +4 -0
  299. package/dist/api/resources/devices/types/ResetAdvertisingIdDevicesResponse.js +2 -0
  300. package/dist/api/resources/devices/types/SetGeoDevicesResponse.d.ts +4 -0
  301. package/dist/api/resources/devices/types/SetGeoDevicesResponse.js +2 -0
  302. package/dist/api/resources/devices/types/SetIdentityDevicesResponse.d.ts +4 -0
  303. package/dist/api/resources/devices/types/SetIdentityDevicesResponse.js +2 -0
  304. package/dist/api/resources/devices/types/SetLanguageDevicesResponse.d.ts +4 -0
  305. package/dist/api/resources/devices/types/SetLanguageDevicesResponse.js +2 -0
  306. package/dist/api/resources/devices/types/index.d.ts +20 -0
  307. package/dist/api/resources/devices/types/index.js +20 -0
  308. package/dist/api/resources/emails/client/Client.d.ts +212 -0
  309. package/dist/api/resources/emails/client/Client.js +537 -0
  310. package/dist/api/resources/emails/client/index.d.ts +1 -0
  311. package/dist/api/resources/emails/client/index.js +1 -0
  312. package/dist/api/resources/emails/client/requests/EmailAddressAddInput.d.ts +16 -0
  313. package/dist/api/resources/emails/client/requests/EmailAddressAddInput.js +2 -0
  314. package/dist/api/resources/emails/client/requests/ListAddressesEmailsRequest.d.ts +12 -0
  315. package/dist/api/resources/emails/client/requests/ListAddressesEmailsRequest.js +2 -0
  316. package/dist/api/resources/emails/client/requests/ListMessagesEmailsRequest.d.ts +20 -0
  317. package/dist/api/resources/emails/client/requests/ListMessagesEmailsRequest.js +2 -0
  318. package/dist/api/resources/emails/client/requests/PreviewAddAddressEmailsRequest.d.ts +17 -0
  319. package/dist/api/resources/emails/client/requests/PreviewAddAddressEmailsRequest.js +2 -0
  320. package/dist/api/resources/emails/client/requests/PreviewRemoveAddressEmailsRequest.d.ts +20 -0
  321. package/dist/api/resources/emails/client/requests/PreviewRemoveAddressEmailsRequest.js +2 -0
  322. package/dist/api/resources/emails/client/requests/RemoveAddressEmailsRequest.d.ts +21 -0
  323. package/dist/api/resources/emails/client/requests/RemoveAddressEmailsRequest.js +2 -0
  324. package/dist/api/resources/emails/client/requests/index.d.ts +6 -0
  325. package/dist/api/resources/emails/client/requests/index.js +1 -0
  326. package/dist/api/resources/emails/exports.d.ts +2 -0
  327. package/dist/api/resources/emails/exports.js +3 -0
  328. package/dist/api/resources/emails/index.d.ts +2 -0
  329. package/dist/api/resources/emails/index.js +2 -0
  330. package/dist/api/resources/emails/types/AddAddressEmailsResponse.d.ts +4 -0
  331. package/dist/api/resources/emails/types/AddAddressEmailsResponse.js +2 -0
  332. package/dist/api/resources/emails/types/PreviewAddAddressEmailsResponse.d.ts +4 -0
  333. package/dist/api/resources/emails/types/PreviewAddAddressEmailsResponse.js +2 -0
  334. package/dist/api/resources/emails/types/PreviewRemoveAddressEmailsResponse.d.ts +4 -0
  335. package/dist/api/resources/emails/types/PreviewRemoveAddressEmailsResponse.js +2 -0
  336. package/dist/api/resources/emails/types/RemoveAddressEmailsResponse.d.ts +4 -0
  337. package/dist/api/resources/emails/types/RemoveAddressEmailsResponse.js +2 -0
  338. package/dist/api/resources/emails/types/index.d.ts +4 -0
  339. package/dist/api/resources/emails/types/index.js +4 -0
  340. package/dist/api/resources/files/client/Client.d.ts +69 -0
  341. package/dist/api/resources/files/client/Client.js +205 -0
  342. package/dist/api/resources/files/client/index.d.ts +1 -0
  343. package/dist/api/resources/files/client/index.js +1 -0
  344. package/dist/api/resources/files/client/requests/DownloadFilesRequest.d.ts +16 -0
  345. package/dist/api/resources/files/client/requests/DownloadFilesRequest.js +2 -0
  346. package/dist/api/resources/files/client/requests/GetFilesRequest.d.ts +16 -0
  347. package/dist/api/resources/files/client/requests/GetFilesRequest.js +2 -0
  348. package/dist/api/resources/files/client/requests/ListFilesRequest.d.ts +13 -0
  349. package/dist/api/resources/files/client/requests/ListFilesRequest.js +2 -0
  350. package/dist/api/resources/files/client/requests/index.d.ts +3 -0
  351. package/dist/api/resources/files/client/requests/index.js +1 -0
  352. package/dist/api/resources/files/exports.d.ts +2 -0
  353. package/dist/api/resources/files/exports.js +3 -0
  354. package/dist/api/resources/files/index.d.ts +2 -0
  355. package/dist/api/resources/files/index.js +2 -0
  356. package/dist/api/resources/files/types/DownloadFilesResponse.d.ts +4 -0
  357. package/dist/api/resources/files/types/DownloadFilesResponse.js +2 -0
  358. package/dist/api/resources/files/types/GetFilesResponse.d.ts +4 -0
  359. package/dist/api/resources/files/types/GetFilesResponse.js +2 -0
  360. package/dist/api/resources/files/types/ListFilesResponse.d.ts +4 -0
  361. package/dist/api/resources/files/types/ListFilesResponse.js +2 -0
  362. package/dist/api/resources/files/types/index.d.ts +3 -0
  363. package/dist/api/resources/files/types/index.js +3 -0
  364. package/dist/api/resources/health/client/Client.d.ts +29 -0
  365. package/dist/api/resources/health/client/Client.js +57 -0
  366. package/dist/api/resources/health/client/index.d.ts +1 -0
  367. package/dist/api/resources/health/client/index.js +1 -0
  368. package/dist/api/resources/health/exports.d.ts +2 -0
  369. package/dist/api/resources/health/exports.js +3 -0
  370. package/dist/api/resources/health/index.d.ts +2 -0
  371. package/dist/api/resources/health/index.js +2 -0
  372. package/dist/api/resources/health/types/CheckHealthResponse.d.ts +4 -0
  373. package/dist/api/resources/health/types/CheckHealthResponse.js +2 -0
  374. package/dist/api/resources/health/types/index.d.ts +1 -0
  375. package/dist/api/resources/health/types/index.js +1 -0
  376. package/dist/api/resources/index.d.ts +42 -0
  377. package/dist/api/resources/index.js +42 -0
  378. package/dist/api/resources/modelKeys/client/Client.d.ts +94 -0
  379. package/dist/api/resources/modelKeys/client/Client.js +224 -0
  380. package/dist/api/resources/modelKeys/client/index.d.ts +1 -0
  381. package/dist/api/resources/modelKeys/client/index.js +1 -0
  382. package/dist/api/resources/modelKeys/client/requests/DeleteModelKeysRequest.d.ts +13 -0
  383. package/dist/api/resources/modelKeys/client/requests/DeleteModelKeysRequest.js +2 -0
  384. package/dist/api/resources/modelKeys/client/requests/ListModelKeysRequest.d.ts +10 -0
  385. package/dist/api/resources/modelKeys/client/requests/ListModelKeysRequest.js +2 -0
  386. package/dist/api/resources/modelKeys/client/requests/ModelKeyInput.d.ts +16 -0
  387. package/dist/api/resources/modelKeys/client/requests/ModelKeyInput.js +2 -0
  388. package/dist/api/resources/modelKeys/client/requests/index.d.ts +3 -0
  389. package/dist/api/resources/modelKeys/client/requests/index.js +1 -0
  390. package/dist/api/resources/modelKeys/exports.d.ts +2 -0
  391. package/dist/api/resources/modelKeys/exports.js +3 -0
  392. package/dist/api/resources/modelKeys/index.d.ts +2 -0
  393. package/dist/api/resources/modelKeys/index.js +2 -0
  394. package/dist/api/resources/modelKeys/types/DeleteModelKeysRequestProvider.d.ts +5 -0
  395. package/dist/api/resources/modelKeys/types/DeleteModelKeysRequestProvider.js +5 -0
  396. package/dist/api/resources/modelKeys/types/ListModelKeysResponse.d.ts +4 -0
  397. package/dist/api/resources/modelKeys/types/ListModelKeysResponse.js +2 -0
  398. package/dist/api/resources/modelKeys/types/SetModelKeysRequestProvider.d.ts +5 -0
  399. package/dist/api/resources/modelKeys/types/SetModelKeysRequestProvider.js +5 -0
  400. package/dist/api/resources/modelKeys/types/SetModelKeysResponse.d.ts +4 -0
  401. package/dist/api/resources/modelKeys/types/SetModelKeysResponse.js +2 -0
  402. package/dist/api/resources/modelKeys/types/index.d.ts +4 -0
  403. package/dist/api/resources/modelKeys/types/index.js +4 -0
  404. package/dist/api/resources/notifications/client/Client.d.ts +98 -0
  405. package/dist/api/resources/notifications/client/Client.js +264 -0
  406. package/dist/api/resources/notifications/client/index.d.ts +1 -0
  407. package/dist/api/resources/notifications/client/index.js +1 -0
  408. package/dist/api/resources/notifications/client/requests/GetSettingsNotificationsRequest.d.ts +13 -0
  409. package/dist/api/resources/notifications/client/requests/GetSettingsNotificationsRequest.js +2 -0
  410. package/dist/api/resources/notifications/client/requests/ListAppsNotificationsRequest.d.ts +13 -0
  411. package/dist/api/resources/notifications/client/requests/ListAppsNotificationsRequest.js +2 -0
  412. package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +17 -0
  413. package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.js +2 -0
  414. package/dist/api/resources/notifications/client/requests/ListRulesNotificationsRequest.d.ts +10 -0
  415. package/dist/api/resources/notifications/client/requests/ListRulesNotificationsRequest.js +2 -0
  416. package/dist/api/resources/notifications/client/requests/index.d.ts +4 -0
  417. package/dist/api/resources/notifications/client/requests/index.js +1 -0
  418. package/dist/api/resources/notifications/exports.d.ts +2 -0
  419. package/dist/api/resources/notifications/exports.js +3 -0
  420. package/dist/api/resources/notifications/index.d.ts +2 -0
  421. package/dist/api/resources/notifications/index.js +2 -0
  422. package/dist/api/resources/notifications/types/GetSettingsNotificationsResponse.d.ts +4 -0
  423. package/dist/api/resources/notifications/types/GetSettingsNotificationsResponse.js +2 -0
  424. package/dist/api/resources/notifications/types/ListAppsNotificationsResponse.d.ts +4 -0
  425. package/dist/api/resources/notifications/types/ListAppsNotificationsResponse.js +2 -0
  426. package/dist/api/resources/notifications/types/ListNotificationsResponse.d.ts +4 -0
  427. package/dist/api/resources/notifications/types/ListNotificationsResponse.js +2 -0
  428. package/dist/api/resources/notifications/types/ListRulesNotificationsResponse.d.ts +4 -0
  429. package/dist/api/resources/notifications/types/ListRulesNotificationsResponse.js +2 -0
  430. package/dist/api/resources/notifications/types/index.d.ts +4 -0
  431. package/dist/api/resources/notifications/types/index.js +4 -0
  432. package/dist/api/resources/phoneNumbers/client/Client.d.ts +92 -0
  433. package/dist/api/resources/phoneNumbers/client/Client.js +219 -0
  434. package/dist/api/resources/phoneNumbers/client/index.d.ts +1 -0
  435. package/dist/api/resources/phoneNumbers/client/index.js +1 -0
  436. package/dist/api/resources/phoneNumbers/client/requests/GetPhoneNumbersRequest.d.ts +13 -0
  437. package/dist/api/resources/phoneNumbers/client/requests/GetPhoneNumbersRequest.js +2 -0
  438. package/dist/api/resources/phoneNumbers/client/requests/ListMessagesPhoneNumbersRequest.d.ts +19 -0
  439. package/dist/api/resources/phoneNumbers/client/requests/ListMessagesPhoneNumbersRequest.js +2 -0
  440. package/dist/api/resources/phoneNumbers/client/requests/ListPhoneNumbersRequest.d.ts +10 -0
  441. package/dist/api/resources/phoneNumbers/client/requests/ListPhoneNumbersRequest.js +2 -0
  442. package/dist/api/resources/phoneNumbers/client/requests/index.d.ts +3 -0
  443. package/dist/api/resources/phoneNumbers/client/requests/index.js +1 -0
  444. package/dist/api/resources/phoneNumbers/exports.d.ts +2 -0
  445. package/dist/api/resources/phoneNumbers/exports.js +3 -0
  446. package/dist/api/resources/phoneNumbers/index.d.ts +1 -0
  447. package/dist/api/resources/phoneNumbers/index.js +1 -0
  448. package/dist/api/resources/secrets/client/Client.d.ts +80 -0
  449. package/dist/api/resources/secrets/client/Client.js +192 -0
  450. package/dist/api/resources/secrets/client/index.d.ts +1 -0
  451. package/dist/api/resources/secrets/client/index.js +1 -0
  452. package/dist/api/resources/secrets/client/requests/GetSecretsRequest.d.ts +10 -0
  453. package/dist/api/resources/secrets/client/requests/GetSecretsRequest.js +2 -0
  454. package/dist/api/resources/secrets/client/requests/ListSecretsRequest.d.ts +10 -0
  455. package/dist/api/resources/secrets/client/requests/ListSecretsRequest.js +2 -0
  456. package/dist/api/resources/secrets/client/requests/ListTagsSecretsRequest.d.ts +10 -0
  457. package/dist/api/resources/secrets/client/requests/ListTagsSecretsRequest.js +2 -0
  458. package/dist/api/resources/secrets/client/requests/index.d.ts +3 -0
  459. package/dist/api/resources/secrets/client/requests/index.js +1 -0
  460. package/dist/api/resources/secrets/exports.d.ts +2 -0
  461. package/dist/api/resources/secrets/exports.js +3 -0
  462. package/dist/api/resources/secrets/index.d.ts +2 -0
  463. package/dist/api/resources/secrets/index.js +2 -0
  464. package/dist/api/resources/secrets/types/GetSecretsResponse.d.ts +4 -0
  465. package/dist/api/resources/secrets/types/GetSecretsResponse.js +2 -0
  466. package/dist/api/resources/secrets/types/ListTagsSecretsResponse.d.ts +4 -0
  467. package/dist/api/resources/secrets/types/ListTagsSecretsResponse.js +2 -0
  468. package/dist/api/resources/secrets/types/index.d.ts +2 -0
  469. package/dist/api/resources/secrets/types/index.js +2 -0
  470. package/dist/api/resources/sessions/client/Client.d.ts +442 -0
  471. package/dist/api/resources/sessions/client/Client.js +1241 -0
  472. package/dist/api/resources/sessions/client/index.d.ts +1 -0
  473. package/dist/api/resources/sessions/client/index.js +1 -0
  474. package/dist/api/resources/sessions/client/requests/AnswerHitlInput.d.ts +18 -0
  475. package/dist/api/resources/sessions/client/requests/AnswerHitlInput.js +2 -0
  476. package/dist/api/resources/sessions/client/requests/ArtifactsSessionsRequest.d.ts +16 -0
  477. package/dist/api/resources/sessions/client/requests/ArtifactsSessionsRequest.js +2 -0
  478. package/dist/api/resources/sessions/client/requests/BreakdownSessionsRequest.d.ts +10 -0
  479. package/dist/api/resources/sessions/client/requests/BreakdownSessionsRequest.js +2 -0
  480. package/dist/api/resources/sessions/client/requests/CancelQueuedSessionsRequest.d.ts +18 -0
  481. package/dist/api/resources/sessions/client/requests/CancelQueuedSessionsRequest.js +2 -0
  482. package/dist/api/resources/sessions/client/requests/ContinueSessionInput.d.ts +24 -0
  483. package/dist/api/resources/sessions/client/requests/ContinueSessionInput.js +2 -0
  484. package/dist/api/resources/sessions/client/requests/EventsSessionsRequest.d.ts +12 -0
  485. package/dist/api/resources/sessions/client/requests/EventsSessionsRequest.js +2 -0
  486. package/dist/api/resources/sessions/client/requests/GetLegacySessionsRequest.d.ts +16 -0
  487. package/dist/api/resources/sessions/client/requests/GetLegacySessionsRequest.js +2 -0
  488. package/dist/api/resources/sessions/client/requests/GetSessionsRequest.d.ts +10 -0
  489. package/dist/api/resources/sessions/client/requests/GetSessionsRequest.js +2 -0
  490. package/dist/api/resources/sessions/client/requests/GetUiStateSessionsRequest.d.ts +19 -0
  491. package/dist/api/resources/sessions/client/requests/GetUiStateSessionsRequest.js +2 -0
  492. package/dist/api/resources/sessions/client/requests/HistoryPolicySessionsRequest.d.ts +12 -0
  493. package/dist/api/resources/sessions/client/requests/HistoryPolicySessionsRequest.js +2 -0
  494. package/dist/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +78 -0
  495. package/dist/api/resources/sessions/client/requests/ListSessionsRequest.js +2 -0
  496. package/dist/api/resources/sessions/client/requests/RecordingSessionsRequest.d.ts +16 -0
  497. package/dist/api/resources/sessions/client/requests/RecordingSessionsRequest.js +2 -0
  498. package/dist/api/resources/sessions/client/requests/ReplayFrameSessionsRequest.d.ts +19 -0
  499. package/dist/api/resources/sessions/client/requests/ReplayFrameSessionsRequest.js +2 -0
  500. package/dist/api/resources/sessions/client/requests/ReplaySessionsRequest.d.ts +16 -0
  501. package/dist/api/resources/sessions/client/requests/ReplaySessionsRequest.js +2 -0
  502. package/dist/api/resources/sessions/client/requests/StatusSessionsRequest.d.ts +16 -0
  503. package/dist/api/resources/sessions/client/requests/StatusSessionsRequest.js +2 -0
  504. package/dist/api/resources/sessions/client/requests/StopSessionsRequest.d.ts +19 -0
  505. package/dist/api/resources/sessions/client/requests/StopSessionsRequest.js +2 -0
  506. package/dist/api/resources/sessions/client/requests/UpdateSessionInput.d.ts +13 -0
  507. package/dist/api/resources/sessions/client/requests/UpdateSessionInput.js +2 -0
  508. package/dist/api/resources/sessions/client/requests/index.d.ts +17 -0
  509. package/dist/api/resources/sessions/client/requests/index.js +1 -0
  510. package/dist/api/resources/sessions/exports.d.ts +3 -0
  511. package/dist/api/resources/sessions/exports.js +4 -0
  512. package/dist/api/resources/sessions/index.d.ts +3 -0
  513. package/dist/api/resources/sessions/index.js +3 -0
  514. package/dist/api/resources/sessions/resources/index.d.ts +3 -0
  515. package/dist/api/resources/sessions/resources/index.js +3 -0
  516. package/dist/api/resources/sessions/resources/liveView/client/Client.d.ts +210 -0
  517. package/dist/api/resources/sessions/resources/liveView/client/Client.js +616 -0
  518. package/dist/api/resources/sessions/resources/liveView/client/index.d.ts +1 -0
  519. package/dist/api/resources/sessions/resources/liveView/client/index.js +1 -0
  520. package/dist/api/resources/sessions/resources/liveView/client/requests/ConnectLiveViewRequest.d.ts +13 -0
  521. package/dist/api/resources/sessions/resources/liveView/client/requests/ConnectLiveViewRequest.js +2 -0
  522. package/dist/api/resources/sessions/resources/liveView/client/requests/EventsLiveViewRequest.d.ts +16 -0
  523. package/dist/api/resources/sessions/resources/liveView/client/requests/EventsLiveViewRequest.js +2 -0
  524. package/dist/api/resources/sessions/resources/liveView/client/requests/IceServersLiveViewRequest.d.ts +16 -0
  525. package/dist/api/resources/sessions/resources/liveView/client/requests/IceServersLiveViewRequest.js +2 -0
  526. package/dist/api/resources/sessions/resources/liveView/client/requests/KeepaliveLiveViewRequest.d.ts +13 -0
  527. package/dist/api/resources/sessions/resources/liveView/client/requests/KeepaliveLiveViewRequest.js +2 -0
  528. package/dist/api/resources/sessions/resources/liveView/client/requests/RequestFrameLiveViewRequest.d.ts +13 -0
  529. package/dist/api/resources/sessions/resources/liveView/client/requests/RequestFrameLiveViewRequest.js +2 -0
  530. package/dist/api/resources/sessions/resources/liveView/client/requests/StartLiveViewRequest.d.ts +13 -0
  531. package/dist/api/resources/sessions/resources/liveView/client/requests/StartLiveViewRequest.js +2 -0
  532. package/dist/api/resources/sessions/resources/liveView/client/requests/StreamSignalInput.d.ts +30 -0
  533. package/dist/api/resources/sessions/resources/liveView/client/requests/StreamSignalInput.js +11 -0
  534. package/dist/api/resources/sessions/resources/liveView/client/requests/StreamStopInput.d.ts +15 -0
  535. package/dist/api/resources/sessions/resources/liveView/client/requests/StreamStopInput.js +2 -0
  536. package/dist/api/resources/sessions/resources/liveView/client/requests/index.d.ts +8 -0
  537. package/dist/api/resources/sessions/resources/liveView/client/requests/index.js +1 -0
  538. package/dist/api/resources/sessions/resources/liveView/exports.d.ts +2 -0
  539. package/dist/api/resources/sessions/resources/liveView/exports.js +3 -0
  540. package/dist/api/resources/sessions/resources/liveView/index.d.ts +2 -0
  541. package/dist/api/resources/sessions/resources/liveView/index.js +2 -0
  542. package/dist/api/resources/sessions/resources/liveView/types/IceServersLiveViewResponse.d.ts +4 -0
  543. package/dist/api/resources/sessions/resources/liveView/types/IceServersLiveViewResponse.js +2 -0
  544. package/dist/api/resources/sessions/resources/liveView/types/index.d.ts +1 -0
  545. package/dist/api/resources/sessions/resources/liveView/types/index.js +1 -0
  546. package/dist/api/resources/sessions/types/BreakdownSessionsResponse.d.ts +18 -0
  547. package/dist/api/resources/sessions/types/BreakdownSessionsResponse.js +10 -0
  548. package/dist/api/resources/sessions/types/EventsSessionsResponse.d.ts +4 -0
  549. package/dist/api/resources/sessions/types/EventsSessionsResponse.js +2 -0
  550. package/dist/api/resources/sessions/types/HistoryPolicySessionsResponse.d.ts +4 -0
  551. package/dist/api/resources/sessions/types/HistoryPolicySessionsResponse.js +2 -0
  552. package/dist/api/resources/sessions/types/ListSessionsRequestStatusMode.d.ts +5 -0
  553. package/dist/api/resources/sessions/types/ListSessionsRequestStatusMode.js +5 -0
  554. package/dist/api/resources/sessions/types/ListSessionsResponse.d.ts +4 -0
  555. package/dist/api/resources/sessions/types/ListSessionsResponse.js +2 -0
  556. package/dist/api/resources/sessions/types/index.d.ts +5 -0
  557. package/dist/api/resources/sessions/types/index.js +5 -0
  558. package/dist/api/resources/skills/client/Client.d.ts +106 -0
  559. package/dist/api/resources/skills/client/Client.js +310 -0
  560. package/dist/api/resources/skills/client/index.d.ts +1 -0
  561. package/dist/api/resources/skills/client/index.js +1 -0
  562. package/dist/api/resources/skills/client/requests/CreateSkillInput.d.ts +44 -0
  563. package/dist/api/resources/skills/client/requests/CreateSkillInput.js +2 -0
  564. package/dist/api/resources/skills/client/requests/DeleteSkillsRequest.d.ts +10 -0
  565. package/dist/api/resources/skills/client/requests/DeleteSkillsRequest.js +2 -0
  566. package/dist/api/resources/skills/client/requests/GetSkillsRequest.d.ts +10 -0
  567. package/dist/api/resources/skills/client/requests/GetSkillsRequest.js +2 -0
  568. package/dist/api/resources/skills/client/requests/ListSkillsRequest.d.ts +9 -0
  569. package/dist/api/resources/skills/client/requests/ListSkillsRequest.js +2 -0
  570. package/dist/api/resources/skills/client/requests/UpdateSkillsRequest.d.ts +20 -0
  571. package/dist/api/resources/skills/client/requests/UpdateSkillsRequest.js +2 -0
  572. package/dist/api/resources/skills/client/requests/index.d.ts +5 -0
  573. package/dist/api/resources/skills/client/requests/index.js +1 -0
  574. package/dist/api/resources/skills/exports.d.ts +2 -0
  575. package/dist/api/resources/skills/exports.js +3 -0
  576. package/dist/api/resources/skills/index.d.ts +2 -0
  577. package/dist/api/resources/skills/index.js +2 -0
  578. package/dist/api/resources/skills/types/ListSkillsRequestScope.d.ts +5 -0
  579. package/dist/api/resources/skills/types/ListSkillsRequestScope.js +5 -0
  580. package/dist/api/resources/skills/types/ListSkillsResponse.d.ts +4 -0
  581. package/dist/api/resources/skills/types/ListSkillsResponse.js +2 -0
  582. package/dist/api/resources/skills/types/index.d.ts +2 -0
  583. package/dist/api/resources/skills/types/index.js +2 -0
  584. package/dist/api/resources/workspaces/client/Client.d.ts +34 -0
  585. package/dist/api/resources/workspaces/client/Client.js +72 -0
  586. package/dist/api/resources/workspaces/client/index.d.ts +1 -0
  587. package/dist/api/resources/workspaces/client/index.js +1 -0
  588. package/dist/api/resources/workspaces/client/requests/GetWorkspacesRequest.d.ts +10 -0
  589. package/dist/api/resources/workspaces/client/requests/GetWorkspacesRequest.js +2 -0
  590. package/dist/api/resources/workspaces/client/requests/index.d.ts +1 -0
  591. package/dist/api/resources/workspaces/client/requests/index.js +1 -0
  592. package/dist/api/resources/workspaces/exports.d.ts +2 -0
  593. package/dist/api/resources/workspaces/exports.js +3 -0
  594. package/dist/api/resources/workspaces/index.d.ts +2 -0
  595. package/dist/api/resources/workspaces/index.js +2 -0
  596. package/dist/api/resources/workspaces/types/GetWorkspacesResponse.d.ts +4 -0
  597. package/dist/api/resources/workspaces/types/GetWorkspacesResponse.js +2 -0
  598. package/dist/api/resources/workspaces/types/index.d.ts +1 -0
  599. package/dist/api/resources/workspaces/types/index.js +1 -0
  600. package/dist/api/types/Agent.d.ts +19 -0
  601. package/dist/api/types/Agent.js +2 -0
  602. package/dist/api/types/AgentDetail.d.ts +9 -0
  603. package/dist/api/types/AgentDetail.js +2 -0
  604. package/dist/api/types/AgentDetailResponse.d.ts +4 -0
  605. package/dist/api/types/AgentDetailResponse.js +2 -0
  606. package/dist/api/types/AgentDevice.d.ts +7 -0
  607. package/dist/api/types/AgentDevice.js +2 -0
  608. package/dist/api/types/AgentDeviceInput.d.ts +6 -0
  609. package/dist/api/types/AgentDeviceInput.js +2 -0
  610. package/dist/api/types/AgentListResponse.d.ts +8 -0
  611. package/dist/api/types/AgentListResponse.js +2 -0
  612. package/dist/api/types/AgentTurn.d.ts +14 -0
  613. package/dist/api/types/AgentTurn.js +2 -0
  614. package/dist/api/types/AgentTurnDispatchResponse.d.ts +29 -0
  615. package/dist/api/types/AgentTurnDispatchResponse.js +14 -0
  616. package/dist/api/types/AgentTurnPage.d.ts +7 -0
  617. package/dist/api/types/AgentTurnPage.js +2 -0
  618. package/dist/api/types/AgentTurnPageResponse.d.ts +4 -0
  619. package/dist/api/types/AgentTurnPageResponse.js +2 -0
  620. package/dist/api/types/AnswerHitlResult.d.ts +26 -0
  621. package/dist/api/types/AnswerHitlResult.js +13 -0
  622. package/dist/api/types/AppInstall.d.ts +36 -0
  623. package/dist/api/types/AppInstall.js +22 -0
  624. package/dist/api/types/AppInstallBatch.d.ts +39 -0
  625. package/dist/api/types/AppInstallBatch.js +28 -0
  626. package/dist/api/types/AppInstallBatchStarted.d.ts +19 -0
  627. package/dist/api/types/AppInstallBatchStarted.js +13 -0
  628. package/dist/api/types/AppInstallEvent.d.ts +16 -0
  629. package/dist/api/types/AppInstallEvent.js +8 -0
  630. package/dist/api/types/AppStoreInstallResponse.d.ts +31 -0
  631. package/dist/api/types/AppStoreInstallResponse.js +14 -0
  632. package/dist/api/types/ArchiveAgentResponse.d.ts +10 -0
  633. package/dist/api/types/ArchiveAgentResponse.js +2 -0
  634. package/dist/api/types/BackChainStep.d.ts +5 -0
  635. package/dist/api/types/BackChainStep.js +2 -0
  636. package/dist/api/types/BadRequestErrorBody.d.ts +2 -0
  637. package/dist/api/types/BadRequestErrorBody.js +2 -0
  638. package/dist/api/types/Busy.d.ts +19 -0
  639. package/dist/api/types/Busy.js +9 -0
  640. package/dist/api/types/CancelQueuedFollowupResult.d.ts +8 -0
  641. package/dist/api/types/CancelQueuedFollowupResult.js +2 -0
  642. package/dist/api/types/CaptureField.d.ts +7 -0
  643. package/dist/api/types/CaptureField.js +2 -0
  644. package/dist/api/types/CaptureOnlyFilter.d.ts +8 -0
  645. package/dist/api/types/CaptureOnlyFilter.js +8 -0
  646. package/dist/api/types/CaptureOptions.d.ts +20 -0
  647. package/dist/api/types/CaptureOptions.js +2 -0
  648. package/dist/api/types/CaptureResponse.d.ts +56 -0
  649. package/dist/api/types/CaptureResponse.js +2 -0
  650. package/dist/api/types/CaptureVerbosity.d.ts +12 -0
  651. package/dist/api/types/CaptureVerbosity.js +12 -0
  652. package/dist/api/types/CatalogApp.d.ts +11 -0
  653. package/dist/api/types/CatalogApp.js +2 -0
  654. package/dist/api/types/ChainCapturePolicy.d.ts +12 -0
  655. package/dist/api/types/ChainCapturePolicy.js +12 -0
  656. package/dist/api/types/ChainResponse.d.ts +6 -0
  657. package/dist/api/types/ChainResponse.js +2 -0
  658. package/dist/api/types/ChainStep.d.ts +45 -0
  659. package/dist/api/types/ChainStep.js +2 -0
  660. package/dist/api/types/ChainStepResponse.d.ts +14 -0
  661. package/dist/api/types/ChainStepResponse.js +2 -0
  662. package/dist/api/types/ChainVerb.d.ts +16 -0
  663. package/dist/api/types/ChainVerb.js +16 -0
  664. package/dist/api/types/ClearChainStep.d.ts +5 -0
  665. package/dist/api/types/ClearChainStep.js +2 -0
  666. package/dist/api/types/ContinueSessionResult.d.ts +25 -0
  667. package/dist/api/types/ContinueSessionResult.js +7 -0
  668. package/dist/api/types/CreateSessionResult.d.ts +13 -0
  669. package/dist/api/types/CreateSessionResult.js +7 -0
  670. package/dist/api/types/Dataset.d.ts +18 -0
  671. package/dist/api/types/Dataset.js +7 -0
  672. package/dist/api/types/DatasetColumn.d.ts +5 -0
  673. package/dist/api/types/DatasetColumn.js +2 -0
  674. package/dist/api/types/DatasetColumnType.d.ts +6 -0
  675. package/dist/api/types/DatasetColumnType.js +6 -0
  676. package/dist/api/types/DatasetListResponse.d.ts +4 -0
  677. package/dist/api/types/DatasetListResponse.js +2 -0
  678. package/dist/api/types/DatasetOutput.d.ts +12 -0
  679. package/dist/api/types/DatasetOutput.js +2 -0
  680. package/dist/api/types/DatasetResponse.d.ts +4 -0
  681. package/dist/api/types/DatasetResponse.js +2 -0
  682. package/dist/api/types/DeleteDatasetResponse.d.ts +3 -0
  683. package/dist/api/types/DeleteDatasetResponse.js +2 -0
  684. package/dist/api/types/Device.d.ts +41 -0
  685. package/dist/api/types/Device.js +16 -0
  686. package/dist/api/types/DeviceAdvertisingIdReset.d.ts +6 -0
  687. package/dist/api/types/DeviceAdvertisingIdReset.js +2 -0
  688. package/dist/api/types/DeviceChangeConfirmInput.d.ts +4 -0
  689. package/dist/api/types/DeviceChangeConfirmInput.js +2 -0
  690. package/dist/api/types/DeviceChangePreview.d.ts +36 -0
  691. package/dist/api/types/DeviceChangePreview.js +7 -0
  692. package/dist/api/types/DeviceChangeResult.d.ts +9 -0
  693. package/dist/api/types/DeviceChangeResult.js +2 -0
  694. package/dist/api/types/DeviceControlError.d.ts +15 -0
  695. package/dist/api/types/DeviceControlError.js +15 -0
  696. package/dist/api/types/DeviceControlInProgress.d.ts +7 -0
  697. package/dist/api/types/DeviceControlInProgress.js +7 -0
  698. package/dist/api/types/DeviceControlState.d.ts +18 -0
  699. package/dist/api/types/DeviceControlState.js +18 -0
  700. package/dist/api/types/DeviceGeo.d.ts +37 -0
  701. package/dist/api/types/DeviceGeo.js +18 -0
  702. package/dist/api/types/DeviceIdentity.d.ts +9 -0
  703. package/dist/api/types/DeviceIdentity.js +2 -0
  704. package/dist/api/types/DeviceIdentityFields.d.ts +16 -0
  705. package/dist/api/types/DeviceIdentityFields.js +2 -0
  706. package/dist/api/types/DeviceInternetLocation.d.ts +28 -0
  707. package/dist/api/types/DeviceInternetLocation.js +16 -0
  708. package/dist/api/types/DeviceLanguage.d.ts +8 -0
  709. package/dist/api/types/DeviceLanguage.js +2 -0
  710. package/dist/api/types/DeviceOccupancy.d.ts +39 -0
  711. package/dist/api/types/DeviceOccupancy.js +2 -0
  712. package/dist/api/types/DeviceRemoveResult.d.ts +8 -0
  713. package/dist/api/types/DeviceRemoveResult.js +2 -0
  714. package/dist/api/types/DeviceReset.d.ts +35 -0
  715. package/dist/api/types/DeviceReset.js +20 -0
  716. package/dist/api/types/DeviceState.d.ts +21 -0
  717. package/dist/api/types/DeviceState.js +2 -0
  718. package/dist/api/types/DeviceStaticIp.d.ts +18 -0
  719. package/dist/api/types/DeviceStaticIp.js +10 -0
  720. package/dist/api/types/DeviceStaticIpStatus.d.ts +17 -0
  721. package/dist/api/types/DeviceStaticIpStatus.js +10 -0
  722. package/dist/api/types/EmailAddress.d.ts +11 -0
  723. package/dist/api/types/EmailAddress.js +2 -0
  724. package/dist/api/types/EmailAddressListResponse.d.ts +4 -0
  725. package/dist/api/types/EmailAddressListResponse.js +2 -0
  726. package/dist/api/types/EmailMessage.d.ts +15 -0
  727. package/dist/api/types/EmailMessage.js +2 -0
  728. package/dist/api/types/EmailMessageListResponse.d.ts +6 -0
  729. package/dist/api/types/EmailMessageListResponse.js +2 -0
  730. package/dist/api/types/EmptyChainStepParams.d.ts +6 -0
  731. package/dist/api/types/EmptyChainStepParams.js +2 -0
  732. package/dist/api/types/EmptyVerbInput.d.ts +9 -0
  733. package/dist/api/types/EmptyVerbInput.js +2 -0
  734. package/dist/api/types/ErrorResponse.d.ts +4 -0
  735. package/dist/api/types/ErrorResponse.js +2 -0
  736. package/dist/api/types/HistoryPolicy.d.ts +17 -0
  737. package/dist/api/types/HistoryPolicy.js +2 -0
  738. package/dist/api/types/HomeChainStep.d.ts +5 -0
  739. package/dist/api/types/HomeChainStep.js +2 -0
  740. package/dist/api/types/IceServer.d.ts +8 -0
  741. package/dist/api/types/IceServer.js +2 -0
  742. package/dist/api/types/IceServerIssuance.d.ts +13 -0
  743. package/dist/api/types/IceServerIssuance.js +2 -0
  744. package/dist/api/types/InboxAddressAddResult.d.ts +18 -0
  745. package/dist/api/types/InboxAddressAddResult.js +2 -0
  746. package/dist/api/types/InboxAddressPreview.d.ts +34 -0
  747. package/dist/api/types/InboxAddressPreview.js +7 -0
  748. package/dist/api/types/InboxAddressRemoveResult.d.ts +13 -0
  749. package/dist/api/types/InboxAddressRemoveResult.js +2 -0
  750. package/dist/api/types/KeyChainStep.d.ts +5 -0
  751. package/dist/api/types/KeyChainStep.js +2 -0
  752. package/dist/api/types/KeyChainStepParams.d.ts +3 -0
  753. package/dist/api/types/KeyChainStepParams.js +2 -0
  754. package/dist/api/types/LegacySession.d.ts +21 -0
  755. package/dist/api/types/LegacySession.js +11 -0
  756. package/dist/api/types/ModelKey.d.ts +14 -0
  757. package/dist/api/types/ModelKey.js +8 -0
  758. package/dist/api/types/NotificationApp.d.ts +6 -0
  759. package/dist/api/types/NotificationApp.js +2 -0
  760. package/dist/api/types/NotificationFeedItem.d.ts +34 -0
  761. package/dist/api/types/NotificationFeedItem.js +2 -0
  762. package/dist/api/types/NotificationRule.d.ts +41 -0
  763. package/dist/api/types/NotificationRule.js +12 -0
  764. package/dist/api/types/NotificationSettings.d.ts +29 -0
  765. package/dist/api/types/NotificationSettings.js +2 -0
  766. package/dist/api/types/PhoneNumber.d.ts +34 -0
  767. package/dist/api/types/PhoneNumber.js +18 -0
  768. package/dist/api/types/PhoneNumberListResponse.d.ts +4 -0
  769. package/dist/api/types/PhoneNumberListResponse.js +2 -0
  770. package/dist/api/types/PhoneNumberMessage.d.ts +9 -0
  771. package/dist/api/types/PhoneNumberMessage.js +2 -0
  772. package/dist/api/types/PhoneNumberMessageListResponse.d.ts +6 -0
  773. package/dist/api/types/PhoneNumberMessageListResponse.js +2 -0
  774. package/dist/api/types/PhoneNumberResponse.d.ts +4 -0
  775. package/dist/api/types/PhoneNumberResponse.js +2 -0
  776. package/dist/api/types/RecentChainStep.d.ts +5 -0
  777. package/dist/api/types/RecentChainStep.js +2 -0
  778. package/dist/api/types/RecordingFinalizationStatus.d.ts +11 -0
  779. package/dist/api/types/RecordingFinalizationStatus.js +11 -0
  780. package/dist/api/types/RetargetQueuedTurnsResult.d.ts +10 -0
  781. package/dist/api/types/RetargetQueuedTurnsResult.js +2 -0
  782. package/dist/api/types/ScreenshotChainStep.d.ts +5 -0
  783. package/dist/api/types/ScreenshotChainStep.js +2 -0
  784. package/dist/api/types/SecretTag.d.ts +6 -0
  785. package/dist/api/types/SecretTag.js +2 -0
  786. package/dist/api/types/SessionArtifacts.d.ts +29 -0
  787. package/dist/api/types/SessionArtifacts.js +2 -0
  788. package/dist/api/types/SessionDetail.d.ts +15 -0
  789. package/dist/api/types/SessionDetail.js +2 -0
  790. package/dist/api/types/SessionEvent.d.ts +10 -0
  791. package/dist/api/types/SessionEvent.js +2 -0
  792. package/dist/api/types/SessionRecording.d.ts +20 -0
  793. package/dist/api/types/SessionRecording.js +9 -0
  794. package/dist/api/types/SessionRecordingResponse.d.ts +8 -0
  795. package/dist/api/types/SessionRecordingResponse.js +2 -0
  796. package/dist/api/types/SessionRecordingSegment.d.ts +11 -0
  797. package/dist/api/types/SessionRecordingSegment.js +2 -0
  798. package/dist/api/types/SessionReplayFrame.d.ts +24 -0
  799. package/dist/api/types/SessionReplayFrame.js +10 -0
  800. package/dist/api/types/SessionReplayResponse.d.ts +4 -0
  801. package/dist/api/types/SessionReplayResponse.js +2 -0
  802. package/dist/api/types/SessionStatusV2.d.ts +11 -0
  803. package/dist/api/types/SessionStatusV2.js +11 -0
  804. package/dist/api/types/SessionStatusView.d.ts +9 -0
  805. package/dist/api/types/SessionStatusView.js +2 -0
  806. package/dist/api/types/SessionV2.d.ts +42 -0
  807. package/dist/api/types/SessionV2.js +2 -0
  808. package/dist/api/types/ShellResult.d.ts +6 -0
  809. package/dist/api/types/ShellResult.js +2 -0
  810. package/dist/api/types/Skill.d.ts +17 -0
  811. package/dist/api/types/Skill.js +2 -0
  812. package/dist/api/types/StartAppChainStep.d.ts +5 -0
  813. package/dist/api/types/StartAppChainStep.js +2 -0
  814. package/dist/api/types/StartAppChainStepParams.d.ts +12 -0
  815. package/dist/api/types/StartAppChainStepParams.js +2 -0
  816. package/dist/api/types/StopAppChainStep.d.ts +5 -0
  817. package/dist/api/types/StopAppChainStep.js +2 -0
  818. package/dist/api/types/StopAppChainStepParams.d.ts +7 -0
  819. package/dist/api/types/StopAppChainStepParams.js +2 -0
  820. package/dist/api/types/StopSessionResult.d.ts +7 -0
  821. package/dist/api/types/StopSessionResult.js +2 -0
  822. package/dist/api/types/StreamCommandResult.d.ts +10 -0
  823. package/dist/api/types/StreamCommandResult.js +2 -0
  824. package/dist/api/types/StreamSignalEvent.d.ts +23 -0
  825. package/dist/api/types/StreamSignalEvent.js +12 -0
  826. package/dist/api/types/StreamStartInput.d.ts +12 -0
  827. package/dist/api/types/StreamStartInput.js +2 -0
  828. package/dist/api/types/StreamViewerInput.d.ts +6 -0
  829. package/dist/api/types/StreamViewerInput.js +2 -0
  830. package/dist/api/types/SwipeChainStep.d.ts +5 -0
  831. package/dist/api/types/SwipeChainStep.js +2 -0
  832. package/dist/api/types/SwipeChainStepParams.d.ts +8 -0
  833. package/dist/api/types/SwipeChainStepParams.js +2 -0
  834. package/dist/api/types/TapChainStep.d.ts +5 -0
  835. package/dist/api/types/TapChainStep.js +2 -0
  836. package/dist/api/types/TapChainStepParams.d.ts +13 -0
  837. package/dist/api/types/TapChainStepParams.js +2 -0
  838. package/dist/api/types/TapResult.d.ts +12 -0
  839. package/dist/api/types/TapResult.js +2 -0
  840. package/dist/api/types/TypeChainStep.d.ts +5 -0
  841. package/dist/api/types/TypeChainStep.js +2 -0
  842. package/dist/api/types/TypeChainStepParams.d.ts +5 -0
  843. package/dist/api/types/TypeChainStepParams.js +2 -0
  844. package/dist/api/types/ValidationErrorResponse.d.ts +4 -0
  845. package/dist/api/types/ValidationErrorResponse.js +2 -0
  846. package/dist/api/types/VerbResult.d.ts +12 -0
  847. package/dist/api/types/VerbResult.js +2 -0
  848. package/dist/api/types/VerbResultWithOptionalCapture.d.ts +4 -0
  849. package/dist/api/types/VerbResultWithOptionalCapture.js +2 -0
  850. package/dist/api/types/WaitChainStep.d.ts +5 -0
  851. package/dist/api/types/WaitChainStep.js +2 -0
  852. package/dist/api/types/WaitChainStepParams.d.ts +11 -0
  853. package/dist/api/types/WaitChainStepParams.js +2 -0
  854. package/dist/api/types/Workspace.d.ts +7 -0
  855. package/dist/api/types/Workspace.js +2 -0
  856. package/dist/api/types/WorkspaceFile.d.ts +20 -0
  857. package/dist/api/types/WorkspaceFile.js +8 -0
  858. package/dist/api/types/WorkspaceFileDownload.d.ts +8 -0
  859. package/dist/api/types/WorkspaceFileDownload.js +2 -0
  860. package/dist/api/types/WorkspaceScopeInput.d.ts +4 -0
  861. package/dist/api/types/WorkspaceScopeInput.js +2 -0
  862. package/dist/api/types/WorkspaceSecret.d.ts +26 -0
  863. package/dist/api/types/WorkspaceSecret.js +2 -0
  864. package/dist/api/types/WorkspaceSecretListResponse.d.ts +4 -0
  865. package/dist/api/types/WorkspaceSecretListResponse.js +2 -0
  866. package/dist/api/types/index.d.ts +133 -0
  867. package/dist/api/types/index.js +133 -0
  868. package/dist/auth/HeaderAuthProvider.d.ts +20 -0
  869. package/dist/auth/HeaderAuthProvider.js +33 -0
  870. package/dist/auth/index.d.ts +1 -0
  871. package/dist/auth/index.js +1 -0
  872. package/dist/core/auth/AuthProvider.d.ts +8 -0
  873. package/dist/core/auth/AuthProvider.js +6 -0
  874. package/dist/core/auth/AuthRequest.d.ts +9 -0
  875. package/dist/core/auth/AuthRequest.js +1 -0
  876. package/dist/core/auth/BasicAuth.d.ts +8 -0
  877. package/dist/core/auth/BasicAuth.js +29 -0
  878. package/dist/core/auth/BearerToken.d.ts +7 -0
  879. package/dist/core/auth/BearerToken.js +13 -0
  880. package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
  881. package/dist/core/auth/NoOpAuthProvider.js +5 -0
  882. package/dist/core/auth/index.d.ts +5 -0
  883. package/dist/core/auth/index.js +4 -0
  884. package/dist/core/base64.d.ts +2 -0
  885. package/dist/core/base64.js +22 -0
  886. package/dist/core/exports.d.ts +1 -0
  887. package/dist/core/exports.js +1 -0
  888. package/dist/core/fetcher/APIResponse.d.ts +20 -0
  889. package/dist/core/fetcher/APIResponse.js +1 -0
  890. package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
  891. package/dist/core/fetcher/BinaryResponse.js +14 -0
  892. package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
  893. package/dist/core/fetcher/EndpointMetadata.js +1 -0
  894. package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
  895. package/dist/core/fetcher/EndpointSupplier.js +10 -0
  896. package/dist/core/fetcher/Fetcher.d.ts +56 -0
  897. package/dist/core/fetcher/Fetcher.js +223 -0
  898. package/dist/core/fetcher/Headers.d.ts +2 -0
  899. package/dist/core/fetcher/Headers.js +83 -0
  900. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  901. package/dist/core/fetcher/HttpResponsePromise.js +90 -0
  902. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  903. package/dist/core/fetcher/RawResponse.js +40 -0
  904. package/dist/core/fetcher/Supplier.d.ts +4 -0
  905. package/dist/core/fetcher/Supplier.js +10 -0
  906. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  907. package/dist/core/fetcher/createRequestUrl.js +5 -0
  908. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  909. package/dist/core/fetcher/getErrorResponseBody.js +30 -0
  910. package/dist/core/fetcher/getFetchFn.d.ts +1 -0
  911. package/dist/core/fetcher/getFetchFn.js +3 -0
  912. package/dist/core/fetcher/getHeader.d.ts +1 -0
  913. package/dist/core/fetcher/getHeader.js +8 -0
  914. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  915. package/dist/core/fetcher/getRequestBody.js +13 -0
  916. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  917. package/dist/core/fetcher/getResponseBody.js +66 -0
  918. package/dist/core/fetcher/index.d.ts +13 -0
  919. package/dist/core/fetcher/index.js +7 -0
  920. package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
  921. package/dist/core/fetcher/makePassthroughRequest.js +144 -0
  922. package/dist/core/fetcher/makeRequest.d.ts +6 -0
  923. package/dist/core/fetcher/makeRequest.js +57 -0
  924. package/dist/core/fetcher/redactUrl.d.ts +2 -0
  925. package/dist/core/fetcher/redactUrl.js +84 -0
  926. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  927. package/dist/core/fetcher/requestWithRetries.js +56 -0
  928. package/dist/core/fetcher/signals.d.ts +5 -0
  929. package/dist/core/fetcher/signals.js +29 -0
  930. package/dist/core/headers.d.ts +2 -0
  931. package/dist/core/headers.js +27 -0
  932. package/dist/core/index.d.ts +7 -0
  933. package/dist/core/index.js +7 -0
  934. package/dist/core/json.d.ts +15 -0
  935. package/dist/core/json.js +19 -0
  936. package/dist/core/logging/exports.d.ts +18 -0
  937. package/dist/core/logging/exports.js +9 -0
  938. package/dist/core/logging/index.d.ts +1 -0
  939. package/dist/core/logging/index.js +1 -0
  940. package/dist/core/logging/logger.d.ts +126 -0
  941. package/dist/core/logging/logger.js +140 -0
  942. package/dist/core/requestBody.d.ts +12 -0
  943. package/dist/core/requestBody.js +23 -0
  944. package/dist/core/runtime/index.d.ts +1 -0
  945. package/dist/core/runtime/index.js +1 -0
  946. package/dist/core/runtime/runtime.d.ts +28 -0
  947. package/dist/core/runtime/runtime.js +171 -0
  948. package/dist/core/stream/Stream.d.ts +100 -0
  949. package/dist/core/stream/Stream.js +428 -0
  950. package/dist/core/stream/index.d.ts +2 -0
  951. package/dist/core/stream/index.js +1 -0
  952. package/dist/core/url/QueryStringBuilder.d.ts +47 -0
  953. package/dist/core/url/QueryStringBuilder.js +78 -0
  954. package/dist/core/url/encodePathParam.d.ts +1 -0
  955. package/dist/core/url/encodePathParam.js +18 -0
  956. package/dist/core/url/index.d.ts +4 -0
  957. package/dist/core/url/index.js +4 -0
  958. package/dist/core/url/join.d.ts +1 -0
  959. package/dist/core/url/join.js +65 -0
  960. package/dist/core/url/qs.d.ts +7 -0
  961. package/dist/core/url/qs.js +76 -0
  962. package/dist/environments.d.ts +4 -0
  963. package/dist/environments.js +4 -0
  964. package/dist/errors/LusorError.d.ts +15 -0
  965. package/dist/errors/LusorError.js +38 -0
  966. package/dist/errors/LusorTimeoutError.d.ts +6 -0
  967. package/dist/errors/LusorTimeoutError.js +15 -0
  968. package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
  969. package/dist/errors/handleNonStatusCodeError.js +32 -0
  970. package/dist/errors/index.d.ts +2 -0
  971. package/dist/errors/index.js +2 -0
  972. package/dist/exports.d.ts +1 -0
  973. package/dist/exports.js +1 -0
  974. package/dist/index.d.ts +6 -0
  975. package/dist/index.js +5 -0
  976. package/package.json +54 -4
@@ -0,0 +1,591 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js";
5
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.js";
6
+ import * as environments from "../../../../environments.js";
7
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
8
+ import * as errors from "../../../../errors/index.js";
9
+ import * as Lusor from "../../../index.js";
10
+ /**
11
+ * Install catalog apps on a phone, follow the installs, and uninstall
12
+ * them. Viewers cannot install.
13
+ */
14
+ export class AppInstallsClient {
15
+ _options;
16
+ constructor(options = {}) {
17
+ this._options = normalizeClientOptionsWithAuth(options);
18
+ }
19
+ /**
20
+ * @param {Lusor.ListAppInstallsRequest} request
21
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
22
+ *
23
+ * @throws {@link Lusor.BadRequestError}
24
+ * @throws {@link Lusor.UnauthorizedError}
25
+ * @throws {@link Lusor.NotFoundError}
26
+ * @throws {@link errors.LusorError}
27
+ * @throws {@link errors.LusorTimeoutError}
28
+ *
29
+ * @example
30
+ * await client.appInstalls.list({
31
+ * workspaceId: "workspaceId",
32
+ * deviceId: "deviceId"
33
+ * })
34
+ */
35
+ list(request, requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
37
+ }
38
+ async __list(request, requestOptions) {
39
+ const { workspaceId, deviceId, requestKey } = request;
40
+ const _queryParams = {
41
+ requestKey,
42
+ };
43
+ const _authRequest = await this._options.authProvider.getAuthRequest();
44
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
45
+ const _response = await core.fetcher({
46
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
47
+ (await core.Supplier.get(this._options.environment)) ??
48
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/installs`),
49
+ method: "GET",
50
+ headers: _headers,
51
+ queryString: core.url
52
+ .queryBuilder()
53
+ .addMany(_queryParams)
54
+ .mergeAdditional(requestOptions?.queryParams)
55
+ .build(),
56
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
57
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
58
+ abortSignal: requestOptions?.abortSignal,
59
+ fetchFn: this._options?.fetch,
60
+ logging: this._options.logging,
61
+ });
62
+ if (_response.ok) {
63
+ return { data: _response.body, rawResponse: _response.rawResponse };
64
+ }
65
+ if (_response.error.reason === "status-code") {
66
+ switch (_response.error.statusCode) {
67
+ case 400:
68
+ throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
69
+ case 401:
70
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
71
+ case 404:
72
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
73
+ default:
74
+ throw new errors.LusorError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.body,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ }
80
+ }
81
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/workspaces/{workspaceId}/devices/{deviceId}/installs");
82
+ }
83
+ /**
84
+ * Starts installing one catalog app on a Lusor cloud Android phone.
85
+ * Follow it with `GET …/installs` (or the `…/installs/events`
86
+ * stream). `422` when the phone cannot take catalog installs
87
+ * (`unsupported_platform`, `unsupported_tier`, `unsupported_daemon`);
88
+ * `409` when the install conflicts with the phone's state; `503
89
+ * install_outcome_unknown` means it may have started: list the
90
+ * installs before retrying with a new key.
91
+ *
92
+ * **Retries:** safe: the required UUID `Idempotency-Key` returns the same install on a repeat.
93
+ *
94
+ * @param {Lusor.CreateAppInstallsRequest} request
95
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link Lusor.BadRequestError}
98
+ * @throws {@link Lusor.UnauthorizedError}
99
+ * @throws {@link Lusor.ForbiddenError}
100
+ * @throws {@link Lusor.NotFoundError}
101
+ * @throws {@link Lusor.ConflictError}
102
+ * @throws {@link Lusor.UnprocessableEntityError}
103
+ * @throws {@link Lusor.ServiceUnavailableError}
104
+ * @throws {@link errors.LusorError}
105
+ * @throws {@link errors.LusorTimeoutError}
106
+ *
107
+ * @example
108
+ * await client.appInstalls.create({
109
+ * "Idempotency-Key": "Idempotency-Key",
110
+ * workspaceId: "workspaceId",
111
+ * deviceId: "deviceId",
112
+ * "package": "package"
113
+ * })
114
+ */
115
+ create(request, requestOptions) {
116
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
117
+ }
118
+ async __create(request, requestOptions) {
119
+ const { workspaceId, deviceId, "Idempotency-Key": idempotencyKey, ..._body } = request;
120
+ const _authRequest = await this._options.authProvider.getAuthRequest();
121
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({ "Idempotency-Key": idempotencyKey }), requestOptions?.headers);
122
+ const _response = await core.fetcher({
123
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
124
+ (await core.Supplier.get(this._options.environment)) ??
125
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/installs`),
126
+ method: "POST",
127
+ headers: _headers,
128
+ contentType: "application/json",
129
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
130
+ requestType: "json",
131
+ body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
132
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
133
+ maxRetries: 0,
134
+ abortSignal: requestOptions?.abortSignal,
135
+ fetchFn: this._options?.fetch,
136
+ logging: this._options.logging,
137
+ });
138
+ if (_response.ok) {
139
+ return { data: _response.body, rawResponse: _response.rawResponse };
140
+ }
141
+ if (_response.error.reason === "status-code") {
142
+ switch (_response.error.statusCode) {
143
+ case 400:
144
+ throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
145
+ case 401:
146
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
147
+ case 403:
148
+ throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
149
+ case 404:
150
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
151
+ case 409:
152
+ throw new Lusor.ConflictError(_response.error.body, _response.rawResponse);
153
+ case 422:
154
+ throw new Lusor.UnprocessableEntityError(_response.error.body, _response.rawResponse);
155
+ case 503:
156
+ throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
157
+ default:
158
+ throw new errors.LusorError({
159
+ statusCode: _response.error.statusCode,
160
+ body: _response.error.body,
161
+ rawResponse: _response.rawResponse,
162
+ });
163
+ }
164
+ }
165
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/workspaces/{workspaceId}/devices/{deviceId}/installs");
166
+ }
167
+ /**
168
+ * A Server-Sent Events stream that says when to re-read
169
+ * `GET …/installs`. Each event's `data` is a JSON object
170
+ * (`AppInstallEvent`): `ready` (`{}`) once listening, then `change`
171
+ * (`{}`) whenever an install on the phone changes, or `error`
172
+ * (`{"error":"realtime_unavailable"}`), which ends the stream. The
173
+ * stream closes after at most 60 seconds; reconnect and re-read.
174
+ */
175
+ events(request, requestOptions) {
176
+ return core.HttpResponsePromise.fromPromise(this.__events(request, requestOptions));
177
+ }
178
+ async __events(request, requestOptions) {
179
+ const { workspaceId, deviceId } = request;
180
+ const _authRequest = await this._options.authProvider.getAuthRequest();
181
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
182
+ const _response = await core.fetcher({
183
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
184
+ (await core.Supplier.get(this._options.environment)) ??
185
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/installs/events`),
186
+ method: "GET",
187
+ headers: _headers,
188
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
189
+ responseType: "sse",
190
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
191
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
192
+ abortSignal: requestOptions?.abortSignal,
193
+ fetchFn: this._options?.fetch,
194
+ logging: this._options.logging,
195
+ });
196
+ if (_response.ok) {
197
+ return {
198
+ data: new core.Stream({
199
+ stream: _response.body,
200
+ parse: (data) => data,
201
+ signal: requestOptions?.abortSignal,
202
+ eventShape: {
203
+ type: "sse",
204
+ },
205
+ }),
206
+ rawResponse: _response.rawResponse,
207
+ };
208
+ }
209
+ if (_response.error.reason === "status-code") {
210
+ switch (_response.error.statusCode) {
211
+ case 401:
212
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
213
+ case 404:
214
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
215
+ case 503:
216
+ throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
217
+ default:
218
+ throw new errors.LusorError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.body,
221
+ rawResponse: _response.rawResponse,
222
+ });
223
+ }
224
+ }
225
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/workspaces/{workspaceId}/devices/{deviceId}/installs/events");
226
+ }
227
+ /**
228
+ * Removes one installed catalog app. Reinstall it with
229
+ * `POST …/installs` and a new key. `503 uninstall_outcome_unknown`
230
+ * means it may have run: list the installs before retrying.
231
+ *
232
+ * **Retries:** a repeat after success answers `409`; list the installs to read the state.
233
+ *
234
+ * @param {Lusor.UninstallAppInstallsRequest} request
235
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
236
+ *
237
+ * @throws {@link Lusor.BadRequestError}
238
+ * @throws {@link Lusor.UnauthorizedError}
239
+ * @throws {@link Lusor.ForbiddenError}
240
+ * @throws {@link Lusor.NotFoundError}
241
+ * @throws {@link Lusor.ConflictError}
242
+ * @throws {@link Lusor.UnprocessableEntityError}
243
+ * @throws {@link Lusor.ServiceUnavailableError}
244
+ * @throws {@link errors.LusorError}
245
+ * @throws {@link errors.LusorTimeoutError}
246
+ *
247
+ * @example
248
+ * await client.appInstalls.uninstall({
249
+ * workspaceId: "workspaceId",
250
+ * deviceId: "deviceId",
251
+ * installId: "installId"
252
+ * })
253
+ */
254
+ uninstall(request, requestOptions) {
255
+ return core.HttpResponsePromise.fromPromise(this.__uninstall(request, requestOptions));
256
+ }
257
+ async __uninstall(request, requestOptions) {
258
+ const { workspaceId, deviceId, installId } = request;
259
+ const _authRequest = await this._options.authProvider.getAuthRequest();
260
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
261
+ const _response = await core.fetcher({
262
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
263
+ (await core.Supplier.get(this._options.environment)) ??
264
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/installs/${core.url.encodePathParam(installId)}/uninstall`),
265
+ method: "POST",
266
+ headers: _headers,
267
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
268
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
269
+ maxRetries: 0,
270
+ abortSignal: requestOptions?.abortSignal,
271
+ fetchFn: this._options?.fetch,
272
+ logging: this._options.logging,
273
+ });
274
+ if (_response.ok) {
275
+ return { data: _response.body, rawResponse: _response.rawResponse };
276
+ }
277
+ if (_response.error.reason === "status-code") {
278
+ switch (_response.error.statusCode) {
279
+ case 400:
280
+ throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
281
+ case 401:
282
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
283
+ case 403:
284
+ throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
285
+ case 404:
286
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
287
+ case 409:
288
+ throw new Lusor.ConflictError(_response.error.body, _response.rawResponse);
289
+ case 422:
290
+ throw new Lusor.UnprocessableEntityError(_response.error.body, _response.rawResponse);
291
+ case 503:
292
+ throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
293
+ default:
294
+ throw new errors.LusorError({
295
+ statusCode: _response.error.statusCode,
296
+ body: _response.error.body,
297
+ rawResponse: _response.rawResponse,
298
+ });
299
+ }
300
+ }
301
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/workspaces/{workspaceId}/devices/{deviceId}/installs/{installId}/uninstall");
302
+ }
303
+ /**
304
+ * Starts one install batch: up to 24 unique catalog packages,
305
+ * installed one at a time. A phone runs one batch at a time (`409
306
+ * batch_active`). Follow it with `GET …/install-batches/active`.
307
+ * `503 install_outcome_unknown` means it may have started: read the
308
+ * active batch before starting another.
309
+ *
310
+ * @param {Lusor.AppInstallBatchInput} request
311
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
312
+ *
313
+ * @throws {@link Lusor.BadRequestError}
314
+ * @throws {@link Lusor.UnauthorizedError}
315
+ * @throws {@link Lusor.ForbiddenError}
316
+ * @throws {@link Lusor.NotFoundError}
317
+ * @throws {@link Lusor.ConflictError}
318
+ * @throws {@link Lusor.UnprocessableEntityError}
319
+ * @throws {@link Lusor.ServiceUnavailableError}
320
+ * @throws {@link errors.LusorError}
321
+ * @throws {@link errors.LusorTimeoutError}
322
+ *
323
+ * @example
324
+ * await client.appInstalls.createBatch({
325
+ * workspaceId: "workspaceId",
326
+ * deviceId: "deviceId",
327
+ * packages: ["packages"]
328
+ * })
329
+ */
330
+ createBatch(request, requestOptions) {
331
+ return core.HttpResponsePromise.fromPromise(this.__createBatch(request, requestOptions));
332
+ }
333
+ async __createBatch(request, requestOptions) {
334
+ const { workspaceId, deviceId, ..._body } = request;
335
+ const _authRequest = await this._options.authProvider.getAuthRequest();
336
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
337
+ const _response = await core.fetcher({
338
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
339
+ (await core.Supplier.get(this._options.environment)) ??
340
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/install-batches`),
341
+ method: "POST",
342
+ headers: _headers,
343
+ contentType: "application/json",
344
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
345
+ requestType: "json",
346
+ body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
347
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
348
+ maxRetries: 0,
349
+ abortSignal: requestOptions?.abortSignal,
350
+ fetchFn: this._options?.fetch,
351
+ logging: this._options.logging,
352
+ });
353
+ if (_response.ok) {
354
+ return { data: _response.body, rawResponse: _response.rawResponse };
355
+ }
356
+ if (_response.error.reason === "status-code") {
357
+ switch (_response.error.statusCode) {
358
+ case 400:
359
+ throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
360
+ case 401:
361
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
362
+ case 403:
363
+ throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
364
+ case 404:
365
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
366
+ case 409:
367
+ throw new Lusor.ConflictError(_response.error.body, _response.rawResponse);
368
+ case 422:
369
+ throw new Lusor.UnprocessableEntityError(_response.error.body, _response.rawResponse);
370
+ case 503:
371
+ throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
372
+ default:
373
+ throw new errors.LusorError({
374
+ statusCode: _response.error.statusCode,
375
+ body: _response.error.body,
376
+ rawResponse: _response.rawResponse,
377
+ });
378
+ }
379
+ }
380
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/workspaces/{workspaceId}/devices/{deviceId}/install-batches");
381
+ }
382
+ /**
383
+ * The phone's install batch, with each item's live status. `404` when the phone has none.
384
+ *
385
+ * @param {Lusor.GetActiveBatchAppInstallsRequest} request
386
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
387
+ *
388
+ * @throws {@link Lusor.UnauthorizedError}
389
+ * @throws {@link Lusor.NotFoundError}
390
+ * @throws {@link Lusor.ServiceUnavailableError}
391
+ * @throws {@link errors.LusorError}
392
+ * @throws {@link errors.LusorTimeoutError}
393
+ *
394
+ * @example
395
+ * await client.appInstalls.getActiveBatch({
396
+ * workspaceId: "workspaceId",
397
+ * deviceId: "deviceId"
398
+ * })
399
+ */
400
+ getActiveBatch(request, requestOptions) {
401
+ return core.HttpResponsePromise.fromPromise(this.__getActiveBatch(request, requestOptions));
402
+ }
403
+ async __getActiveBatch(request, requestOptions) {
404
+ const { workspaceId, deviceId } = request;
405
+ const _authRequest = await this._options.authProvider.getAuthRequest();
406
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
407
+ const _response = await core.fetcher({
408
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
409
+ (await core.Supplier.get(this._options.environment)) ??
410
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/install-batches/active`),
411
+ method: "GET",
412
+ headers: _headers,
413
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
414
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
415
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
416
+ abortSignal: requestOptions?.abortSignal,
417
+ fetchFn: this._options?.fetch,
418
+ logging: this._options.logging,
419
+ });
420
+ if (_response.ok) {
421
+ return { data: _response.body, rawResponse: _response.rawResponse };
422
+ }
423
+ if (_response.error.reason === "status-code") {
424
+ switch (_response.error.statusCode) {
425
+ case 401:
426
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
427
+ case 404:
428
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
429
+ case 503:
430
+ throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
431
+ default:
432
+ throw new errors.LusorError({
433
+ statusCode: _response.error.statusCode,
434
+ body: _response.error.body,
435
+ rawResponse: _response.rawResponse,
436
+ });
437
+ }
438
+ }
439
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/workspaces/{workspaceId}/devices/{deviceId}/install-batches/active");
440
+ }
441
+ /**
442
+ * Cancels the batch. Read `GET …/install-batches/active` for each
443
+ * item's final status. `503 install_outcome_unknown`: the outcome is
444
+ * unknown; read the active batch.
445
+ *
446
+ * @param {Lusor.CancelBatchAppInstallsRequest} request
447
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
448
+ *
449
+ * @throws {@link Lusor.BadRequestError}
450
+ * @throws {@link Lusor.UnauthorizedError}
451
+ * @throws {@link Lusor.ForbiddenError}
452
+ * @throws {@link Lusor.NotFoundError}
453
+ * @throws {@link Lusor.ServiceUnavailableError}
454
+ * @throws {@link errors.LusorError}
455
+ * @throws {@link errors.LusorTimeoutError}
456
+ *
457
+ * @example
458
+ * await client.appInstalls.cancelBatch({
459
+ * workspaceId: "workspaceId",
460
+ * deviceId: "deviceId",
461
+ * batchId: "batchId"
462
+ * })
463
+ */
464
+ cancelBatch(request, requestOptions) {
465
+ return core.HttpResponsePromise.fromPromise(this.__cancelBatch(request, requestOptions));
466
+ }
467
+ async __cancelBatch(request, requestOptions) {
468
+ const { workspaceId, deviceId, batchId } = request;
469
+ const _authRequest = await this._options.authProvider.getAuthRequest();
470
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
471
+ const _response = await core.fetcher({
472
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
473
+ (await core.Supplier.get(this._options.environment)) ??
474
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/install-batches/${core.url.encodePathParam(batchId)}/cancel`),
475
+ method: "POST",
476
+ headers: _headers,
477
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
478
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
479
+ maxRetries: 0,
480
+ abortSignal: requestOptions?.abortSignal,
481
+ fetchFn: this._options?.fetch,
482
+ logging: this._options.logging,
483
+ });
484
+ if (_response.ok) {
485
+ return { data: _response.body, rawResponse: _response.rawResponse };
486
+ }
487
+ if (_response.error.reason === "status-code") {
488
+ switch (_response.error.statusCode) {
489
+ case 400:
490
+ throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
491
+ case 401:
492
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
493
+ case 403:
494
+ throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
495
+ case 404:
496
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
497
+ case 503:
498
+ throw new Lusor.ServiceUnavailableError(_response.error.body, _response.rawResponse);
499
+ default:
500
+ throw new errors.LusorError({
501
+ statusCode: _response.error.statusCode,
502
+ body: _response.error.body,
503
+ rawResponse: _response.rawResponse,
504
+ });
505
+ }
506
+ }
507
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/workspaces/{workspaceId}/devices/{deviceId}/install-batches/{batchId}/cancel");
508
+ }
509
+ /**
510
+ * Starts an agent turn on the iPhone that installs the named catalog
511
+ * apps from the App Store. `agentId` picks the agent; without it, the
512
+ * agent that uses the iPhone runs it (the workspace's primary agent
513
+ * when none does). Follow it as any run, under
514
+ * `GET /v1/sessions/{id}` with the returned `sessionId`.
515
+ * `409`: `phone_busy`, `agent_choice_required`,
516
+ * `agent_not_on_phone` or `no_agent_on_phone`; `422
517
+ * unsupported_platform` for a phone that is not an iPhone.
518
+ *
519
+ * **Retries:** safe: the required UUID `Idempotency-Key` returns the same run on a repeat.
520
+ *
521
+ * @param {Lusor.AppStoreInstallInput} request
522
+ * @param {AppInstallsClient.RequestOptions} requestOptions - Request-specific configuration.
523
+ *
524
+ * @throws {@link Lusor.BadRequestError}
525
+ * @throws {@link Lusor.UnauthorizedError}
526
+ * @throws {@link Lusor.ForbiddenError}
527
+ * @throws {@link Lusor.NotFoundError}
528
+ * @throws {@link Lusor.ConflictError}
529
+ * @throws {@link Lusor.UnprocessableEntityError}
530
+ * @throws {@link errors.LusorError}
531
+ * @throws {@link errors.LusorTimeoutError}
532
+ *
533
+ * @example
534
+ * await client.appInstalls.createFromAppStore({
535
+ * "Idempotency-Key": "Idempotency-Key",
536
+ * workspaceId: "workspaceId",
537
+ * deviceId: "deviceId",
538
+ * packages: ["packages"]
539
+ * })
540
+ */
541
+ createFromAppStore(request, requestOptions) {
542
+ return core.HttpResponsePromise.fromPromise(this.__createFromAppStore(request, requestOptions));
543
+ }
544
+ async __createFromAppStore(request, requestOptions) {
545
+ const { workspaceId, deviceId, "Idempotency-Key": idempotencyKey, ..._body } = request;
546
+ const _authRequest = await this._options.authProvider.getAuthRequest();
547
+ let _headers = mergeHeaders(_authRequest.headers, this._options?.headers, mergeOnlyDefinedHeaders({ "Idempotency-Key": idempotencyKey }), requestOptions?.headers);
548
+ const _response = await core.fetcher({
549
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
550
+ (await core.Supplier.get(this._options.environment)) ??
551
+ environments.LusorEnvironment.Production, `v1/workspaces/${core.url.encodePathParam(workspaceId)}/devices/${core.url.encodePathParam(deviceId)}/app-store-installs`),
552
+ method: "POST",
553
+ headers: _headers,
554
+ contentType: "application/json",
555
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
556
+ requestType: "json",
557
+ body: mergeAdditionalBodyParameters(_body, requestOptions?.additionalBodyParameters),
558
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
559
+ maxRetries: 0,
560
+ abortSignal: requestOptions?.abortSignal,
561
+ fetchFn: this._options?.fetch,
562
+ logging: this._options.logging,
563
+ });
564
+ if (_response.ok) {
565
+ return { data: _response.body, rawResponse: _response.rawResponse };
566
+ }
567
+ if (_response.error.reason === "status-code") {
568
+ switch (_response.error.statusCode) {
569
+ case 400:
570
+ throw new Lusor.BadRequestError(_response.error.body, _response.rawResponse);
571
+ case 401:
572
+ throw new Lusor.UnauthorizedError(_response.error.body, _response.rawResponse);
573
+ case 403:
574
+ throw new Lusor.ForbiddenError(_response.error.body, _response.rawResponse);
575
+ case 404:
576
+ throw new Lusor.NotFoundError(_response.error.body, _response.rawResponse);
577
+ case 409:
578
+ throw new Lusor.ConflictError(_response.error.body, _response.rawResponse);
579
+ case 422:
580
+ throw new Lusor.UnprocessableEntityError(_response.error.body, _response.rawResponse);
581
+ default:
582
+ throw new errors.LusorError({
583
+ statusCode: _response.error.statusCode,
584
+ body: _response.error.body,
585
+ rawResponse: _response.rawResponse,
586
+ });
587
+ }
588
+ }
589
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/workspaces/{workspaceId}/devices/{deviceId}/app-store-installs");
590
+ }
591
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * workspaceId: "workspaceId",
5
+ * deviceId: "deviceId",
6
+ * packages: ["packages"]
7
+ * }
8
+ */
9
+ export interface AppInstallBatchInput {
10
+ /** Workspace UUID. Caller must have access. */
11
+ workspaceId: string;
12
+ /** Device id (paired into the workspace). */
13
+ deviceId: string;
14
+ /** Catalog package names, installed in this order. */
15
+ packages: string[];
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * "Idempotency-Key": "Idempotency-Key",
5
+ * workspaceId: "workspaceId",
6
+ * deviceId: "deviceId",
7
+ * packages: ["packages"]
8
+ * }
9
+ */
10
+ export interface AppStoreInstallInput {
11
+ /** Workspace UUID. Caller must have access. */
12
+ workspaceId: string;
13
+ /** Device id (paired into the workspace). */
14
+ deviceId: string;
15
+ /** A UUID per install request; a repeat with the same key returns the same install instead of starting another. */
16
+ "Idempotency-Key": string;
17
+ /** Catalog package names to install from the App Store. */
18
+ packages: string[];
19
+ /** The agent that runs the install. */
20
+ agentId?: string;
21
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * workspaceId: "workspaceId",
5
+ * deviceId: "deviceId",
6
+ * batchId: "batchId"
7
+ * }
8
+ */
9
+ export interface CancelBatchAppInstallsRequest {
10
+ /** Workspace UUID. Caller must have access. */
11
+ workspaceId: string;
12
+ /** Device id (paired into the workspace). */
13
+ deviceId: string;
14
+ batchId: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};