browser-use-sdk 2.0.4 → 2.0.6
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.
- package/dist/cjs/BaseClient.d.ts +30 -0
- package/dist/cjs/BaseClient.js +3 -0
- package/dist/cjs/Client.d.ts +14 -28
- package/dist/cjs/Client.js +26 -18
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -4
- package/dist/cjs/api/errors/BadRequestError.js +1 -3
- package/dist/cjs/api/errors/ForbiddenError.d.ts +6 -0
- package/dist/cjs/api/errors/ForbiddenError.js +50 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +1 -4
- package/dist/cjs/api/errors/InternalServerError.js +1 -3
- package/dist/cjs/api/errors/NotFoundError.d.ts +1 -4
- package/dist/cjs/api/errors/NotFoundError.js +1 -3
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +2 -5
- package/dist/cjs/api/errors/PaymentRequiredError.js +1 -3
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +2 -5
- package/dist/cjs/api/errors/TooManyRequestsError.js +1 -3
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -4
- package/dist/cjs/api/errors/UnprocessableEntityError.js +1 -3
- package/dist/cjs/api/errors/index.d.ts +4 -3
- package/dist/cjs/api/errors/index.js +4 -3
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/billing/client/Client.d.ts +27 -0
- package/dist/cjs/api/resources/{accounts → billing}/client/Client.js +23 -20
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/browsers/client/Client.js +374 -0
- package/dist/cjs/api/resources/browsers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/browsers/client/index.js +17 -0
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +13 -0
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.js +3 -0
- package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.ts +10 -0
- package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.js +3 -0
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.ts +9 -0
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.js +3 -0
- package/dist/cjs/api/resources/browsers/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/browsers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/browsers/index.d.ts +1 -0
- package/dist/cjs/api/resources/browsers/index.js +17 -0
- package/dist/cjs/api/resources/files/client/Client.d.ts +44 -38
- package/dist/cjs/api/resources/files/client/Client.js +125 -33
- package/dist/cjs/api/resources/files/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.ts +16 -0
- package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.js +3 -0
- package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.ts +16 -0
- package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.js +3 -0
- package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/files/client/requests/index.d.ts +3 -1
- package/dist/cjs/api/resources/index.d.ts +11 -6
- package/dist/cjs/api/resources/index.js +12 -7
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +32 -32
- package/dist/cjs/api/resources/profiles/client/Client.js +137 -40
- package/dist/cjs/api/resources/profiles/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.ts +9 -0
- package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.ts +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.js +1 -3
- package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.d.ts +8 -0
- package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.d.ts +11 -0
- package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.js +3 -0
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +5 -1
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +28 -40
- package/dist/cjs/api/resources/sessions/client/Client.js +106 -69
- package/dist/cjs/api/resources/sessions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +5 -6
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.js +1 -3
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.ts +9 -0
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.ts +2 -5
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.js +1 -3
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +4 -4
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.js +1 -3
- package/dist/cjs/api/resources/sessions/client/requests/index.d.ts +7 -3
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +17 -34
- package/dist/cjs/api/resources/tasks/client/Client.js +81 -55
- package/dist/cjs/api/resources/tasks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +19 -14
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.js +1 -3
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.js +3 -0
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.ts +5 -8
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.js +1 -3
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.d.ts +3 -4
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.js +1 -3
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +5 -3
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +221 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +986 -0
- package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/client/index.js +17 -0
- package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.ts +14 -0
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.ts +10 -0
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.d.ts +14 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +16 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.ts +36 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.ts +15 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.ts +14 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +13 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/workflows/index.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/index.js +18 -0
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/types/index.js +17 -0
- package/dist/cjs/api/types/AccountNotFoundError.d.ts +0 -3
- package/dist/cjs/api/types/AccountNotFoundError.js +1 -3
- package/dist/cjs/api/types/AccountView.d.ts +11 -9
- package/dist/cjs/api/types/AccountView.js +1 -3
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +1 -4
- package/dist/cjs/api/types/BadRequestErrorBody.js +1 -3
- package/dist/cjs/api/types/BrowserSessionItemView.d.ts +20 -0
- package/dist/cjs/api/types/BrowserSessionItemView.js +3 -0
- package/dist/cjs/api/types/BrowserSessionListResponse.d.ts +14 -0
- package/dist/cjs/api/types/BrowserSessionListResponse.js +3 -0
- package/dist/cjs/api/types/BrowserSessionStatus.d.ts +12 -0
- package/dist/cjs/api/types/BrowserSessionStatus.js +15 -0
- package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +7 -0
- package/dist/cjs/api/types/BrowserSessionUpdateAction.js +3 -0
- package/dist/cjs/api/types/BrowserSessionView.d.ts +20 -0
- package/dist/cjs/api/types/BrowserSessionView.js +3 -0
- package/dist/cjs/api/types/DownloadUrlGenerationError.d.ts +0 -3
- package/dist/cjs/api/types/DownloadUrlGenerationError.js +1 -3
- package/dist/cjs/api/types/ExecutionMode.d.ts +12 -0
- package/dist/cjs/api/types/ExecutionMode.js +15 -0
- package/dist/cjs/api/types/FileView.d.ts +0 -3
- package/dist/cjs/api/types/FileView.js +1 -3
- package/dist/cjs/api/types/HttpValidationError.d.ts +1 -4
- package/dist/cjs/api/types/HttpValidationError.js +1 -3
- package/dist/cjs/api/types/InsufficientCreditsError.d.ts +0 -3
- package/dist/cjs/api/types/InsufficientCreditsError.js +1 -3
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.js +1 -3
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +1 -4
- package/dist/cjs/api/types/NotFoundErrorBody.js +1 -3
- package/dist/cjs/api/types/OutputFileNotFoundError.d.ts +0 -3
- package/dist/cjs/api/types/OutputFileNotFoundError.js +1 -3
- package/dist/cjs/api/types/PlanInfo.d.ts +15 -0
- package/dist/cjs/api/types/PlanInfo.js +3 -0
- package/dist/cjs/api/types/ProfileListResponse.d.ts +1 -4
- package/dist/cjs/api/types/ProfileListResponse.js +1 -3
- package/dist/cjs/api/types/ProfileNotFoundError.d.ts +0 -3
- package/dist/cjs/api/types/ProfileNotFoundError.js +1 -3
- package/dist/cjs/api/types/ProfileView.d.ts +5 -4
- package/dist/cjs/api/types/ProfileView.js +1 -3
- package/dist/cjs/api/types/ProxyCountryCode.d.ts +244 -10
- package/dist/cjs/api/types/ProxyCountryCode.js +244 -9
- package/dist/cjs/api/types/SessionHasRunningTaskError.d.ts +0 -3
- package/dist/cjs/api/types/SessionHasRunningTaskError.js +1 -3
- package/dist/cjs/api/types/SessionItemView.d.ts +3 -6
- package/dist/cjs/api/types/SessionItemView.js +1 -3
- package/dist/cjs/api/types/SessionListResponse.d.ts +1 -4
- package/dist/cjs/api/types/SessionListResponse.js +1 -3
- package/dist/cjs/api/types/SessionNotFoundError.d.ts +0 -3
- package/dist/cjs/api/types/SessionNotFoundError.js +1 -3
- package/dist/cjs/api/types/SessionStatus.d.ts +1 -4
- package/dist/cjs/api/types/SessionStatus.js +8 -3
- package/dist/cjs/api/types/SessionStoppedError.d.ts +0 -3
- package/dist/cjs/api/types/SessionStoppedError.js +1 -3
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +6 -0
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.js +3 -0
- package/dist/cjs/api/types/SessionUpdateAction.d.ts +0 -3
- package/dist/cjs/api/types/SessionUpdateAction.js +1 -3
- package/dist/cjs/api/types/SessionView.d.ts +4 -7
- package/dist/cjs/api/types/SessionView.js +1 -3
- package/dist/cjs/api/types/ShareNotFoundError.d.ts +0 -3
- package/dist/cjs/api/types/ShareNotFoundError.js +1 -3
- package/dist/cjs/api/types/ShareView.d.ts +1 -4
- package/dist/cjs/api/types/ShareView.js +1 -3
- package/dist/cjs/api/types/SupportedLlMs.d.ts +5 -4
- package/dist/cjs/api/types/SupportedLlMs.js +5 -3
- package/dist/cjs/api/types/TaskCreatedResponse.d.ts +2 -3
- package/dist/cjs/api/types/TaskCreatedResponse.js +1 -3
- package/dist/cjs/api/types/TaskItemView.d.ts +9 -10
- package/dist/cjs/api/types/TaskItemView.js +1 -3
- package/dist/cjs/api/types/TaskListResponse.d.ts +1 -4
- package/dist/cjs/api/types/TaskListResponse.js +1 -3
- package/dist/cjs/api/types/TaskLogFileResponse.d.ts +0 -3
- package/dist/cjs/api/types/TaskLogFileResponse.js +1 -3
- package/dist/cjs/api/types/TaskNotFoundError.d.ts +0 -3
- package/dist/cjs/api/types/TaskNotFoundError.js +1 -3
- package/dist/cjs/api/types/TaskOutputFileResponse.d.ts +0 -3
- package/dist/cjs/api/types/TaskOutputFileResponse.js +1 -3
- package/dist/cjs/api/types/TaskStatus.d.ts +3 -6
- package/dist/cjs/api/types/TaskStatus.js +11 -4
- package/dist/cjs/api/types/TaskStepView.d.ts +1 -4
- package/dist/cjs/api/types/TaskStepView.js +1 -3
- package/dist/cjs/api/types/TaskUpdateAction.d.ts +1 -8
- package/dist/cjs/api/types/TaskUpdateAction.js +8 -5
- package/dist/cjs/api/types/TaskView.d.ts +9 -10
- package/dist/cjs/api/types/TaskView.js +1 -3
- package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.d.ts +0 -3
- package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.js +1 -3
- package/dist/cjs/api/types/UnsupportedContentTypeError.d.ts +0 -3
- package/dist/cjs/api/types/UnsupportedContentTypeError.js +1 -3
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +0 -3
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +1 -3
- package/dist/cjs/api/{resources/files/client/requests → types}/UploadFileRequest.d.ts +3 -13
- package/dist/cjs/api/{resources/files/client/requests → types}/UploadFileRequest.js +2 -3
- package/dist/cjs/api/types/ValidationError.d.ts +0 -3
- package/dist/cjs/api/types/ValidationError.js +1 -3
- package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.d.ts +12 -0
- package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionItemView.d.ts +28 -0
- package/dist/cjs/api/types/WorkflowExecutionItemView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionListResponse.d.ts +14 -0
- package/dist/cjs/api/types/WorkflowExecutionListResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionLogResponse.d.ts +7 -0
- package/dist/cjs/api/types/WorkflowExecutionLogResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +38 -0
- package/dist/cjs/api/types/WorkflowExecutionResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionStatus.d.ts +18 -0
- package/dist/cjs/api/types/WorkflowExecutionStatus.js +21 -0
- package/dist/cjs/api/types/WorkflowGenerateResponse.d.ts +11 -0
- package/dist/cjs/api/types/WorkflowGenerateResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowGenerationStatus.d.ts +8 -0
- package/dist/cjs/api/types/WorkflowGenerationStatus.js +11 -0
- package/dist/cjs/api/types/WorkflowItemView.d.ts +19 -0
- package/dist/cjs/api/types/WorkflowItemView.js +3 -0
- package/dist/cjs/api/types/WorkflowListResponse.d.ts +14 -0
- package/dist/cjs/api/types/WorkflowListResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowResponse.d.ts +38 -0
- package/dist/cjs/api/types/WorkflowResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +15 -0
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +23 -2
- package/dist/cjs/api/types/index.js +23 -2
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +9 -4
- package/dist/cjs/core/fetcher/Fetcher.js +205 -10
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +4 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/index.d.ts +2 -0
- package/dist/cjs/core/fetcher/index.js +3 -1
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +2 -4
- package/dist/cjs/core/fetcher/requestWithRetries.js +35 -8
- package/dist/cjs/core/fetcher/signals.d.ts +0 -6
- package/dist/cjs/core/fetcher/signals.js +0 -12
- package/dist/cjs/core/headers.d.ts +2 -3
- package/dist/cjs/core/headers.js +6 -4
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/core/logging/exports.d.ts +18 -0
- package/dist/cjs/core/logging/exports.js +45 -0
- package/dist/cjs/core/logging/index.d.ts +1 -0
- package/dist/cjs/core/logging/index.js +17 -0
- package/dist/cjs/core/logging/logger.d.ts +126 -0
- package/dist/cjs/core/logging/logger.js +144 -0
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -4
- package/dist/cjs/environments.d.ts +0 -3
- package/dist/cjs/environments.js +1 -3
- package/dist/cjs/errors/BrowserUseError.d.ts +1 -4
- package/dist/cjs/errors/BrowserUseError.js +2 -4
- package/dist/cjs/errors/BrowserUseTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/BrowserUseTimeoutError.js +1 -3
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +2 -2
- package/dist/cjs/wrapper/api/BrowserUseTasks.js +3 -3
- package/dist/cjs/wrapper/lib/parse.js +5 -18
- package/dist/cjs/wrapper/lib/webhooks.d.ts +24 -4
- package/dist/cjs/wrapper/lib/webhooks.js +2 -2
- package/dist/esm/BaseClient.d.mts +30 -0
- package/dist/esm/BaseClient.mjs +2 -0
- package/dist/esm/Client.d.mts +14 -28
- package/dist/esm/Client.mjs +21 -13
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -4
- package/dist/esm/api/errors/BadRequestError.mjs +1 -3
- package/dist/esm/api/errors/ForbiddenError.d.mts +6 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +13 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +1 -4
- package/dist/esm/api/errors/InternalServerError.mjs +1 -3
- package/dist/esm/api/errors/NotFoundError.d.mts +1 -4
- package/dist/esm/api/errors/NotFoundError.mjs +1 -3
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +2 -5
- package/dist/esm/api/errors/PaymentRequiredError.mjs +1 -3
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +2 -5
- package/dist/esm/api/errors/TooManyRequestsError.mjs +1 -3
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -4
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +1 -3
- package/dist/esm/api/errors/index.d.mts +4 -3
- package/dist/esm/api/errors/index.mjs +4 -3
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/billing/client/Client.d.mts +27 -0
- package/dist/esm/api/resources/{accounts → billing}/client/Client.mjs +21 -18
- package/dist/esm/api/resources/browsers/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/browsers/client/Client.mjs +337 -0
- package/dist/esm/api/resources/browsers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/browsers/client/index.mjs +1 -0
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +13 -0
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.mjs +2 -0
- package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.mts +10 -0
- package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.mjs +2 -0
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +9 -0
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.mjs +2 -0
- package/dist/esm/api/resources/browsers/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/browsers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/browsers/index.d.mts +1 -0
- package/dist/esm/api/resources/browsers/index.mjs +1 -0
- package/dist/esm/api/resources/files/client/Client.d.mts +44 -38
- package/dist/esm/api/resources/files/client/Client.mjs +125 -33
- package/dist/esm/api/resources/files/client/index.d.mts +0 -1
- package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.mts +16 -0
- package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.mjs +2 -0
- package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.mts +16 -0
- package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.mjs +2 -0
- package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/files/client/requests/index.d.mts +3 -1
- package/dist/esm/api/resources/index.d.mts +11 -6
- package/dist/esm/api/resources/index.mjs +11 -6
- package/dist/esm/api/resources/profiles/client/Client.d.mts +32 -32
- package/dist/esm/api/resources/profiles/client/Client.mjs +137 -40
- package/dist/esm/api/resources/profiles/client/index.d.mts +0 -1
- package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.mts +9 -0
- package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.mts +0 -3
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.mjs +1 -3
- package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.d.mts +8 -0
- package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.d.mts +11 -0
- package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.mjs +2 -0
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +5 -1
- package/dist/esm/api/resources/sessions/client/Client.d.mts +28 -40
- package/dist/esm/api/resources/sessions/client/Client.mjs +106 -69
- package/dist/esm/api/resources/sessions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.mts +9 -0
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +5 -6
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.mjs +1 -3
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.mts +9 -0
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.mts +2 -5
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.mjs +1 -3
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +4 -4
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.mjs +1 -3
- package/dist/esm/api/resources/sessions/client/requests/index.d.mts +7 -3
- package/dist/esm/api/resources/tasks/client/Client.d.mts +17 -34
- package/dist/esm/api/resources/tasks/client/Client.mjs +81 -55
- package/dist/esm/api/resources/tasks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +19 -14
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.mts +5 -8
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.d.mts +3 -4
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.mjs +1 -3
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +5 -3
- package/dist/esm/api/resources/workflows/client/Client.d.mts +221 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +949 -0
- package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.mts +14 -0
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.mts +10 -0
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.d.mts +14 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +16 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.mts +36 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.mts +15 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.mts +14 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +13 -0
- package/dist/esm/api/resources/workflows/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/index.d.mts +2 -0
- package/dist/esm/api/resources/workflows/index.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.mts +2 -0
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/types/index.mjs +1 -0
- package/dist/esm/api/types/AccountNotFoundError.d.mts +0 -3
- package/dist/esm/api/types/AccountNotFoundError.mjs +1 -3
- package/dist/esm/api/types/AccountView.d.mts +11 -9
- package/dist/esm/api/types/AccountView.mjs +1 -3
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +1 -4
- package/dist/esm/api/types/BadRequestErrorBody.mjs +1 -3
- package/dist/esm/api/types/BrowserSessionItemView.d.mts +20 -0
- package/dist/esm/api/types/BrowserSessionItemView.mjs +2 -0
- package/dist/esm/api/types/BrowserSessionListResponse.d.mts +14 -0
- package/dist/esm/api/types/BrowserSessionListResponse.mjs +2 -0
- package/dist/esm/api/types/BrowserSessionStatus.d.mts +12 -0
- package/dist/esm/api/types/BrowserSessionStatus.mjs +12 -0
- package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +7 -0
- package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +2 -0
- package/dist/esm/api/types/BrowserSessionView.d.mts +20 -0
- package/dist/esm/api/types/BrowserSessionView.mjs +2 -0
- package/dist/esm/api/types/DownloadUrlGenerationError.d.mts +0 -3
- package/dist/esm/api/types/DownloadUrlGenerationError.mjs +1 -3
- package/dist/esm/api/types/ExecutionMode.d.mts +12 -0
- package/dist/esm/api/types/ExecutionMode.mjs +12 -0
- package/dist/esm/api/types/FileView.d.mts +0 -3
- package/dist/esm/api/types/FileView.mjs +1 -3
- package/dist/esm/api/types/HttpValidationError.d.mts +1 -4
- package/dist/esm/api/types/HttpValidationError.mjs +1 -3
- package/dist/esm/api/types/InsufficientCreditsError.d.mts +0 -3
- package/dist/esm/api/types/InsufficientCreditsError.mjs +1 -3
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -3
- package/dist/esm/api/types/InternalServerErrorBody.mjs +1 -3
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +1 -4
- package/dist/esm/api/types/NotFoundErrorBody.mjs +1 -3
- package/dist/esm/api/types/OutputFileNotFoundError.d.mts +0 -3
- package/dist/esm/api/types/OutputFileNotFoundError.mjs +1 -3
- package/dist/esm/api/types/PlanInfo.d.mts +15 -0
- package/dist/esm/api/types/PlanInfo.mjs +2 -0
- package/dist/esm/api/types/ProfileListResponse.d.mts +1 -4
- package/dist/esm/api/types/ProfileListResponse.mjs +1 -3
- package/dist/esm/api/types/ProfileNotFoundError.d.mts +0 -3
- package/dist/esm/api/types/ProfileNotFoundError.mjs +1 -3
- package/dist/esm/api/types/ProfileView.d.mts +5 -4
- package/dist/esm/api/types/ProfileView.mjs +1 -3
- package/dist/esm/api/types/ProxyCountryCode.d.mts +244 -10
- package/dist/esm/api/types/ProxyCountryCode.mjs +244 -9
- package/dist/esm/api/types/SessionHasRunningTaskError.d.mts +0 -3
- package/dist/esm/api/types/SessionHasRunningTaskError.mjs +1 -3
- package/dist/esm/api/types/SessionItemView.d.mts +3 -6
- package/dist/esm/api/types/SessionItemView.mjs +1 -3
- package/dist/esm/api/types/SessionListResponse.d.mts +1 -4
- package/dist/esm/api/types/SessionListResponse.mjs +1 -3
- package/dist/esm/api/types/SessionNotFoundError.d.mts +0 -3
- package/dist/esm/api/types/SessionNotFoundError.mjs +1 -3
- package/dist/esm/api/types/SessionStatus.d.mts +1 -4
- package/dist/esm/api/types/SessionStatus.mjs +6 -1
- package/dist/esm/api/types/SessionStoppedError.d.mts +0 -3
- package/dist/esm/api/types/SessionStoppedError.mjs +1 -3
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +6 -0
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.mjs +2 -0
- package/dist/esm/api/types/SessionUpdateAction.d.mts +0 -3
- package/dist/esm/api/types/SessionUpdateAction.mjs +1 -3
- package/dist/esm/api/types/SessionView.d.mts +4 -7
- package/dist/esm/api/types/SessionView.mjs +1 -3
- package/dist/esm/api/types/ShareNotFoundError.d.mts +0 -3
- package/dist/esm/api/types/ShareNotFoundError.mjs +1 -3
- package/dist/esm/api/types/ShareView.d.mts +1 -4
- package/dist/esm/api/types/ShareView.mjs +1 -3
- package/dist/esm/api/types/SupportedLlMs.d.mts +5 -4
- package/dist/esm/api/types/SupportedLlMs.mjs +5 -3
- package/dist/esm/api/types/TaskCreatedResponse.d.mts +2 -3
- package/dist/esm/api/types/TaskCreatedResponse.mjs +1 -3
- package/dist/esm/api/types/TaskItemView.d.mts +9 -10
- package/dist/esm/api/types/TaskItemView.mjs +1 -3
- package/dist/esm/api/types/TaskListResponse.d.mts +1 -4
- package/dist/esm/api/types/TaskListResponse.mjs +1 -3
- package/dist/esm/api/types/TaskLogFileResponse.d.mts +0 -3
- package/dist/esm/api/types/TaskLogFileResponse.mjs +1 -3
- package/dist/esm/api/types/TaskNotFoundError.d.mts +0 -3
- package/dist/esm/api/types/TaskNotFoundError.mjs +1 -3
- package/dist/esm/api/types/TaskOutputFileResponse.d.mts +0 -3
- package/dist/esm/api/types/TaskOutputFileResponse.mjs +1 -3
- package/dist/esm/api/types/TaskStatus.d.mts +3 -6
- package/dist/esm/api/types/TaskStatus.mjs +9 -2
- package/dist/esm/api/types/TaskStepView.d.mts +1 -4
- package/dist/esm/api/types/TaskStepView.mjs +1 -3
- package/dist/esm/api/types/TaskUpdateAction.d.mts +1 -8
- package/dist/esm/api/types/TaskUpdateAction.mjs +6 -3
- package/dist/esm/api/types/TaskView.d.mts +9 -10
- package/dist/esm/api/types/TaskView.mjs +1 -3
- package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.d.mts +0 -3
- package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.mjs +1 -3
- package/dist/esm/api/types/UnsupportedContentTypeError.d.mts +0 -3
- package/dist/esm/api/types/UnsupportedContentTypeError.mjs +1 -3
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +0 -3
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +1 -3
- package/dist/esm/api/{resources/files/client/requests → types}/UploadFileRequest.d.mts +3 -13
- package/dist/esm/api/{resources/files/client/requests → types}/UploadFileRequest.mjs +2 -3
- package/dist/esm/api/types/ValidationError.d.mts +0 -3
- package/dist/esm/api/types/ValidationError.mjs +1 -3
- package/dist/esm/api/types/WorkflowExecutionCreatedResponse.d.mts +12 -0
- package/dist/esm/api/types/WorkflowExecutionCreatedResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionItemView.d.mts +28 -0
- package/dist/esm/api/types/WorkflowExecutionItemView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionListResponse.d.mts +14 -0
- package/dist/esm/api/types/WorkflowExecutionListResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionLogResponse.d.mts +7 -0
- package/dist/esm/api/types/WorkflowExecutionLogResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +38 -0
- package/dist/esm/api/types/WorkflowExecutionResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionStatus.d.mts +18 -0
- package/dist/esm/api/types/WorkflowExecutionStatus.mjs +18 -0
- package/dist/esm/api/types/WorkflowGenerateResponse.d.mts +11 -0
- package/dist/esm/api/types/WorkflowGenerateResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowGenerationStatus.d.mts +8 -0
- package/dist/esm/api/types/WorkflowGenerationStatus.mjs +8 -0
- package/dist/esm/api/types/WorkflowItemView.d.mts +19 -0
- package/dist/esm/api/types/WorkflowItemView.mjs +2 -0
- package/dist/esm/api/types/WorkflowListResponse.d.mts +14 -0
- package/dist/esm/api/types/WorkflowListResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowResponse.d.mts +38 -0
- package/dist/esm/api/types/WorkflowResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +15 -0
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +23 -2
- package/dist/esm/api/types/index.mjs +23 -2
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +9 -4
- package/dist/esm/core/fetcher/Fetcher.mjs +205 -10
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +4 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/index.d.mts +2 -0
- package/dist/esm/core/fetcher/index.mjs +1 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -4
- package/dist/esm/core/fetcher/requestWithRetries.mjs +35 -8
- package/dist/esm/core/fetcher/signals.d.mts +0 -6
- package/dist/esm/core/fetcher/signals.mjs +0 -12
- package/dist/esm/core/headers.d.mts +2 -3
- package/dist/esm/core/headers.mjs +6 -4
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/core/logging/exports.d.mts +18 -0
- package/dist/esm/core/logging/exports.mjs +9 -0
- package/dist/esm/core/logging/index.d.mts +1 -0
- package/dist/esm/core/logging/index.mjs +1 -0
- package/dist/esm/core/logging/logger.d.mts +126 -0
- package/dist/esm/core/logging/logger.mjs +138 -0
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -4
- package/dist/esm/environments.d.mts +0 -3
- package/dist/esm/environments.mjs +1 -3
- package/dist/esm/errors/BrowserUseError.d.mts +1 -4
- package/dist/esm/errors/BrowserUseError.mjs +2 -4
- package/dist/esm/errors/BrowserUseTimeoutError.d.mts +0 -3
- package/dist/esm/errors/BrowserUseTimeoutError.mjs +1 -3
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +2 -2
- package/dist/esm/wrapper/api/BrowserUseTasks.mjs +4 -3
- package/dist/esm/wrapper/lib/parse.mjs +6 -19
- package/dist/esm/wrapper/lib/webhooks.d.mts +24 -4
- package/dist/esm/wrapper/lib/webhooks.mjs +2 -2
- package/package.json +15 -15
- package/reference.md +1434 -174
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +0 -47
- package/dist/esm/api/resources/accounts/client/Client.d.mts +0 -47
- /package/dist/cjs/api/resources/{accounts → billing}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{accounts → billing}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{accounts → billing}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{accounts → billing}/index.js +0 -0
- /package/dist/esm/api/resources/{accounts → billing}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{accounts → billing}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{accounts → billing}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{accounts → billing}/index.mjs +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
4
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -10,11 +8,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
9
|
});
|
|
12
10
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
};
|
|
16
22
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
23
|
+
import * as core from "../../../../core/index.mjs";
|
|
24
|
+
import * as environments from "../../../../environments.mjs";
|
|
17
25
|
import * as errors from "../../../../errors/index.mjs";
|
|
26
|
+
import * as BrowserUse from "../../../index.mjs";
|
|
18
27
|
export class Tasks {
|
|
19
28
|
constructor(_options) {
|
|
20
29
|
this._options = _options;
|
|
@@ -35,36 +44,38 @@ export class Tasks {
|
|
|
35
44
|
}
|
|
36
45
|
__listTasks() {
|
|
37
46
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
38
|
-
var _a, _b, _c;
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
39
48
|
const { pageSize, pageNumber, sessionId, filterBy, after, before } = request;
|
|
40
49
|
const _queryParams = {};
|
|
41
50
|
if (pageSize != null) {
|
|
42
|
-
_queryParams
|
|
51
|
+
_queryParams.pageSize = pageSize.toString();
|
|
43
52
|
}
|
|
44
53
|
if (pageNumber != null) {
|
|
45
|
-
_queryParams
|
|
54
|
+
_queryParams.pageNumber = pageNumber.toString();
|
|
46
55
|
}
|
|
47
|
-
if (sessionId
|
|
48
|
-
_queryParams
|
|
56
|
+
if (sessionId !== undefined) {
|
|
57
|
+
_queryParams.sessionId = sessionId;
|
|
49
58
|
}
|
|
50
|
-
if (filterBy
|
|
51
|
-
_queryParams
|
|
59
|
+
if (filterBy !== undefined) {
|
|
60
|
+
_queryParams.filterBy = filterBy;
|
|
52
61
|
}
|
|
53
|
-
if (after
|
|
54
|
-
_queryParams
|
|
62
|
+
if (after !== undefined) {
|
|
63
|
+
_queryParams.after = after;
|
|
55
64
|
}
|
|
56
|
-
if (before
|
|
57
|
-
_queryParams
|
|
65
|
+
if (before !== undefined) {
|
|
66
|
+
_queryParams.before = before;
|
|
58
67
|
}
|
|
59
|
-
|
|
68
|
+
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);
|
|
60
69
|
const _response = yield core.fetcher({
|
|
61
70
|
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, "tasks"),
|
|
62
71
|
method: "GET",
|
|
63
72
|
headers: _headers,
|
|
64
73
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
65
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
66
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
74
|
+
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,
|
|
75
|
+
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,
|
|
67
76
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
77
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
78
|
+
logging: this._options.logging,
|
|
68
79
|
});
|
|
69
80
|
if (_response.ok) {
|
|
70
81
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -121,8 +132,8 @@ export class Tasks {
|
|
|
121
132
|
}
|
|
122
133
|
__createTask(request, requestOptions) {
|
|
123
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
var _a, _b, _c;
|
|
125
|
-
|
|
135
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
136
|
+
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
137
|
const _response = yield core.fetcher({
|
|
127
138
|
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, "tasks"),
|
|
128
139
|
method: "POST",
|
|
@@ -131,9 +142,11 @@ export class Tasks {
|
|
|
131
142
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
132
143
|
requestType: "json",
|
|
133
144
|
body: request,
|
|
134
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
135
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
145
|
+
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,
|
|
146
|
+
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
147
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
148
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
149
|
+
logging: this._options.logging,
|
|
137
150
|
});
|
|
138
151
|
if (_response.ok) {
|
|
139
152
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -176,30 +189,35 @@ export class Tasks {
|
|
|
176
189
|
/**
|
|
177
190
|
* Get detailed task information including status, progress, steps, and file outputs.
|
|
178
191
|
*
|
|
179
|
-
* @param {
|
|
192
|
+
* @param {BrowserUse.GetTaskTasksTaskIdGetRequest} request
|
|
180
193
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
181
194
|
*
|
|
182
195
|
* @throws {@link BrowserUse.NotFoundError}
|
|
183
196
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
184
197
|
*
|
|
185
198
|
* @example
|
|
186
|
-
* await client.tasks.getTask(
|
|
199
|
+
* await client.tasks.getTask({
|
|
200
|
+
* task_id: "task_id"
|
|
201
|
+
* })
|
|
187
202
|
*/
|
|
188
|
-
getTask(
|
|
189
|
-
return core.HttpResponsePromise.fromPromise(this.__getTask(
|
|
203
|
+
getTask(request, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__getTask(request, requestOptions));
|
|
190
205
|
}
|
|
191
|
-
__getTask(
|
|
206
|
+
__getTask(request, requestOptions) {
|
|
192
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
var _a, _b, _c;
|
|
194
|
-
|
|
208
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
209
|
+
const { task_id: taskId } = request;
|
|
210
|
+
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);
|
|
195
211
|
const _response = yield core.fetcher({
|
|
196
|
-
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, `tasks/${
|
|
212
|
+
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, `tasks/${core.url.encodePathParam(taskId)}`),
|
|
197
213
|
method: "GET",
|
|
198
214
|
headers: _headers,
|
|
199
215
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
200
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
201
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
216
|
+
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,
|
|
217
|
+
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,
|
|
202
218
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
219
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
220
|
+
logging: this._options.logging,
|
|
203
221
|
});
|
|
204
222
|
if (_response.ok) {
|
|
205
223
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -238,7 +256,6 @@ export class Tasks {
|
|
|
238
256
|
/**
|
|
239
257
|
* Control task execution with stop, pause, resume, or stop task and session actions.
|
|
240
258
|
*
|
|
241
|
-
* @param {string} taskId
|
|
242
259
|
* @param {BrowserUse.UpdateTaskRequest} request
|
|
243
260
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
261
|
*
|
|
@@ -246,28 +263,32 @@ export class Tasks {
|
|
|
246
263
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
247
264
|
*
|
|
248
265
|
* @example
|
|
249
|
-
* await client.tasks.updateTask(
|
|
266
|
+
* await client.tasks.updateTask({
|
|
267
|
+
* task_id: "task_id",
|
|
250
268
|
* action: "stop"
|
|
251
269
|
* })
|
|
252
270
|
*/
|
|
253
|
-
updateTask(
|
|
254
|
-
return core.HttpResponsePromise.fromPromise(this.__updateTask(
|
|
271
|
+
updateTask(request, requestOptions) {
|
|
272
|
+
return core.HttpResponsePromise.fromPromise(this.__updateTask(request, requestOptions));
|
|
255
273
|
}
|
|
256
|
-
__updateTask(
|
|
274
|
+
__updateTask(request, requestOptions) {
|
|
257
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
-
var _a, _b, _c;
|
|
259
|
-
|
|
276
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
277
|
+
const { task_id: taskId } = request, _body = __rest(request, ["task_id"]);
|
|
278
|
+
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);
|
|
260
279
|
const _response = yield core.fetcher({
|
|
261
|
-
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, `tasks/${
|
|
280
|
+
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, `tasks/${core.url.encodePathParam(taskId)}`),
|
|
262
281
|
method: "PATCH",
|
|
263
282
|
headers: _headers,
|
|
264
283
|
contentType: "application/json",
|
|
265
284
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
266
285
|
requestType: "json",
|
|
267
|
-
body:
|
|
268
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
269
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
286
|
+
body: _body,
|
|
287
|
+
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,
|
|
288
|
+
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,
|
|
270
289
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
290
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
291
|
+
logging: this._options.logging,
|
|
271
292
|
});
|
|
272
293
|
if (_response.ok) {
|
|
273
294
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -306,7 +327,7 @@ export class Tasks {
|
|
|
306
327
|
/**
|
|
307
328
|
* Get secure download URL for task execution logs with step-by-step details.
|
|
308
329
|
*
|
|
309
|
-
* @param {
|
|
330
|
+
* @param {BrowserUse.GetTaskLogsTasksTaskIdLogsGetRequest} request
|
|
310
331
|
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
|
|
311
332
|
*
|
|
312
333
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -314,23 +335,28 @@ export class Tasks {
|
|
|
314
335
|
* @throws {@link BrowserUse.InternalServerError}
|
|
315
336
|
*
|
|
316
337
|
* @example
|
|
317
|
-
* await client.tasks.getTaskLogs(
|
|
338
|
+
* await client.tasks.getTaskLogs({
|
|
339
|
+
* task_id: "task_id"
|
|
340
|
+
* })
|
|
318
341
|
*/
|
|
319
|
-
getTaskLogs(
|
|
320
|
-
return core.HttpResponsePromise.fromPromise(this.__getTaskLogs(
|
|
342
|
+
getTaskLogs(request, requestOptions) {
|
|
343
|
+
return core.HttpResponsePromise.fromPromise(this.__getTaskLogs(request, requestOptions));
|
|
321
344
|
}
|
|
322
|
-
__getTaskLogs(
|
|
345
|
+
__getTaskLogs(request, requestOptions) {
|
|
323
346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
var _a, _b, _c;
|
|
325
|
-
|
|
347
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
348
|
+
const { task_id: taskId } = request;
|
|
349
|
+
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);
|
|
326
350
|
const _response = yield core.fetcher({
|
|
327
|
-
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, `tasks/${
|
|
351
|
+
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, `tasks/${core.url.encodePathParam(taskId)}/logs`),
|
|
328
352
|
method: "GET",
|
|
329
353
|
headers: _headers,
|
|
330
354
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
331
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
332
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
355
|
+
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,
|
|
356
|
+
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,
|
|
333
357
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
358
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
359
|
+
logging: this._options.logging,
|
|
334
360
|
});
|
|
335
361
|
if (_response.ok) {
|
|
336
362
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as BrowserUse from "../../../../index.mjs";
|
|
1
|
+
import type * as BrowserUse from "../../../../index.mjs";
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* {
|
|
@@ -14,27 +11,35 @@ export interface CreateTaskRequest {
|
|
|
14
11
|
/** The LLM model to use for the agent. */
|
|
15
12
|
llm?: BrowserUse.SupportedLlMs;
|
|
16
13
|
/** The URL to start the task from. */
|
|
17
|
-
startUrl?: string;
|
|
14
|
+
startUrl?: string | null;
|
|
18
15
|
/** Maximum number of steps the agent can take before stopping. */
|
|
19
16
|
maxSteps?: number;
|
|
20
17
|
/** The stringified JSON schema for the structured output. */
|
|
21
|
-
structuredOutput?: string;
|
|
18
|
+
structuredOutput?: string | null;
|
|
22
19
|
/** The ID of the session where the task will run. */
|
|
23
|
-
sessionId?: string;
|
|
24
|
-
/** The metadata for the task. */
|
|
25
|
-
metadata?: Record<string, string |
|
|
26
|
-
/** The secrets for the task. */
|
|
27
|
-
secrets?: Record<string, string |
|
|
20
|
+
sessionId?: string | null;
|
|
21
|
+
/** The metadata for the task. Up to 10 key-value pairs. */
|
|
22
|
+
metadata?: Record<string, string | null> | null;
|
|
23
|
+
/** The secrets for the task. Allowed domains are not required for secrets to be injected, but are recommended. */
|
|
24
|
+
secrets?: Record<string, string | null> | null;
|
|
28
25
|
/** The allowed domains for the task. */
|
|
29
|
-
allowedDomains?: string[];
|
|
26
|
+
allowedDomains?: string[] | null;
|
|
27
|
+
/** The ID of the 1Password vault to use for the task. This is used to inject secrets into the task. */
|
|
28
|
+
opVaultId?: string | null;
|
|
30
29
|
/** Tells the agent to highlight interactive elements on the page. */
|
|
31
30
|
highlightElements?: boolean;
|
|
32
31
|
/** Whether agent flash mode is enabled. */
|
|
33
32
|
flashMode?: boolean;
|
|
34
33
|
/** Whether agent thinking mode is enabled. */
|
|
35
34
|
thinking?: boolean;
|
|
36
|
-
/** Whether agent vision capabilities are enabled. */
|
|
37
|
-
vision?:
|
|
35
|
+
/** Whether agent vision capabilities are enabled. Set to 'auto' to let the agent decide based on the model capabilities. */
|
|
36
|
+
vision?: CreateTaskRequest.Vision;
|
|
38
37
|
/** Optional extension to the agent system prompt. */
|
|
39
38
|
systemPromptExtension?: string;
|
|
40
39
|
}
|
|
40
|
+
export declare namespace CreateTaskRequest {
|
|
41
|
+
/**
|
|
42
|
+
* Whether agent vision capabilities are enabled. Set to 'auto' to let the agent decide based on the model capabilities.
|
|
43
|
+
*/
|
|
44
|
+
type Vision = boolean | "auto";
|
|
45
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as BrowserUse from "../../../../index.mjs";
|
|
1
|
+
import type * as BrowserUse from "../../../../index.mjs";
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* {}
|
|
@@ -9,8 +6,8 @@ import * as BrowserUse from "../../../../index.mjs";
|
|
|
9
6
|
export interface ListTasksTasksGetRequest {
|
|
10
7
|
pageSize?: number;
|
|
11
8
|
pageNumber?: number;
|
|
12
|
-
sessionId?: string;
|
|
13
|
-
filterBy?: BrowserUse.TaskStatus;
|
|
14
|
-
after?: string;
|
|
15
|
-
before?: string;
|
|
9
|
+
sessionId?: string | null;
|
|
10
|
+
filterBy?: BrowserUse.TaskStatus | null;
|
|
11
|
+
after?: string | null;
|
|
12
|
+
before?: string | null;
|
|
16
13
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as BrowserUse from "../../../../index.mjs";
|
|
1
|
+
import type * as BrowserUse from "../../../../index.mjs";
|
|
5
2
|
/**
|
|
6
3
|
* @example
|
|
7
4
|
* {
|
|
5
|
+
* task_id: "task_id",
|
|
8
6
|
* action: "stop"
|
|
9
7
|
* }
|
|
10
8
|
*/
|
|
11
9
|
export interface UpdateTaskRequest {
|
|
10
|
+
task_id: string;
|
|
12
11
|
/** The action to perform on the task */
|
|
13
12
|
action: BrowserUse.TaskUpdateAction;
|
|
14
13
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export type { CreateTaskRequest } from "./CreateTaskRequest.mjs";
|
|
2
|
+
export type { GetTaskLogsTasksTaskIdLogsGetRequest } from "./GetTaskLogsTasksTaskIdLogsGetRequest.mjs";
|
|
3
|
+
export type { GetTaskTasksTaskIdGetRequest } from "./GetTaskTasksTaskIdGetRequest.mjs";
|
|
4
|
+
export type { ListTasksTasksGetRequest } from "./ListTasksTasksGetRequest.mjs";
|
|
5
|
+
export type { UpdateTaskRequest } from "./UpdateTaskRequest.mjs";
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import * as BrowserUse from "../../../index.mjs";
|
|
4
|
+
export declare namespace Workflows {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
}
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class Workflows {
|
|
11
|
+
protected readonly _options: Workflows.Options;
|
|
12
|
+
constructor(_options: Workflows.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Get paginated list of workflows with optional filtering.
|
|
15
|
+
*
|
|
16
|
+
* @param {BrowserUse.ListWorkflowsWorkflowsGetRequest} request
|
|
17
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.workflows.listWorkflows()
|
|
23
|
+
*/
|
|
24
|
+
listWorkflows(request?: BrowserUse.ListWorkflowsWorkflowsGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowListResponse>;
|
|
25
|
+
private __listWorkflows;
|
|
26
|
+
/**
|
|
27
|
+
* Create a new workflow. The workflow YAML should be uploaded separately via the update endpoint.
|
|
28
|
+
*
|
|
29
|
+
* @param {BrowserUse.WorkflowCreateRequest} request
|
|
30
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.workflows.createWorkflow({
|
|
36
|
+
* name: "name"
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
createWorkflow(request: BrowserUse.WorkflowCreateRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
40
|
+
private __createWorkflow;
|
|
41
|
+
/**
|
|
42
|
+
* Get detailed workflow information including presigned URL to download YAML.
|
|
43
|
+
*
|
|
44
|
+
* @param {BrowserUse.GetWorkflowWorkflowsWorkflowIdGetRequest} request
|
|
45
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.workflows.getWorkflow({
|
|
51
|
+
* workflow_id: "workflow_id"
|
|
52
|
+
* })
|
|
53
|
+
*/
|
|
54
|
+
getWorkflow(request: BrowserUse.GetWorkflowWorkflowsWorkflowIdGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
55
|
+
private __getWorkflow;
|
|
56
|
+
/**
|
|
57
|
+
* Archive a workflow (soft delete).
|
|
58
|
+
*
|
|
59
|
+
* @param {BrowserUse.DeleteWorkflowWorkflowsWorkflowIdDeleteRequest} request
|
|
60
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.workflows.deleteWorkflow({
|
|
66
|
+
* workflow_id: "workflow_id"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
deleteWorkflow(request: BrowserUse.DeleteWorkflowWorkflowsWorkflowIdDeleteRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
70
|
+
private __deleteWorkflow;
|
|
71
|
+
/**
|
|
72
|
+
* Update workflow metadata.
|
|
73
|
+
*
|
|
74
|
+
* @param {BrowserUse.WorkflowUpdateRequest} request
|
|
75
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.workflows.updateWorkflow({
|
|
81
|
+
* workflow_id: "workflow_id"
|
|
82
|
+
* })
|
|
83
|
+
*/
|
|
84
|
+
updateWorkflow(request: BrowserUse.WorkflowUpdateRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
85
|
+
private __updateWorkflow;
|
|
86
|
+
/**
|
|
87
|
+
* Get a presigned URL to upload workflow YAML directly to S3 from the browser.
|
|
88
|
+
*
|
|
89
|
+
* This avoids sending the YAML content through the backend, reducing latency
|
|
90
|
+
* and avoiding KMS permission issues in local development.
|
|
91
|
+
*
|
|
92
|
+
* @param {BrowserUse.WorkflowYamlPresignedUploadRequest} request
|
|
93
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* await client.workflows.getWorkflowYamlPresignedUrl({
|
|
99
|
+
* workflow_id: "workflow_id",
|
|
100
|
+
* sizeBytes: 1
|
|
101
|
+
* })
|
|
102
|
+
*/
|
|
103
|
+
getWorkflowYamlPresignedUrl(request: BrowserUse.WorkflowYamlPresignedUploadRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowYamlPresignedUploadResponse>;
|
|
104
|
+
private __getWorkflowYamlPresignedUrl;
|
|
105
|
+
/**
|
|
106
|
+
* Execute a workflow either synchronously or asynchronously.
|
|
107
|
+
*
|
|
108
|
+
* - ASYNC mode: Returns execution ID immediately and processes in background via Lambda
|
|
109
|
+
* - SYNC mode: Waits for execution to complete and returns results inline (max 5 min timeout)
|
|
110
|
+
*
|
|
111
|
+
* @param {BrowserUse.WorkflowExecuteRequest} request
|
|
112
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await client.workflows.executeWorkflow({
|
|
118
|
+
* workflow_id: "workflow_id"
|
|
119
|
+
* })
|
|
120
|
+
*/
|
|
121
|
+
executeWorkflow(request: BrowserUse.WorkflowExecuteRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse>;
|
|
122
|
+
private __executeWorkflow;
|
|
123
|
+
/**
|
|
124
|
+
* Generate a workflow from a natural language task description.
|
|
125
|
+
*
|
|
126
|
+
* This endpoint uses the workflow-use library's HealingService to:
|
|
127
|
+
* 1. Record browser interactions for the task
|
|
128
|
+
* 2. Convert interactions to a reusable workflow
|
|
129
|
+
* 3. Extract variables for parameterization
|
|
130
|
+
* 4. Save the generated YAML to S3
|
|
131
|
+
*
|
|
132
|
+
* The generation happens asynchronously via the workflow_worker Lambda.
|
|
133
|
+
*
|
|
134
|
+
* @param {BrowserUse.WorkflowGenerateRequest} request
|
|
135
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* await client.workflows.generateWorkflow({
|
|
141
|
+
* workflow_id: "workflow_id",
|
|
142
|
+
* taskPrompt: "Go to github.com and search for browser-use"
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
generateWorkflow(request: BrowserUse.WorkflowGenerateRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowGenerateResponse>;
|
|
146
|
+
private __generateWorkflow;
|
|
147
|
+
/**
|
|
148
|
+
* Get detailed execution information including status, results, and costs.
|
|
149
|
+
*
|
|
150
|
+
* @param {BrowserUse.GetExecutionWorkflowsExecutionsExecutionIdGetRequest} request
|
|
151
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await client.workflows.getExecution({
|
|
157
|
+
* execution_id: "execution_id"
|
|
158
|
+
* })
|
|
159
|
+
*/
|
|
160
|
+
getExecution(request: BrowserUse.GetExecutionWorkflowsExecutionsExecutionIdGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionResponse>;
|
|
161
|
+
private __getExecution;
|
|
162
|
+
/**
|
|
163
|
+
* Get paginated list of executions for a specific workflow.
|
|
164
|
+
*
|
|
165
|
+
* @param {BrowserUse.ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest} request
|
|
166
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
|
+
*
|
|
168
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* await client.workflows.listWorkflowExecutions({
|
|
172
|
+
* workflow_id: "workflow_id"
|
|
173
|
+
* })
|
|
174
|
+
*/
|
|
175
|
+
listWorkflowExecutions(request: BrowserUse.ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionListResponse>;
|
|
176
|
+
private __listWorkflowExecutions;
|
|
177
|
+
/**
|
|
178
|
+
* Get paginated list of all workflow executions for a project.
|
|
179
|
+
*
|
|
180
|
+
* @param {BrowserUse.ListAllExecutionsWorkflowsExecutionsGetRequest} request
|
|
181
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
|
+
*
|
|
183
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* await client.workflows.listAllExecutions()
|
|
187
|
+
*/
|
|
188
|
+
listAllExecutions(request?: BrowserUse.ListAllExecutionsWorkflowsExecutionsGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionListResponse>;
|
|
189
|
+
private __listAllExecutions;
|
|
190
|
+
/**
|
|
191
|
+
* Cancel a pending or running workflow execution.
|
|
192
|
+
*
|
|
193
|
+
* @param {BrowserUse.CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest} request
|
|
194
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
|
+
*
|
|
196
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* await client.workflows.cancelExecution({
|
|
200
|
+
* execution_id: "execution_id"
|
|
201
|
+
* })
|
|
202
|
+
*/
|
|
203
|
+
cancelExecution(request: BrowserUse.CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionResponse>;
|
|
204
|
+
private __cancelExecution;
|
|
205
|
+
/**
|
|
206
|
+
* Get presigned URL to download execution logs.
|
|
207
|
+
*
|
|
208
|
+
* @param {BrowserUse.GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest} request
|
|
209
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
|
+
*
|
|
211
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* await client.workflows.getExecutionLogs({
|
|
215
|
+
* execution_id: "execution_id"
|
|
216
|
+
* })
|
|
217
|
+
*/
|
|
218
|
+
getExecutionLogs(request: BrowserUse.GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionLogResponse>;
|
|
219
|
+
private __getExecutionLogs;
|
|
220
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
221
|
+
}
|