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.
- package/README.md +169 -152
- package/dist/chunk-I75IFZAL.js +100 -0
- package/dist/chunk-I75IFZAL.js.map +1 -0
- package/dist/chunk-RIRVOEIU.cjs +100 -0
- package/dist/chunk-RIRVOEIU.cjs.map +1 -0
- package/dist/errors-BtB79l7x.d.cts +30 -0
- package/dist/errors-BtB79l7x.d.ts +30 -0
- package/dist/index.cjs +428 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2441 -0
- package/dist/index.d.ts +2441 -0
- package/dist/index.js +428 -0
- package/dist/index.js.map +1 -0
- package/dist/v3.cjs +140 -0
- package/dist/v3.cjs.map +1 -0
- package/dist/v3.d.cts +287 -0
- package/dist/v3.d.ts +287 -0
- package/dist/v3.js +140 -0
- package/dist/v3.js.map +1 -0
- package/package.json +51 -69
- package/dist/cjs/BaseClient.d.ts +0 -30
- package/dist/cjs/BaseClient.js +0 -3
- package/dist/cjs/Client.d.ts +0 -35
- package/dist/cjs/Client.js +0 -92
- package/dist/cjs/api/errors/BadRequestError.d.ts +0 -5
- package/dist/cjs/api/errors/BadRequestError.js +0 -50
- package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -5
- package/dist/cjs/api/errors/ForbiddenError.js +0 -50
- package/dist/cjs/api/errors/InternalServerError.d.ts +0 -5
- package/dist/cjs/api/errors/InternalServerError.js +0 -50
- package/dist/cjs/api/errors/NotFoundError.d.ts +0 -5
- package/dist/cjs/api/errors/NotFoundError.js +0 -50
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +0 -5
- package/dist/cjs/api/errors/PaymentRequiredError.js +0 -50
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +0 -6
- package/dist/cjs/api/errors/TooManyRequestsError.js +0 -50
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +0 -5
- package/dist/cjs/api/errors/UnprocessableEntityError.js +0 -50
- package/dist/cjs/api/errors/index.d.ts +0 -7
- package/dist/cjs/api/errors/index.js +0 -23
- package/dist/cjs/api/index.d.ts +0 -3
- package/dist/cjs/api/index.js +0 -19
- package/dist/cjs/api/resources/billing/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/billing/client/Client.js +0 -126
- package/dist/cjs/api/resources/billing/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/billing/client/index.js +0 -2
- package/dist/cjs/api/resources/billing/index.d.ts +0 -1
- package/dist/cjs/api/resources/billing/index.js +0 -17
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +0 -93
- package/dist/cjs/api/resources/browsers/client/Client.js +0 -377
- package/dist/cjs/api/resources/browsers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/browsers/client/index.js +0 -17
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +0 -21
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.ts +0 -10
- package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.ts +0 -13
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/browsers/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/browsers/index.d.ts +0 -1
- package/dist/cjs/api/resources/browsers/index.js +0 -17
- package/dist/cjs/api/resources/files/client/Client.d.ts +0 -78
- package/dist/cjs/api/resources/files/client/Client.js +0 -302
- package/dist/cjs/api/resources/files/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/files/client/index.js +0 -17
- package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.ts +0 -16
- package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.js +0 -3
- package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.ts +0 -16
- package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.js +0 -3
- package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/files/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/files/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/files/index.d.ts +0 -1
- package/dist/cjs/api/resources/files/index.js +0 -17
- package/dist/cjs/api/resources/index.d.ts +0 -15
- package/dist/cjs/api/resources/index.js +0 -54
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +0 -93
- package/dist/cjs/api/resources/profiles/client/Client.js +0 -416
- package/dist/cjs/api/resources/profiles/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/profiles/client/index.js +0 -17
- package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.ts +0 -8
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.d.ts +0 -8
- package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.d.ts +0 -11
- package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/resources/profiles/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/profiles/index.d.ts +0 -1
- package/dist/cjs/api/resources/profiles/index.js +0 -17
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +0 -140
- package/dist/cjs/api/resources/sessions/client/Client.js +0 -625
- package/dist/cjs/api/resources/sessions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/sessions/client/index.js +0 -17
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +0 -23
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.ts +0 -10
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +0 -13
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/index.d.ts +0 -8
- package/dist/cjs/api/resources/sessions/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/sessions/index.d.ts +0 -1
- package/dist/cjs/api/resources/sessions/index.js +0 -17
- package/dist/cjs/api/resources/skills/client/Client.d.ts +0 -202
- package/dist/cjs/api/resources/skills/client/Client.js +0 -892
- package/dist/cjs/api/resources/skills/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/skills/client/index.js +0 -17
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.d.ts +0 -17
- package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillRequest.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +0 -12
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +0 -15
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/RefineSkillRequest.d.ts +0 -16
- package/dist/cjs/api/resources/skills/client/requests/RefineSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +0 -20
- package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/index.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/skills/index.d.ts +0 -1
- package/dist/cjs/api/resources/skills/index.js +0 -17
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +0 -79
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +0 -361
- package/dist/cjs/api/resources/skillsMarketplace/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/skillsMarketplace/client/index.js +0 -17
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +0 -12
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +0 -13
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/skillsMarketplace/index.d.ts +0 -1
- package/dist/cjs/api/resources/skillsMarketplace/index.js +0 -17
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +0 -106
- package/dist/cjs/api/resources/tasks/client/Client.js +0 -449
- package/dist/cjs/api/resources/tasks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tasks/client/index.js +0 -17
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +0 -53
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.ts +0 -13
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.d.ts +0 -13
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/resources/tasks/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/tasks/index.d.ts +0 -1
- package/dist/cjs/api/resources/tasks/index.js +0 -17
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +0 -278
- package/dist/cjs/api/resources/workflows/client/Client.js +0 -1199
- package/dist/cjs/api/resources/workflows/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/client/index.js +0 -17
- package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.ts +0 -14
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.ts +0 -10
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.d.ts +0 -14
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +0 -13
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.ts +0 -36
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.ts +0 -15
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.ts +0 -14
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +0 -16
- package/dist/cjs/api/resources/workflows/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/index.js +0 -17
- package/dist/cjs/api/types/AccountNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/AccountNotFoundError.js +0 -3
- package/dist/cjs/api/types/AccountView.d.ts +0 -20
- package/dist/cjs/api/types/AccountView.js +0 -3
- package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +0 -2
- package/dist/cjs/api/types/BadRequestErrorBody.js +0 -3
- package/dist/cjs/api/types/BrowserSessionItemView.d.ts +0 -26
- package/dist/cjs/api/types/BrowserSessionItemView.js +0 -3
- package/dist/cjs/api/types/BrowserSessionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/BrowserSessionListResponse.js +0 -3
- package/dist/cjs/api/types/BrowserSessionStatus.d.ts +0 -12
- package/dist/cjs/api/types/BrowserSessionStatus.js +0 -15
- package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +0 -10
- package/dist/cjs/api/types/BrowserSessionUpdateAction.js +0 -13
- package/dist/cjs/api/types/BrowserSessionView.d.ts +0 -26
- package/dist/cjs/api/types/BrowserSessionView.js +0 -3
- package/dist/cjs/api/types/CannotDeleteSkillWhileGeneratingError.d.ts +0 -6
- package/dist/cjs/api/types/CannotDeleteSkillWhileGeneratingError.js +0 -3
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.d.ts +0 -6
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +0 -3
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/ConcurrentSkillCreationsError.d.ts +0 -6
- package/dist/cjs/api/types/ConcurrentSkillCreationsError.js +0 -3
- package/dist/cjs/api/types/CreateSkillResponse.d.ts +0 -7
- package/dist/cjs/api/types/CreateSkillResponse.js +0 -3
- package/dist/cjs/api/types/CustomProxy.d.ts +0 -13
- package/dist/cjs/api/types/CustomProxy.js +0 -3
- package/dist/cjs/api/types/DownloadUrlGenerationError.d.ts +0 -6
- package/dist/cjs/api/types/DownloadUrlGenerationError.js +0 -3
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +0 -6
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +0 -3
- package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +0 -7
- package/dist/cjs/api/types/ExecuteSkillRequest.js +0 -3
- package/dist/cjs/api/types/ExecuteSkillResponse.d.ts +0 -15
- package/dist/cjs/api/types/ExecuteSkillResponse.js +0 -3
- package/dist/cjs/api/types/FileView.d.ts +0 -9
- package/dist/cjs/api/types/FileView.js +0 -3
- package/dist/cjs/api/types/GenerationNotCancellableError.d.ts +0 -6
- package/dist/cjs/api/types/GenerationNotCancellableError.js +0 -3
- package/dist/cjs/api/types/HttpValidationError.d.ts +0 -4
- package/dist/cjs/api/types/HttpValidationError.js +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -6
- package/dist/cjs/api/types/InternalServerErrorBody.js +0 -3
- package/dist/cjs/api/types/MarketplaceSkillListResponse.d.ts +0 -14
- package/dist/cjs/api/types/MarketplaceSkillListResponse.js +0 -3
- package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +0 -38
- package/dist/cjs/api/types/MarketplaceSkillResponse.js +0 -3
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -2
- package/dist/cjs/api/types/NotFoundErrorBody.js +0 -3
- package/dist/cjs/api/types/OutputFileNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/OutputFileNotFoundError.js +0 -3
- package/dist/cjs/api/types/ParameterSchema.d.ts +0 -12
- package/dist/cjs/api/types/ParameterSchema.js +0 -3
- package/dist/cjs/api/types/ParameterType.d.ts +0 -10
- package/dist/cjs/api/types/ParameterType.js +0 -13
- package/dist/cjs/api/types/PlanInfo.d.ts +0 -15
- package/dist/cjs/api/types/PlanInfo.js +0 -3
- package/dist/cjs/api/types/ProfileListResponse.d.ts +0 -14
- package/dist/cjs/api/types/ProfileListResponse.js +0 -3
- package/dist/cjs/api/types/ProfileNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/ProfileNotFoundError.js +0 -3
- package/dist/cjs/api/types/ProfileView.d.ts +0 -19
- package/dist/cjs/api/types/ProfileView.js +0 -3
- package/dist/cjs/api/types/ProxyCountryCode.d.ts +0 -250
- package/dist/cjs/api/types/ProxyCountryCode.js +0 -253
- package/dist/cjs/api/types/RefineSkillResponse.d.ts +0 -7
- package/dist/cjs/api/types/RefineSkillResponse.js +0 -3
- package/dist/cjs/api/types/SessionHasRunningTaskError.d.ts +0 -6
- package/dist/cjs/api/types/SessionHasRunningTaskError.js +0 -3
- package/dist/cjs/api/types/SessionItemView.d.ts +0 -24
- package/dist/cjs/api/types/SessionItemView.js +0 -3
- package/dist/cjs/api/types/SessionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/SessionListResponse.js +0 -3
- package/dist/cjs/api/types/SessionNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/SessionNotFoundError.js +0 -3
- package/dist/cjs/api/types/SessionStatus.d.ts +0 -12
- package/dist/cjs/api/types/SessionStatus.js +0 -15
- package/dist/cjs/api/types/SessionStoppedError.d.ts +0 -6
- package/dist/cjs/api/types/SessionStoppedError.js +0 -3
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +0 -6
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.js +0 -3
- package/dist/cjs/api/types/SessionUpdateAction.d.ts +0 -10
- package/dist/cjs/api/types/SessionUpdateAction.js +0 -13
- package/dist/cjs/api/types/SessionView.d.ts +0 -28
- package/dist/cjs/api/types/SessionView.js +0 -3
- package/dist/cjs/api/types/ShareNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/ShareNotFoundError.js +0 -3
- package/dist/cjs/api/types/ShareView.d.ts +0 -13
- package/dist/cjs/api/types/ShareView.js +0 -3
- package/dist/cjs/api/types/SkillCategory.d.ts +0 -20
- package/dist/cjs/api/types/SkillCategory.js +0 -23
- package/dist/cjs/api/types/SkillExecutionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/SkillExecutionListResponse.js +0 -3
- package/dist/cjs/api/types/SkillExecutionOutputResponse.d.ts +0 -7
- package/dist/cjs/api/types/SkillExecutionOutputResponse.js +0 -3
- package/dist/cjs/api/types/SkillExecutionView.d.ts +0 -21
- package/dist/cjs/api/types/SkillExecutionView.js +0 -3
- package/dist/cjs/api/types/SkillListResponse.d.ts +0 -14
- package/dist/cjs/api/types/SkillListResponse.js +0 -3
- package/dist/cjs/api/types/SkillNotFinishedError.d.ts +0 -6
- package/dist/cjs/api/types/SkillNotFinishedError.js +0 -3
- package/dist/cjs/api/types/SkillNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/SkillNotFoundError.js +0 -3
- package/dist/cjs/api/types/SkillResponse.d.ts +0 -52
- package/dist/cjs/api/types/SkillResponse.js +0 -3
- package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +0 -10
- package/dist/cjs/api/types/SkillsGenerationStatus.js +0 -13
- package/dist/cjs/api/types/SupportedLlMs.d.ts +0 -22
- package/dist/cjs/api/types/SupportedLlMs.js +0 -25
- package/dist/cjs/api/types/TaskCreatedResponse.d.ts +0 -9
- package/dist/cjs/api/types/TaskCreatedResponse.js +0 -3
- package/dist/cjs/api/types/TaskItemView.d.ts +0 -35
- package/dist/cjs/api/types/TaskItemView.js +0 -3
- package/dist/cjs/api/types/TaskListResponse.d.ts +0 -14
- package/dist/cjs/api/types/TaskListResponse.js +0 -3
- package/dist/cjs/api/types/TaskLogFileResponse.d.ts +0 -7
- package/dist/cjs/api/types/TaskLogFileResponse.js +0 -3
- package/dist/cjs/api/types/TaskNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/TaskNotFoundError.js +0 -3
- package/dist/cjs/api/types/TaskOutputFileResponse.d.ts +0 -11
- package/dist/cjs/api/types/TaskOutputFileResponse.js +0 -3
- package/dist/cjs/api/types/TaskStatus.d.ts +0 -16
- package/dist/cjs/api/types/TaskStatus.js +0 -19
- package/dist/cjs/api/types/TaskStepView.d.ts +0 -19
- package/dist/cjs/api/types/TaskStepView.js +0 -3
- package/dist/cjs/api/types/TaskUpdateAction.d.ts +0 -12
- package/dist/cjs/api/types/TaskUpdateAction.js +0 -15
- package/dist/cjs/api/types/TaskView.d.ts +0 -37
- package/dist/cjs/api/types/TaskView.js +0 -3
- package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.d.ts +0 -6
- package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.js +0 -3
- package/dist/cjs/api/types/UnsupportedContentTypeError.d.ts +0 -6
- package/dist/cjs/api/types/UnsupportedContentTypeError.js +0 -3
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +0 -22
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +0 -11
- package/dist/cjs/api/types/UploadFileRequest.d.ts +0 -30
- package/dist/cjs/api/types/UploadFileRequest.js +0 -24
- package/dist/cjs/api/types/ValidationError.d.ts +0 -11
- package/dist/cjs/api/types/ValidationError.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.d.ts +0 -12
- package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionItemView.d.ts +0 -28
- package/dist/cjs/api/types/WorkflowExecutionItemView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/WorkflowExecutionListResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionLogResponse.d.ts +0 -7
- package/dist/cjs/api/types/WorkflowExecutionLogResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.d.ts +0 -13
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionMediaView.d.ts +0 -8
- package/dist/cjs/api/types/WorkflowExecutionMediaView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +0 -38
- package/dist/cjs/api/types/WorkflowExecutionResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +0 -28
- package/dist/cjs/api/types/WorkflowExecutionStateView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionStatus.d.ts +0 -18
- package/dist/cjs/api/types/WorkflowExecutionStatus.js +0 -21
- package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +0 -29
- package/dist/cjs/api/types/WorkflowExecutionStepView.js +0 -3
- package/dist/cjs/api/types/WorkflowGenerateResponse.d.ts +0 -11
- package/dist/cjs/api/types/WorkflowGenerateResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +0 -18
- package/dist/cjs/api/types/WorkflowGenerationStateView.js +0 -3
- package/dist/cjs/api/types/WorkflowGenerationStatus.d.ts +0 -8
- package/dist/cjs/api/types/WorkflowGenerationStatus.js +0 -11
- package/dist/cjs/api/types/WorkflowGenerationStepView.d.ts +0 -19
- package/dist/cjs/api/types/WorkflowGenerationStepView.js +0 -3
- package/dist/cjs/api/types/WorkflowItemView.d.ts +0 -19
- package/dist/cjs/api/types/WorkflowItemView.js +0 -3
- package/dist/cjs/api/types/WorkflowListResponse.d.ts +0 -14
- package/dist/cjs/api/types/WorkflowListResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowResponse.d.ts +0 -38
- package/dist/cjs/api/types/WorkflowResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +0 -15
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +0 -3
- package/dist/cjs/api/types/index.d.ts +0 -72
- package/dist/cjs/api/types/index.js +0 -88
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -17
- package/dist/cjs/core/fetcher/APIResponse.d.ts +0 -20
- package/dist/cjs/core/fetcher/APIResponse.js +0 -2
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +0 -20
- package/dist/cjs/core/fetcher/BinaryResponse.js +0 -17
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +0 -13
- package/dist/cjs/core/fetcher/EndpointMetadata.js +0 -2
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +0 -12
- package/dist/cjs/core/fetcher/EndpointSupplier.js +0 -22
- package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -45
- package/dist/cjs/core/fetcher/Fetcher.js +0 -315
- package/dist/cjs/core/fetcher/Headers.d.ts +0 -2
- package/dist/cjs/core/fetcher/Headers.js +0 -84
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +0 -58
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +0 -103
- package/dist/cjs/core/fetcher/RawResponse.d.ts +0 -29
- package/dist/cjs/core/fetcher/RawResponse.js +0 -44
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/cjs/core/fetcher/Supplier.d.ts +0 -4
- package/dist/cjs/core/fetcher/Supplier.js +0 -22
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/cjs/core/fetcher/createRequestUrl.js +0 -8
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +0 -45
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +0 -1
- package/dist/cjs/core/fetcher/getFetchFn.js +0 -17
- package/dist/cjs/core/fetcher/getHeader.d.ts +0 -1
- package/dist/cjs/core/fetcher/getHeader.js +0 -11
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/cjs/core/fetcher/getRequestBody.js +0 -27
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +0 -55
- package/dist/cjs/core/fetcher/index.d.ts +0 -11
- package/dist/cjs/core/fetcher/index.js +0 -17
- package/dist/cjs/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/cjs/core/fetcher/makeRequest.js +0 -40
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -67
- package/dist/cjs/core/fetcher/signals.d.ts +0 -5
- package/dist/cjs/core/fetcher/signals.js +0 -24
- package/dist/cjs/core/headers.d.ts +0 -2
- package/dist/cjs/core/headers.js +0 -31
- package/dist/cjs/core/index.d.ts +0 -4
- package/dist/cjs/core/index.js +0 -43
- package/dist/cjs/core/json.d.ts +0 -15
- package/dist/cjs/core/json.js +0 -24
- package/dist/cjs/core/logging/exports.d.ts +0 -18
- package/dist/cjs/core/logging/exports.js +0 -45
- package/dist/cjs/core/logging/index.d.ts +0 -1
- package/dist/cjs/core/logging/index.js +0 -17
- package/dist/cjs/core/logging/logger.d.ts +0 -126
- package/dist/cjs/core/logging/logger.js +0 -144
- package/dist/cjs/core/runtime/index.d.ts +0 -1
- package/dist/cjs/core/runtime/index.js +0 -5
- package/dist/cjs/core/runtime/runtime.d.ts +0 -9
- package/dist/cjs/core/runtime/runtime.js +0 -102
- package/dist/cjs/core/url/encodePathParam.d.ts +0 -1
- package/dist/cjs/core/url/encodePathParam.js +0 -21
- package/dist/cjs/core/url/index.d.ts +0 -3
- package/dist/cjs/core/url/index.js +0 -9
- package/dist/cjs/core/url/join.d.ts +0 -1
- package/dist/cjs/core/url/join.js +0 -68
- package/dist/cjs/core/url/qs.d.ts +0 -6
- package/dist/cjs/core/url/qs.js +0 -64
- package/dist/cjs/environments.d.ts +0 -4
- package/dist/cjs/environments.js +0 -7
- package/dist/cjs/errors/BrowserUseError.d.ts +0 -12
- package/dist/cjs/errors/BrowserUseError.js +0 -28
- package/dist/cjs/errors/BrowserUseTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/BrowserUseTimeoutError.js +0 -11
- package/dist/cjs/errors/index.d.ts +0 -2
- package/dist/cjs/errors/index.js +0 -7
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/cjs/exports.js +0 -17
- package/dist/cjs/index.d.ts +0 -7
- package/dist/cjs/index.js +0 -47
- package/dist/cjs/version.d.ts +0 -1
- package/dist/cjs/version.js +0 -4
- package/dist/cjs/wrapper/BrowserUseClient.d.ts +0 -6
- package/dist/cjs/wrapper/BrowserUseClient.js +0 -12
- package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +0 -15
- package/dist/cjs/wrapper/api/BrowserUseTasks.js +0 -89
- package/dist/cjs/wrapper/lib/parse.d.ts +0 -69
- package/dist/cjs/wrapper/lib/parse.js +0 -202
- package/dist/cjs/wrapper/lib/types.d.ts +0 -74
- package/dist/cjs/wrapper/lib/types.js +0 -13
- package/dist/cjs/wrapper/lib/webhooks.d.ts +0 -92
- package/dist/cjs/wrapper/lib/webhooks.js +0 -97
- package/dist/esm/BaseClient.d.mts +0 -30
- package/dist/esm/BaseClient.mjs +0 -2
- package/dist/esm/Client.d.mts +0 -35
- package/dist/esm/Client.mjs +0 -55
- package/dist/esm/api/errors/BadRequestError.d.mts +0 -5
- package/dist/esm/api/errors/BadRequestError.mjs +0 -13
- package/dist/esm/api/errors/ForbiddenError.d.mts +0 -5
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -13
- package/dist/esm/api/errors/InternalServerError.d.mts +0 -5
- package/dist/esm/api/errors/InternalServerError.mjs +0 -13
- package/dist/esm/api/errors/NotFoundError.d.mts +0 -5
- package/dist/esm/api/errors/NotFoundError.mjs +0 -13
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +0 -5
- package/dist/esm/api/errors/PaymentRequiredError.mjs +0 -13
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +0 -6
- package/dist/esm/api/errors/TooManyRequestsError.mjs +0 -13
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +0 -5
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +0 -13
- package/dist/esm/api/errors/index.d.mts +0 -7
- package/dist/esm/api/errors/index.mjs +0 -7
- package/dist/esm/api/index.d.mts +0 -3
- package/dist/esm/api/index.mjs +0 -3
- package/dist/esm/api/resources/billing/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/billing/client/Client.mjs +0 -89
- package/dist/esm/api/resources/billing/client/index.d.mts +0 -1
- package/dist/esm/api/resources/billing/client/index.mjs +0 -1
- package/dist/esm/api/resources/billing/index.d.mts +0 -1
- package/dist/esm/api/resources/billing/index.mjs +0 -1
- package/dist/esm/api/resources/browsers/client/Client.d.mts +0 -93
- package/dist/esm/api/resources/browsers/client/Client.mjs +0 -340
- package/dist/esm/api/resources/browsers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/browsers/client/index.mjs +0 -1
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +0 -21
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.mts +0 -10
- package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +0 -13
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/browsers/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/browsers/index.d.mts +0 -1
- package/dist/esm/api/resources/browsers/index.mjs +0 -1
- package/dist/esm/api/resources/files/client/Client.d.mts +0 -78
- package/dist/esm/api/resources/files/client/Client.mjs +0 -265
- package/dist/esm/api/resources/files/client/index.d.mts +0 -1
- package/dist/esm/api/resources/files/client/index.mjs +0 -1
- package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.mts +0 -16
- package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.mjs +0 -2
- package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.mts +0 -16
- package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.mjs +0 -2
- package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/files/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/files/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/files/index.d.mts +0 -1
- package/dist/esm/api/resources/files/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +0 -15
- package/dist/esm/api/resources/index.mjs +0 -15
- package/dist/esm/api/resources/profiles/client/Client.d.mts +0 -93
- package/dist/esm/api/resources/profiles/client/Client.mjs +0 -379
- package/dist/esm/api/resources/profiles/client/index.d.mts +0 -1
- package/dist/esm/api/resources/profiles/client/index.mjs +0 -1
- package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.mts +0 -8
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.d.mts +0 -8
- package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.d.mts +0 -11
- package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/profiles/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/profiles/index.d.mts +0 -1
- package/dist/esm/api/resources/profiles/index.mjs +0 -1
- package/dist/esm/api/resources/sessions/client/Client.d.mts +0 -140
- package/dist/esm/api/resources/sessions/client/Client.mjs +0 -588
- package/dist/esm/api/resources/sessions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/sessions/client/index.mjs +0 -1
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +0 -23
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.mts +0 -10
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +0 -13
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/index.d.mts +0 -8
- package/dist/esm/api/resources/sessions/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/sessions/index.d.mts +0 -1
- package/dist/esm/api/resources/sessions/index.mjs +0 -1
- package/dist/esm/api/resources/skills/client/Client.d.mts +0 -202
- package/dist/esm/api/resources/skills/client/Client.mjs +0 -855
- package/dist/esm/api/resources/skills/client/index.d.mts +0 -1
- package/dist/esm/api/resources/skills/client/index.mjs +0 -1
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.d.mts +0 -17
- package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillRequest.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +0 -12
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +0 -15
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/RefineSkillRequest.d.mts +0 -16
- package/dist/esm/api/resources/skills/client/requests/RefineSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +0 -20
- package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/index.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/skills/index.d.mts +0 -1
- package/dist/esm/api/resources/skills/index.mjs +0 -1
- package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +0 -79
- package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +0 -324
- package/dist/esm/api/resources/skillsMarketplace/client/index.d.mts +0 -1
- package/dist/esm/api/resources/skillsMarketplace/client/index.mjs +0 -1
- package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +0 -12
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +0 -13
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/skillsMarketplace/index.d.mts +0 -1
- package/dist/esm/api/resources/skillsMarketplace/index.mjs +0 -1
- package/dist/esm/api/resources/tasks/client/Client.d.mts +0 -106
- package/dist/esm/api/resources/tasks/client/Client.mjs +0 -412
- package/dist/esm/api/resources/tasks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tasks/client/index.mjs +0 -1
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +0 -53
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.mts +0 -13
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.d.mts +0 -13
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/tasks/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/tasks/index.d.mts +0 -1
- package/dist/esm/api/resources/tasks/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +0 -278
- package/dist/esm/api/resources/workflows/client/Client.mjs +0 -1162
- package/dist/esm/api/resources/workflows/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/client/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.mts +0 -14
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.mts +0 -10
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.d.mts +0 -14
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +0 -13
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.mts +0 -36
- package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.mts +0 -15
- package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.mts +0 -14
- package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +0 -16
- package/dist/esm/api/resources/workflows/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/index.mjs +0 -1
- package/dist/esm/api/types/AccountNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/AccountNotFoundError.mjs +0 -2
- package/dist/esm/api/types/AccountView.d.mts +0 -20
- package/dist/esm/api/types/AccountView.mjs +0 -2
- package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -2
- package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -2
- package/dist/esm/api/types/BrowserSessionItemView.d.mts +0 -26
- package/dist/esm/api/types/BrowserSessionItemView.mjs +0 -2
- package/dist/esm/api/types/BrowserSessionListResponse.d.mts +0 -14
- package/dist/esm/api/types/BrowserSessionListResponse.mjs +0 -2
- package/dist/esm/api/types/BrowserSessionStatus.d.mts +0 -12
- package/dist/esm/api/types/BrowserSessionStatus.mjs +0 -12
- package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +0 -10
- package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +0 -10
- package/dist/esm/api/types/BrowserSessionView.d.mts +0 -26
- package/dist/esm/api/types/BrowserSessionView.mjs +0 -2
- package/dist/esm/api/types/CannotDeleteSkillWhileGeneratingError.d.mts +0 -6
- package/dist/esm/api/types/CannotDeleteSkillWhileGeneratingError.mjs +0 -2
- package/dist/esm/api/types/CannotRollbackPublicSkillError.d.mts +0 -6
- package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +0 -2
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/ConcurrentSkillCreationsError.d.mts +0 -6
- package/dist/esm/api/types/ConcurrentSkillCreationsError.mjs +0 -2
- package/dist/esm/api/types/CreateSkillResponse.d.mts +0 -7
- package/dist/esm/api/types/CreateSkillResponse.mjs +0 -2
- package/dist/esm/api/types/CustomProxy.d.mts +0 -13
- package/dist/esm/api/types/CustomProxy.mjs +0 -2
- package/dist/esm/api/types/DownloadUrlGenerationError.d.mts +0 -6
- package/dist/esm/api/types/DownloadUrlGenerationError.mjs +0 -2
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +0 -6
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +0 -2
- package/dist/esm/api/types/ExecuteSkillRequest.d.mts +0 -7
- package/dist/esm/api/types/ExecuteSkillRequest.mjs +0 -2
- package/dist/esm/api/types/ExecuteSkillResponse.d.mts +0 -15
- package/dist/esm/api/types/ExecuteSkillResponse.mjs +0 -2
- package/dist/esm/api/types/FileView.d.mts +0 -9
- package/dist/esm/api/types/FileView.mjs +0 -2
- package/dist/esm/api/types/GenerationNotCancellableError.d.mts +0 -6
- package/dist/esm/api/types/GenerationNotCancellableError.mjs +0 -2
- package/dist/esm/api/types/HttpValidationError.d.mts +0 -4
- package/dist/esm/api/types/HttpValidationError.mjs +0 -2
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -6
- package/dist/esm/api/types/InternalServerErrorBody.mjs +0 -2
- package/dist/esm/api/types/MarketplaceSkillListResponse.d.mts +0 -14
- package/dist/esm/api/types/MarketplaceSkillListResponse.mjs +0 -2
- package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +0 -38
- package/dist/esm/api/types/MarketplaceSkillResponse.mjs +0 -2
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -2
- package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -2
- package/dist/esm/api/types/OutputFileNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/OutputFileNotFoundError.mjs +0 -2
- package/dist/esm/api/types/ParameterSchema.d.mts +0 -12
- package/dist/esm/api/types/ParameterSchema.mjs +0 -2
- package/dist/esm/api/types/ParameterType.d.mts +0 -10
- package/dist/esm/api/types/ParameterType.mjs +0 -10
- package/dist/esm/api/types/PlanInfo.d.mts +0 -15
- package/dist/esm/api/types/PlanInfo.mjs +0 -2
- package/dist/esm/api/types/ProfileListResponse.d.mts +0 -14
- package/dist/esm/api/types/ProfileListResponse.mjs +0 -2
- package/dist/esm/api/types/ProfileNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/ProfileNotFoundError.mjs +0 -2
- package/dist/esm/api/types/ProfileView.d.mts +0 -19
- package/dist/esm/api/types/ProfileView.mjs +0 -2
- package/dist/esm/api/types/ProxyCountryCode.d.mts +0 -250
- package/dist/esm/api/types/ProxyCountryCode.mjs +0 -250
- package/dist/esm/api/types/RefineSkillResponse.d.mts +0 -7
- package/dist/esm/api/types/RefineSkillResponse.mjs +0 -2
- package/dist/esm/api/types/SessionHasRunningTaskError.d.mts +0 -6
- package/dist/esm/api/types/SessionHasRunningTaskError.mjs +0 -2
- package/dist/esm/api/types/SessionItemView.d.mts +0 -24
- package/dist/esm/api/types/SessionItemView.mjs +0 -2
- package/dist/esm/api/types/SessionListResponse.d.mts +0 -14
- package/dist/esm/api/types/SessionListResponse.mjs +0 -2
- package/dist/esm/api/types/SessionNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/SessionNotFoundError.mjs +0 -2
- package/dist/esm/api/types/SessionStatus.d.mts +0 -12
- package/dist/esm/api/types/SessionStatus.mjs +0 -12
- package/dist/esm/api/types/SessionStoppedError.d.mts +0 -6
- package/dist/esm/api/types/SessionStoppedError.mjs +0 -2
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +0 -6
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.mjs +0 -2
- package/dist/esm/api/types/SessionUpdateAction.d.mts +0 -10
- package/dist/esm/api/types/SessionUpdateAction.mjs +0 -10
- package/dist/esm/api/types/SessionView.d.mts +0 -28
- package/dist/esm/api/types/SessionView.mjs +0 -2
- package/dist/esm/api/types/ShareNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/ShareNotFoundError.mjs +0 -2
- package/dist/esm/api/types/ShareView.d.mts +0 -13
- package/dist/esm/api/types/ShareView.mjs +0 -2
- package/dist/esm/api/types/SkillCategory.d.mts +0 -20
- package/dist/esm/api/types/SkillCategory.mjs +0 -20
- package/dist/esm/api/types/SkillExecutionListResponse.d.mts +0 -14
- package/dist/esm/api/types/SkillExecutionListResponse.mjs +0 -2
- package/dist/esm/api/types/SkillExecutionOutputResponse.d.mts +0 -7
- package/dist/esm/api/types/SkillExecutionOutputResponse.mjs +0 -2
- package/dist/esm/api/types/SkillExecutionView.d.mts +0 -21
- package/dist/esm/api/types/SkillExecutionView.mjs +0 -2
- package/dist/esm/api/types/SkillListResponse.d.mts +0 -14
- package/dist/esm/api/types/SkillListResponse.mjs +0 -2
- package/dist/esm/api/types/SkillNotFinishedError.d.mts +0 -6
- package/dist/esm/api/types/SkillNotFinishedError.mjs +0 -2
- package/dist/esm/api/types/SkillNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/SkillNotFoundError.mjs +0 -2
- package/dist/esm/api/types/SkillResponse.d.mts +0 -52
- package/dist/esm/api/types/SkillResponse.mjs +0 -2
- package/dist/esm/api/types/SkillsGenerationStatus.d.mts +0 -10
- package/dist/esm/api/types/SkillsGenerationStatus.mjs +0 -10
- package/dist/esm/api/types/SupportedLlMs.d.mts +0 -22
- package/dist/esm/api/types/SupportedLlMs.mjs +0 -22
- package/dist/esm/api/types/TaskCreatedResponse.d.mts +0 -9
- package/dist/esm/api/types/TaskCreatedResponse.mjs +0 -2
- package/dist/esm/api/types/TaskItemView.d.mts +0 -35
- package/dist/esm/api/types/TaskItemView.mjs +0 -2
- package/dist/esm/api/types/TaskListResponse.d.mts +0 -14
- package/dist/esm/api/types/TaskListResponse.mjs +0 -2
- package/dist/esm/api/types/TaskLogFileResponse.d.mts +0 -7
- package/dist/esm/api/types/TaskLogFileResponse.mjs +0 -2
- package/dist/esm/api/types/TaskNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/TaskNotFoundError.mjs +0 -2
- package/dist/esm/api/types/TaskOutputFileResponse.d.mts +0 -11
- package/dist/esm/api/types/TaskOutputFileResponse.mjs +0 -2
- package/dist/esm/api/types/TaskStatus.d.mts +0 -16
- package/dist/esm/api/types/TaskStatus.mjs +0 -16
- package/dist/esm/api/types/TaskStepView.d.mts +0 -19
- package/dist/esm/api/types/TaskStepView.mjs +0 -2
- package/dist/esm/api/types/TaskUpdateAction.d.mts +0 -12
- package/dist/esm/api/types/TaskUpdateAction.mjs +0 -12
- package/dist/esm/api/types/TaskView.d.mts +0 -37
- package/dist/esm/api/types/TaskView.mjs +0 -2
- package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.d.mts +0 -6
- package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.mjs +0 -2
- package/dist/esm/api/types/UnsupportedContentTypeError.d.mts +0 -6
- package/dist/esm/api/types/UnsupportedContentTypeError.mjs +0 -2
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +0 -22
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +0 -8
- package/dist/esm/api/types/UploadFileRequest.d.mts +0 -30
- package/dist/esm/api/types/UploadFileRequest.mjs +0 -21
- package/dist/esm/api/types/ValidationError.d.mts +0 -11
- package/dist/esm/api/types/ValidationError.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionCreatedResponse.d.mts +0 -12
- package/dist/esm/api/types/WorkflowExecutionCreatedResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionItemView.d.mts +0 -28
- package/dist/esm/api/types/WorkflowExecutionItemView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionListResponse.d.mts +0 -14
- package/dist/esm/api/types/WorkflowExecutionListResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionLogResponse.d.mts +0 -7
- package/dist/esm/api/types/WorkflowExecutionLogResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.d.mts +0 -13
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionMediaView.d.mts +0 -8
- package/dist/esm/api/types/WorkflowExecutionMediaView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +0 -38
- package/dist/esm/api/types/WorkflowExecutionResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +0 -28
- package/dist/esm/api/types/WorkflowExecutionStateView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionStatus.d.mts +0 -18
- package/dist/esm/api/types/WorkflowExecutionStatus.mjs +0 -18
- package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +0 -29
- package/dist/esm/api/types/WorkflowExecutionStepView.mjs +0 -2
- package/dist/esm/api/types/WorkflowGenerateResponse.d.mts +0 -11
- package/dist/esm/api/types/WorkflowGenerateResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +0 -18
- package/dist/esm/api/types/WorkflowGenerationStateView.mjs +0 -2
- package/dist/esm/api/types/WorkflowGenerationStatus.d.mts +0 -8
- package/dist/esm/api/types/WorkflowGenerationStatus.mjs +0 -8
- package/dist/esm/api/types/WorkflowGenerationStepView.d.mts +0 -19
- package/dist/esm/api/types/WorkflowGenerationStepView.mjs +0 -2
- package/dist/esm/api/types/WorkflowItemView.d.mts +0 -19
- package/dist/esm/api/types/WorkflowItemView.mjs +0 -2
- package/dist/esm/api/types/WorkflowListResponse.d.mts +0 -14
- package/dist/esm/api/types/WorkflowListResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowResponse.d.mts +0 -38
- package/dist/esm/api/types/WorkflowResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +0 -15
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +0 -2
- package/dist/esm/api/types/index.d.mts +0 -72
- package/dist/esm/api/types/index.mjs +0 -72
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +0 -13
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +0 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +0 -12
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -19
- package/dist/esm/core/fetcher/Fetcher.d.mts +0 -45
- package/dist/esm/core/fetcher/Fetcher.mjs +0 -311
- package/dist/esm/core/fetcher/Headers.d.mts +0 -2
- package/dist/esm/core/fetcher/Headers.mjs +0 -82
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
- package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
- package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
- package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
- package/dist/esm/core/fetcher/Supplier.mjs +0 -19
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
- package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -42
- package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
- package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
- package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
- package/dist/esm/core/fetcher/getHeader.mjs +0 -8
- package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
- package/dist/esm/core/fetcher/getRequestBody.mjs +0 -24
- package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +0 -52
- package/dist/esm/core/fetcher/index.d.mts +0 -11
- package/dist/esm/core/fetcher/index.mjs +0 -6
- package/dist/esm/core/fetcher/makeRequest.d.mts +0 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -36
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -64
- package/dist/esm/core/fetcher/signals.d.mts +0 -5
- package/dist/esm/core/fetcher/signals.mjs +0 -20
- package/dist/esm/core/headers.d.mts +0 -2
- package/dist/esm/core/headers.mjs +0 -27
- package/dist/esm/core/index.d.mts +0 -4
- package/dist/esm/core/index.mjs +0 -4
- package/dist/esm/core/json.d.mts +0 -15
- package/dist/esm/core/json.mjs +0 -19
- package/dist/esm/core/logging/exports.d.mts +0 -18
- package/dist/esm/core/logging/exports.mjs +0 -9
- package/dist/esm/core/logging/index.d.mts +0 -1
- package/dist/esm/core/logging/index.mjs +0 -1
- package/dist/esm/core/logging/logger.d.mts +0 -126
- package/dist/esm/core/logging/logger.mjs +0 -138
- package/dist/esm/core/runtime/index.d.mts +0 -1
- package/dist/esm/core/runtime/index.mjs +0 -1
- package/dist/esm/core/runtime/runtime.d.mts +0 -9
- package/dist/esm/core/runtime/runtime.mjs +0 -99
- package/dist/esm/core/url/encodePathParam.d.mts +0 -1
- package/dist/esm/core/url/encodePathParam.mjs +0 -18
- package/dist/esm/core/url/index.d.mts +0 -3
- package/dist/esm/core/url/index.mjs +0 -3
- package/dist/esm/core/url/join.d.mts +0 -1
- package/dist/esm/core/url/join.mjs +0 -65
- package/dist/esm/core/url/qs.d.mts +0 -6
- package/dist/esm/core/url/qs.mjs +0 -61
- package/dist/esm/environments.d.mts +0 -4
- package/dist/esm/environments.mjs +0 -4
- package/dist/esm/errors/BrowserUseError.d.mts +0 -12
- package/dist/esm/errors/BrowserUseError.mjs +0 -24
- package/dist/esm/errors/BrowserUseTimeoutError.d.mts +0 -3
- package/dist/esm/errors/BrowserUseTimeoutError.mjs +0 -7
- package/dist/esm/errors/index.d.mts +0 -2
- package/dist/esm/errors/index.mjs +0 -2
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
- package/dist/esm/index.d.mts +0 -7
- package/dist/esm/index.mjs +0 -5
- package/dist/esm/version.d.mts +0 -1
- package/dist/esm/version.mjs +0 -1
- package/dist/esm/wrapper/BrowserUseClient.d.mts +0 -6
- package/dist/esm/wrapper/BrowserUseClient.mjs +0 -8
- package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +0 -15
- package/dist/esm/wrapper/api/BrowserUseTasks.mjs +0 -53
- package/dist/esm/wrapper/lib/parse.d.mts +0 -69
- package/dist/esm/wrapper/lib/parse.mjs +0 -193
- package/dist/esm/wrapper/lib/types.d.mts +0 -74
- package/dist/esm/wrapper/lib/types.mjs +0 -9
- package/dist/esm/wrapper/lib/webhooks.d.mts +0 -92
- package/dist/esm/wrapper/lib/webhooks.mjs +0 -89
- 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
|
-
}
|