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
|
@@ -1,855 +0,0 @@
|
|
|
1
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
23
|
-
import * as core from "../../../../core/index.mjs";
|
|
24
|
-
import * as environments from "../../../../environments.mjs";
|
|
25
|
-
import * as errors from "../../../../errors/index.mjs";
|
|
26
|
-
import * as BrowserUse from "../../../index.mjs";
|
|
27
|
-
export class Skills {
|
|
28
|
-
constructor(_options = {}) {
|
|
29
|
-
this._options = _options;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* List all skills owned by the authenticated project with optional filtering.
|
|
33
|
-
*
|
|
34
|
-
* @param {BrowserUse.ListSkillsSkillsGetRequest} request
|
|
35
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
-
*
|
|
37
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* await client.skills.listSkills()
|
|
41
|
-
*/
|
|
42
|
-
listSkills(request = {}, requestOptions) {
|
|
43
|
-
return core.HttpResponsePromise.fromPromise(this.__listSkills(request, requestOptions));
|
|
44
|
-
}
|
|
45
|
-
__listSkills() {
|
|
46
|
-
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
47
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
48
|
-
const { pageSize, pageNumber, isPublic, isEnabled, category, query, fromDate, toDate } = request;
|
|
49
|
-
const _queryParams = {};
|
|
50
|
-
if (pageSize != null) {
|
|
51
|
-
_queryParams.pageSize = pageSize.toString();
|
|
52
|
-
}
|
|
53
|
-
if (pageNumber != null) {
|
|
54
|
-
_queryParams.pageNumber = pageNumber.toString();
|
|
55
|
-
}
|
|
56
|
-
if (isPublic !== undefined) {
|
|
57
|
-
_queryParams.isPublic = (_a = isPublic === null || isPublic === void 0 ? void 0 : isPublic.toString()) !== null && _a !== void 0 ? _a : null;
|
|
58
|
-
}
|
|
59
|
-
if (isEnabled !== undefined) {
|
|
60
|
-
_queryParams.isEnabled = (_b = isEnabled === null || isEnabled === void 0 ? void 0 : isEnabled.toString()) !== null && _b !== void 0 ? _b : null;
|
|
61
|
-
}
|
|
62
|
-
if (category !== undefined) {
|
|
63
|
-
_queryParams.category = category;
|
|
64
|
-
}
|
|
65
|
-
if (query !== undefined) {
|
|
66
|
-
_queryParams.query = query;
|
|
67
|
-
}
|
|
68
|
-
if (fromDate !== undefined) {
|
|
69
|
-
_queryParams.fromDate = fromDate;
|
|
70
|
-
}
|
|
71
|
-
if (toDate !== undefined) {
|
|
72
|
-
_queryParams.toDate = toDate;
|
|
73
|
-
}
|
|
74
|
-
const _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
75
|
-
const _response = yield core.fetcher({
|
|
76
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.BrowserUseEnvironment.Production, "skills"),
|
|
77
|
-
method: "GET",
|
|
78
|
-
headers: _headers,
|
|
79
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
80
|
-
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
81
|
-
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
82
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
-
fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
|
|
84
|
-
logging: this._options.logging,
|
|
85
|
-
});
|
|
86
|
-
if (_response.ok) {
|
|
87
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
88
|
-
}
|
|
89
|
-
if (_response.error.reason === "status-code") {
|
|
90
|
-
switch (_response.error.statusCode) {
|
|
91
|
-
case 422:
|
|
92
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
93
|
-
default:
|
|
94
|
-
throw new errors.BrowserUseError({
|
|
95
|
-
statusCode: _response.error.statusCode,
|
|
96
|
-
body: _response.error.body,
|
|
97
|
-
rawResponse: _response.rawResponse,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
switch (_response.error.reason) {
|
|
102
|
-
case "non-json":
|
|
103
|
-
throw new errors.BrowserUseError({
|
|
104
|
-
statusCode: _response.error.statusCode,
|
|
105
|
-
body: _response.error.rawBody,
|
|
106
|
-
rawResponse: _response.rawResponse,
|
|
107
|
-
});
|
|
108
|
-
case "timeout":
|
|
109
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /skills.");
|
|
110
|
-
case "unknown":
|
|
111
|
-
throw new errors.BrowserUseError({
|
|
112
|
-
message: _response.error.errorMessage,
|
|
113
|
-
rawResponse: _response.rawResponse,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Create a new skill via automated generation.
|
|
120
|
-
*
|
|
121
|
-
* @param {BrowserUse.CreateSkillRequest} request
|
|
122
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
-
*
|
|
124
|
-
* @throws {@link BrowserUse.BadRequestError}
|
|
125
|
-
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
126
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
127
|
-
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
128
|
-
*
|
|
129
|
-
* @example
|
|
130
|
-
* await client.skills.createSkill({
|
|
131
|
-
* goal: "goal",
|
|
132
|
-
* agentPrompt: "agentPrompt"
|
|
133
|
-
* })
|
|
134
|
-
*/
|
|
135
|
-
createSkill(request, requestOptions) {
|
|
136
|
-
return core.HttpResponsePromise.fromPromise(this.__createSkill(request, requestOptions));
|
|
137
|
-
}
|
|
138
|
-
__createSkill(request, requestOptions) {
|
|
139
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
141
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
142
|
-
const _response = yield core.fetcher({
|
|
143
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, "skills"),
|
|
144
|
-
method: "POST",
|
|
145
|
-
headers: _headers,
|
|
146
|
-
contentType: "application/json",
|
|
147
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
148
|
-
requestType: "json",
|
|
149
|
-
body: request,
|
|
150
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
151
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
152
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
153
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
154
|
-
logging: this._options.logging,
|
|
155
|
-
});
|
|
156
|
-
if (_response.ok) {
|
|
157
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
158
|
-
}
|
|
159
|
-
if (_response.error.reason === "status-code") {
|
|
160
|
-
switch (_response.error.statusCode) {
|
|
161
|
-
case 400:
|
|
162
|
-
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
163
|
-
case 402:
|
|
164
|
-
throw new BrowserUse.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
165
|
-
case 422:
|
|
166
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
167
|
-
case 429:
|
|
168
|
-
throw new BrowserUse.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
169
|
-
default:
|
|
170
|
-
throw new errors.BrowserUseError({
|
|
171
|
-
statusCode: _response.error.statusCode,
|
|
172
|
-
body: _response.error.body,
|
|
173
|
-
rawResponse: _response.rawResponse,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
switch (_response.error.reason) {
|
|
178
|
-
case "non-json":
|
|
179
|
-
throw new errors.BrowserUseError({
|
|
180
|
-
statusCode: _response.error.statusCode,
|
|
181
|
-
body: _response.error.rawBody,
|
|
182
|
-
rawResponse: _response.rawResponse,
|
|
183
|
-
});
|
|
184
|
-
case "timeout":
|
|
185
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills.");
|
|
186
|
-
case "unknown":
|
|
187
|
-
throw new errors.BrowserUseError({
|
|
188
|
-
message: _response.error.errorMessage,
|
|
189
|
-
rawResponse: _response.rawResponse,
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Get details of a specific skill owned by the project.
|
|
196
|
-
*
|
|
197
|
-
* @param {BrowserUse.GetSkillSkillsSkillIdGetRequest} request
|
|
198
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
199
|
-
*
|
|
200
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
201
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* await client.skills.getSkill({
|
|
205
|
-
* skill_id: "skill_id"
|
|
206
|
-
* })
|
|
207
|
-
*/
|
|
208
|
-
getSkill(request, requestOptions) {
|
|
209
|
-
return core.HttpResponsePromise.fromPromise(this.__getSkill(request, requestOptions));
|
|
210
|
-
}
|
|
211
|
-
__getSkill(request, requestOptions) {
|
|
212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
214
|
-
const { skill_id: skillId } = request;
|
|
215
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
216
|
-
const _response = yield core.fetcher({
|
|
217
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}`),
|
|
218
|
-
method: "GET",
|
|
219
|
-
headers: _headers,
|
|
220
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
221
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
222
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
223
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
224
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
225
|
-
logging: this._options.logging,
|
|
226
|
-
});
|
|
227
|
-
if (_response.ok) {
|
|
228
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
229
|
-
}
|
|
230
|
-
if (_response.error.reason === "status-code") {
|
|
231
|
-
switch (_response.error.statusCode) {
|
|
232
|
-
case 404:
|
|
233
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
234
|
-
case 422:
|
|
235
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
236
|
-
default:
|
|
237
|
-
throw new errors.BrowserUseError({
|
|
238
|
-
statusCode: _response.error.statusCode,
|
|
239
|
-
body: _response.error.body,
|
|
240
|
-
rawResponse: _response.rawResponse,
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
switch (_response.error.reason) {
|
|
245
|
-
case "non-json":
|
|
246
|
-
throw new errors.BrowserUseError({
|
|
247
|
-
statusCode: _response.error.statusCode,
|
|
248
|
-
body: _response.error.rawBody,
|
|
249
|
-
rawResponse: _response.rawResponse,
|
|
250
|
-
});
|
|
251
|
-
case "timeout":
|
|
252
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /skills/{skill_id}.");
|
|
253
|
-
case "unknown":
|
|
254
|
-
throw new errors.BrowserUseError({
|
|
255
|
-
message: _response.error.errorMessage,
|
|
256
|
-
rawResponse: _response.rawResponse,
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Delete a skill owned by the project.
|
|
263
|
-
*
|
|
264
|
-
* @param {BrowserUse.DeleteSkillSkillsSkillIdDeleteRequest} request
|
|
265
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
266
|
-
*
|
|
267
|
-
* @throws {@link BrowserUse.BadRequestError}
|
|
268
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
269
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
270
|
-
*
|
|
271
|
-
* @example
|
|
272
|
-
* await client.skills.deleteSkill({
|
|
273
|
-
* skill_id: "skill_id"
|
|
274
|
-
* })
|
|
275
|
-
*/
|
|
276
|
-
deleteSkill(request, requestOptions) {
|
|
277
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteSkill(request, requestOptions));
|
|
278
|
-
}
|
|
279
|
-
__deleteSkill(request, requestOptions) {
|
|
280
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
281
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
282
|
-
const { skill_id: skillId } = request;
|
|
283
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
284
|
-
const _response = yield core.fetcher({
|
|
285
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}`),
|
|
286
|
-
method: "DELETE",
|
|
287
|
-
headers: _headers,
|
|
288
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
289
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
290
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
291
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
292
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
293
|
-
logging: this._options.logging,
|
|
294
|
-
});
|
|
295
|
-
if (_response.ok) {
|
|
296
|
-
return { data: undefined, rawResponse: _response.rawResponse };
|
|
297
|
-
}
|
|
298
|
-
if (_response.error.reason === "status-code") {
|
|
299
|
-
switch (_response.error.statusCode) {
|
|
300
|
-
case 400:
|
|
301
|
-
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
302
|
-
case 404:
|
|
303
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
304
|
-
case 422:
|
|
305
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
306
|
-
default:
|
|
307
|
-
throw new errors.BrowserUseError({
|
|
308
|
-
statusCode: _response.error.statusCode,
|
|
309
|
-
body: _response.error.body,
|
|
310
|
-
rawResponse: _response.rawResponse,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
switch (_response.error.reason) {
|
|
315
|
-
case "non-json":
|
|
316
|
-
throw new errors.BrowserUseError({
|
|
317
|
-
statusCode: _response.error.statusCode,
|
|
318
|
-
body: _response.error.rawBody,
|
|
319
|
-
rawResponse: _response.rawResponse,
|
|
320
|
-
});
|
|
321
|
-
case "timeout":
|
|
322
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling DELETE /skills/{skill_id}.");
|
|
323
|
-
case "unknown":
|
|
324
|
-
throw new errors.BrowserUseError({
|
|
325
|
-
message: _response.error.errorMessage,
|
|
326
|
-
rawResponse: _response.rawResponse,
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Update skill metadata (name, description, enabled, etc.).
|
|
333
|
-
*
|
|
334
|
-
* @param {BrowserUse.UpdateSkillRequest} request
|
|
335
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
336
|
-
*
|
|
337
|
-
* @throws {@link BrowserUse.ForbiddenError}
|
|
338
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
339
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
340
|
-
*
|
|
341
|
-
* @example
|
|
342
|
-
* await client.skills.updateSkill({
|
|
343
|
-
* skill_id: "skill_id"
|
|
344
|
-
* })
|
|
345
|
-
*/
|
|
346
|
-
updateSkill(request, requestOptions) {
|
|
347
|
-
return core.HttpResponsePromise.fromPromise(this.__updateSkill(request, requestOptions));
|
|
348
|
-
}
|
|
349
|
-
__updateSkill(request, requestOptions) {
|
|
350
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
351
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
352
|
-
const { skill_id: skillId } = request, _body = __rest(request, ["skill_id"]);
|
|
353
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
354
|
-
const _response = yield core.fetcher({
|
|
355
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}`),
|
|
356
|
-
method: "PATCH",
|
|
357
|
-
headers: _headers,
|
|
358
|
-
contentType: "application/json",
|
|
359
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
360
|
-
requestType: "json",
|
|
361
|
-
body: _body,
|
|
362
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
363
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
364
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
365
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
366
|
-
logging: this._options.logging,
|
|
367
|
-
});
|
|
368
|
-
if (_response.ok) {
|
|
369
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
370
|
-
}
|
|
371
|
-
if (_response.error.reason === "status-code") {
|
|
372
|
-
switch (_response.error.statusCode) {
|
|
373
|
-
case 403:
|
|
374
|
-
throw new BrowserUse.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
375
|
-
case 404:
|
|
376
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
377
|
-
case 422:
|
|
378
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
379
|
-
default:
|
|
380
|
-
throw new errors.BrowserUseError({
|
|
381
|
-
statusCode: _response.error.statusCode,
|
|
382
|
-
body: _response.error.body,
|
|
383
|
-
rawResponse: _response.rawResponse,
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
switch (_response.error.reason) {
|
|
388
|
-
case "non-json":
|
|
389
|
-
throw new errors.BrowserUseError({
|
|
390
|
-
statusCode: _response.error.statusCode,
|
|
391
|
-
body: _response.error.rawBody,
|
|
392
|
-
rawResponse: _response.rawResponse,
|
|
393
|
-
});
|
|
394
|
-
case "timeout":
|
|
395
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling PATCH /skills/{skill_id}.");
|
|
396
|
-
case "unknown":
|
|
397
|
-
throw new errors.BrowserUseError({
|
|
398
|
-
message: _response.error.errorMessage,
|
|
399
|
-
rawResponse: _response.rawResponse,
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* Cancel the current in-progress generation for a skill.
|
|
406
|
-
*
|
|
407
|
-
* @param {BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest} request
|
|
408
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
409
|
-
*
|
|
410
|
-
* @throws {@link BrowserUse.BadRequestError}
|
|
411
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
412
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
413
|
-
*
|
|
414
|
-
* @example
|
|
415
|
-
* await client.skills.cancelGeneration({
|
|
416
|
-
* skill_id: "skill_id"
|
|
417
|
-
* })
|
|
418
|
-
*/
|
|
419
|
-
cancelGeneration(request, requestOptions) {
|
|
420
|
-
return core.HttpResponsePromise.fromPromise(this.__cancelGeneration(request, requestOptions));
|
|
421
|
-
}
|
|
422
|
-
__cancelGeneration(request, requestOptions) {
|
|
423
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
424
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
425
|
-
const { skill_id: skillId } = request;
|
|
426
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
427
|
-
const _response = yield core.fetcher({
|
|
428
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/cancel`),
|
|
429
|
-
method: "POST",
|
|
430
|
-
headers: _headers,
|
|
431
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
432
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
433
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
434
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
435
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
436
|
-
logging: this._options.logging,
|
|
437
|
-
});
|
|
438
|
-
if (_response.ok) {
|
|
439
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
440
|
-
}
|
|
441
|
-
if (_response.error.reason === "status-code") {
|
|
442
|
-
switch (_response.error.statusCode) {
|
|
443
|
-
case 400:
|
|
444
|
-
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
445
|
-
case 404:
|
|
446
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
447
|
-
case 422:
|
|
448
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
449
|
-
default:
|
|
450
|
-
throw new errors.BrowserUseError({
|
|
451
|
-
statusCode: _response.error.statusCode,
|
|
452
|
-
body: _response.error.body,
|
|
453
|
-
rawResponse: _response.rawResponse,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
switch (_response.error.reason) {
|
|
458
|
-
case "non-json":
|
|
459
|
-
throw new errors.BrowserUseError({
|
|
460
|
-
statusCode: _response.error.statusCode,
|
|
461
|
-
body: _response.error.rawBody,
|
|
462
|
-
rawResponse: _response.rawResponse,
|
|
463
|
-
});
|
|
464
|
-
case "timeout":
|
|
465
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/cancel.");
|
|
466
|
-
case "unknown":
|
|
467
|
-
throw new errors.BrowserUseError({
|
|
468
|
-
message: _response.error.errorMessage,
|
|
469
|
-
rawResponse: _response.rawResponse,
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Rollback to the previous version (cannot be undone).
|
|
476
|
-
*
|
|
477
|
-
* @param {BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest} request
|
|
478
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
479
|
-
*
|
|
480
|
-
* @throws {@link BrowserUse.BadRequestError}
|
|
481
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
482
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
483
|
-
*
|
|
484
|
-
* @example
|
|
485
|
-
* await client.skills.rollbackSkill({
|
|
486
|
-
* skill_id: "skill_id"
|
|
487
|
-
* })
|
|
488
|
-
*/
|
|
489
|
-
rollbackSkill(request, requestOptions) {
|
|
490
|
-
return core.HttpResponsePromise.fromPromise(this.__rollbackSkill(request, requestOptions));
|
|
491
|
-
}
|
|
492
|
-
__rollbackSkill(request, requestOptions) {
|
|
493
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
494
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
495
|
-
const { skill_id: skillId } = request;
|
|
496
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
497
|
-
const _response = yield core.fetcher({
|
|
498
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/rollback`),
|
|
499
|
-
method: "POST",
|
|
500
|
-
headers: _headers,
|
|
501
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
502
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
503
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
504
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
505
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
506
|
-
logging: this._options.logging,
|
|
507
|
-
});
|
|
508
|
-
if (_response.ok) {
|
|
509
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
510
|
-
}
|
|
511
|
-
if (_response.error.reason === "status-code") {
|
|
512
|
-
switch (_response.error.statusCode) {
|
|
513
|
-
case 400:
|
|
514
|
-
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
515
|
-
case 404:
|
|
516
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
517
|
-
case 422:
|
|
518
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
519
|
-
default:
|
|
520
|
-
throw new errors.BrowserUseError({
|
|
521
|
-
statusCode: _response.error.statusCode,
|
|
522
|
-
body: _response.error.body,
|
|
523
|
-
rawResponse: _response.rawResponse,
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
switch (_response.error.reason) {
|
|
528
|
-
case "non-json":
|
|
529
|
-
throw new errors.BrowserUseError({
|
|
530
|
-
statusCode: _response.error.statusCode,
|
|
531
|
-
body: _response.error.rawBody,
|
|
532
|
-
rawResponse: _response.rawResponse,
|
|
533
|
-
});
|
|
534
|
-
case "timeout":
|
|
535
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/rollback.");
|
|
536
|
-
case "unknown":
|
|
537
|
-
throw new errors.BrowserUseError({
|
|
538
|
-
message: _response.error.errorMessage,
|
|
539
|
-
rawResponse: _response.rawResponse,
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Execute a skill with the provided parameters.
|
|
546
|
-
*
|
|
547
|
-
* @param {BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest} request
|
|
548
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
549
|
-
*
|
|
550
|
-
* @throws {@link BrowserUse.BadRequestError}
|
|
551
|
-
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
552
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
553
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
554
|
-
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
555
|
-
*
|
|
556
|
-
* @example
|
|
557
|
-
* await client.skills.executeSkill({
|
|
558
|
-
* skill_id: "skill_id",
|
|
559
|
-
* body: {}
|
|
560
|
-
* })
|
|
561
|
-
*/
|
|
562
|
-
executeSkill(request, requestOptions) {
|
|
563
|
-
return core.HttpResponsePromise.fromPromise(this.__executeSkill(request, requestOptions));
|
|
564
|
-
}
|
|
565
|
-
__executeSkill(request, requestOptions) {
|
|
566
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
567
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
568
|
-
const { skill_id: skillId, body: _body } = request;
|
|
569
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
570
|
-
const _response = yield core.fetcher({
|
|
571
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/execute`),
|
|
572
|
-
method: "POST",
|
|
573
|
-
headers: _headers,
|
|
574
|
-
contentType: "application/json",
|
|
575
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
576
|
-
requestType: "json",
|
|
577
|
-
body: _body,
|
|
578
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
579
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
580
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
581
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
582
|
-
logging: this._options.logging,
|
|
583
|
-
});
|
|
584
|
-
if (_response.ok) {
|
|
585
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
586
|
-
}
|
|
587
|
-
if (_response.error.reason === "status-code") {
|
|
588
|
-
switch (_response.error.statusCode) {
|
|
589
|
-
case 400:
|
|
590
|
-
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
591
|
-
case 402:
|
|
592
|
-
throw new BrowserUse.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
593
|
-
case 404:
|
|
594
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
595
|
-
case 422:
|
|
596
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
597
|
-
case 429:
|
|
598
|
-
throw new BrowserUse.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
599
|
-
default:
|
|
600
|
-
throw new errors.BrowserUseError({
|
|
601
|
-
statusCode: _response.error.statusCode,
|
|
602
|
-
body: _response.error.body,
|
|
603
|
-
rawResponse: _response.rawResponse,
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
switch (_response.error.reason) {
|
|
608
|
-
case "non-json":
|
|
609
|
-
throw new errors.BrowserUseError({
|
|
610
|
-
statusCode: _response.error.statusCode,
|
|
611
|
-
body: _response.error.rawBody,
|
|
612
|
-
rawResponse: _response.rawResponse,
|
|
613
|
-
});
|
|
614
|
-
case "timeout":
|
|
615
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/execute.");
|
|
616
|
-
case "unknown":
|
|
617
|
-
throw new errors.BrowserUseError({
|
|
618
|
-
message: _response.error.errorMessage,
|
|
619
|
-
rawResponse: _response.rawResponse,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Refine a skill based on feedback.
|
|
626
|
-
*
|
|
627
|
-
* @param {BrowserUse.RefineSkillRequest} request
|
|
628
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
629
|
-
*
|
|
630
|
-
* @throws {@link BrowserUse.BadRequestError}
|
|
631
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
632
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
633
|
-
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
634
|
-
*
|
|
635
|
-
* @example
|
|
636
|
-
* await client.skills.refineSkill({
|
|
637
|
-
* skill_id: "skill_id",
|
|
638
|
-
* feedback: "feedback"
|
|
639
|
-
* })
|
|
640
|
-
*/
|
|
641
|
-
refineSkill(request, requestOptions) {
|
|
642
|
-
return core.HttpResponsePromise.fromPromise(this.__refineSkill(request, requestOptions));
|
|
643
|
-
}
|
|
644
|
-
__refineSkill(request, requestOptions) {
|
|
645
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
647
|
-
const { skill_id: skillId } = request, _body = __rest(request, ["skill_id"]);
|
|
648
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
649
|
-
const _response = yield core.fetcher({
|
|
650
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/refine`),
|
|
651
|
-
method: "POST",
|
|
652
|
-
headers: _headers,
|
|
653
|
-
contentType: "application/json",
|
|
654
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
655
|
-
requestType: "json",
|
|
656
|
-
body: _body,
|
|
657
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
658
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
659
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
660
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
661
|
-
logging: this._options.logging,
|
|
662
|
-
});
|
|
663
|
-
if (_response.ok) {
|
|
664
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
665
|
-
}
|
|
666
|
-
if (_response.error.reason === "status-code") {
|
|
667
|
-
switch (_response.error.statusCode) {
|
|
668
|
-
case 400:
|
|
669
|
-
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
670
|
-
case 404:
|
|
671
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
672
|
-
case 422:
|
|
673
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
674
|
-
case 429:
|
|
675
|
-
throw new BrowserUse.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
676
|
-
default:
|
|
677
|
-
throw new errors.BrowserUseError({
|
|
678
|
-
statusCode: _response.error.statusCode,
|
|
679
|
-
body: _response.error.body,
|
|
680
|
-
rawResponse: _response.rawResponse,
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
switch (_response.error.reason) {
|
|
685
|
-
case "non-json":
|
|
686
|
-
throw new errors.BrowserUseError({
|
|
687
|
-
statusCode: _response.error.statusCode,
|
|
688
|
-
body: _response.error.rawBody,
|
|
689
|
-
rawResponse: _response.rawResponse,
|
|
690
|
-
});
|
|
691
|
-
case "timeout":
|
|
692
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/refine.");
|
|
693
|
-
case "unknown":
|
|
694
|
-
throw new errors.BrowserUseError({
|
|
695
|
-
message: _response.error.errorMessage,
|
|
696
|
-
rawResponse: _response.rawResponse,
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* List executions for a specific skill.
|
|
703
|
-
*
|
|
704
|
-
* @param {BrowserUse.ListSkillExecutionsSkillsSkillIdExecutionsGetRequest} request
|
|
705
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
706
|
-
*
|
|
707
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
708
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
709
|
-
*
|
|
710
|
-
* @example
|
|
711
|
-
* await client.skills.listSkillExecutions({
|
|
712
|
-
* skill_id: "skill_id"
|
|
713
|
-
* })
|
|
714
|
-
*/
|
|
715
|
-
listSkillExecutions(request, requestOptions) {
|
|
716
|
-
return core.HttpResponsePromise.fromPromise(this.__listSkillExecutions(request, requestOptions));
|
|
717
|
-
}
|
|
718
|
-
__listSkillExecutions(request, requestOptions) {
|
|
719
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
720
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
721
|
-
const { skill_id: skillId, pageSize, pageNumber } = request;
|
|
722
|
-
const _queryParams = {};
|
|
723
|
-
if (pageSize != null) {
|
|
724
|
-
_queryParams.pageSize = pageSize.toString();
|
|
725
|
-
}
|
|
726
|
-
if (pageNumber != null) {
|
|
727
|
-
_queryParams.pageNumber = pageNumber.toString();
|
|
728
|
-
}
|
|
729
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
730
|
-
const _response = yield core.fetcher({
|
|
731
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/executions`),
|
|
732
|
-
method: "GET",
|
|
733
|
-
headers: _headers,
|
|
734
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
735
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
736
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
737
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
738
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
739
|
-
logging: this._options.logging,
|
|
740
|
-
});
|
|
741
|
-
if (_response.ok) {
|
|
742
|
-
return {
|
|
743
|
-
data: _response.body,
|
|
744
|
-
rawResponse: _response.rawResponse,
|
|
745
|
-
};
|
|
746
|
-
}
|
|
747
|
-
if (_response.error.reason === "status-code") {
|
|
748
|
-
switch (_response.error.statusCode) {
|
|
749
|
-
case 404:
|
|
750
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
751
|
-
case 422:
|
|
752
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
753
|
-
default:
|
|
754
|
-
throw new errors.BrowserUseError({
|
|
755
|
-
statusCode: _response.error.statusCode,
|
|
756
|
-
body: _response.error.body,
|
|
757
|
-
rawResponse: _response.rawResponse,
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
switch (_response.error.reason) {
|
|
762
|
-
case "non-json":
|
|
763
|
-
throw new errors.BrowserUseError({
|
|
764
|
-
statusCode: _response.error.statusCode,
|
|
765
|
-
body: _response.error.rawBody,
|
|
766
|
-
rawResponse: _response.rawResponse,
|
|
767
|
-
});
|
|
768
|
-
case "timeout":
|
|
769
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /skills/{skill_id}/executions.");
|
|
770
|
-
case "unknown":
|
|
771
|
-
throw new errors.BrowserUseError({
|
|
772
|
-
message: _response.error.errorMessage,
|
|
773
|
-
rawResponse: _response.rawResponse,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
});
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* Get presigned URL for downloading skill execution output.
|
|
780
|
-
*
|
|
781
|
-
* @param {BrowserUse.GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest} request
|
|
782
|
-
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
783
|
-
*
|
|
784
|
-
* @throws {@link BrowserUse.NotFoundError}
|
|
785
|
-
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
786
|
-
*
|
|
787
|
-
* @example
|
|
788
|
-
* await client.skills.getSkillExecutionOutput({
|
|
789
|
-
* skill_id: "skill_id",
|
|
790
|
-
* execution_id: "execution_id"
|
|
791
|
-
* })
|
|
792
|
-
*/
|
|
793
|
-
getSkillExecutionOutput(request, requestOptions) {
|
|
794
|
-
return core.HttpResponsePromise.fromPromise(this.__getSkillExecutionOutput(request, requestOptions));
|
|
795
|
-
}
|
|
796
|
-
__getSkillExecutionOutput(request, requestOptions) {
|
|
797
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
799
|
-
const { skill_id: skillId, execution_id: executionId } = request;
|
|
800
|
-
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
801
|
-
const _response = yield core.fetcher({
|
|
802
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/executions/${core.url.encodePathParam(executionId)}/output`),
|
|
803
|
-
method: "GET",
|
|
804
|
-
headers: _headers,
|
|
805
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
806
|
-
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
807
|
-
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
808
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
809
|
-
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
810
|
-
logging: this._options.logging,
|
|
811
|
-
});
|
|
812
|
-
if (_response.ok) {
|
|
813
|
-
return {
|
|
814
|
-
data: _response.body,
|
|
815
|
-
rawResponse: _response.rawResponse,
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
if (_response.error.reason === "status-code") {
|
|
819
|
-
switch (_response.error.statusCode) {
|
|
820
|
-
case 404:
|
|
821
|
-
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
822
|
-
case 422:
|
|
823
|
-
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
824
|
-
default:
|
|
825
|
-
throw new errors.BrowserUseError({
|
|
826
|
-
statusCode: _response.error.statusCode,
|
|
827
|
-
body: _response.error.body,
|
|
828
|
-
rawResponse: _response.rawResponse,
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
switch (_response.error.reason) {
|
|
833
|
-
case "non-json":
|
|
834
|
-
throw new errors.BrowserUseError({
|
|
835
|
-
statusCode: _response.error.statusCode,
|
|
836
|
-
body: _response.error.rawBody,
|
|
837
|
-
rawResponse: _response.rawResponse,
|
|
838
|
-
});
|
|
839
|
-
case "timeout":
|
|
840
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling GET /skills/{skill_id}/executions/{execution_id}/output.");
|
|
841
|
-
case "unknown":
|
|
842
|
-
throw new errors.BrowserUseError({
|
|
843
|
-
message: _response.error.errorMessage,
|
|
844
|
-
rawResponse: _response.rawResponse,
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
});
|
|
848
|
-
}
|
|
849
|
-
_getCustomAuthorizationHeaders() {
|
|
850
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
851
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
852
|
-
return { "X-Browser-Use-API-Key": apiKeyValue };
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
}
|