browser-use-sdk 2.0.14 → 3.0.2

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 (993) hide show
  1. package/README.md +169 -152
  2. package/dist/chunk-I75IFZAL.js +100 -0
  3. package/dist/chunk-I75IFZAL.js.map +1 -0
  4. package/dist/chunk-RIRVOEIU.cjs +100 -0
  5. package/dist/chunk-RIRVOEIU.cjs.map +1 -0
  6. package/dist/errors-BtB79l7x.d.cts +30 -0
  7. package/dist/errors-BtB79l7x.d.ts +30 -0
  8. package/dist/index.cjs +428 -0
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.d.cts +2441 -0
  11. package/dist/index.d.ts +2441 -0
  12. package/dist/index.js +428 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/v3.cjs +140 -0
  15. package/dist/v3.cjs.map +1 -0
  16. package/dist/v3.d.cts +287 -0
  17. package/dist/v3.d.ts +287 -0
  18. package/dist/v3.js +140 -0
  19. package/dist/v3.js.map +1 -0
  20. package/package.json +51 -69
  21. package/dist/cjs/BaseClient.d.ts +0 -30
  22. package/dist/cjs/BaseClient.js +0 -3
  23. package/dist/cjs/Client.d.ts +0 -35
  24. package/dist/cjs/Client.js +0 -92
  25. package/dist/cjs/api/errors/BadRequestError.d.ts +0 -5
  26. package/dist/cjs/api/errors/BadRequestError.js +0 -50
  27. package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -5
  28. package/dist/cjs/api/errors/ForbiddenError.js +0 -50
  29. package/dist/cjs/api/errors/InternalServerError.d.ts +0 -5
  30. package/dist/cjs/api/errors/InternalServerError.js +0 -50
  31. package/dist/cjs/api/errors/NotFoundError.d.ts +0 -5
  32. package/dist/cjs/api/errors/NotFoundError.js +0 -50
  33. package/dist/cjs/api/errors/PaymentRequiredError.d.ts +0 -5
  34. package/dist/cjs/api/errors/PaymentRequiredError.js +0 -50
  35. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +0 -6
  36. package/dist/cjs/api/errors/TooManyRequestsError.js +0 -50
  37. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +0 -5
  38. package/dist/cjs/api/errors/UnprocessableEntityError.js +0 -50
  39. package/dist/cjs/api/errors/index.d.ts +0 -7
  40. package/dist/cjs/api/errors/index.js +0 -23
  41. package/dist/cjs/api/index.d.ts +0 -3
  42. package/dist/cjs/api/index.js +0 -19
  43. package/dist/cjs/api/resources/billing/client/Client.d.ts +0 -27
  44. package/dist/cjs/api/resources/billing/client/Client.js +0 -126
  45. package/dist/cjs/api/resources/billing/client/index.d.ts +0 -1
  46. package/dist/cjs/api/resources/billing/client/index.js +0 -2
  47. package/dist/cjs/api/resources/billing/index.d.ts +0 -1
  48. package/dist/cjs/api/resources/billing/index.js +0 -17
  49. package/dist/cjs/api/resources/browsers/client/Client.d.ts +0 -93
  50. package/dist/cjs/api/resources/browsers/client/Client.js +0 -377
  51. package/dist/cjs/api/resources/browsers/client/index.d.ts +0 -1
  52. package/dist/cjs/api/resources/browsers/client/index.js +0 -17
  53. package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +0 -21
  54. package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.js +0 -3
  55. package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.ts +0 -9
  56. package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.js +0 -3
  57. package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.ts +0 -10
  58. package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.js +0 -3
  59. package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.ts +0 -13
  60. package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.js +0 -3
  61. package/dist/cjs/api/resources/browsers/client/requests/index.d.ts +0 -4
  62. package/dist/cjs/api/resources/browsers/client/requests/index.js +0 -2
  63. package/dist/cjs/api/resources/browsers/index.d.ts +0 -1
  64. package/dist/cjs/api/resources/browsers/index.js +0 -17
  65. package/dist/cjs/api/resources/files/client/Client.d.ts +0 -78
  66. package/dist/cjs/api/resources/files/client/Client.js +0 -302
  67. package/dist/cjs/api/resources/files/client/index.d.ts +0 -1
  68. package/dist/cjs/api/resources/files/client/index.js +0 -17
  69. package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.ts +0 -16
  70. package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.js +0 -3
  71. package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.ts +0 -16
  72. package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.js +0 -3
  73. package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.ts +0 -11
  74. package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.js +0 -3
  75. package/dist/cjs/api/resources/files/client/requests/index.d.ts +0 -3
  76. package/dist/cjs/api/resources/files/client/requests/index.js +0 -2
  77. package/dist/cjs/api/resources/files/index.d.ts +0 -1
  78. package/dist/cjs/api/resources/files/index.js +0 -17
  79. package/dist/cjs/api/resources/index.d.ts +0 -15
  80. package/dist/cjs/api/resources/index.js +0 -54
  81. package/dist/cjs/api/resources/profiles/client/Client.d.ts +0 -93
  82. package/dist/cjs/api/resources/profiles/client/Client.js +0 -416
  83. package/dist/cjs/api/resources/profiles/client/index.d.ts +0 -1
  84. package/dist/cjs/api/resources/profiles/client/index.js +0 -17
  85. package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.ts +0 -9
  86. package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.js +0 -3
  87. package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.ts +0 -9
  88. package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.js +0 -3
  89. package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.ts +0 -8
  90. package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.js +0 -3
  91. package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.d.ts +0 -8
  92. package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.js +0 -3
  93. package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.d.ts +0 -11
  94. package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.js +0 -3
  95. package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +0 -5
  96. package/dist/cjs/api/resources/profiles/client/requests/index.js +0 -2
  97. package/dist/cjs/api/resources/profiles/index.d.ts +0 -1
  98. package/dist/cjs/api/resources/profiles/index.js +0 -17
  99. package/dist/cjs/api/resources/sessions/client/Client.d.ts +0 -140
  100. package/dist/cjs/api/resources/sessions/client/Client.js +0 -625
  101. package/dist/cjs/api/resources/sessions/client/index.d.ts +0 -1
  102. package/dist/cjs/api/resources/sessions/client/index.js +0 -17
  103. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.ts +0 -9
  104. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.js +0 -3
  105. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +0 -23
  106. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.js +0 -3
  107. package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.ts +0 -9
  108. package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.js +0 -3
  109. package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.d.ts +0 -9
  110. package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.js +0 -3
  111. package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.ts +0 -9
  112. package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.js +0 -3
  113. package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.ts +0 -9
  114. package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.js +0 -3
  115. package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.ts +0 -10
  116. package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.js +0 -3
  117. package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +0 -13
  118. package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.js +0 -3
  119. package/dist/cjs/api/resources/sessions/client/requests/index.d.ts +0 -8
  120. package/dist/cjs/api/resources/sessions/client/requests/index.js +0 -2
  121. package/dist/cjs/api/resources/sessions/index.d.ts +0 -1
  122. package/dist/cjs/api/resources/sessions/index.js +0 -17
  123. package/dist/cjs/api/resources/skills/client/Client.d.ts +0 -202
  124. package/dist/cjs/api/resources/skills/client/Client.js +0 -892
  125. package/dist/cjs/api/resources/skills/client/index.d.ts +0 -1
  126. package/dist/cjs/api/resources/skills/client/index.js +0 -17
  127. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.d.ts +0 -9
  128. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.js +0 -3
  129. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +0 -9
  130. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +0 -3
  131. package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.d.ts +0 -17
  132. package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.js +0 -3
  133. package/dist/cjs/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.d.ts +0 -9
  134. package/dist/cjs/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.js +0 -3
  135. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillRequest.d.ts +0 -11
  136. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillRequest.js +0 -3
  137. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +0 -12
  138. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +0 -3
  139. package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.ts +0 -11
  140. package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.js +0 -3
  141. package/dist/cjs/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.d.ts +0 -9
  142. package/dist/cjs/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.js +0 -3
  143. package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.ts +0 -11
  144. package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.js +0 -3
  145. package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +0 -15
  146. package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.js +0 -3
  147. package/dist/cjs/api/resources/skills/client/requests/RefineSkillRequest.d.ts +0 -16
  148. package/dist/cjs/api/resources/skills/client/requests/RefineSkillRequest.js +0 -3
  149. package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +0 -9
  150. package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +0 -3
  151. package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +0 -20
  152. package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.js +0 -3
  153. package/dist/cjs/api/resources/skills/client/requests/index.d.ts +0 -11
  154. package/dist/cjs/api/resources/skills/client/requests/index.js +0 -2
  155. package/dist/cjs/api/resources/skills/index.d.ts +0 -1
  156. package/dist/cjs/api/resources/skills/index.js +0 -17
  157. package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +0 -79
  158. package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +0 -361
  159. package/dist/cjs/api/resources/skillsMarketplace/client/index.d.ts +0 -1
  160. package/dist/cjs/api/resources/skillsMarketplace/client/index.js +0 -17
  161. package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.ts +0 -9
  162. package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js +0 -3
  163. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +0 -12
  164. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +0 -3
  165. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +0 -9
  166. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +0 -3
  167. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +0 -13
  168. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.js +0 -3
  169. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +0 -4
  170. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.js +0 -2
  171. package/dist/cjs/api/resources/skillsMarketplace/index.d.ts +0 -1
  172. package/dist/cjs/api/resources/skillsMarketplace/index.js +0 -17
  173. package/dist/cjs/api/resources/tasks/client/Client.d.ts +0 -106
  174. package/dist/cjs/api/resources/tasks/client/Client.js +0 -449
  175. package/dist/cjs/api/resources/tasks/client/index.d.ts +0 -1
  176. package/dist/cjs/api/resources/tasks/client/index.js +0 -17
  177. package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +0 -53
  178. package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.js +0 -3
  179. package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.ts +0 -9
  180. package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.js +0 -3
  181. package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.ts +0 -9
  182. package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.js +0 -3
  183. package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.ts +0 -13
  184. package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.js +0 -3
  185. package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.d.ts +0 -13
  186. package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.js +0 -3
  187. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +0 -5
  188. package/dist/cjs/api/resources/tasks/client/requests/index.js +0 -2
  189. package/dist/cjs/api/resources/tasks/index.d.ts +0 -1
  190. package/dist/cjs/api/resources/tasks/index.js +0 -17
  191. package/dist/cjs/api/resources/workflows/client/Client.d.ts +0 -278
  192. package/dist/cjs/api/resources/workflows/client/Client.js +0 -1199
  193. package/dist/cjs/api/resources/workflows/client/index.d.ts +0 -1
  194. package/dist/cjs/api/resources/workflows/client/index.js +0 -17
  195. package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.ts +0 -9
  196. package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.js +0 -3
  197. package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.ts +0 -9
  198. package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.js +0 -3
  199. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.ts +0 -9
  200. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.js +0 -3
  201. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.ts +0 -9
  202. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.js +0 -3
  203. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.ts +0 -9
  204. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.js +0 -3
  205. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.ts +0 -9
  206. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.js +0 -3
  207. package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.ts +0 -9
  208. package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.js +0 -3
  209. package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.ts +0 -9
  210. package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.js +0 -3
  211. package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.ts +0 -11
  212. package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.js +0 -3
  213. package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.ts +0 -14
  214. package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.js +0 -3
  215. package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.ts +0 -10
  216. package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.js +0 -3
  217. package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.d.ts +0 -14
  218. package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.js +0 -3
  219. package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +0 -13
  220. package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.js +0 -3
  221. package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.ts +0 -36
  222. package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.js +0 -3
  223. package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.ts +0 -15
  224. package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.js +0 -3
  225. package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.ts +0 -14
  226. package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.js +0 -3
  227. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +0 -16
  228. package/dist/cjs/api/resources/workflows/client/requests/index.js +0 -2
  229. package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
  230. package/dist/cjs/api/resources/workflows/index.js +0 -17
  231. package/dist/cjs/api/types/AccountNotFoundError.d.ts +0 -6
  232. package/dist/cjs/api/types/AccountNotFoundError.js +0 -3
  233. package/dist/cjs/api/types/AccountView.d.ts +0 -20
  234. package/dist/cjs/api/types/AccountView.js +0 -3
  235. package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
  236. package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.js +0 -3
  237. package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +0 -6
  238. package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +0 -3
  239. package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
  240. package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +0 -3
  241. package/dist/cjs/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.d.ts +0 -6
  242. package/dist/cjs/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.js +0 -3
  243. package/dist/cjs/api/types/BadRequestErrorBody.d.ts +0 -2
  244. package/dist/cjs/api/types/BadRequestErrorBody.js +0 -3
  245. package/dist/cjs/api/types/BrowserSessionItemView.d.ts +0 -26
  246. package/dist/cjs/api/types/BrowserSessionItemView.js +0 -3
  247. package/dist/cjs/api/types/BrowserSessionListResponse.d.ts +0 -14
  248. package/dist/cjs/api/types/BrowserSessionListResponse.js +0 -3
  249. package/dist/cjs/api/types/BrowserSessionStatus.d.ts +0 -12
  250. package/dist/cjs/api/types/BrowserSessionStatus.js +0 -15
  251. package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +0 -10
  252. package/dist/cjs/api/types/BrowserSessionUpdateAction.js +0 -13
  253. package/dist/cjs/api/types/BrowserSessionView.d.ts +0 -26
  254. package/dist/cjs/api/types/BrowserSessionView.js +0 -3
  255. package/dist/cjs/api/types/CannotDeleteSkillWhileGeneratingError.d.ts +0 -6
  256. package/dist/cjs/api/types/CannotDeleteSkillWhileGeneratingError.js +0 -3
  257. package/dist/cjs/api/types/CannotRollbackPublicSkillError.d.ts +0 -6
  258. package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +0 -3
  259. package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +0 -6
  260. package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +0 -3
  261. package/dist/cjs/api/types/ConcurrentSkillCreationsError.d.ts +0 -6
  262. package/dist/cjs/api/types/ConcurrentSkillCreationsError.js +0 -3
  263. package/dist/cjs/api/types/CreateSkillResponse.d.ts +0 -7
  264. package/dist/cjs/api/types/CreateSkillResponse.js +0 -3
  265. package/dist/cjs/api/types/CustomProxy.d.ts +0 -13
  266. package/dist/cjs/api/types/CustomProxy.js +0 -3
  267. package/dist/cjs/api/types/DownloadUrlGenerationError.d.ts +0 -6
  268. package/dist/cjs/api/types/DownloadUrlGenerationError.js +0 -3
  269. package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +0 -6
  270. package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +0 -3
  271. package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +0 -7
  272. package/dist/cjs/api/types/ExecuteSkillRequest.js +0 -3
  273. package/dist/cjs/api/types/ExecuteSkillResponse.d.ts +0 -15
  274. package/dist/cjs/api/types/ExecuteSkillResponse.js +0 -3
  275. package/dist/cjs/api/types/FileView.d.ts +0 -9
  276. package/dist/cjs/api/types/FileView.js +0 -3
  277. package/dist/cjs/api/types/GenerationNotCancellableError.d.ts +0 -6
  278. package/dist/cjs/api/types/GenerationNotCancellableError.js +0 -3
  279. package/dist/cjs/api/types/HttpValidationError.d.ts +0 -4
  280. package/dist/cjs/api/types/HttpValidationError.js +0 -3
  281. package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -6
  282. package/dist/cjs/api/types/InternalServerErrorBody.js +0 -3
  283. package/dist/cjs/api/types/MarketplaceSkillListResponse.d.ts +0 -14
  284. package/dist/cjs/api/types/MarketplaceSkillListResponse.js +0 -3
  285. package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +0 -38
  286. package/dist/cjs/api/types/MarketplaceSkillResponse.js +0 -3
  287. package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -2
  288. package/dist/cjs/api/types/NotFoundErrorBody.js +0 -3
  289. package/dist/cjs/api/types/OutputFileNotFoundError.d.ts +0 -6
  290. package/dist/cjs/api/types/OutputFileNotFoundError.js +0 -3
  291. package/dist/cjs/api/types/ParameterSchema.d.ts +0 -12
  292. package/dist/cjs/api/types/ParameterSchema.js +0 -3
  293. package/dist/cjs/api/types/ParameterType.d.ts +0 -10
  294. package/dist/cjs/api/types/ParameterType.js +0 -13
  295. package/dist/cjs/api/types/PlanInfo.d.ts +0 -15
  296. package/dist/cjs/api/types/PlanInfo.js +0 -3
  297. package/dist/cjs/api/types/ProfileListResponse.d.ts +0 -14
  298. package/dist/cjs/api/types/ProfileListResponse.js +0 -3
  299. package/dist/cjs/api/types/ProfileNotFoundError.d.ts +0 -6
  300. package/dist/cjs/api/types/ProfileNotFoundError.js +0 -3
  301. package/dist/cjs/api/types/ProfileView.d.ts +0 -19
  302. package/dist/cjs/api/types/ProfileView.js +0 -3
  303. package/dist/cjs/api/types/ProxyCountryCode.d.ts +0 -250
  304. package/dist/cjs/api/types/ProxyCountryCode.js +0 -253
  305. package/dist/cjs/api/types/RefineSkillResponse.d.ts +0 -7
  306. package/dist/cjs/api/types/RefineSkillResponse.js +0 -3
  307. package/dist/cjs/api/types/SessionHasRunningTaskError.d.ts +0 -6
  308. package/dist/cjs/api/types/SessionHasRunningTaskError.js +0 -3
  309. package/dist/cjs/api/types/SessionItemView.d.ts +0 -24
  310. package/dist/cjs/api/types/SessionItemView.js +0 -3
  311. package/dist/cjs/api/types/SessionListResponse.d.ts +0 -14
  312. package/dist/cjs/api/types/SessionListResponse.js +0 -3
  313. package/dist/cjs/api/types/SessionNotFoundError.d.ts +0 -6
  314. package/dist/cjs/api/types/SessionNotFoundError.js +0 -3
  315. package/dist/cjs/api/types/SessionStatus.d.ts +0 -12
  316. package/dist/cjs/api/types/SessionStatus.js +0 -15
  317. package/dist/cjs/api/types/SessionStoppedError.d.ts +0 -6
  318. package/dist/cjs/api/types/SessionStoppedError.js +0 -3
  319. package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +0 -6
  320. package/dist/cjs/api/types/SessionTimeoutLimitExceededError.js +0 -3
  321. package/dist/cjs/api/types/SessionUpdateAction.d.ts +0 -10
  322. package/dist/cjs/api/types/SessionUpdateAction.js +0 -13
  323. package/dist/cjs/api/types/SessionView.d.ts +0 -28
  324. package/dist/cjs/api/types/SessionView.js +0 -3
  325. package/dist/cjs/api/types/ShareNotFoundError.d.ts +0 -6
  326. package/dist/cjs/api/types/ShareNotFoundError.js +0 -3
  327. package/dist/cjs/api/types/ShareView.d.ts +0 -13
  328. package/dist/cjs/api/types/ShareView.js +0 -3
  329. package/dist/cjs/api/types/SkillCategory.d.ts +0 -20
  330. package/dist/cjs/api/types/SkillCategory.js +0 -23
  331. package/dist/cjs/api/types/SkillExecutionListResponse.d.ts +0 -14
  332. package/dist/cjs/api/types/SkillExecutionListResponse.js +0 -3
  333. package/dist/cjs/api/types/SkillExecutionOutputResponse.d.ts +0 -7
  334. package/dist/cjs/api/types/SkillExecutionOutputResponse.js +0 -3
  335. package/dist/cjs/api/types/SkillExecutionView.d.ts +0 -21
  336. package/dist/cjs/api/types/SkillExecutionView.js +0 -3
  337. package/dist/cjs/api/types/SkillListResponse.d.ts +0 -14
  338. package/dist/cjs/api/types/SkillListResponse.js +0 -3
  339. package/dist/cjs/api/types/SkillNotFinishedError.d.ts +0 -6
  340. package/dist/cjs/api/types/SkillNotFinishedError.js +0 -3
  341. package/dist/cjs/api/types/SkillNotFoundError.d.ts +0 -6
  342. package/dist/cjs/api/types/SkillNotFoundError.js +0 -3
  343. package/dist/cjs/api/types/SkillResponse.d.ts +0 -52
  344. package/dist/cjs/api/types/SkillResponse.js +0 -3
  345. package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +0 -10
  346. package/dist/cjs/api/types/SkillsGenerationStatus.js +0 -13
  347. package/dist/cjs/api/types/SupportedLlMs.d.ts +0 -22
  348. package/dist/cjs/api/types/SupportedLlMs.js +0 -25
  349. package/dist/cjs/api/types/TaskCreatedResponse.d.ts +0 -9
  350. package/dist/cjs/api/types/TaskCreatedResponse.js +0 -3
  351. package/dist/cjs/api/types/TaskItemView.d.ts +0 -35
  352. package/dist/cjs/api/types/TaskItemView.js +0 -3
  353. package/dist/cjs/api/types/TaskListResponse.d.ts +0 -14
  354. package/dist/cjs/api/types/TaskListResponse.js +0 -3
  355. package/dist/cjs/api/types/TaskLogFileResponse.d.ts +0 -7
  356. package/dist/cjs/api/types/TaskLogFileResponse.js +0 -3
  357. package/dist/cjs/api/types/TaskNotFoundError.d.ts +0 -6
  358. package/dist/cjs/api/types/TaskNotFoundError.js +0 -3
  359. package/dist/cjs/api/types/TaskOutputFileResponse.d.ts +0 -11
  360. package/dist/cjs/api/types/TaskOutputFileResponse.js +0 -3
  361. package/dist/cjs/api/types/TaskStatus.d.ts +0 -16
  362. package/dist/cjs/api/types/TaskStatus.js +0 -19
  363. package/dist/cjs/api/types/TaskStepView.d.ts +0 -19
  364. package/dist/cjs/api/types/TaskStepView.js +0 -3
  365. package/dist/cjs/api/types/TaskUpdateAction.d.ts +0 -12
  366. package/dist/cjs/api/types/TaskUpdateAction.js +0 -15
  367. package/dist/cjs/api/types/TaskView.d.ts +0 -37
  368. package/dist/cjs/api/types/TaskView.js +0 -3
  369. package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.d.ts +0 -6
  370. package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.js +0 -3
  371. package/dist/cjs/api/types/UnsupportedContentTypeError.d.ts +0 -6
  372. package/dist/cjs/api/types/UnsupportedContentTypeError.js +0 -3
  373. package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +0 -22
  374. package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +0 -11
  375. package/dist/cjs/api/types/UploadFileRequest.d.ts +0 -30
  376. package/dist/cjs/api/types/UploadFileRequest.js +0 -24
  377. package/dist/cjs/api/types/ValidationError.d.ts +0 -11
  378. package/dist/cjs/api/types/ValidationError.js +0 -3
  379. package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.d.ts +0 -12
  380. package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.js +0 -3
  381. package/dist/cjs/api/types/WorkflowExecutionItemView.d.ts +0 -28
  382. package/dist/cjs/api/types/WorkflowExecutionItemView.js +0 -3
  383. package/dist/cjs/api/types/WorkflowExecutionListResponse.d.ts +0 -14
  384. package/dist/cjs/api/types/WorkflowExecutionListResponse.js +0 -3
  385. package/dist/cjs/api/types/WorkflowExecutionLogResponse.d.ts +0 -7
  386. package/dist/cjs/api/types/WorkflowExecutionLogResponse.js +0 -3
  387. package/dist/cjs/api/types/WorkflowExecutionMediaStepView.d.ts +0 -13
  388. package/dist/cjs/api/types/WorkflowExecutionMediaStepView.js +0 -3
  389. package/dist/cjs/api/types/WorkflowExecutionMediaView.d.ts +0 -8
  390. package/dist/cjs/api/types/WorkflowExecutionMediaView.js +0 -3
  391. package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +0 -38
  392. package/dist/cjs/api/types/WorkflowExecutionResponse.js +0 -3
  393. package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +0 -28
  394. package/dist/cjs/api/types/WorkflowExecutionStateView.js +0 -3
  395. package/dist/cjs/api/types/WorkflowExecutionStatus.d.ts +0 -18
  396. package/dist/cjs/api/types/WorkflowExecutionStatus.js +0 -21
  397. package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +0 -29
  398. package/dist/cjs/api/types/WorkflowExecutionStepView.js +0 -3
  399. package/dist/cjs/api/types/WorkflowGenerateResponse.d.ts +0 -11
  400. package/dist/cjs/api/types/WorkflowGenerateResponse.js +0 -3
  401. package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +0 -18
  402. package/dist/cjs/api/types/WorkflowGenerationStateView.js +0 -3
  403. package/dist/cjs/api/types/WorkflowGenerationStatus.d.ts +0 -8
  404. package/dist/cjs/api/types/WorkflowGenerationStatus.js +0 -11
  405. package/dist/cjs/api/types/WorkflowGenerationStepView.d.ts +0 -19
  406. package/dist/cjs/api/types/WorkflowGenerationStepView.js +0 -3
  407. package/dist/cjs/api/types/WorkflowItemView.d.ts +0 -19
  408. package/dist/cjs/api/types/WorkflowItemView.js +0 -3
  409. package/dist/cjs/api/types/WorkflowListResponse.d.ts +0 -14
  410. package/dist/cjs/api/types/WorkflowListResponse.js +0 -3
  411. package/dist/cjs/api/types/WorkflowResponse.d.ts +0 -38
  412. package/dist/cjs/api/types/WorkflowResponse.js +0 -3
  413. package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +0 -15
  414. package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +0 -3
  415. package/dist/cjs/api/types/index.d.ts +0 -72
  416. package/dist/cjs/api/types/index.js +0 -88
  417. package/dist/cjs/core/exports.d.ts +0 -1
  418. package/dist/cjs/core/exports.js +0 -17
  419. package/dist/cjs/core/fetcher/APIResponse.d.ts +0 -20
  420. package/dist/cjs/core/fetcher/APIResponse.js +0 -2
  421. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +0 -20
  422. package/dist/cjs/core/fetcher/BinaryResponse.js +0 -17
  423. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +0 -13
  424. package/dist/cjs/core/fetcher/EndpointMetadata.js +0 -2
  425. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +0 -12
  426. package/dist/cjs/core/fetcher/EndpointSupplier.js +0 -22
  427. package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -45
  428. package/dist/cjs/core/fetcher/Fetcher.js +0 -315
  429. package/dist/cjs/core/fetcher/Headers.d.ts +0 -2
  430. package/dist/cjs/core/fetcher/Headers.js +0 -84
  431. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +0 -58
  432. package/dist/cjs/core/fetcher/HttpResponsePromise.js +0 -103
  433. package/dist/cjs/core/fetcher/RawResponse.d.ts +0 -29
  434. package/dist/cjs/core/fetcher/RawResponse.js +0 -44
  435. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  436. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  437. package/dist/cjs/core/fetcher/Supplier.d.ts +0 -4
  438. package/dist/cjs/core/fetcher/Supplier.js +0 -22
  439. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +0 -1
  440. package/dist/cjs/core/fetcher/createRequestUrl.js +0 -8
  441. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +0 -1
  442. package/dist/cjs/core/fetcher/getErrorResponseBody.js +0 -45
  443. package/dist/cjs/core/fetcher/getFetchFn.d.ts +0 -1
  444. package/dist/cjs/core/fetcher/getFetchFn.js +0 -17
  445. package/dist/cjs/core/fetcher/getHeader.d.ts +0 -1
  446. package/dist/cjs/core/fetcher/getHeader.js +0 -11
  447. package/dist/cjs/core/fetcher/getRequestBody.d.ts +0 -7
  448. package/dist/cjs/core/fetcher/getRequestBody.js +0 -27
  449. package/dist/cjs/core/fetcher/getResponseBody.d.ts +0 -1
  450. package/dist/cjs/core/fetcher/getResponseBody.js +0 -55
  451. package/dist/cjs/core/fetcher/index.d.ts +0 -11
  452. package/dist/cjs/core/fetcher/index.js +0 -17
  453. package/dist/cjs/core/fetcher/makeRequest.d.ts +0 -1
  454. package/dist/cjs/core/fetcher/makeRequest.js +0 -40
  455. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +0 -1
  456. package/dist/cjs/core/fetcher/requestWithRetries.js +0 -67
  457. package/dist/cjs/core/fetcher/signals.d.ts +0 -5
  458. package/dist/cjs/core/fetcher/signals.js +0 -24
  459. package/dist/cjs/core/headers.d.ts +0 -2
  460. package/dist/cjs/core/headers.js +0 -31
  461. package/dist/cjs/core/index.d.ts +0 -4
  462. package/dist/cjs/core/index.js +0 -43
  463. package/dist/cjs/core/json.d.ts +0 -15
  464. package/dist/cjs/core/json.js +0 -24
  465. package/dist/cjs/core/logging/exports.d.ts +0 -18
  466. package/dist/cjs/core/logging/exports.js +0 -45
  467. package/dist/cjs/core/logging/index.d.ts +0 -1
  468. package/dist/cjs/core/logging/index.js +0 -17
  469. package/dist/cjs/core/logging/logger.d.ts +0 -126
  470. package/dist/cjs/core/logging/logger.js +0 -144
  471. package/dist/cjs/core/runtime/index.d.ts +0 -1
  472. package/dist/cjs/core/runtime/index.js +0 -5
  473. package/dist/cjs/core/runtime/runtime.d.ts +0 -9
  474. package/dist/cjs/core/runtime/runtime.js +0 -102
  475. package/dist/cjs/core/url/encodePathParam.d.ts +0 -1
  476. package/dist/cjs/core/url/encodePathParam.js +0 -21
  477. package/dist/cjs/core/url/index.d.ts +0 -3
  478. package/dist/cjs/core/url/index.js +0 -9
  479. package/dist/cjs/core/url/join.d.ts +0 -1
  480. package/dist/cjs/core/url/join.js +0 -68
  481. package/dist/cjs/core/url/qs.d.ts +0 -6
  482. package/dist/cjs/core/url/qs.js +0 -64
  483. package/dist/cjs/environments.d.ts +0 -4
  484. package/dist/cjs/environments.js +0 -7
  485. package/dist/cjs/errors/BrowserUseError.d.ts +0 -12
  486. package/dist/cjs/errors/BrowserUseError.js +0 -28
  487. package/dist/cjs/errors/BrowserUseTimeoutError.d.ts +0 -3
  488. package/dist/cjs/errors/BrowserUseTimeoutError.js +0 -11
  489. package/dist/cjs/errors/index.d.ts +0 -2
  490. package/dist/cjs/errors/index.js +0 -7
  491. package/dist/cjs/exports.d.ts +0 -1
  492. package/dist/cjs/exports.js +0 -17
  493. package/dist/cjs/index.d.ts +0 -7
  494. package/dist/cjs/index.js +0 -47
  495. package/dist/cjs/version.d.ts +0 -1
  496. package/dist/cjs/version.js +0 -4
  497. package/dist/cjs/wrapper/BrowserUseClient.d.ts +0 -6
  498. package/dist/cjs/wrapper/BrowserUseClient.js +0 -12
  499. package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +0 -15
  500. package/dist/cjs/wrapper/api/BrowserUseTasks.js +0 -89
  501. package/dist/cjs/wrapper/lib/parse.d.ts +0 -69
  502. package/dist/cjs/wrapper/lib/parse.js +0 -202
  503. package/dist/cjs/wrapper/lib/types.d.ts +0 -74
  504. package/dist/cjs/wrapper/lib/types.js +0 -13
  505. package/dist/cjs/wrapper/lib/webhooks.d.ts +0 -92
  506. package/dist/cjs/wrapper/lib/webhooks.js +0 -97
  507. package/dist/esm/BaseClient.d.mts +0 -30
  508. package/dist/esm/BaseClient.mjs +0 -2
  509. package/dist/esm/Client.d.mts +0 -35
  510. package/dist/esm/Client.mjs +0 -55
  511. package/dist/esm/api/errors/BadRequestError.d.mts +0 -5
  512. package/dist/esm/api/errors/BadRequestError.mjs +0 -13
  513. package/dist/esm/api/errors/ForbiddenError.d.mts +0 -5
  514. package/dist/esm/api/errors/ForbiddenError.mjs +0 -13
  515. package/dist/esm/api/errors/InternalServerError.d.mts +0 -5
  516. package/dist/esm/api/errors/InternalServerError.mjs +0 -13
  517. package/dist/esm/api/errors/NotFoundError.d.mts +0 -5
  518. package/dist/esm/api/errors/NotFoundError.mjs +0 -13
  519. package/dist/esm/api/errors/PaymentRequiredError.d.mts +0 -5
  520. package/dist/esm/api/errors/PaymentRequiredError.mjs +0 -13
  521. package/dist/esm/api/errors/TooManyRequestsError.d.mts +0 -6
  522. package/dist/esm/api/errors/TooManyRequestsError.mjs +0 -13
  523. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +0 -5
  524. package/dist/esm/api/errors/UnprocessableEntityError.mjs +0 -13
  525. package/dist/esm/api/errors/index.d.mts +0 -7
  526. package/dist/esm/api/errors/index.mjs +0 -7
  527. package/dist/esm/api/index.d.mts +0 -3
  528. package/dist/esm/api/index.mjs +0 -3
  529. package/dist/esm/api/resources/billing/client/Client.d.mts +0 -27
  530. package/dist/esm/api/resources/billing/client/Client.mjs +0 -89
  531. package/dist/esm/api/resources/billing/client/index.d.mts +0 -1
  532. package/dist/esm/api/resources/billing/client/index.mjs +0 -1
  533. package/dist/esm/api/resources/billing/index.d.mts +0 -1
  534. package/dist/esm/api/resources/billing/index.mjs +0 -1
  535. package/dist/esm/api/resources/browsers/client/Client.d.mts +0 -93
  536. package/dist/esm/api/resources/browsers/client/Client.mjs +0 -340
  537. package/dist/esm/api/resources/browsers/client/index.d.mts +0 -1
  538. package/dist/esm/api/resources/browsers/client/index.mjs +0 -1
  539. package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +0 -21
  540. package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.mjs +0 -2
  541. package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.mts +0 -9
  542. package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.mjs +0 -2
  543. package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.mts +0 -10
  544. package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.mjs +0 -2
  545. package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +0 -13
  546. package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.mjs +0 -2
  547. package/dist/esm/api/resources/browsers/client/requests/index.d.mts +0 -4
  548. package/dist/esm/api/resources/browsers/client/requests/index.mjs +0 -1
  549. package/dist/esm/api/resources/browsers/index.d.mts +0 -1
  550. package/dist/esm/api/resources/browsers/index.mjs +0 -1
  551. package/dist/esm/api/resources/files/client/Client.d.mts +0 -78
  552. package/dist/esm/api/resources/files/client/Client.mjs +0 -265
  553. package/dist/esm/api/resources/files/client/index.d.mts +0 -1
  554. package/dist/esm/api/resources/files/client/index.mjs +0 -1
  555. package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.mts +0 -16
  556. package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.mjs +0 -2
  557. package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.mts +0 -16
  558. package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.mjs +0 -2
  559. package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.mts +0 -11
  560. package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.mjs +0 -2
  561. package/dist/esm/api/resources/files/client/requests/index.d.mts +0 -3
  562. package/dist/esm/api/resources/files/client/requests/index.mjs +0 -1
  563. package/dist/esm/api/resources/files/index.d.mts +0 -1
  564. package/dist/esm/api/resources/files/index.mjs +0 -1
  565. package/dist/esm/api/resources/index.d.mts +0 -15
  566. package/dist/esm/api/resources/index.mjs +0 -15
  567. package/dist/esm/api/resources/profiles/client/Client.d.mts +0 -93
  568. package/dist/esm/api/resources/profiles/client/Client.mjs +0 -379
  569. package/dist/esm/api/resources/profiles/client/index.d.mts +0 -1
  570. package/dist/esm/api/resources/profiles/client/index.mjs +0 -1
  571. package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.mts +0 -9
  572. package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.mjs +0 -2
  573. package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.mts +0 -9
  574. package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.mjs +0 -2
  575. package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.mts +0 -8
  576. package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.mjs +0 -2
  577. package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.d.mts +0 -8
  578. package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.mjs +0 -2
  579. package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.d.mts +0 -11
  580. package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.mjs +0 -2
  581. package/dist/esm/api/resources/profiles/client/requests/index.d.mts +0 -5
  582. package/dist/esm/api/resources/profiles/client/requests/index.mjs +0 -1
  583. package/dist/esm/api/resources/profiles/index.d.mts +0 -1
  584. package/dist/esm/api/resources/profiles/index.mjs +0 -1
  585. package/dist/esm/api/resources/sessions/client/Client.d.mts +0 -140
  586. package/dist/esm/api/resources/sessions/client/Client.mjs +0 -588
  587. package/dist/esm/api/resources/sessions/client/index.d.mts +0 -1
  588. package/dist/esm/api/resources/sessions/client/index.mjs +0 -1
  589. package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.mts +0 -9
  590. package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.mjs +0 -2
  591. package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +0 -23
  592. package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.mjs +0 -2
  593. package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.mts +0 -9
  594. package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.mjs +0 -2
  595. package/dist/esm/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.d.mts +0 -9
  596. package/dist/esm/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.mjs +0 -2
  597. package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.mts +0 -9
  598. package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.mjs +0 -2
  599. package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.mts +0 -9
  600. package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.mjs +0 -2
  601. package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.mts +0 -10
  602. package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.mjs +0 -2
  603. package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +0 -13
  604. package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.mjs +0 -2
  605. package/dist/esm/api/resources/sessions/client/requests/index.d.mts +0 -8
  606. package/dist/esm/api/resources/sessions/client/requests/index.mjs +0 -1
  607. package/dist/esm/api/resources/sessions/index.d.mts +0 -1
  608. package/dist/esm/api/resources/sessions/index.mjs +0 -1
  609. package/dist/esm/api/resources/skills/client/Client.d.mts +0 -202
  610. package/dist/esm/api/resources/skills/client/Client.mjs +0 -855
  611. package/dist/esm/api/resources/skills/client/index.d.mts +0 -1
  612. package/dist/esm/api/resources/skills/client/index.mjs +0 -1
  613. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.d.mts +0 -9
  614. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.mjs +0 -2
  615. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +0 -9
  616. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +0 -2
  617. package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.d.mts +0 -17
  618. package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.mjs +0 -2
  619. package/dist/esm/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.d.mts +0 -9
  620. package/dist/esm/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.mjs +0 -2
  621. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillRequest.d.mts +0 -11
  622. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillRequest.mjs +0 -2
  623. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +0 -12
  624. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +0 -2
  625. package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.mts +0 -11
  626. package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.mjs +0 -2
  627. package/dist/esm/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.d.mts +0 -9
  628. package/dist/esm/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.mjs +0 -2
  629. package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.mts +0 -11
  630. package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.mjs +0 -2
  631. package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +0 -15
  632. package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.mjs +0 -2
  633. package/dist/esm/api/resources/skills/client/requests/RefineSkillRequest.d.mts +0 -16
  634. package/dist/esm/api/resources/skills/client/requests/RefineSkillRequest.mjs +0 -2
  635. package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +0 -9
  636. package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +0 -2
  637. package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +0 -20
  638. package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.mjs +0 -2
  639. package/dist/esm/api/resources/skills/client/requests/index.d.mts +0 -11
  640. package/dist/esm/api/resources/skills/client/requests/index.mjs +0 -1
  641. package/dist/esm/api/resources/skills/index.d.mts +0 -1
  642. package/dist/esm/api/resources/skills/index.mjs +0 -1
  643. package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +0 -79
  644. package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +0 -324
  645. package/dist/esm/api/resources/skillsMarketplace/client/index.d.mts +0 -1
  646. package/dist/esm/api/resources/skillsMarketplace/client/index.mjs +0 -1
  647. package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.mts +0 -9
  648. package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.mjs +0 -2
  649. package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +0 -12
  650. package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +0 -2
  651. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +0 -9
  652. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +0 -2
  653. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +0 -13
  654. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.mjs +0 -2
  655. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +0 -4
  656. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.mjs +0 -1
  657. package/dist/esm/api/resources/skillsMarketplace/index.d.mts +0 -1
  658. package/dist/esm/api/resources/skillsMarketplace/index.mjs +0 -1
  659. package/dist/esm/api/resources/tasks/client/Client.d.mts +0 -106
  660. package/dist/esm/api/resources/tasks/client/Client.mjs +0 -412
  661. package/dist/esm/api/resources/tasks/client/index.d.mts +0 -1
  662. package/dist/esm/api/resources/tasks/client/index.mjs +0 -1
  663. package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +0 -53
  664. package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.mjs +0 -2
  665. package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.mts +0 -9
  666. package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.mjs +0 -2
  667. package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.mts +0 -9
  668. package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.mjs +0 -2
  669. package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.mts +0 -13
  670. package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.mjs +0 -2
  671. package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.d.mts +0 -13
  672. package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.mjs +0 -2
  673. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +0 -5
  674. package/dist/esm/api/resources/tasks/client/requests/index.mjs +0 -1
  675. package/dist/esm/api/resources/tasks/index.d.mts +0 -1
  676. package/dist/esm/api/resources/tasks/index.mjs +0 -1
  677. package/dist/esm/api/resources/workflows/client/Client.d.mts +0 -278
  678. package/dist/esm/api/resources/workflows/client/Client.mjs +0 -1162
  679. package/dist/esm/api/resources/workflows/client/index.d.mts +0 -1
  680. package/dist/esm/api/resources/workflows/client/index.mjs +0 -1
  681. package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.mts +0 -9
  682. package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.mjs +0 -2
  683. package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.mts +0 -9
  684. package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.mjs +0 -2
  685. package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.mts +0 -9
  686. package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.mjs +0 -2
  687. package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.mts +0 -9
  688. package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.mjs +0 -2
  689. package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.mts +0 -9
  690. package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.mjs +0 -2
  691. package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.mts +0 -9
  692. package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.mjs +0 -2
  693. package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.mts +0 -9
  694. package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.mjs +0 -2
  695. package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.mts +0 -9
  696. package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.mjs +0 -2
  697. package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.mts +0 -11
  698. package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.mjs +0 -2
  699. package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.mts +0 -14
  700. package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.mjs +0 -2
  701. package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.mts +0 -10
  702. package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.mjs +0 -2
  703. package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.d.mts +0 -14
  704. package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.mjs +0 -2
  705. package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +0 -13
  706. package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.mjs +0 -2
  707. package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.mts +0 -36
  708. package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.mjs +0 -2
  709. package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.mts +0 -15
  710. package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.mjs +0 -2
  711. package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.mts +0 -14
  712. package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.mjs +0 -2
  713. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +0 -16
  714. package/dist/esm/api/resources/workflows/client/requests/index.mjs +0 -1
  715. package/dist/esm/api/resources/workflows/index.d.mts +0 -1
  716. package/dist/esm/api/resources/workflows/index.mjs +0 -1
  717. package/dist/esm/api/types/AccountNotFoundError.d.mts +0 -6
  718. package/dist/esm/api/types/AccountNotFoundError.mjs +0 -2
  719. package/dist/esm/api/types/AccountView.d.mts +0 -20
  720. package/dist/esm/api/types/AccountView.mjs +0 -2
  721. package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
  722. package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
  723. package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +0 -6
  724. package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +0 -2
  725. package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
  726. package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
  727. package/dist/esm/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.d.mts +0 -6
  728. package/dist/esm/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.mjs +0 -2
  729. package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -2
  730. package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -2
  731. package/dist/esm/api/types/BrowserSessionItemView.d.mts +0 -26
  732. package/dist/esm/api/types/BrowserSessionItemView.mjs +0 -2
  733. package/dist/esm/api/types/BrowserSessionListResponse.d.mts +0 -14
  734. package/dist/esm/api/types/BrowserSessionListResponse.mjs +0 -2
  735. package/dist/esm/api/types/BrowserSessionStatus.d.mts +0 -12
  736. package/dist/esm/api/types/BrowserSessionStatus.mjs +0 -12
  737. package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +0 -10
  738. package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +0 -10
  739. package/dist/esm/api/types/BrowserSessionView.d.mts +0 -26
  740. package/dist/esm/api/types/BrowserSessionView.mjs +0 -2
  741. package/dist/esm/api/types/CannotDeleteSkillWhileGeneratingError.d.mts +0 -6
  742. package/dist/esm/api/types/CannotDeleteSkillWhileGeneratingError.mjs +0 -2
  743. package/dist/esm/api/types/CannotRollbackPublicSkillError.d.mts +0 -6
  744. package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +0 -2
  745. package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +0 -6
  746. package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +0 -2
  747. package/dist/esm/api/types/ConcurrentSkillCreationsError.d.mts +0 -6
  748. package/dist/esm/api/types/ConcurrentSkillCreationsError.mjs +0 -2
  749. package/dist/esm/api/types/CreateSkillResponse.d.mts +0 -7
  750. package/dist/esm/api/types/CreateSkillResponse.mjs +0 -2
  751. package/dist/esm/api/types/CustomProxy.d.mts +0 -13
  752. package/dist/esm/api/types/CustomProxy.mjs +0 -2
  753. package/dist/esm/api/types/DownloadUrlGenerationError.d.mts +0 -6
  754. package/dist/esm/api/types/DownloadUrlGenerationError.mjs +0 -2
  755. package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +0 -6
  756. package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +0 -2
  757. package/dist/esm/api/types/ExecuteSkillRequest.d.mts +0 -7
  758. package/dist/esm/api/types/ExecuteSkillRequest.mjs +0 -2
  759. package/dist/esm/api/types/ExecuteSkillResponse.d.mts +0 -15
  760. package/dist/esm/api/types/ExecuteSkillResponse.mjs +0 -2
  761. package/dist/esm/api/types/FileView.d.mts +0 -9
  762. package/dist/esm/api/types/FileView.mjs +0 -2
  763. package/dist/esm/api/types/GenerationNotCancellableError.d.mts +0 -6
  764. package/dist/esm/api/types/GenerationNotCancellableError.mjs +0 -2
  765. package/dist/esm/api/types/HttpValidationError.d.mts +0 -4
  766. package/dist/esm/api/types/HttpValidationError.mjs +0 -2
  767. package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -6
  768. package/dist/esm/api/types/InternalServerErrorBody.mjs +0 -2
  769. package/dist/esm/api/types/MarketplaceSkillListResponse.d.mts +0 -14
  770. package/dist/esm/api/types/MarketplaceSkillListResponse.mjs +0 -2
  771. package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +0 -38
  772. package/dist/esm/api/types/MarketplaceSkillResponse.mjs +0 -2
  773. package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -2
  774. package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -2
  775. package/dist/esm/api/types/OutputFileNotFoundError.d.mts +0 -6
  776. package/dist/esm/api/types/OutputFileNotFoundError.mjs +0 -2
  777. package/dist/esm/api/types/ParameterSchema.d.mts +0 -12
  778. package/dist/esm/api/types/ParameterSchema.mjs +0 -2
  779. package/dist/esm/api/types/ParameterType.d.mts +0 -10
  780. package/dist/esm/api/types/ParameterType.mjs +0 -10
  781. package/dist/esm/api/types/PlanInfo.d.mts +0 -15
  782. package/dist/esm/api/types/PlanInfo.mjs +0 -2
  783. package/dist/esm/api/types/ProfileListResponse.d.mts +0 -14
  784. package/dist/esm/api/types/ProfileListResponse.mjs +0 -2
  785. package/dist/esm/api/types/ProfileNotFoundError.d.mts +0 -6
  786. package/dist/esm/api/types/ProfileNotFoundError.mjs +0 -2
  787. package/dist/esm/api/types/ProfileView.d.mts +0 -19
  788. package/dist/esm/api/types/ProfileView.mjs +0 -2
  789. package/dist/esm/api/types/ProxyCountryCode.d.mts +0 -250
  790. package/dist/esm/api/types/ProxyCountryCode.mjs +0 -250
  791. package/dist/esm/api/types/RefineSkillResponse.d.mts +0 -7
  792. package/dist/esm/api/types/RefineSkillResponse.mjs +0 -2
  793. package/dist/esm/api/types/SessionHasRunningTaskError.d.mts +0 -6
  794. package/dist/esm/api/types/SessionHasRunningTaskError.mjs +0 -2
  795. package/dist/esm/api/types/SessionItemView.d.mts +0 -24
  796. package/dist/esm/api/types/SessionItemView.mjs +0 -2
  797. package/dist/esm/api/types/SessionListResponse.d.mts +0 -14
  798. package/dist/esm/api/types/SessionListResponse.mjs +0 -2
  799. package/dist/esm/api/types/SessionNotFoundError.d.mts +0 -6
  800. package/dist/esm/api/types/SessionNotFoundError.mjs +0 -2
  801. package/dist/esm/api/types/SessionStatus.d.mts +0 -12
  802. package/dist/esm/api/types/SessionStatus.mjs +0 -12
  803. package/dist/esm/api/types/SessionStoppedError.d.mts +0 -6
  804. package/dist/esm/api/types/SessionStoppedError.mjs +0 -2
  805. package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +0 -6
  806. package/dist/esm/api/types/SessionTimeoutLimitExceededError.mjs +0 -2
  807. package/dist/esm/api/types/SessionUpdateAction.d.mts +0 -10
  808. package/dist/esm/api/types/SessionUpdateAction.mjs +0 -10
  809. package/dist/esm/api/types/SessionView.d.mts +0 -28
  810. package/dist/esm/api/types/SessionView.mjs +0 -2
  811. package/dist/esm/api/types/ShareNotFoundError.d.mts +0 -6
  812. package/dist/esm/api/types/ShareNotFoundError.mjs +0 -2
  813. package/dist/esm/api/types/ShareView.d.mts +0 -13
  814. package/dist/esm/api/types/ShareView.mjs +0 -2
  815. package/dist/esm/api/types/SkillCategory.d.mts +0 -20
  816. package/dist/esm/api/types/SkillCategory.mjs +0 -20
  817. package/dist/esm/api/types/SkillExecutionListResponse.d.mts +0 -14
  818. package/dist/esm/api/types/SkillExecutionListResponse.mjs +0 -2
  819. package/dist/esm/api/types/SkillExecutionOutputResponse.d.mts +0 -7
  820. package/dist/esm/api/types/SkillExecutionOutputResponse.mjs +0 -2
  821. package/dist/esm/api/types/SkillExecutionView.d.mts +0 -21
  822. package/dist/esm/api/types/SkillExecutionView.mjs +0 -2
  823. package/dist/esm/api/types/SkillListResponse.d.mts +0 -14
  824. package/dist/esm/api/types/SkillListResponse.mjs +0 -2
  825. package/dist/esm/api/types/SkillNotFinishedError.d.mts +0 -6
  826. package/dist/esm/api/types/SkillNotFinishedError.mjs +0 -2
  827. package/dist/esm/api/types/SkillNotFoundError.d.mts +0 -6
  828. package/dist/esm/api/types/SkillNotFoundError.mjs +0 -2
  829. package/dist/esm/api/types/SkillResponse.d.mts +0 -52
  830. package/dist/esm/api/types/SkillResponse.mjs +0 -2
  831. package/dist/esm/api/types/SkillsGenerationStatus.d.mts +0 -10
  832. package/dist/esm/api/types/SkillsGenerationStatus.mjs +0 -10
  833. package/dist/esm/api/types/SupportedLlMs.d.mts +0 -22
  834. package/dist/esm/api/types/SupportedLlMs.mjs +0 -22
  835. package/dist/esm/api/types/TaskCreatedResponse.d.mts +0 -9
  836. package/dist/esm/api/types/TaskCreatedResponse.mjs +0 -2
  837. package/dist/esm/api/types/TaskItemView.d.mts +0 -35
  838. package/dist/esm/api/types/TaskItemView.mjs +0 -2
  839. package/dist/esm/api/types/TaskListResponse.d.mts +0 -14
  840. package/dist/esm/api/types/TaskListResponse.mjs +0 -2
  841. package/dist/esm/api/types/TaskLogFileResponse.d.mts +0 -7
  842. package/dist/esm/api/types/TaskLogFileResponse.mjs +0 -2
  843. package/dist/esm/api/types/TaskNotFoundError.d.mts +0 -6
  844. package/dist/esm/api/types/TaskNotFoundError.mjs +0 -2
  845. package/dist/esm/api/types/TaskOutputFileResponse.d.mts +0 -11
  846. package/dist/esm/api/types/TaskOutputFileResponse.mjs +0 -2
  847. package/dist/esm/api/types/TaskStatus.d.mts +0 -16
  848. package/dist/esm/api/types/TaskStatus.mjs +0 -16
  849. package/dist/esm/api/types/TaskStepView.d.mts +0 -19
  850. package/dist/esm/api/types/TaskStepView.mjs +0 -2
  851. package/dist/esm/api/types/TaskUpdateAction.d.mts +0 -12
  852. package/dist/esm/api/types/TaskUpdateAction.mjs +0 -12
  853. package/dist/esm/api/types/TaskView.d.mts +0 -37
  854. package/dist/esm/api/types/TaskView.mjs +0 -2
  855. package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.d.mts +0 -6
  856. package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.mjs +0 -2
  857. package/dist/esm/api/types/UnsupportedContentTypeError.d.mts +0 -6
  858. package/dist/esm/api/types/UnsupportedContentTypeError.mjs +0 -2
  859. package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +0 -22
  860. package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +0 -8
  861. package/dist/esm/api/types/UploadFileRequest.d.mts +0 -30
  862. package/dist/esm/api/types/UploadFileRequest.mjs +0 -21
  863. package/dist/esm/api/types/ValidationError.d.mts +0 -11
  864. package/dist/esm/api/types/ValidationError.mjs +0 -2
  865. package/dist/esm/api/types/WorkflowExecutionCreatedResponse.d.mts +0 -12
  866. package/dist/esm/api/types/WorkflowExecutionCreatedResponse.mjs +0 -2
  867. package/dist/esm/api/types/WorkflowExecutionItemView.d.mts +0 -28
  868. package/dist/esm/api/types/WorkflowExecutionItemView.mjs +0 -2
  869. package/dist/esm/api/types/WorkflowExecutionListResponse.d.mts +0 -14
  870. package/dist/esm/api/types/WorkflowExecutionListResponse.mjs +0 -2
  871. package/dist/esm/api/types/WorkflowExecutionLogResponse.d.mts +0 -7
  872. package/dist/esm/api/types/WorkflowExecutionLogResponse.mjs +0 -2
  873. package/dist/esm/api/types/WorkflowExecutionMediaStepView.d.mts +0 -13
  874. package/dist/esm/api/types/WorkflowExecutionMediaStepView.mjs +0 -2
  875. package/dist/esm/api/types/WorkflowExecutionMediaView.d.mts +0 -8
  876. package/dist/esm/api/types/WorkflowExecutionMediaView.mjs +0 -2
  877. package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +0 -38
  878. package/dist/esm/api/types/WorkflowExecutionResponse.mjs +0 -2
  879. package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +0 -28
  880. package/dist/esm/api/types/WorkflowExecutionStateView.mjs +0 -2
  881. package/dist/esm/api/types/WorkflowExecutionStatus.d.mts +0 -18
  882. package/dist/esm/api/types/WorkflowExecutionStatus.mjs +0 -18
  883. package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +0 -29
  884. package/dist/esm/api/types/WorkflowExecutionStepView.mjs +0 -2
  885. package/dist/esm/api/types/WorkflowGenerateResponse.d.mts +0 -11
  886. package/dist/esm/api/types/WorkflowGenerateResponse.mjs +0 -2
  887. package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +0 -18
  888. package/dist/esm/api/types/WorkflowGenerationStateView.mjs +0 -2
  889. package/dist/esm/api/types/WorkflowGenerationStatus.d.mts +0 -8
  890. package/dist/esm/api/types/WorkflowGenerationStatus.mjs +0 -8
  891. package/dist/esm/api/types/WorkflowGenerationStepView.d.mts +0 -19
  892. package/dist/esm/api/types/WorkflowGenerationStepView.mjs +0 -2
  893. package/dist/esm/api/types/WorkflowItemView.d.mts +0 -19
  894. package/dist/esm/api/types/WorkflowItemView.mjs +0 -2
  895. package/dist/esm/api/types/WorkflowListResponse.d.mts +0 -14
  896. package/dist/esm/api/types/WorkflowListResponse.mjs +0 -2
  897. package/dist/esm/api/types/WorkflowResponse.d.mts +0 -38
  898. package/dist/esm/api/types/WorkflowResponse.mjs +0 -2
  899. package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +0 -15
  900. package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +0 -2
  901. package/dist/esm/api/types/index.d.mts +0 -72
  902. package/dist/esm/api/types/index.mjs +0 -72
  903. package/dist/esm/core/exports.d.mts +0 -1
  904. package/dist/esm/core/exports.mjs +0 -1
  905. package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
  906. package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
  907. package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -20
  908. package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
  909. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +0 -13
  910. package/dist/esm/core/fetcher/EndpointMetadata.mjs +0 -1
  911. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +0 -12
  912. package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -19
  913. package/dist/esm/core/fetcher/Fetcher.d.mts +0 -45
  914. package/dist/esm/core/fetcher/Fetcher.mjs +0 -311
  915. package/dist/esm/core/fetcher/Headers.d.mts +0 -2
  916. package/dist/esm/core/fetcher/Headers.mjs +0 -82
  917. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
  918. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
  919. package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
  920. package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
  921. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  922. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
  923. package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
  924. package/dist/esm/core/fetcher/Supplier.mjs +0 -19
  925. package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
  926. package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
  927. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
  928. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -42
  929. package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
  930. package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
  931. package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
  932. package/dist/esm/core/fetcher/getHeader.mjs +0 -8
  933. package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
  934. package/dist/esm/core/fetcher/getRequestBody.mjs +0 -24
  935. package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
  936. package/dist/esm/core/fetcher/getResponseBody.mjs +0 -52
  937. package/dist/esm/core/fetcher/index.d.mts +0 -11
  938. package/dist/esm/core/fetcher/index.mjs +0 -6
  939. package/dist/esm/core/fetcher/makeRequest.d.mts +0 -1
  940. package/dist/esm/core/fetcher/makeRequest.mjs +0 -36
  941. package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
  942. package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -64
  943. package/dist/esm/core/fetcher/signals.d.mts +0 -5
  944. package/dist/esm/core/fetcher/signals.mjs +0 -20
  945. package/dist/esm/core/headers.d.mts +0 -2
  946. package/dist/esm/core/headers.mjs +0 -27
  947. package/dist/esm/core/index.d.mts +0 -4
  948. package/dist/esm/core/index.mjs +0 -4
  949. package/dist/esm/core/json.d.mts +0 -15
  950. package/dist/esm/core/json.mjs +0 -19
  951. package/dist/esm/core/logging/exports.d.mts +0 -18
  952. package/dist/esm/core/logging/exports.mjs +0 -9
  953. package/dist/esm/core/logging/index.d.mts +0 -1
  954. package/dist/esm/core/logging/index.mjs +0 -1
  955. package/dist/esm/core/logging/logger.d.mts +0 -126
  956. package/dist/esm/core/logging/logger.mjs +0 -138
  957. package/dist/esm/core/runtime/index.d.mts +0 -1
  958. package/dist/esm/core/runtime/index.mjs +0 -1
  959. package/dist/esm/core/runtime/runtime.d.mts +0 -9
  960. package/dist/esm/core/runtime/runtime.mjs +0 -99
  961. package/dist/esm/core/url/encodePathParam.d.mts +0 -1
  962. package/dist/esm/core/url/encodePathParam.mjs +0 -18
  963. package/dist/esm/core/url/index.d.mts +0 -3
  964. package/dist/esm/core/url/index.mjs +0 -3
  965. package/dist/esm/core/url/join.d.mts +0 -1
  966. package/dist/esm/core/url/join.mjs +0 -65
  967. package/dist/esm/core/url/qs.d.mts +0 -6
  968. package/dist/esm/core/url/qs.mjs +0 -61
  969. package/dist/esm/environments.d.mts +0 -4
  970. package/dist/esm/environments.mjs +0 -4
  971. package/dist/esm/errors/BrowserUseError.d.mts +0 -12
  972. package/dist/esm/errors/BrowserUseError.mjs +0 -24
  973. package/dist/esm/errors/BrowserUseTimeoutError.d.mts +0 -3
  974. package/dist/esm/errors/BrowserUseTimeoutError.mjs +0 -7
  975. package/dist/esm/errors/index.d.mts +0 -2
  976. package/dist/esm/errors/index.mjs +0 -2
  977. package/dist/esm/exports.d.mts +0 -1
  978. package/dist/esm/exports.mjs +0 -1
  979. package/dist/esm/index.d.mts +0 -7
  980. package/dist/esm/index.mjs +0 -5
  981. package/dist/esm/version.d.mts +0 -1
  982. package/dist/esm/version.mjs +0 -1
  983. package/dist/esm/wrapper/BrowserUseClient.d.mts +0 -6
  984. package/dist/esm/wrapper/BrowserUseClient.mjs +0 -8
  985. package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +0 -15
  986. package/dist/esm/wrapper/api/BrowserUseTasks.mjs +0 -53
  987. package/dist/esm/wrapper/lib/parse.d.mts +0 -69
  988. package/dist/esm/wrapper/lib/parse.mjs +0 -193
  989. package/dist/esm/wrapper/lib/types.d.mts +0 -74
  990. package/dist/esm/wrapper/lib/types.mjs +0 -9
  991. package/dist/esm/wrapper/lib/webhooks.d.mts +0 -92
  992. package/dist/esm/wrapper/lib/webhooks.mjs +0 -89
  993. package/reference.md +0 -2697
@@ -1,1162 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
- import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
23
- import * as core from "../../../../core/index.mjs";
24
- import * as environments from "../../../../environments.mjs";
25
- import * as errors from "../../../../errors/index.mjs";
26
- import * as BrowserUse from "../../../index.mjs";
27
- export class Workflows {
28
- constructor(_options) {
29
- this._options = _options;
30
- }
31
- /**
32
- * Get paginated list of workflows with optional filtering.
33
- *
34
- * @param {BrowserUse.ListWorkflowsWorkflowsGetRequest} request
35
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
36
- *
37
- * @throws {@link BrowserUse.UnprocessableEntityError}
38
- *
39
- * @example
40
- * await client.workflows.listWorkflows()
41
- */
42
- listWorkflows(request = {}, requestOptions) {
43
- return core.HttpResponsePromise.fromPromise(this.__listWorkflows(request, requestOptions));
44
- }
45
- __listWorkflows() {
46
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
47
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
48
- const { pageSize, pageNumber, isArchived, userId } = request;
49
- const _queryParams = {};
50
- if (pageSize != null) {
51
- _queryParams.pageSize = pageSize.toString();
52
- }
53
- if (pageNumber != null) {
54
- _queryParams.pageNumber = pageNumber.toString();
55
- }
56
- if (isArchived != null) {
57
- _queryParams.isArchived = isArchived.toString();
58
- }
59
- if (userId !== undefined) {
60
- _queryParams.userId = userId;
61
- }
62
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
63
- const _response = yield core.fetcher({
64
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, "workflows"),
65
- method: "GET",
66
- headers: _headers,
67
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
68
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
69
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
70
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
71
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
72
- logging: this._options.logging,
73
- });
74
- if (_response.ok) {
75
- return { data: _response.body, rawResponse: _response.rawResponse };
76
- }
77
- if (_response.error.reason === "status-code") {
78
- switch (_response.error.statusCode) {
79
- case 422:
80
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
81
- default:
82
- throw new errors.BrowserUseError({
83
- statusCode: _response.error.statusCode,
84
- body: _response.error.body,
85
- rawResponse: _response.rawResponse,
86
- });
87
- }
88
- }
89
- switch (_response.error.reason) {
90
- case "non-json":
91
- throw new errors.BrowserUseError({
92
- statusCode: _response.error.statusCode,
93
- body: _response.error.rawBody,
94
- rawResponse: _response.rawResponse,
95
- });
96
- case "timeout":
97
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows.");
98
- case "unknown":
99
- throw new errors.BrowserUseError({
100
- message: _response.error.errorMessage,
101
- rawResponse: _response.rawResponse,
102
- });
103
- }
104
- });
105
- }
106
- /**
107
- * Create a new workflow. The workflow YAML should be uploaded separately via the update endpoint.
108
- *
109
- * @param {BrowserUse.WorkflowCreateRequest} request
110
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
111
- *
112
- * @throws {@link BrowserUse.UnprocessableEntityError}
113
- *
114
- * @example
115
- * await client.workflows.createWorkflow({
116
- * name: "name"
117
- * })
118
- */
119
- createWorkflow(request, requestOptions) {
120
- return core.HttpResponsePromise.fromPromise(this.__createWorkflow(request, requestOptions));
121
- }
122
- __createWorkflow(request, requestOptions) {
123
- return __awaiter(this, void 0, void 0, function* () {
124
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
125
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
126
- const _response = yield core.fetcher({
127
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, "workflows"),
128
- method: "POST",
129
- headers: _headers,
130
- contentType: "application/json",
131
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
132
- requestType: "json",
133
- body: request,
134
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
135
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
136
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
137
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
138
- logging: this._options.logging,
139
- });
140
- if (_response.ok) {
141
- return { data: _response.body, rawResponse: _response.rawResponse };
142
- }
143
- if (_response.error.reason === "status-code") {
144
- switch (_response.error.statusCode) {
145
- case 422:
146
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
147
- default:
148
- throw new errors.BrowserUseError({
149
- statusCode: _response.error.statusCode,
150
- body: _response.error.body,
151
- rawResponse: _response.rawResponse,
152
- });
153
- }
154
- }
155
- switch (_response.error.reason) {
156
- case "non-json":
157
- throw new errors.BrowserUseError({
158
- statusCode: _response.error.statusCode,
159
- body: _response.error.rawBody,
160
- rawResponse: _response.rawResponse,
161
- });
162
- case "timeout":
163
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /workflows.");
164
- case "unknown":
165
- throw new errors.BrowserUseError({
166
- message: _response.error.errorMessage,
167
- rawResponse: _response.rawResponse,
168
- });
169
- }
170
- });
171
- }
172
- /**
173
- * Get detailed workflow information including presigned URL to download YAML.
174
- *
175
- * @param {BrowserUse.GetWorkflowWorkflowsWorkflowIdGetRequest} request
176
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
177
- *
178
- * @throws {@link BrowserUse.UnprocessableEntityError}
179
- *
180
- * @example
181
- * await client.workflows.getWorkflow({
182
- * workflow_id: "workflow_id"
183
- * })
184
- */
185
- getWorkflow(request, requestOptions) {
186
- return core.HttpResponsePromise.fromPromise(this.__getWorkflow(request, requestOptions));
187
- }
188
- __getWorkflow(request, requestOptions) {
189
- return __awaiter(this, void 0, void 0, function* () {
190
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
191
- const { workflow_id: workflowId } = request;
192
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
193
- const _response = yield core.fetcher({
194
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}`),
195
- method: "GET",
196
- headers: _headers,
197
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
198
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
199
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
200
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
201
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
202
- logging: this._options.logging,
203
- });
204
- if (_response.ok) {
205
- return { data: _response.body, rawResponse: _response.rawResponse };
206
- }
207
- if (_response.error.reason === "status-code") {
208
- switch (_response.error.statusCode) {
209
- case 422:
210
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
211
- default:
212
- throw new errors.BrowserUseError({
213
- statusCode: _response.error.statusCode,
214
- body: _response.error.body,
215
- rawResponse: _response.rawResponse,
216
- });
217
- }
218
- }
219
- switch (_response.error.reason) {
220
- case "non-json":
221
- throw new errors.BrowserUseError({
222
- statusCode: _response.error.statusCode,
223
- body: _response.error.rawBody,
224
- rawResponse: _response.rawResponse,
225
- });
226
- case "timeout":
227
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/{workflow_id}.");
228
- case "unknown":
229
- throw new errors.BrowserUseError({
230
- message: _response.error.errorMessage,
231
- rawResponse: _response.rawResponse,
232
- });
233
- }
234
- });
235
- }
236
- /**
237
- * Archive a workflow (soft delete).
238
- *
239
- * @param {BrowserUse.DeleteWorkflowWorkflowsWorkflowIdDeleteRequest} request
240
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
241
- *
242
- * @throws {@link BrowserUse.UnprocessableEntityError}
243
- *
244
- * @example
245
- * await client.workflows.deleteWorkflow({
246
- * workflow_id: "workflow_id"
247
- * })
248
- */
249
- deleteWorkflow(request, requestOptions) {
250
- return core.HttpResponsePromise.fromPromise(this.__deleteWorkflow(request, requestOptions));
251
- }
252
- __deleteWorkflow(request, requestOptions) {
253
- return __awaiter(this, void 0, void 0, function* () {
254
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
255
- const { workflow_id: workflowId } = request;
256
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
257
- const _response = yield core.fetcher({
258
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}`),
259
- method: "DELETE",
260
- headers: _headers,
261
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
262
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
263
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
264
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
265
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
266
- logging: this._options.logging,
267
- });
268
- if (_response.ok) {
269
- return { data: _response.body, rawResponse: _response.rawResponse };
270
- }
271
- if (_response.error.reason === "status-code") {
272
- switch (_response.error.statusCode) {
273
- case 422:
274
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
275
- default:
276
- throw new errors.BrowserUseError({
277
- statusCode: _response.error.statusCode,
278
- body: _response.error.body,
279
- rawResponse: _response.rawResponse,
280
- });
281
- }
282
- }
283
- switch (_response.error.reason) {
284
- case "non-json":
285
- throw new errors.BrowserUseError({
286
- statusCode: _response.error.statusCode,
287
- body: _response.error.rawBody,
288
- rawResponse: _response.rawResponse,
289
- });
290
- case "timeout":
291
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling DELETE /workflows/{workflow_id}.");
292
- case "unknown":
293
- throw new errors.BrowserUseError({
294
- message: _response.error.errorMessage,
295
- rawResponse: _response.rawResponse,
296
- });
297
- }
298
- });
299
- }
300
- /**
301
- * Update workflow metadata.
302
- *
303
- * @param {BrowserUse.WorkflowUpdateRequest} request
304
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
305
- *
306
- * @throws {@link BrowserUse.UnprocessableEntityError}
307
- *
308
- * @example
309
- * await client.workflows.updateWorkflow({
310
- * workflow_id: "workflow_id"
311
- * })
312
- */
313
- updateWorkflow(request, requestOptions) {
314
- return core.HttpResponsePromise.fromPromise(this.__updateWorkflow(request, requestOptions));
315
- }
316
- __updateWorkflow(request, requestOptions) {
317
- return __awaiter(this, void 0, void 0, function* () {
318
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
319
- const { workflow_id: workflowId } = request, _body = __rest(request, ["workflow_id"]);
320
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
321
- const _response = yield core.fetcher({
322
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}`),
323
- method: "PATCH",
324
- headers: _headers,
325
- contentType: "application/json",
326
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
327
- requestType: "json",
328
- body: _body,
329
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
330
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
331
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
332
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
333
- logging: this._options.logging,
334
- });
335
- if (_response.ok) {
336
- return { data: _response.body, rawResponse: _response.rawResponse };
337
- }
338
- if (_response.error.reason === "status-code") {
339
- switch (_response.error.statusCode) {
340
- case 422:
341
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
342
- default:
343
- throw new errors.BrowserUseError({
344
- statusCode: _response.error.statusCode,
345
- body: _response.error.body,
346
- rawResponse: _response.rawResponse,
347
- });
348
- }
349
- }
350
- switch (_response.error.reason) {
351
- case "non-json":
352
- throw new errors.BrowserUseError({
353
- statusCode: _response.error.statusCode,
354
- body: _response.error.rawBody,
355
- rawResponse: _response.rawResponse,
356
- });
357
- case "timeout":
358
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling PATCH /workflows/{workflow_id}.");
359
- case "unknown":
360
- throw new errors.BrowserUseError({
361
- message: _response.error.errorMessage,
362
- rawResponse: _response.rawResponse,
363
- });
364
- }
365
- });
366
- }
367
- /**
368
- * Get workflow generation state with live browser URL for polling.
369
- *
370
- * This endpoint returns the current state of workflow generation including
371
- * the live browser URL (if available). It's designed to be polled every 2 seconds
372
- * during generation to show real-time browser activity in the frontend.
373
- *
374
- * @param {BrowserUse.GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest} request
375
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
376
- *
377
- * @throws {@link BrowserUse.UnprocessableEntityError}
378
- *
379
- * @example
380
- * await client.workflows.getWorkflowGenerationState({
381
- * workflow_id: "workflow_id"
382
- * })
383
- */
384
- getWorkflowGenerationState(request, requestOptions) {
385
- return core.HttpResponsePromise.fromPromise(this.__getWorkflowGenerationState(request, requestOptions));
386
- }
387
- __getWorkflowGenerationState(request, requestOptions) {
388
- return __awaiter(this, void 0, void 0, function* () {
389
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
390
- const { workflow_id: workflowId } = request;
391
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
392
- const _response = yield core.fetcher({
393
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}/generation-state`),
394
- method: "GET",
395
- headers: _headers,
396
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
397
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
398
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
399
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
400
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
401
- logging: this._options.logging,
402
- });
403
- if (_response.ok) {
404
- return {
405
- data: _response.body,
406
- rawResponse: _response.rawResponse,
407
- };
408
- }
409
- if (_response.error.reason === "status-code") {
410
- switch (_response.error.statusCode) {
411
- case 422:
412
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
413
- default:
414
- throw new errors.BrowserUseError({
415
- statusCode: _response.error.statusCode,
416
- body: _response.error.body,
417
- rawResponse: _response.rawResponse,
418
- });
419
- }
420
- }
421
- switch (_response.error.reason) {
422
- case "non-json":
423
- throw new errors.BrowserUseError({
424
- statusCode: _response.error.statusCode,
425
- body: _response.error.rawBody,
426
- rawResponse: _response.rawResponse,
427
- });
428
- case "timeout":
429
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/{workflow_id}/generation-state.");
430
- case "unknown":
431
- throw new errors.BrowserUseError({
432
- message: _response.error.errorMessage,
433
- rawResponse: _response.rawResponse,
434
- });
435
- }
436
- });
437
- }
438
- /**
439
- * Get a presigned URL to upload workflow YAML directly to S3 from the browser.
440
- *
441
- * This avoids sending the YAML content through the backend, reducing latency
442
- * and avoiding KMS permission issues in local development.
443
- *
444
- * @param {BrowserUse.WorkflowYamlPresignedUploadRequest} request
445
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
446
- *
447
- * @throws {@link BrowserUse.UnprocessableEntityError}
448
- *
449
- * @example
450
- * await client.workflows.getWorkflowYamlPresignedUrl({
451
- * workflow_id: "workflow_id",
452
- * sizeBytes: 1
453
- * })
454
- */
455
- getWorkflowYamlPresignedUrl(request, requestOptions) {
456
- return core.HttpResponsePromise.fromPromise(this.__getWorkflowYamlPresignedUrl(request, requestOptions));
457
- }
458
- __getWorkflowYamlPresignedUrl(request, requestOptions) {
459
- return __awaiter(this, void 0, void 0, function* () {
460
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
461
- const { workflow_id: workflowId } = request, _body = __rest(request, ["workflow_id"]);
462
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
463
- const _response = yield core.fetcher({
464
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}/yaml/presigned-url`),
465
- method: "POST",
466
- headers: _headers,
467
- contentType: "application/json",
468
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
469
- requestType: "json",
470
- body: _body,
471
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
472
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
473
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
474
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
475
- logging: this._options.logging,
476
- });
477
- if (_response.ok) {
478
- return {
479
- data: _response.body,
480
- rawResponse: _response.rawResponse,
481
- };
482
- }
483
- if (_response.error.reason === "status-code") {
484
- switch (_response.error.statusCode) {
485
- case 422:
486
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
487
- default:
488
- throw new errors.BrowserUseError({
489
- statusCode: _response.error.statusCode,
490
- body: _response.error.body,
491
- rawResponse: _response.rawResponse,
492
- });
493
- }
494
- }
495
- switch (_response.error.reason) {
496
- case "non-json":
497
- throw new errors.BrowserUseError({
498
- statusCode: _response.error.statusCode,
499
- body: _response.error.rawBody,
500
- rawResponse: _response.rawResponse,
501
- });
502
- case "timeout":
503
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /workflows/{workflow_id}/yaml/presigned-url.");
504
- case "unknown":
505
- throw new errors.BrowserUseError({
506
- message: _response.error.errorMessage,
507
- rawResponse: _response.rawResponse,
508
- });
509
- }
510
- });
511
- }
512
- /**
513
- * Execute a workflow asynchronously.
514
- *
515
- * Returns execution ID immediately and processes in background via Inngest.
516
- * Use the GET /workflows/executions/{execution_id} endpoint to check status and retrieve results.
517
- *
518
- * @param {BrowserUse.WorkflowExecuteRequest} request
519
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
520
- *
521
- * @throws {@link BrowserUse.UnprocessableEntityError}
522
- *
523
- * @example
524
- * await client.workflows.runWorkflow({
525
- * workflow_id: "workflow_id"
526
- * })
527
- */
528
- runWorkflow(request, requestOptions) {
529
- return core.HttpResponsePromise.fromPromise(this.__runWorkflow(request, requestOptions));
530
- }
531
- __runWorkflow(request, requestOptions) {
532
- return __awaiter(this, void 0, void 0, function* () {
533
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
534
- const { workflow_id: workflowId } = request, _body = __rest(request, ["workflow_id"]);
535
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
536
- const _response = yield core.fetcher({
537
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}/run`),
538
- method: "POST",
539
- headers: _headers,
540
- contentType: "application/json",
541
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
542
- requestType: "json",
543
- body: _body,
544
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
545
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
546
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
547
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
548
- logging: this._options.logging,
549
- });
550
- if (_response.ok) {
551
- return {
552
- data: _response.body,
553
- rawResponse: _response.rawResponse,
554
- };
555
- }
556
- if (_response.error.reason === "status-code") {
557
- switch (_response.error.statusCode) {
558
- case 422:
559
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
560
- default:
561
- throw new errors.BrowserUseError({
562
- statusCode: _response.error.statusCode,
563
- body: _response.error.body,
564
- rawResponse: _response.rawResponse,
565
- });
566
- }
567
- }
568
- switch (_response.error.reason) {
569
- case "non-json":
570
- throw new errors.BrowserUseError({
571
- statusCode: _response.error.statusCode,
572
- body: _response.error.rawBody,
573
- rawResponse: _response.rawResponse,
574
- });
575
- case "timeout":
576
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /workflows/{workflow_id}/run.");
577
- case "unknown":
578
- throw new errors.BrowserUseError({
579
- message: _response.error.errorMessage,
580
- rawResponse: _response.rawResponse,
581
- });
582
- }
583
- });
584
- }
585
- /**
586
- * Generate a workflow from a natural language task description.
587
- *
588
- * This endpoint uses the workflow-use library's HealingService to:
589
- * 1. Record browser interactions for the task
590
- * 2. Convert interactions to a reusable workflow
591
- * 3. Extract variables for parameterization
592
- * 4. Save the generated YAML to S3
593
- *
594
- * The generation happens asynchronously via the workflow_worker Lambda.
595
- *
596
- * @param {BrowserUse.WorkflowGenerateRequest} request
597
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
598
- *
599
- * @throws {@link BrowserUse.UnprocessableEntityError}
600
- *
601
- * @example
602
- * await client.workflows.generateWorkflow({
603
- * workflow_id: "workflow_id",
604
- * taskPrompt: "Go to github.com and search for browser-use"
605
- * })
606
- */
607
- generateWorkflow(request, requestOptions) {
608
- return core.HttpResponsePromise.fromPromise(this.__generateWorkflow(request, requestOptions));
609
- }
610
- __generateWorkflow(request, requestOptions) {
611
- return __awaiter(this, void 0, void 0, function* () {
612
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
613
- const { workflow_id: workflowId } = request, _body = __rest(request, ["workflow_id"]);
614
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
615
- const _response = yield core.fetcher({
616
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId)}/generate`),
617
- method: "POST",
618
- headers: _headers,
619
- contentType: "application/json",
620
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
621
- requestType: "json",
622
- body: _body,
623
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
624
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
625
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
626
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
627
- logging: this._options.logging,
628
- });
629
- if (_response.ok) {
630
- return { data: _response.body, rawResponse: _response.rawResponse };
631
- }
632
- if (_response.error.reason === "status-code") {
633
- switch (_response.error.statusCode) {
634
- case 422:
635
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
636
- default:
637
- throw new errors.BrowserUseError({
638
- statusCode: _response.error.statusCode,
639
- body: _response.error.body,
640
- rawResponse: _response.rawResponse,
641
- });
642
- }
643
- }
644
- switch (_response.error.reason) {
645
- case "non-json":
646
- throw new errors.BrowserUseError({
647
- statusCode: _response.error.statusCode,
648
- body: _response.error.rawBody,
649
- rawResponse: _response.rawResponse,
650
- });
651
- case "timeout":
652
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /workflows/{workflow_id}/generate.");
653
- case "unknown":
654
- throw new errors.BrowserUseError({
655
- message: _response.error.errorMessage,
656
- rawResponse: _response.rawResponse,
657
- });
658
- }
659
- });
660
- }
661
- /**
662
- * Get detailed execution information including status, results, and costs.
663
- *
664
- * @param {BrowserUse.GetExecutionWorkflowsExecutionsExecutionIdGetRequest} request
665
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
666
- *
667
- * @throws {@link BrowserUse.UnprocessableEntityError}
668
- *
669
- * @example
670
- * await client.workflows.getExecution({
671
- * execution_id: "execution_id"
672
- * })
673
- */
674
- getExecution(request, requestOptions) {
675
- return core.HttpResponsePromise.fromPromise(this.__getExecution(request, requestOptions));
676
- }
677
- __getExecution(request, requestOptions) {
678
- return __awaiter(this, void 0, void 0, function* () {
679
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
680
- const { execution_id: executionId } = request;
681
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
682
- const _response = yield core.fetcher({
683
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/executions/${core.url.encodePathParam(executionId)}`),
684
- method: "GET",
685
- headers: _headers,
686
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
687
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
688
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
689
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
690
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
691
- logging: this._options.logging,
692
- });
693
- if (_response.ok) {
694
- return { data: _response.body, rawResponse: _response.rawResponse };
695
- }
696
- if (_response.error.reason === "status-code") {
697
- switch (_response.error.statusCode) {
698
- case 422:
699
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
700
- default:
701
- throw new errors.BrowserUseError({
702
- statusCode: _response.error.statusCode,
703
- body: _response.error.body,
704
- rawResponse: _response.rawResponse,
705
- });
706
- }
707
- }
708
- switch (_response.error.reason) {
709
- case "non-json":
710
- throw new errors.BrowserUseError({
711
- statusCode: _response.error.statusCode,
712
- body: _response.error.rawBody,
713
- rawResponse: _response.rawResponse,
714
- });
715
- case "timeout":
716
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/executions/{execution_id}.");
717
- case "unknown":
718
- throw new errors.BrowserUseError({
719
- message: _response.error.errorMessage,
720
- rawResponse: _response.rawResponse,
721
- });
722
- }
723
- });
724
- }
725
- /**
726
- * Get paginated list of executions for a specific workflow.
727
- *
728
- * @param {BrowserUse.ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest} request
729
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
730
- *
731
- * @throws {@link BrowserUse.UnprocessableEntityError}
732
- *
733
- * @example
734
- * await client.workflows.listWorkflowExecutions({
735
- * workflow_id: "workflow_id"
736
- * })
737
- */
738
- listWorkflowExecutions(request, requestOptions) {
739
- return core.HttpResponsePromise.fromPromise(this.__listWorkflowExecutions(request, requestOptions));
740
- }
741
- __listWorkflowExecutions(request, requestOptions) {
742
- return __awaiter(this, void 0, void 0, function* () {
743
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
744
- const { workflow_id: workflowId, pageSize, pageNumber, status, workflowId: workflowId_ } = request;
745
- const _queryParams = {};
746
- if (pageSize != null) {
747
- _queryParams.pageSize = pageSize.toString();
748
- }
749
- if (pageNumber != null) {
750
- _queryParams.pageNumber = pageNumber.toString();
751
- }
752
- if (status !== undefined) {
753
- _queryParams.status = status;
754
- }
755
- if (workflowId_ !== undefined) {
756
- _queryParams.workflowId = workflowId_;
757
- }
758
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
759
- const _response = yield core.fetcher({
760
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/${core.url.encodePathParam(workflowId_)}/executions`),
761
- method: "GET",
762
- headers: _headers,
763
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
764
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
765
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
766
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
767
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
768
- logging: this._options.logging,
769
- });
770
- if (_response.ok) {
771
- return {
772
- data: _response.body,
773
- rawResponse: _response.rawResponse,
774
- };
775
- }
776
- if (_response.error.reason === "status-code") {
777
- switch (_response.error.statusCode) {
778
- case 422:
779
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
780
- default:
781
- throw new errors.BrowserUseError({
782
- statusCode: _response.error.statusCode,
783
- body: _response.error.body,
784
- rawResponse: _response.rawResponse,
785
- });
786
- }
787
- }
788
- switch (_response.error.reason) {
789
- case "non-json":
790
- throw new errors.BrowserUseError({
791
- statusCode: _response.error.statusCode,
792
- body: _response.error.rawBody,
793
- rawResponse: _response.rawResponse,
794
- });
795
- case "timeout":
796
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/{workflow_id}/executions.");
797
- case "unknown":
798
- throw new errors.BrowserUseError({
799
- message: _response.error.errorMessage,
800
- rawResponse: _response.rawResponse,
801
- });
802
- }
803
- });
804
- }
805
- /**
806
- * Get paginated list of all workflow executions for a project.
807
- *
808
- * @param {BrowserUse.ListAllExecutionsWorkflowsExecutionsGetRequest} request
809
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
810
- *
811
- * @throws {@link BrowserUse.UnprocessableEntityError}
812
- *
813
- * @example
814
- * await client.workflows.listAllExecutions()
815
- */
816
- listAllExecutions(request = {}, requestOptions) {
817
- return core.HttpResponsePromise.fromPromise(this.__listAllExecutions(request, requestOptions));
818
- }
819
- __listAllExecutions() {
820
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
821
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
822
- const { pageSize, pageNumber, status, workflowId } = request;
823
- const _queryParams = {};
824
- if (pageSize != null) {
825
- _queryParams.pageSize = pageSize.toString();
826
- }
827
- if (pageNumber != null) {
828
- _queryParams.pageNumber = pageNumber.toString();
829
- }
830
- if (status !== undefined) {
831
- _queryParams.status = status;
832
- }
833
- if (workflowId !== undefined) {
834
- _queryParams.workflowId = workflowId;
835
- }
836
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
837
- const _response = yield core.fetcher({
838
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, "workflows/executions"),
839
- method: "GET",
840
- headers: _headers,
841
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
842
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
843
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
844
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
845
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
846
- logging: this._options.logging,
847
- });
848
- if (_response.ok) {
849
- return {
850
- data: _response.body,
851
- rawResponse: _response.rawResponse,
852
- };
853
- }
854
- if (_response.error.reason === "status-code") {
855
- switch (_response.error.statusCode) {
856
- case 422:
857
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
858
- default:
859
- throw new errors.BrowserUseError({
860
- statusCode: _response.error.statusCode,
861
- body: _response.error.body,
862
- rawResponse: _response.rawResponse,
863
- });
864
- }
865
- }
866
- switch (_response.error.reason) {
867
- case "non-json":
868
- throw new errors.BrowserUseError({
869
- statusCode: _response.error.statusCode,
870
- body: _response.error.rawBody,
871
- rawResponse: _response.rawResponse,
872
- });
873
- case "timeout":
874
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/executions.");
875
- case "unknown":
876
- throw new errors.BrowserUseError({
877
- message: _response.error.errorMessage,
878
- rawResponse: _response.rawResponse,
879
- });
880
- }
881
- });
882
- }
883
- /**
884
- * Cancel a pending or running workflow execution.
885
- *
886
- * @param {BrowserUse.CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest} request
887
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
888
- *
889
- * @throws {@link BrowserUse.UnprocessableEntityError}
890
- *
891
- * @example
892
- * await client.workflows.cancelExecution({
893
- * execution_id: "execution_id"
894
- * })
895
- */
896
- cancelExecution(request, requestOptions) {
897
- return core.HttpResponsePromise.fromPromise(this.__cancelExecution(request, requestOptions));
898
- }
899
- __cancelExecution(request, requestOptions) {
900
- return __awaiter(this, void 0, void 0, function* () {
901
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
902
- const { execution_id: executionId } = request;
903
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
904
- const _response = yield core.fetcher({
905
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/executions/${core.url.encodePathParam(executionId)}/cancel`),
906
- method: "PATCH",
907
- headers: _headers,
908
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
909
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
910
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
911
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
912
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
913
- logging: this._options.logging,
914
- });
915
- if (_response.ok) {
916
- return { data: _response.body, rawResponse: _response.rawResponse };
917
- }
918
- if (_response.error.reason === "status-code") {
919
- switch (_response.error.statusCode) {
920
- case 422:
921
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
922
- default:
923
- throw new errors.BrowserUseError({
924
- statusCode: _response.error.statusCode,
925
- body: _response.error.body,
926
- rawResponse: _response.rawResponse,
927
- });
928
- }
929
- }
930
- switch (_response.error.reason) {
931
- case "non-json":
932
- throw new errors.BrowserUseError({
933
- statusCode: _response.error.statusCode,
934
- body: _response.error.rawBody,
935
- rawResponse: _response.rawResponse,
936
- });
937
- case "timeout":
938
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling PATCH /workflows/executions/{execution_id}/cancel.");
939
- case "unknown":
940
- throw new errors.BrowserUseError({
941
- message: _response.error.errorMessage,
942
- rawResponse: _response.rawResponse,
943
- });
944
- }
945
- });
946
- }
947
- /**
948
- * Get presigned URL to download execution logs.
949
- *
950
- * @param {BrowserUse.GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest} request
951
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
952
- *
953
- * @throws {@link BrowserUse.UnprocessableEntityError}
954
- *
955
- * @example
956
- * await client.workflows.getExecutionLogs({
957
- * execution_id: "execution_id"
958
- * })
959
- */
960
- getExecutionLogs(request, requestOptions) {
961
- return core.HttpResponsePromise.fromPromise(this.__getExecutionLogs(request, requestOptions));
962
- }
963
- __getExecutionLogs(request, requestOptions) {
964
- return __awaiter(this, void 0, void 0, function* () {
965
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
966
- const { execution_id: executionId } = request;
967
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
968
- const _response = yield core.fetcher({
969
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/executions/${core.url.encodePathParam(executionId)}/logs`),
970
- method: "GET",
971
- headers: _headers,
972
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
973
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
974
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
975
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
976
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
977
- logging: this._options.logging,
978
- });
979
- if (_response.ok) {
980
- return {
981
- data: _response.body,
982
- rawResponse: _response.rawResponse,
983
- };
984
- }
985
- if (_response.error.reason === "status-code") {
986
- switch (_response.error.statusCode) {
987
- case 422:
988
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
989
- default:
990
- throw new errors.BrowserUseError({
991
- statusCode: _response.error.statusCode,
992
- body: _response.error.body,
993
- rawResponse: _response.rawResponse,
994
- });
995
- }
996
- }
997
- switch (_response.error.reason) {
998
- case "non-json":
999
- throw new errors.BrowserUseError({
1000
- statusCode: _response.error.statusCode,
1001
- body: _response.error.rawBody,
1002
- rawResponse: _response.rawResponse,
1003
- });
1004
- case "timeout":
1005
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/executions/{execution_id}/logs.");
1006
- case "unknown":
1007
- throw new errors.BrowserUseError({
1008
- message: _response.error.errorMessage,
1009
- rawResponse: _response.rawResponse,
1010
- });
1011
- }
1012
- });
1013
- }
1014
- /**
1015
- * Get workflow execution state with steps for live UI polling.
1016
- *
1017
- * This endpoint returns the current state of a workflow execution including all steps
1018
- * with their details. It's designed to be polled every 2 seconds during execution
1019
- * to show real-time progress in the frontend.
1020
- *
1021
- * @param {BrowserUse.GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest} request
1022
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
1023
- *
1024
- * @throws {@link BrowserUse.UnprocessableEntityError}
1025
- *
1026
- * @example
1027
- * await client.workflows.getExecutionState({
1028
- * execution_id: "execution_id"
1029
- * })
1030
- */
1031
- getExecutionState(request, requestOptions) {
1032
- return core.HttpResponsePromise.fromPromise(this.__getExecutionState(request, requestOptions));
1033
- }
1034
- __getExecutionState(request, requestOptions) {
1035
- return __awaiter(this, void 0, void 0, function* () {
1036
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1037
- const { execution_id: executionId } = request;
1038
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1039
- const _response = yield core.fetcher({
1040
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/executions/${core.url.encodePathParam(executionId)}/state`),
1041
- method: "GET",
1042
- headers: _headers,
1043
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1044
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1045
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1046
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1047
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
1048
- logging: this._options.logging,
1049
- });
1050
- if (_response.ok) {
1051
- return {
1052
- data: _response.body,
1053
- rawResponse: _response.rawResponse,
1054
- };
1055
- }
1056
- if (_response.error.reason === "status-code") {
1057
- switch (_response.error.statusCode) {
1058
- case 422:
1059
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1060
- default:
1061
- throw new errors.BrowserUseError({
1062
- statusCode: _response.error.statusCode,
1063
- body: _response.error.body,
1064
- rawResponse: _response.rawResponse,
1065
- });
1066
- }
1067
- }
1068
- switch (_response.error.reason) {
1069
- case "non-json":
1070
- throw new errors.BrowserUseError({
1071
- statusCode: _response.error.statusCode,
1072
- body: _response.error.rawBody,
1073
- rawResponse: _response.rawResponse,
1074
- });
1075
- case "timeout":
1076
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/executions/{execution_id}/state.");
1077
- case "unknown":
1078
- throw new errors.BrowserUseError({
1079
- message: _response.error.errorMessage,
1080
- rawResponse: _response.rawResponse,
1081
- });
1082
- }
1083
- });
1084
- }
1085
- /**
1086
- * Get workflow execution media (screenshots) with presigned URLs.
1087
- *
1088
- * This endpoint returns media URLs for completed executions. Screenshots
1089
- * are returned with presigned S3 URLs for direct access from the frontend.
1090
- * Should be called when execution status is 'completed', 'failed', or 'cancelled'.
1091
- *
1092
- * @param {BrowserUse.GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest} request
1093
- * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
1094
- *
1095
- * @throws {@link BrowserUse.UnprocessableEntityError}
1096
- *
1097
- * @example
1098
- * await client.workflows.getExecutionMedia({
1099
- * execution_id: "execution_id"
1100
- * })
1101
- */
1102
- getExecutionMedia(request, requestOptions) {
1103
- return core.HttpResponsePromise.fromPromise(this.__getExecutionMedia(request, requestOptions));
1104
- }
1105
- __getExecutionMedia(request, requestOptions) {
1106
- return __awaiter(this, void 0, void 0, function* () {
1107
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1108
- const { execution_id: executionId } = request;
1109
- const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1110
- const _response = yield core.fetcher({
1111
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `workflows/executions/${core.url.encodePathParam(executionId)}/media`),
1112
- method: "GET",
1113
- headers: _headers,
1114
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1115
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1116
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1117
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1118
- fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
1119
- logging: this._options.logging,
1120
- });
1121
- if (_response.ok) {
1122
- return {
1123
- data: _response.body,
1124
- rawResponse: _response.rawResponse,
1125
- };
1126
- }
1127
- if (_response.error.reason === "status-code") {
1128
- switch (_response.error.statusCode) {
1129
- case 422:
1130
- throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1131
- default:
1132
- throw new errors.BrowserUseError({
1133
- statusCode: _response.error.statusCode,
1134
- body: _response.error.body,
1135
- rawResponse: _response.rawResponse,
1136
- });
1137
- }
1138
- }
1139
- switch (_response.error.reason) {
1140
- case "non-json":
1141
- throw new errors.BrowserUseError({
1142
- statusCode: _response.error.statusCode,
1143
- body: _response.error.rawBody,
1144
- rawResponse: _response.rawResponse,
1145
- });
1146
- case "timeout":
1147
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /workflows/executions/{execution_id}/media.");
1148
- case "unknown":
1149
- throw new errors.BrowserUseError({
1150
- message: _response.error.errorMessage,
1151
- rawResponse: _response.rawResponse,
1152
- });
1153
- }
1154
- });
1155
- }
1156
- _getCustomAuthorizationHeaders() {
1157
- return __awaiter(this, void 0, void 0, function* () {
1158
- const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
1159
- return { "X-Browser-Use-API-Key": apiKeyValue };
1160
- });
1161
- }
1162
- }