browser-use-sdk 2.0.15 → 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/GetSkillMarketplaceSkillsSkillIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.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 -131
- package/dist/cjs/api/resources/tasks/client/Client.js +0 -525
- 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/GetTaskStatusTasksTaskIdStatusGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.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 -6
- 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 -306
- package/dist/cjs/api/resources/workflows/client/Client.js +0 -1283
- 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/WorkflowCreateFromTaskRequest.d.ts +0 -18
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.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 -17
- 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/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/types/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/AppApiV2MarketplaceSkillsViewsParameterSchema.d.ts +0 -11
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.js +0 -3
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.ts +0 -9
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.js +0 -12
- package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.d.ts +0 -11
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.js +0 -3
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.d.ts +0 -10
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.js +0 -13
- 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 -9
- 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/ExecutionMode.d.ts +0 -12
- package/dist/cjs/api/types/ExecutionMode.js +0 -15
- 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/InsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/InsufficientCreditsError.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 -37
- 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/TaskStatusView.d.ts +0 -19
- package/dist/cjs/api/types/TaskStatusView.js +0 -3
- 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 -39
- 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/WorkflowCreateFromTaskResponse.d.ts +0 -11
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.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 -42
- package/dist/cjs/api/types/WorkflowExecutionResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +0 -32
- 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 -24
- 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 -26
- 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 -40
- package/dist/cjs/api/types/WorkflowResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +0 -22
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +0 -11
- package/dist/cjs/api/types/index.d.ts +0 -73
- package/dist/cjs/api/types/index.js +0 -89
- 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/GetSkillMarketplaceSkillsSkillIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.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 -131
- package/dist/esm/api/resources/tasks/client/Client.mjs +0 -488
- 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/GetTaskStatusTasksTaskIdStatusGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.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 -6
- 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 -306
- package/dist/esm/api/resources/workflows/client/Client.mjs +0 -1246
- 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/WorkflowCreateFromTaskRequest.d.mts +0 -18
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.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 -17
- 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/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.mts +0 -2
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/types/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/AppApiV2MarketplaceSkillsViewsParameterSchema.d.mts +0 -11
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.mjs +0 -2
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.mts +0 -9
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.mjs +0 -9
- package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.d.mts +0 -11
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.mjs +0 -2
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.d.mts +0 -10
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.mjs +0 -10
- 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 -9
- 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/ExecutionMode.d.mts +0 -12
- package/dist/esm/api/types/ExecutionMode.mjs +0 -12
- 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/InsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/InsufficientCreditsError.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 -37
- 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/TaskStatusView.d.mts +0 -19
- package/dist/esm/api/types/TaskStatusView.mjs +0 -2
- 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 -39
- 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/WorkflowCreateFromTaskResponse.d.mts +0 -11
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.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 -42
- package/dist/esm/api/types/WorkflowExecutionResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +0 -32
- 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 -24
- 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 -26
- 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 -40
- package/dist/esm/api/types/WorkflowResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +0 -22
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +0 -8
- package/dist/esm/api/types/index.d.mts +0 -73
- package/dist/esm/api/types/index.mjs +0 -73
- 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 -2771
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkRIRVOEIUcjs = require('./chunk-RIRVOEIU.cjs');
|
|
5
|
+
|
|
6
|
+
// src/v2/client.ts
|
|
7
|
+
var _zod = require('zod');
|
|
8
|
+
|
|
9
|
+
// src/v2/resources/billing.ts
|
|
10
|
+
var Billing = class {
|
|
11
|
+
constructor(http) {
|
|
12
|
+
this.http = http;
|
|
13
|
+
}
|
|
14
|
+
/** Get authenticated account billing information including credit balance. */
|
|
15
|
+
account() {
|
|
16
|
+
return this.http.get("/billing/account");
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// src/v2/resources/browsers.ts
|
|
21
|
+
var Browsers = class {
|
|
22
|
+
constructor(http) {
|
|
23
|
+
this.http = http;
|
|
24
|
+
}
|
|
25
|
+
/** Create a new browser session. */
|
|
26
|
+
create(body = {}) {
|
|
27
|
+
return this.http.post("/browsers", body);
|
|
28
|
+
}
|
|
29
|
+
/** List browser sessions with optional filtering. */
|
|
30
|
+
list(params) {
|
|
31
|
+
return this.http.get(
|
|
32
|
+
"/browsers",
|
|
33
|
+
params
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
/** Get detailed browser session information. */
|
|
37
|
+
get(sessionId) {
|
|
38
|
+
return this.http.get(`/browsers/${sessionId}`);
|
|
39
|
+
}
|
|
40
|
+
/** Update a browser session (generic PATCH). */
|
|
41
|
+
update(sessionId, body) {
|
|
42
|
+
return this.http.patch(`/browsers/${sessionId}`, body);
|
|
43
|
+
}
|
|
44
|
+
/** Stop a browser session. */
|
|
45
|
+
stop(sessionId) {
|
|
46
|
+
return this.update(sessionId, { action: "stop" });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
// src/v2/resources/files.ts
|
|
51
|
+
var Files = class {
|
|
52
|
+
constructor(http) {
|
|
53
|
+
this.http = http;
|
|
54
|
+
}
|
|
55
|
+
/** Generate a presigned URL for uploading files to an agent session. */
|
|
56
|
+
sessionUrl(sessionId, body) {
|
|
57
|
+
return this.http.post(
|
|
58
|
+
`/files/sessions/${sessionId}/presigned-url`,
|
|
59
|
+
body
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
/** Generate a presigned URL for uploading files to a browser session. */
|
|
63
|
+
browserUrl(sessionId, body) {
|
|
64
|
+
return this.http.post(
|
|
65
|
+
`/files/browsers/${sessionId}/presigned-url`,
|
|
66
|
+
body
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
/** Get secure download URL for a task output file. */
|
|
70
|
+
taskOutput(taskId, fileId) {
|
|
71
|
+
return this.http.get(
|
|
72
|
+
`/files/tasks/${taskId}/output-files/${fileId}`
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// src/v2/resources/marketplace.ts
|
|
78
|
+
var Marketplace = class {
|
|
79
|
+
constructor(http) {
|
|
80
|
+
this.http = http;
|
|
81
|
+
}
|
|
82
|
+
/** List all public skills in the marketplace. */
|
|
83
|
+
list(params) {
|
|
84
|
+
return this.http.get(
|
|
85
|
+
"/marketplace/skills",
|
|
86
|
+
params
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
/** Get details of a specific marketplace skill by slug. */
|
|
90
|
+
get(skillSlug) {
|
|
91
|
+
return this.http.get(`/marketplace/skills/${skillSlug}`);
|
|
92
|
+
}
|
|
93
|
+
/** Clone a public marketplace skill to your project. */
|
|
94
|
+
clone(skillId) {
|
|
95
|
+
return this.http.post(`/marketplace/skills/${skillId}/clone`);
|
|
96
|
+
}
|
|
97
|
+
/** Execute a marketplace skill. */
|
|
98
|
+
execute(skillId, body) {
|
|
99
|
+
return this.http.post(
|
|
100
|
+
`/marketplace/skills/${skillId}/execute`,
|
|
101
|
+
body
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
// src/v2/resources/profiles.ts
|
|
107
|
+
var Profiles = class {
|
|
108
|
+
constructor(http) {
|
|
109
|
+
this.http = http;
|
|
110
|
+
}
|
|
111
|
+
/** Create a new browser profile. */
|
|
112
|
+
create(body) {
|
|
113
|
+
return this.http.post("/profiles", body);
|
|
114
|
+
}
|
|
115
|
+
/** List profiles with pagination. */
|
|
116
|
+
list(params) {
|
|
117
|
+
return this.http.get("/profiles", params);
|
|
118
|
+
}
|
|
119
|
+
/** Get profile details. */
|
|
120
|
+
get(profileId) {
|
|
121
|
+
return this.http.get(`/profiles/${profileId}`);
|
|
122
|
+
}
|
|
123
|
+
/** Update a browser profile. */
|
|
124
|
+
update(profileId, body) {
|
|
125
|
+
return this.http.patch(`/profiles/${profileId}`, body);
|
|
126
|
+
}
|
|
127
|
+
/** Delete a browser profile. */
|
|
128
|
+
delete(profileId) {
|
|
129
|
+
return this.http.delete(`/profiles/${profileId}`);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// src/v2/resources/sessions.ts
|
|
134
|
+
var Sessions = class {
|
|
135
|
+
constructor(http) {
|
|
136
|
+
this.http = http;
|
|
137
|
+
}
|
|
138
|
+
/** Create a new session. */
|
|
139
|
+
create(body) {
|
|
140
|
+
return this.http.post("/sessions", body);
|
|
141
|
+
}
|
|
142
|
+
/** List sessions with optional filtering. */
|
|
143
|
+
list(params) {
|
|
144
|
+
return this.http.get("/sessions", params);
|
|
145
|
+
}
|
|
146
|
+
/** Get detailed session information. */
|
|
147
|
+
get(sessionId) {
|
|
148
|
+
return this.http.get(`/sessions/${sessionId}`);
|
|
149
|
+
}
|
|
150
|
+
/** Update a session (generic PATCH). */
|
|
151
|
+
update(sessionId, body) {
|
|
152
|
+
return this.http.patch(`/sessions/${sessionId}`, body);
|
|
153
|
+
}
|
|
154
|
+
/** Stop a session and all its running tasks. */
|
|
155
|
+
stop(sessionId) {
|
|
156
|
+
return this.update(sessionId, { action: "stop" });
|
|
157
|
+
}
|
|
158
|
+
/** Delete a session with all its tasks. */
|
|
159
|
+
delete(sessionId) {
|
|
160
|
+
return this.http.delete(`/sessions/${sessionId}`);
|
|
161
|
+
}
|
|
162
|
+
/** Get public share information for a session. */
|
|
163
|
+
getShare(sessionId) {
|
|
164
|
+
return this.http.get(`/sessions/${sessionId}/public-share`);
|
|
165
|
+
}
|
|
166
|
+
/** Create or return existing public share for a session. */
|
|
167
|
+
createShare(sessionId) {
|
|
168
|
+
return this.http.post(`/sessions/${sessionId}/public-share`);
|
|
169
|
+
}
|
|
170
|
+
/** Remove public share for a session. */
|
|
171
|
+
deleteShare(sessionId) {
|
|
172
|
+
return this.http.delete(`/sessions/${sessionId}/public-share`);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
// src/v2/resources/skills.ts
|
|
177
|
+
var Skills = class {
|
|
178
|
+
constructor(http) {
|
|
179
|
+
this.http = http;
|
|
180
|
+
}
|
|
181
|
+
/** Create a new skill via automated generation. */
|
|
182
|
+
create(body) {
|
|
183
|
+
return this.http.post("/skills", body);
|
|
184
|
+
}
|
|
185
|
+
/** List all skills owned by the project. */
|
|
186
|
+
list(params) {
|
|
187
|
+
return this.http.get("/skills", params);
|
|
188
|
+
}
|
|
189
|
+
/** Get details of a specific skill. */
|
|
190
|
+
get(skillId) {
|
|
191
|
+
return this.http.get(`/skills/${skillId}`);
|
|
192
|
+
}
|
|
193
|
+
/** Delete a skill. */
|
|
194
|
+
delete(skillId) {
|
|
195
|
+
return this.http.delete(`/skills/${skillId}`);
|
|
196
|
+
}
|
|
197
|
+
/** Update skill metadata. */
|
|
198
|
+
update(skillId, body) {
|
|
199
|
+
return this.http.patch(`/skills/${skillId}`, body);
|
|
200
|
+
}
|
|
201
|
+
/** Cancel the current in-progress generation for a skill. */
|
|
202
|
+
cancel(skillId) {
|
|
203
|
+
return this.http.post(`/skills/${skillId}/cancel`);
|
|
204
|
+
}
|
|
205
|
+
/** Execute a skill with the provided parameters. */
|
|
206
|
+
execute(skillId, body) {
|
|
207
|
+
return this.http.post(`/skills/${skillId}/execute`, body);
|
|
208
|
+
}
|
|
209
|
+
/** Refine a skill based on feedback. */
|
|
210
|
+
refine(skillId, body) {
|
|
211
|
+
return this.http.post(`/skills/${skillId}/refine`, body);
|
|
212
|
+
}
|
|
213
|
+
/** Rollback to the previous version. */
|
|
214
|
+
rollback(skillId) {
|
|
215
|
+
return this.http.post(`/skills/${skillId}/rollback`);
|
|
216
|
+
}
|
|
217
|
+
/** List executions for a specific skill. */
|
|
218
|
+
executions(skillId, params) {
|
|
219
|
+
return this.http.get(
|
|
220
|
+
`/skills/${skillId}/executions`,
|
|
221
|
+
params
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
/** Get presigned URL for downloading skill execution output. */
|
|
225
|
+
executionOutput(skillId, executionId) {
|
|
226
|
+
return this.http.get(
|
|
227
|
+
`/skills/${skillId}/executions/${executionId}/output`
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
// src/v2/helpers.ts
|
|
233
|
+
var TERMINAL_STATUSES = /* @__PURE__ */ new Set(["finished", "stopped"]);
|
|
234
|
+
var TaskRun = (_class = class {
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
__init() {this._taskId = null}
|
|
241
|
+
__init2() {this._result = null}
|
|
242
|
+
constructor(createPromise, tasks, schema, options) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);
|
|
243
|
+
this._createPromise = createPromise;
|
|
244
|
+
this._tasks = tasks;
|
|
245
|
+
this._schema = schema;
|
|
246
|
+
this._timeout = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _ => _.timeout]), () => ( 3e5));
|
|
247
|
+
this._interval = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _2 => _2.interval]), () => ( 2e3));
|
|
248
|
+
}
|
|
249
|
+
/** Task ID (available after creation resolves). */
|
|
250
|
+
get taskId() {
|
|
251
|
+
return this._taskId;
|
|
252
|
+
}
|
|
253
|
+
/** Full task result (available after awaiting or iterating to completion). */
|
|
254
|
+
get result() {
|
|
255
|
+
return this._result;
|
|
256
|
+
}
|
|
257
|
+
/** Enable `await client.run(...)` — polls status endpoint, returns TaskResult. */
|
|
258
|
+
then(onFulfilled, onRejected) {
|
|
259
|
+
return this._waitForOutput().then(onFulfilled, onRejected);
|
|
260
|
+
}
|
|
261
|
+
/** Enable `for await (const step of client.run(...))` — polls full task, yields new steps. */
|
|
262
|
+
async *[Symbol.asyncIterator]() {
|
|
263
|
+
const taskId = await this._ensureTaskId();
|
|
264
|
+
let seen = 0;
|
|
265
|
+
const deadline = Date.now() + this._timeout;
|
|
266
|
+
while (Date.now() < deadline) {
|
|
267
|
+
const task = await this._tasks.get(taskId);
|
|
268
|
+
for (let i = seen; i < task.steps.length; i++) {
|
|
269
|
+
yield task.steps[i];
|
|
270
|
+
}
|
|
271
|
+
seen = task.steps.length;
|
|
272
|
+
if (TERMINAL_STATUSES.has(task.status)) {
|
|
273
|
+
this._result = this._buildResult(task);
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
const remaining = deadline - Date.now();
|
|
277
|
+
if (remaining <= 0) break;
|
|
278
|
+
await new Promise((r) => setTimeout(r, Math.min(this._interval, remaining)));
|
|
279
|
+
}
|
|
280
|
+
throw new Error(`Task ${taskId} did not complete within ${this._timeout}ms`);
|
|
281
|
+
}
|
|
282
|
+
async _ensureTaskId() {
|
|
283
|
+
if (this._taskId) return this._taskId;
|
|
284
|
+
const created = await this._createPromise;
|
|
285
|
+
this._taskId = created.id;
|
|
286
|
+
return this._taskId;
|
|
287
|
+
}
|
|
288
|
+
/** Poll lightweight status endpoint until terminal, return TaskResult. */
|
|
289
|
+
async _waitForOutput() {
|
|
290
|
+
const taskId = await this._ensureTaskId();
|
|
291
|
+
const deadline = Date.now() + this._timeout;
|
|
292
|
+
while (Date.now() < deadline) {
|
|
293
|
+
const status = await this._tasks.status(taskId);
|
|
294
|
+
if (TERMINAL_STATUSES.has(status.status)) {
|
|
295
|
+
const task = await this._tasks.get(taskId);
|
|
296
|
+
this._result = this._buildResult(task);
|
|
297
|
+
return this._result;
|
|
298
|
+
}
|
|
299
|
+
const remaining = deadline - Date.now();
|
|
300
|
+
if (remaining <= 0) break;
|
|
301
|
+
await new Promise((r) => setTimeout(r, Math.min(this._interval, remaining)));
|
|
302
|
+
}
|
|
303
|
+
throw new Error(`Task ${taskId} did not complete within ${this._timeout}ms`);
|
|
304
|
+
}
|
|
305
|
+
_buildResult(task) {
|
|
306
|
+
const output = this._parseOutput(task.output);
|
|
307
|
+
return { ...task, output };
|
|
308
|
+
}
|
|
309
|
+
_parseOutput(output) {
|
|
310
|
+
if (output == null) return null;
|
|
311
|
+
if (!this._schema) return output;
|
|
312
|
+
return this._schema.parse(JSON.parse(output));
|
|
313
|
+
}
|
|
314
|
+
}, _class);
|
|
315
|
+
|
|
316
|
+
// src/v2/resources/tasks.ts
|
|
317
|
+
var Tasks = class {
|
|
318
|
+
constructor(http) {
|
|
319
|
+
this.http = http;
|
|
320
|
+
}
|
|
321
|
+
/** Create and start a new AI agent task. */
|
|
322
|
+
create(body) {
|
|
323
|
+
return this.http.post("/tasks", body);
|
|
324
|
+
}
|
|
325
|
+
/** List tasks with optional filtering. */
|
|
326
|
+
list(params) {
|
|
327
|
+
return this.http.get("/tasks", params);
|
|
328
|
+
}
|
|
329
|
+
/** Get detailed task information. */
|
|
330
|
+
get(taskId) {
|
|
331
|
+
return this.http.get(`/tasks/${taskId}`);
|
|
332
|
+
}
|
|
333
|
+
/** Update a task (generic PATCH). */
|
|
334
|
+
update(taskId, body) {
|
|
335
|
+
return this.http.patch(`/tasks/${taskId}`, body);
|
|
336
|
+
}
|
|
337
|
+
/** Stop a running task. */
|
|
338
|
+
stop(taskId) {
|
|
339
|
+
return this.update(taskId, { action: "stop" });
|
|
340
|
+
}
|
|
341
|
+
/** Stop a running task and its associated browser session. */
|
|
342
|
+
stopTaskAndSession(taskId) {
|
|
343
|
+
return this.update(taskId, { action: "stop_task_and_session" });
|
|
344
|
+
}
|
|
345
|
+
/** Get lightweight task status (optimized for polling). */
|
|
346
|
+
status(taskId) {
|
|
347
|
+
return this.http.get(`/tasks/${taskId}/status`);
|
|
348
|
+
}
|
|
349
|
+
/** Get secure download URL for task execution logs. */
|
|
350
|
+
logs(taskId) {
|
|
351
|
+
return this.http.get(`/tasks/${taskId}/logs`);
|
|
352
|
+
}
|
|
353
|
+
/** Poll until a task reaches a terminal status, then return the full TaskView. */
|
|
354
|
+
async wait(taskId, opts) {
|
|
355
|
+
const timeout = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _3 => _3.timeout]), () => ( 3e5));
|
|
356
|
+
const interval = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _4 => _4.interval]), () => ( 2e3));
|
|
357
|
+
const deadline = Date.now() + timeout;
|
|
358
|
+
while (Date.now() < deadline) {
|
|
359
|
+
const status = await this.status(taskId);
|
|
360
|
+
if (TERMINAL_STATUSES.has(status.status)) {
|
|
361
|
+
return this.get(taskId);
|
|
362
|
+
}
|
|
363
|
+
const remaining = deadline - Date.now();
|
|
364
|
+
if (remaining <= 0) break;
|
|
365
|
+
await new Promise((r) => setTimeout(r, Math.min(interval, remaining)));
|
|
366
|
+
}
|
|
367
|
+
throw new Error(`Task ${taskId} did not complete within ${timeout}ms`);
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
// src/v2/client.ts
|
|
372
|
+
var DEFAULT_BASE_URL = "https://api.browser-use.com/api/v2";
|
|
373
|
+
var BrowserUse = class {
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
constructor(options = {}) {
|
|
384
|
+
const apiKey = _nullishCoalesce(_nullishCoalesce(options.apiKey, () => ( process.env.BROWSER_USE_API_KEY)), () => ( ""));
|
|
385
|
+
if (!apiKey) {
|
|
386
|
+
throw new Error(
|
|
387
|
+
"No API key provided. Pass apiKey or set BROWSER_USE_API_KEY."
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
this.http = new (0, _chunkRIRVOEIUcjs.HttpClient)({
|
|
391
|
+
apiKey,
|
|
392
|
+
baseUrl: _nullishCoalesce(options.baseUrl, () => ( DEFAULT_BASE_URL)),
|
|
393
|
+
maxRetries: options.maxRetries,
|
|
394
|
+
timeout: options.timeout
|
|
395
|
+
});
|
|
396
|
+
this.billing = new Billing(this.http);
|
|
397
|
+
this.tasks = new Tasks(this.http);
|
|
398
|
+
this.sessions = new Sessions(this.http);
|
|
399
|
+
this.files = new Files(this.http);
|
|
400
|
+
this.profiles = new Profiles(this.http);
|
|
401
|
+
this.browsers = new Browsers(this.http);
|
|
402
|
+
this.skills = new Skills(this.http);
|
|
403
|
+
this.marketplace = new Marketplace(this.http);
|
|
404
|
+
}
|
|
405
|
+
run(task, options) {
|
|
406
|
+
const { schema, timeout, interval, ...rest } = _nullishCoalesce(options, () => ( {}));
|
|
407
|
+
const body = { task, ...rest };
|
|
408
|
+
if (schema) {
|
|
409
|
+
body.structuredOutput = JSON.stringify(_zod.z.toJSONSchema(schema));
|
|
410
|
+
}
|
|
411
|
+
const promise = this.tasks.create(body);
|
|
412
|
+
return new TaskRun(promise, this.tasks, schema, { timeout, interval });
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
exports.Billing = Billing; exports.BrowserUse = BrowserUse; exports.BrowserUseError = _chunkRIRVOEIUcjs.BrowserUseError; exports.Browsers = Browsers; exports.Files = Files; exports.Marketplace = Marketplace; exports.Profiles = Profiles; exports.Sessions = Sessions; exports.Skills = Skills; exports.TaskRun = TaskRun; exports.Tasks = Tasks;
|
|
428
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/Users/greg/Documents/browser-use/core/sdk/browser-use-node/dist/index.cjs","../src/v2/client.ts","../src/v2/resources/billing.ts","../src/v2/resources/browsers.ts","../src/v2/resources/files.ts","../src/v2/resources/marketplace.ts","../src/v2/resources/profiles.ts","../src/v2/resources/sessions.ts","../src/v2/resources/skills.ts","../src/v2/helpers.ts","../src/v2/resources/tasks.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,wDAA6B;AAC7B;AACA;ACLA,0BAAkB;ADOlB;AACA;AEHO,IAAM,QAAA,EAAN,MAAc;AAAA,EACnB,WAAA,CAA6B,IAAA,EAAkB;AAAlB,IAAA,IAAA,CAAA,KAAA,EAAA,IAAA;AAAA,EAAmB;AAAA;AAAA,EAGhD,OAAA,CAAA,EAAgC;AAC9B,IAAA,OAAO,IAAA,CAAK,IAAA,CAAK,GAAA,CAAiB,kBAAkB,CAAA;AAAA,EACtD;AACF,CAAA;AFMA;AACA;AGHO,IAAM,SAAA,EAAN,MAAe;AAAA,EACpB,WAAA,CAA6B,IAAA,EAAkB;AAAlB,IAAA,IAAA,CAAA,KAAA,EAAA,IAAA;AAAA,EAAmB;AAAA;AAAA,EAGhD,MAAA,CAAO,KAAA,EAA0B,CAAC,CAAA,EAAoC;AACpE,IAAA,OAAO,IAAA,CAAK,IAAA,CAAK,IAAA,CAA6B,WAAA,EAAa,IAAI,CAAA;AAAA,EACjE;AAAA;AAAA,EAGA,IAAA,CAAK,MAAA,EAAiE;AACpE,IAAA,OAAO,IAAA,CAAK,IAAA,CAAK,GAAA;AAAA,MACf,WAAA;AAAA,MACA;AAAA,IACF,CAAA;AAAA,EACF;AAAA;AAAA,EAGA,GAAA,CAAI,SAAA,EAAgD;AAClD,IAAA,OAAO,IAAA,CAAK,IAAA,CAAK,GAAA,CAAwB,CAAA,UAAA,EAAa,SAAS,CAAA,CAAA;AACjE,EAAA;AAAA;AAG0F,EAAA;AAChC,IAAA;AAC1D,EAAA;AAAA;AAGqD,EAAA;AACX,IAAA;AAC1C,EAAA;AACF;AHEgD;AACA;AI1C7B;AAC8B,EAAA;AAAlB,IAAA;AAAmB,EAAA;AAAA;AAGgD,EAAA;AAC7E,IAAA;AACa,MAAA;AAC5B,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAGgG,EAAA;AAC7E,IAAA;AACa,MAAA;AAC5B,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAG4E,EAAA;AACzD,IAAA;AACwB,MAAA;AACzC,IAAA;AACF,EAAA;AACF;AJ2CgD;AACA;AK1DvB;AACwB,EAAA;AAAlB,IAAA;AAAmB,EAAA;AAAA;AAG4B,EAAA;AACzD,IAAA;AACf,MAAA;AACA,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAG0D,EAAA;AACc,IAAA;AACxE,EAAA;AAAA;AAG+C,EAAA;AACR,IAAA;AACvC,EAAA;AAAA;AAGmF,EAAA;AAChE,IAAA;AACe,MAAA;AAC9B,MAAA;AACF,IAAA;AACF,EAAA;AACF;AL0DgD;AACA;AM5F1B;AAC2B,EAAA;AAAlB,IAAA;AAAmB,EAAA;AAAA;AAGU,EAAA;AACJ,IAAA;AACtD,EAAA;AAAA;AAG+D,EAAA;AAC2B,IAAA;AAC1F,EAAA;AAAA;AAG6C,EAAA;AACa,IAAA;AAC1D,EAAA;AAAA;AAG4E,EAAA;AACzB,IAAA;AACnD,EAAA;AAAA;AAGyC,EAAA;AACI,IAAA;AAC7C,EAAA;AACF;AN2FgD;AACA;AOnH1B;AAC2B,EAAA;AAAlB,IAAA;AAAmB,EAAA;AAAA;AAGW,EAAA;AACD,IAAA;AAC1D,EAAA;AAAA;AAG+D,EAAA;AAC2B,IAAA;AAC1F,EAAA;AAAA;AAG6C,EAAA;AACa,IAAA;AAC1D,EAAA;AAAA;AAG4E,EAAA;AACzB,IAAA;AACnD,EAAA;AAAA;AAG8C,EAAA;AACJ,IAAA;AAC1C,EAAA;AAAA;AAGyC,EAAA;AACI,IAAA;AAC7C,EAAA;AAAA;AAGgD,EAAA;AACQ,IAAA;AACxD,EAAA;AAAA;AAGmD,EAAA;AACM,IAAA;AACzD,EAAA;AAAA;AAG8C,EAAA;AACD,IAAA;AAC7C,EAAA;AACF;AP8GgD;AACA;AQhJ5B;AAC6B,EAAA;AAAlB,IAAA;AAAmB,EAAA;AAAA;AAGe,EAAA;AACH,IAAA;AAC5D,EAAA;AAAA;AAG2D,EAAA;AAC2B,IAAA;AACtF,EAAA;AAAA;AAG6C,EAAA;AACa,IAAA;AAC1D,EAAA;AAAA;AAGuC,EAAA;AACa,IAAA;AACpD,EAAA;AAAA;AAG0E,EAAA;AAChB,IAAA;AAC1D,EAAA;AAAA;AAGgD,EAAA;AACS,IAAA;AACzD,EAAA;AAAA;AAGmF,EAAA;AACnB,IAAA;AAChE,EAAA;AAAA;AAGgF,EAAA;AACjB,IAAA;AAC/D,EAAA;AAAA;AAGkD,EAAA;AACO,IAAA;AACzD,EAAA;AAAA;AAGoG,EAAA;AACjF,IAAA;AACG,MAAA;AAClB,MAAA;AACF,IAAA;AACF,EAAA;AAAA;AAG6F,EAAA;AAC1E,IAAA;AACkB,MAAA;AACnC,IAAA;AACF,EAAA;AACF;ARyIgD;AACA;AS/NP;AAkB8B;AACpD,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AAEgB,iBAAA;AACO,kBAAA;AAMtC,EAAA;AAEsB,IAAA;AACR,IAAA;AACC,IAAA;AACqB,IAAA;AACE,IAAA;AACxC,EAAA;AAAA;AAG4B,EAAA;AACd,IAAA;AACd,EAAA;AAAA;AAGmC,EAAA;AACrB,IAAA;AACd,EAAA;AAAA;AAMoB,EAAA;AACgB,IAAA;AACpC,EAAA;AAAA;AAG8D,EAAA;AACpB,IAAA;AAC7B,IAAA;AACwB,IAAA;AAEL,IAAA;AACa,MAAA;AAEC,MAAA;AACtB,QAAA;AACpB,MAAA;AACkB,MAAA;AAEsB,MAAA;AACD,QAAA;AACrC,QAAA;AACF,MAAA;AAEsC,MAAA;AAClB,MAAA;AACmB,MAAA;AACzC,IAAA;AAE8B,IAAA;AAChC,EAAA;AAE+C,EAAA;AACf,IAAA;AACH,IAAA;AACJ,IAAA;AACX,IAAA;AACd,EAAA;AAAA;AAGuD,EAAA;AACb,IAAA;AACL,IAAA;AAEL,IAAA;AACY,MAAA;AACE,MAAA;AACL,QAAA;AACE,QAAA;AACzB,QAAA;AACd,MAAA;AACsC,MAAA;AAClB,MAAA;AACmB,MAAA;AACzC,IAAA;AAE8B,IAAA;AAChC,EAAA;AAEoD,EAAA;AACN,IAAA;AACnB,IAAA;AAC3B,EAAA;AAE2D,EAAA;AAC9B,IAAA;AACD,IAAA;AACkB,IAAA;AAC9C,EAAA;AACF;ATuLgD;AACA;AUpS7B;AAC8B,EAAA;AAAlB,IAAA;AAAmB,EAAA;AAAA;AAGW,EAAA;AACA,IAAA;AAC3D,EAAA;AAAA;AAGyD,EAAA;AAC2B,IAAA;AACpF,EAAA;AAAA;AAGuC,EAAA;AACY,IAAA;AACnD,EAAA;AAAA;AAGmE,EAAA;AACZ,IAAA;AACvD,EAAA;AAAA;AAGwC,EAAA;AACM,IAAA;AAC9C,EAAA;AAAA;AAGsD,EAAA;AACf,IAAA;AACvC,EAAA;AAAA;AAGgD,EAAA;AACO,IAAA;AACvD,EAAA;AAAA;AAGmD,EAAA;AACgB,IAAA;AACnE,EAAA;AAAA;AAG8F,EAAA;AAC3D,IAAA;AACE,IAAA;AACL,IAAA;AAEA,IAAA;AACW,MAAA;AACG,MAAA;AAClB,QAAA;AACxB,MAAA;AACsC,MAAA;AAClB,MAAA;AACmB,MAAA;AACzC,IAAA;AAE8B,IAAA;AAChC,EAAA;AACF;AV6RgD;AACA;ACpWvB;AAYD;AACb,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AAEQ,EAAA;AAE4B,EAAA;AAEf,IAAA;AACf,IAAA;AACD,MAAA;AACR,QAAA;AACF,MAAA;AACF,IAAA;AAC2B,IAAA;AACzB,MAAA;AAC4B,MAAA;AACR,MAAA;AACH,MAAA;AAClB,IAAA;AAEmC,IAAA;AACJ,IAAA;AACM,IAAA;AACN,IAAA;AACM,IAAA;AACA,IAAA;AACJ,IAAA;AACU,IAAA;AAC9C,EAAA;AAoB0D,EAAA;AACb,IAAA;AACE,IAAA;AACjC,IAAA;AAC+B,MAAA;AAC3C,IAAA;AACsC,IAAA;AACE,IAAA;AAC1C,EAAA;AACF;ADoUgD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/Users/greg/Documents/browser-use/core/sdk/browser-use-node/dist/index.cjs","sourcesContent":[null,"import { z } from \"zod\";\nimport { HttpClient } from \"../core/http.js\";\nimport { Billing } from \"./resources/billing.js\";\nimport { Browsers } from \"./resources/browsers.js\";\nimport { Files } from \"./resources/files.js\";\nimport { Marketplace } from \"./resources/marketplace.js\";\nimport { Profiles } from \"./resources/profiles.js\";\nimport { Sessions } from \"./resources/sessions.js\";\nimport { Skills } from \"./resources/skills.js\";\nimport { Tasks } from \"./resources/tasks.js\";\nimport { TaskRun } from \"./helpers.js\";\nimport type { CreateTaskBody } from \"./resources/tasks.js\";\nimport type { RunOptions } from \"./helpers.js\";\n\nconst DEFAULT_BASE_URL = \"https://api.browser-use.com/api/v2\";\n\nexport interface BrowserUseOptions {\n apiKey?: string;\n baseUrl?: string;\n maxRetries?: number;\n timeout?: number;\n}\n\nexport type RunTaskOptions = Partial<Omit<CreateTaskBody, \"task\">> &\n RunOptions & { schema?: z.ZodType };\n\nexport class BrowserUse {\n readonly billing: Billing;\n readonly tasks: Tasks;\n readonly sessions: Sessions;\n readonly files: Files;\n readonly profiles: Profiles;\n readonly browsers: Browsers;\n readonly skills: Skills;\n readonly marketplace: Marketplace;\n\n private readonly http: HttpClient;\n\n constructor(options: BrowserUseOptions = {}) {\n const apiKey =\n options.apiKey ?? process.env.BROWSER_USE_API_KEY ?? \"\";\n if (!apiKey) {\n throw new Error(\n \"No API key provided. Pass apiKey or set BROWSER_USE_API_KEY.\",\n );\n }\n this.http = new HttpClient({\n apiKey,\n baseUrl: options.baseUrl ?? DEFAULT_BASE_URL,\n maxRetries: options.maxRetries,\n timeout: options.timeout,\n });\n\n this.billing = new Billing(this.http);\n this.tasks = new Tasks(this.http);\n this.sessions = new Sessions(this.http);\n this.files = new Files(this.http);\n this.profiles = new Profiles(this.http);\n this.browsers = new Browsers(this.http);\n this.skills = new Skills(this.http);\n this.marketplace = new Marketplace(this.http);\n }\n\n /**\n * Run an AI agent task.\n *\n * ```ts\n * // Simple — just get the output\n * const output = await client.run(\"Find the top HN post\");\n *\n * // Structured output (Zod)\n * const data = await client.run(\"Find product info\", { schema: ProductSchema });\n *\n * // Step-by-step progress\n * for await (const step of client.run(\"Go to google.com\")) {\n * console.log(`[${step.number}] ${step.nextGoal}`);\n * }\n * ```\n */\n run(task: string, options?: Omit<RunTaskOptions, \"schema\">): TaskRun<string>;\n run<T extends z.ZodType>(task: string, options: RunTaskOptions & { schema: T }): TaskRun<z.output<T>>;\n run(task: string, options?: RunTaskOptions): TaskRun<any> {\n const { schema, timeout, interval, ...rest } = options ?? {};\n const body: CreateTaskBody = { task, ...rest };\n if (schema) {\n body.structuredOutput = JSON.stringify(z.toJSONSchema(schema));\n }\n const promise = this.tasks.create(body);\n return new TaskRun(promise, this.tasks, schema, { timeout, interval });\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\ntype AccountView = components[\"schemas\"][\"AccountView\"];\n\nexport class Billing {\n constructor(private readonly http: HttpClient) {}\n\n /** Get authenticated account billing information including credit balance. */\n account(): Promise<AccountView> {\n return this.http.get<AccountView>(\"/billing/account\");\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\n/** All fields are optional (server applies defaults); body itself is required by the spec. */\nexport type CreateBrowserBody = Partial<components[\"schemas\"][\"CreateBrowserSessionRequest\"]>;\ntype BrowserSessionItemView = components[\"schemas\"][\"BrowserSessionItemView\"];\ntype BrowserSessionListResponse = components[\"schemas\"][\"BrowserSessionListResponse\"];\ntype BrowserSessionView = components[\"schemas\"][\"BrowserSessionView\"];\ntype UpdateBrowserSessionRequest = components[\"schemas\"][\"UpdateBrowserSessionRequest\"];\n\nexport interface BrowserListParams {\n pageSize?: number;\n pageNumber?: number;\n filterBy?: string;\n}\n\nexport class Browsers {\n constructor(private readonly http: HttpClient) {}\n\n /** Create a new browser session. */\n create(body: CreateBrowserBody = {}): Promise<BrowserSessionItemView> {\n return this.http.post<BrowserSessionItemView>(\"/browsers\", body);\n }\n\n /** List browser sessions with optional filtering. */\n list(params?: BrowserListParams): Promise<BrowserSessionListResponse> {\n return this.http.get<BrowserSessionListResponse>(\n \"/browsers\",\n params as Record<string, unknown>,\n );\n }\n\n /** Get detailed browser session information. */\n get(sessionId: string): Promise<BrowserSessionView> {\n return this.http.get<BrowserSessionView>(`/browsers/${sessionId}`);\n }\n\n /** Update a browser session (generic PATCH). */\n update(sessionId: string, body: UpdateBrowserSessionRequest): Promise<BrowserSessionView> {\n return this.http.patch<BrowserSessionView>(`/browsers/${sessionId}`, body);\n }\n\n /** Stop a browser session. */\n stop(sessionId: string): Promise<BrowserSessionView> {\n return this.update(sessionId, { action: \"stop\" });\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\ntype UploadFileRequest = components[\"schemas\"][\"UploadFileRequest\"];\ntype UploadFilePresignedUrlResponse = components[\"schemas\"][\"UploadFilePresignedUrlResponse\"];\ntype TaskOutputFileResponse = components[\"schemas\"][\"TaskOutputFileResponse\"];\n\nexport class Files {\n constructor(private readonly http: HttpClient) {}\n\n /** Generate a presigned URL for uploading files to an agent session. */\n sessionUrl(sessionId: string, body: UploadFileRequest): Promise<UploadFilePresignedUrlResponse> {\n return this.http.post<UploadFilePresignedUrlResponse>(\n `/files/sessions/${sessionId}/presigned-url`,\n body,\n );\n }\n\n /** Generate a presigned URL for uploading files to a browser session. */\n browserUrl(sessionId: string, body: UploadFileRequest): Promise<UploadFilePresignedUrlResponse> {\n return this.http.post<UploadFilePresignedUrlResponse>(\n `/files/browsers/${sessionId}/presigned-url`,\n body,\n );\n }\n\n /** Get secure download URL for a task output file. */\n taskOutput(taskId: string, fileId: string): Promise<TaskOutputFileResponse> {\n return this.http.get<TaskOutputFileResponse>(\n `/files/tasks/${taskId}/output-files/${fileId}`,\n );\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\ntype ExecuteSkillRequest = components[\"schemas\"][\"ExecuteSkillRequest\"];\ntype ExecuteSkillResponse = components[\"schemas\"][\"ExecuteSkillResponse\"];\ntype MarketplaceSkillListResponse = components[\"schemas\"][\"MarketplaceSkillListResponse\"];\ntype MarketplaceSkillResponse = components[\"schemas\"][\"MarketplaceSkillResponse\"];\ntype SkillResponse = components[\"schemas\"][\"SkillResponse\"];\n\nexport interface MarketplaceListParams {\n pageSize?: number;\n pageNumber?: number;\n query?: string;\n category?: string;\n fromDate?: string;\n toDate?: string;\n}\n\nexport class Marketplace {\n constructor(private readonly http: HttpClient) {}\n\n /** List all public skills in the marketplace. */\n list(params?: MarketplaceListParams): Promise<MarketplaceSkillListResponse> {\n return this.http.get<MarketplaceSkillListResponse>(\n \"/marketplace/skills\",\n params as Record<string, unknown>,\n );\n }\n\n /** Get details of a specific marketplace skill by slug. */\n get(skillSlug: string): Promise<MarketplaceSkillResponse> {\n return this.http.get<MarketplaceSkillResponse>(`/marketplace/skills/${skillSlug}`);\n }\n\n /** Clone a public marketplace skill to your project. */\n clone(skillId: string): Promise<SkillResponse> {\n return this.http.post<SkillResponse>(`/marketplace/skills/${skillId}/clone`);\n }\n\n /** Execute a marketplace skill. */\n execute(skillId: string, body: ExecuteSkillRequest): Promise<ExecuteSkillResponse> {\n return this.http.post<ExecuteSkillResponse>(\n `/marketplace/skills/${skillId}/execute`,\n body,\n );\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\ntype ProfileCreateRequest = components[\"schemas\"][\"ProfileCreateRequest\"];\ntype ProfileListResponse = components[\"schemas\"][\"ProfileListResponse\"];\ntype ProfileUpdateRequest = components[\"schemas\"][\"ProfileUpdateRequest\"];\ntype ProfileView = components[\"schemas\"][\"ProfileView\"];\n\nexport interface ProfileListParams {\n pageSize?: number;\n pageNumber?: number;\n}\n\nexport class Profiles {\n constructor(private readonly http: HttpClient) {}\n\n /** Create a new browser profile. */\n create(body?: ProfileCreateRequest): Promise<ProfileView> {\n return this.http.post<ProfileView>(\"/profiles\", body);\n }\n\n /** List profiles with pagination. */\n list(params?: ProfileListParams): Promise<ProfileListResponse> {\n return this.http.get<ProfileListResponse>(\"/profiles\", params as Record<string, unknown>);\n }\n\n /** Get profile details. */\n get(profileId: string): Promise<ProfileView> {\n return this.http.get<ProfileView>(`/profiles/${profileId}`);\n }\n\n /** Update a browser profile. */\n update(profileId: string, body: ProfileUpdateRequest): Promise<ProfileView> {\n return this.http.patch<ProfileView>(`/profiles/${profileId}`, body);\n }\n\n /** Delete a browser profile. */\n delete(profileId: string): Promise<void> {\n return this.http.delete<void>(`/profiles/${profileId}`);\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\n/** User-facing body: all fields are optional (API has defaults). */\ntype CreateSessionBody = Partial<components[\"schemas\"][\"CreateSessionRequest\"]>;\ntype SessionItemView = components[\"schemas\"][\"SessionItemView\"];\ntype SessionListResponse = components[\"schemas\"][\"SessionListResponse\"];\ntype SessionView = components[\"schemas\"][\"SessionView\"];\ntype ShareView = components[\"schemas\"][\"ShareView\"];\ntype UpdateSessionRequest = components[\"schemas\"][\"UpdateSessionRequest\"];\n\nexport interface SessionListParams {\n pageSize?: number;\n pageNumber?: number;\n filterBy?: string;\n}\n\nexport class Sessions {\n constructor(private readonly http: HttpClient) {}\n\n /** Create a new session. */\n create(body?: CreateSessionBody): Promise<SessionItemView> {\n return this.http.post<SessionItemView>(\"/sessions\", body);\n }\n\n /** List sessions with optional filtering. */\n list(params?: SessionListParams): Promise<SessionListResponse> {\n return this.http.get<SessionListResponse>(\"/sessions\", params as Record<string, unknown>);\n }\n\n /** Get detailed session information. */\n get(sessionId: string): Promise<SessionView> {\n return this.http.get<SessionView>(`/sessions/${sessionId}`);\n }\n\n /** Update a session (generic PATCH). */\n update(sessionId: string, body: UpdateSessionRequest): Promise<SessionView> {\n return this.http.patch<SessionView>(`/sessions/${sessionId}`, body);\n }\n\n /** Stop a session and all its running tasks. */\n stop(sessionId: string): Promise<SessionView> {\n return this.update(sessionId, { action: \"stop\" });\n }\n\n /** Delete a session with all its tasks. */\n delete(sessionId: string): Promise<void> {\n return this.http.delete<void>(`/sessions/${sessionId}`);\n }\n\n /** Get public share information for a session. */\n getShare(sessionId: string): Promise<ShareView> {\n return this.http.get<ShareView>(`/sessions/${sessionId}/public-share`);\n }\n\n /** Create or return existing public share for a session. */\n createShare(sessionId: string): Promise<ShareView> {\n return this.http.post<ShareView>(`/sessions/${sessionId}/public-share`);\n }\n\n /** Remove public share for a session. */\n deleteShare(sessionId: string): Promise<void> {\n return this.http.delete<void>(`/sessions/${sessionId}/public-share`);\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\n\ntype CreateSkillRequest = components[\"schemas\"][\"CreateSkillRequest\"];\ntype CreateSkillResponse = components[\"schemas\"][\"CreateSkillResponse\"];\ntype ExecuteSkillRequest = components[\"schemas\"][\"ExecuteSkillRequest\"];\ntype ExecuteSkillResponse = components[\"schemas\"][\"ExecuteSkillResponse\"];\ntype RefineSkillRequest = components[\"schemas\"][\"RefineSkillRequest\"];\ntype RefineSkillResponse = components[\"schemas\"][\"RefineSkillResponse\"];\ntype SkillExecutionListResponse = components[\"schemas\"][\"SkillExecutionListResponse\"];\ntype SkillExecutionOutputResponse = components[\"schemas\"][\"SkillExecutionOutputResponse\"];\ntype SkillListResponse = components[\"schemas\"][\"SkillListResponse\"];\ntype SkillResponse = components[\"schemas\"][\"SkillResponse\"];\ntype UpdateSkillRequest = components[\"schemas\"][\"UpdateSkillRequest\"];\n\nexport interface SkillListParams {\n pageSize?: number;\n pageNumber?: number;\n isPublic?: boolean;\n isEnabled?: boolean;\n category?: string;\n query?: string;\n fromDate?: string;\n toDate?: string;\n}\n\nexport interface SkillExecutionListParams {\n pageSize?: number;\n pageNumber?: number;\n}\n\nexport class Skills {\n constructor(private readonly http: HttpClient) {}\n\n /** Create a new skill via automated generation. */\n create(body: CreateSkillRequest): Promise<CreateSkillResponse> {\n return this.http.post<CreateSkillResponse>(\"/skills\", body);\n }\n\n /** List all skills owned by the project. */\n list(params?: SkillListParams): Promise<SkillListResponse> {\n return this.http.get<SkillListResponse>(\"/skills\", params as Record<string, unknown>);\n }\n\n /** Get details of a specific skill. */\n get(skillId: string): Promise<SkillResponse> {\n return this.http.get<SkillResponse>(`/skills/${skillId}`);\n }\n\n /** Delete a skill. */\n delete(skillId: string): Promise<void> {\n return this.http.delete<void>(`/skills/${skillId}`);\n }\n\n /** Update skill metadata. */\n update(skillId: string, body: UpdateSkillRequest): Promise<SkillResponse> {\n return this.http.patch<SkillResponse>(`/skills/${skillId}`, body);\n }\n\n /** Cancel the current in-progress generation for a skill. */\n cancel(skillId: string): Promise<SkillResponse> {\n return this.http.post<SkillResponse>(`/skills/${skillId}/cancel`);\n }\n\n /** Execute a skill with the provided parameters. */\n execute(skillId: string, body: ExecuteSkillRequest): Promise<ExecuteSkillResponse> {\n return this.http.post<ExecuteSkillResponse>(`/skills/${skillId}/execute`, body);\n }\n\n /** Refine a skill based on feedback. */\n refine(skillId: string, body: RefineSkillRequest): Promise<RefineSkillResponse> {\n return this.http.post<RefineSkillResponse>(`/skills/${skillId}/refine`, body);\n }\n\n /** Rollback to the previous version. */\n rollback(skillId: string): Promise<SkillResponse> {\n return this.http.post<SkillResponse>(`/skills/${skillId}/rollback`);\n }\n\n /** List executions for a specific skill. */\n executions(skillId: string, params?: SkillExecutionListParams): Promise<SkillExecutionListResponse> {\n return this.http.get<SkillExecutionListResponse>(\n `/skills/${skillId}/executions`,\n params as Record<string, unknown>,\n );\n }\n\n /** Get presigned URL for downloading skill execution output. */\n executionOutput(skillId: string, executionId: string): Promise<SkillExecutionOutputResponse> {\n return this.http.get<SkillExecutionOutputResponse>(\n `/skills/${skillId}/executions/${executionId}/output`,\n );\n }\n}\n","import type { z } from \"zod\";\nimport type { components } from \"../generated/v2/types.js\";\nimport type { Tasks } from \"./resources/tasks.js\";\n\ntype TaskCreatedResponse = components[\"schemas\"][\"TaskCreatedResponse\"];\ntype TaskStepView = components[\"schemas\"][\"TaskStepView\"];\ntype TaskView = components[\"schemas\"][\"TaskView\"];\n\nexport const TERMINAL_STATUSES = new Set([\"finished\", \"stopped\"]);\n\n/** Task result with typed output. All TaskView fields are directly accessible. */\nexport type TaskResult<T = string | null> = Omit<TaskView, \"output\"> & { output: T };\n\nexport interface RunOptions {\n /** Maximum time to wait in milliseconds. Default: 300_000 (5 min). */\n timeout?: number;\n /** Polling interval in milliseconds. Default: 2_000. */\n interval?: number;\n}\n\n/**\n * Lazy task handle returned by `client.run()`.\n *\n * - `await client.run(...)` polls the lightweight status endpoint, returns a `TaskResult`.\n * - `for await (const step of client.run(...))` polls the full task, yields new steps.\n */\nexport class TaskRun<T = string> implements PromiseLike<TaskResult<T>> {\n private readonly _createPromise: Promise<TaskCreatedResponse>;\n private readonly _tasks: Tasks;\n private readonly _schema?: z.ZodType<T>;\n private readonly _timeout: number;\n private readonly _interval: number;\n\n private _taskId: string | null = null;\n private _result: TaskResult<T> | null = null;\n\n constructor(\n createPromise: Promise<TaskCreatedResponse>,\n tasks: Tasks,\n schema?: z.ZodType<T>,\n options?: RunOptions,\n ) {\n this._createPromise = createPromise;\n this._tasks = tasks;\n this._schema = schema;\n this._timeout = options?.timeout ?? 300_000;\n this._interval = options?.interval ?? 2_000;\n }\n\n /** Task ID (available after creation resolves). */\n get taskId(): string | null {\n return this._taskId;\n }\n\n /** Full task result (available after awaiting or iterating to completion). */\n get result(): TaskResult<T> | null {\n return this._result;\n }\n\n /** Enable `await client.run(...)` — polls status endpoint, returns TaskResult. */\n then<R1 = TaskResult<T>, R2 = never>(\n onFulfilled?: ((value: TaskResult<T>) => R1 | PromiseLike<R1>) | null,\n onRejected?: ((reason: unknown) => R2 | PromiseLike<R2>) | null,\n ): Promise<R1 | R2> {\n return this._waitForOutput().then(onFulfilled, onRejected);\n }\n\n /** Enable `for await (const step of client.run(...))` — polls full task, yields new steps. */\n async *[Symbol.asyncIterator](): AsyncGenerator<TaskStepView> {\n const taskId = await this._ensureTaskId();\n let seen = 0;\n const deadline = Date.now() + this._timeout;\n\n while (Date.now() < deadline) {\n const task = await this._tasks.get(taskId);\n\n for (let i = seen; i < task.steps.length; i++) {\n yield task.steps[i];\n }\n seen = task.steps.length;\n\n if (TERMINAL_STATUSES.has(task.status)) {\n this._result = this._buildResult(task);\n return;\n }\n\n const remaining = deadline - Date.now();\n if (remaining <= 0) break;\n await new Promise((r) => setTimeout(r, Math.min(this._interval, remaining)));\n }\n\n throw new Error(`Task ${taskId} did not complete within ${this._timeout}ms`);\n }\n\n private async _ensureTaskId(): Promise<string> {\n if (this._taskId) return this._taskId;\n const created = await this._createPromise;\n this._taskId = created.id;\n return this._taskId;\n }\n\n /** Poll lightweight status endpoint until terminal, return TaskResult. */\n private async _waitForOutput(): Promise<TaskResult<T>> {\n const taskId = await this._ensureTaskId();\n const deadline = Date.now() + this._timeout;\n\n while (Date.now() < deadline) {\n const status = await this._tasks.status(taskId);\n if (TERMINAL_STATUSES.has(status.status)) {\n const task = await this._tasks.get(taskId);\n this._result = this._buildResult(task);\n return this._result;\n }\n const remaining = deadline - Date.now();\n if (remaining <= 0) break;\n await new Promise((r) => setTimeout(r, Math.min(this._interval, remaining)));\n }\n\n throw new Error(`Task ${taskId} did not complete within ${this._timeout}ms`);\n }\n\n private _buildResult(task: TaskView): TaskResult<T> {\n const output = this._parseOutput(task.output);\n return { ...task, output };\n }\n\n private _parseOutput(output: string | null | undefined): T {\n if (output == null) return null as T;\n if (!this._schema) return output as unknown as T;\n return this._schema.parse(JSON.parse(output));\n }\n}\n","import type { HttpClient } from \"../../core/http.js\";\nimport type { components } from \"../../generated/v2/types.js\";\nimport { TERMINAL_STATUSES } from \"../helpers.js\";\n\n/** User-facing body: only `task` is required; everything else has API defaults. */\nexport type CreateTaskBody = Pick<components[\"schemas\"][\"CreateTaskRequest\"], \"task\"> &\n Partial<Omit<components[\"schemas\"][\"CreateTaskRequest\"], \"task\">>;\ntype TaskCreatedResponse = components[\"schemas\"][\"TaskCreatedResponse\"];\ntype TaskListResponse = components[\"schemas\"][\"TaskListResponse\"];\ntype TaskLogFileResponse = components[\"schemas\"][\"TaskLogFileResponse\"];\ntype TaskStatusView = components[\"schemas\"][\"TaskStatusView\"];\ntype TaskView = components[\"schemas\"][\"TaskView\"];\ntype UpdateTaskRequest = components[\"schemas\"][\"UpdateTaskRequest\"];\n\nexport interface TaskListParams {\n pageSize?: number;\n pageNumber?: number;\n sessionId?: string;\n filterBy?: string;\n after?: string;\n before?: string;\n}\n\nexport class Tasks {\n constructor(private readonly http: HttpClient) {}\n\n /** Create and start a new AI agent task. */\n create(body: CreateTaskBody): Promise<TaskCreatedResponse> {\n return this.http.post<TaskCreatedResponse>(\"/tasks\", body);\n }\n\n /** List tasks with optional filtering. */\n list(params?: TaskListParams): Promise<TaskListResponse> {\n return this.http.get<TaskListResponse>(\"/tasks\", params as Record<string, unknown>);\n }\n\n /** Get detailed task information. */\n get(taskId: string): Promise<TaskView> {\n return this.http.get<TaskView>(`/tasks/${taskId}`);\n }\n\n /** Update a task (generic PATCH). */\n update(taskId: string, body: UpdateTaskRequest): Promise<TaskView> {\n return this.http.patch<TaskView>(`/tasks/${taskId}`, body);\n }\n\n /** Stop a running task. */\n stop(taskId: string): Promise<TaskView> {\n return this.update(taskId, { action: \"stop\" });\n }\n\n /** Stop a running task and its associated browser session. */\n stopTaskAndSession(taskId: string): Promise<TaskView> {\n return this.update(taskId, { action: \"stop_task_and_session\" });\n }\n\n /** Get lightweight task status (optimized for polling). */\n status(taskId: string): Promise<TaskStatusView> {\n return this.http.get<TaskStatusView>(`/tasks/${taskId}/status`);\n }\n\n /** Get secure download URL for task execution logs. */\n logs(taskId: string): Promise<TaskLogFileResponse> {\n return this.http.get<TaskLogFileResponse>(`/tasks/${taskId}/logs`);\n }\n\n /** Poll until a task reaches a terminal status, then return the full TaskView. */\n async wait(taskId: string, opts?: { timeout?: number; interval?: number }): Promise<TaskView> {\n const timeout = opts?.timeout ?? 300_000;\n const interval = opts?.interval ?? 2_000;\n const deadline = Date.now() + timeout;\n\n while (Date.now() < deadline) {\n const status = await this.status(taskId);\n if (TERMINAL_STATUSES.has(status.status)) {\n return this.get(taskId);\n }\n const remaining = deadline - Date.now();\n if (remaining <= 0) break;\n await new Promise((r) => setTimeout(r, Math.min(interval, remaining)));\n }\n\n throw new Error(`Task ${taskId} did not complete within ${timeout}ms`);\n }\n}\n"]}
|