browser-use-sdk 2.0.15 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -152
- package/dist/chunk-I75IFZAL.js +100 -0
- package/dist/chunk-I75IFZAL.js.map +1 -0
- package/dist/chunk-RIRVOEIU.cjs +100 -0
- package/dist/chunk-RIRVOEIU.cjs.map +1 -0
- package/dist/errors-BtB79l7x.d.cts +30 -0
- package/dist/errors-BtB79l7x.d.ts +30 -0
- package/dist/index.cjs +428 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2441 -0
- package/dist/index.d.ts +2441 -0
- package/dist/index.js +428 -0
- package/dist/index.js.map +1 -0
- package/dist/v3.cjs +140 -0
- package/dist/v3.cjs.map +1 -0
- package/dist/v3.d.cts +287 -0
- package/dist/v3.d.ts +287 -0
- package/dist/v3.js +140 -0
- package/dist/v3.js.map +1 -0
- package/package.json +51 -69
- package/dist/cjs/BaseClient.d.ts +0 -30
- package/dist/cjs/BaseClient.js +0 -3
- package/dist/cjs/Client.d.ts +0 -35
- package/dist/cjs/Client.js +0 -92
- package/dist/cjs/api/errors/BadRequestError.d.ts +0 -5
- package/dist/cjs/api/errors/BadRequestError.js +0 -50
- package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -5
- package/dist/cjs/api/errors/ForbiddenError.js +0 -50
- package/dist/cjs/api/errors/InternalServerError.d.ts +0 -5
- package/dist/cjs/api/errors/InternalServerError.js +0 -50
- package/dist/cjs/api/errors/NotFoundError.d.ts +0 -5
- package/dist/cjs/api/errors/NotFoundError.js +0 -50
- package/dist/cjs/api/errors/PaymentRequiredError.d.ts +0 -5
- package/dist/cjs/api/errors/PaymentRequiredError.js +0 -50
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +0 -6
- package/dist/cjs/api/errors/TooManyRequestsError.js +0 -50
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +0 -5
- package/dist/cjs/api/errors/UnprocessableEntityError.js +0 -50
- package/dist/cjs/api/errors/index.d.ts +0 -7
- package/dist/cjs/api/errors/index.js +0 -23
- package/dist/cjs/api/index.d.ts +0 -3
- package/dist/cjs/api/index.js +0 -19
- package/dist/cjs/api/resources/billing/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/billing/client/Client.js +0 -126
- package/dist/cjs/api/resources/billing/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/billing/client/index.js +0 -2
- package/dist/cjs/api/resources/billing/index.d.ts +0 -1
- package/dist/cjs/api/resources/billing/index.js +0 -17
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +0 -93
- package/dist/cjs/api/resources/browsers/client/Client.js +0 -377
- package/dist/cjs/api/resources/browsers/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/browsers/client/index.js +0 -17
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +0 -21
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.ts +0 -10
- package/dist/cjs/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.ts +0 -13
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.js +0 -3
- package/dist/cjs/api/resources/browsers/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/browsers/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/browsers/index.d.ts +0 -1
- package/dist/cjs/api/resources/browsers/index.js +0 -17
- package/dist/cjs/api/resources/files/client/Client.d.ts +0 -78
- package/dist/cjs/api/resources/files/client/Client.js +0 -302
- package/dist/cjs/api/resources/files/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/files/client/index.js +0 -17
- package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.ts +0 -16
- package/dist/cjs/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.js +0 -3
- package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.ts +0 -16
- package/dist/cjs/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.js +0 -3
- package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/files/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/files/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/files/index.d.ts +0 -1
- package/dist/cjs/api/resources/files/index.js +0 -17
- package/dist/cjs/api/resources/index.d.ts +0 -15
- package/dist/cjs/api/resources/index.js +0 -54
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +0 -93
- package/dist/cjs/api/resources/profiles/client/Client.js +0 -416
- package/dist/cjs/api/resources/profiles/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/profiles/client/index.js +0 -17
- package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.ts +0 -8
- package/dist/cjs/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.d.ts +0 -8
- package/dist/cjs/api/resources/profiles/client/requests/ProfileCreateRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.d.ts +0 -11
- package/dist/cjs/api/resources/profiles/client/requests/ProfileUpdateRequest.js +0 -3
- package/dist/cjs/api/resources/profiles/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/resources/profiles/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/profiles/index.d.ts +0 -1
- package/dist/cjs/api/resources/profiles/index.js +0 -17
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +0 -140
- package/dist/cjs/api/resources/sessions/client/Client.js +0 -625
- package/dist/cjs/api/resources/sessions/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/sessions/client/index.js +0 -17
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +0 -23
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.ts +0 -10
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +0 -13
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.js +0 -3
- package/dist/cjs/api/resources/sessions/client/requests/index.d.ts +0 -8
- package/dist/cjs/api/resources/sessions/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/sessions/index.d.ts +0 -1
- package/dist/cjs/api/resources/sessions/index.js +0 -17
- package/dist/cjs/api/resources/skills/client/Client.d.ts +0 -202
- package/dist/cjs/api/resources/skills/client/Client.js +0 -892
- package/dist/cjs/api/resources/skills/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/skills/client/index.js +0 -17
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.d.ts +0 -17
- package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillRequest.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +0 -12
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +0 -15
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/RefineSkillRequest.d.ts +0 -16
- package/dist/cjs/api/resources/skills/client/requests/RefineSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +0 -20
- package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.js +0 -3
- package/dist/cjs/api/resources/skills/client/requests/index.d.ts +0 -11
- package/dist/cjs/api/resources/skills/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/skills/index.d.ts +0 -1
- package/dist/cjs/api/resources/skills/index.js +0 -17
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +0 -79
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +0 -361
- package/dist/cjs/api/resources/skillsMarketplace/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/skillsMarketplace/client/index.js +0 -17
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +0 -12
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +0 -13
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.js +0 -3
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/skillsMarketplace/index.d.ts +0 -1
- package/dist/cjs/api/resources/skillsMarketplace/index.js +0 -17
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +0 -131
- package/dist/cjs/api/resources/tasks/client/Client.js +0 -525
- package/dist/cjs/api/resources/tasks/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tasks/client/index.js +0 -17
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +0 -53
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.ts +0 -13
- package/dist/cjs/api/resources/tasks/client/requests/ListTasksTasksGetRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.d.ts +0 -13
- package/dist/cjs/api/resources/tasks/client/requests/UpdateTaskRequest.js +0 -3
- package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +0 -6
- package/dist/cjs/api/resources/tasks/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/tasks/index.d.ts +0 -1
- package/dist/cjs/api/resources/tasks/index.js +0 -17
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +0 -306
- package/dist/cjs/api/resources/workflows/client/Client.js +0 -1283
- package/dist/cjs/api/resources/workflows/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/client/index.js +0 -17
- package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.ts +0 -11
- package/dist/cjs/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.ts +0 -14
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.ts +0 -10
- package/dist/cjs/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.ts +0 -18
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.d.ts +0 -14
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +0 -13
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.ts +0 -36
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowGenerateRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.ts +0 -15
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowUpdateRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.ts +0 -14
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.js +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +0 -17
- package/dist/cjs/api/resources/workflows/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/index.js +0 -17
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/types/index.js +0 -17
- package/dist/cjs/api/types/AccountNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/AccountNotFoundError.js +0 -3
- package/dist/cjs/api/types/AccountView.d.ts +0 -20
- package/dist/cjs/api/types/AccountView.js +0 -3
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.ts +0 -11
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.js +0 -3
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.ts +0 -9
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.js +0 -12
- package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppApiV2SkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.d.ts +0 -11
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.js +0 -3
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.d.ts +0 -10
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.js +0 -13
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/BadRequestErrorBody.d.ts +0 -2
- package/dist/cjs/api/types/BadRequestErrorBody.js +0 -3
- package/dist/cjs/api/types/BrowserSessionItemView.d.ts +0 -26
- package/dist/cjs/api/types/BrowserSessionItemView.js +0 -3
- package/dist/cjs/api/types/BrowserSessionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/BrowserSessionListResponse.js +0 -3
- package/dist/cjs/api/types/BrowserSessionStatus.d.ts +0 -12
- package/dist/cjs/api/types/BrowserSessionStatus.js +0 -15
- package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +0 -10
- package/dist/cjs/api/types/BrowserSessionUpdateAction.js +0 -13
- package/dist/cjs/api/types/BrowserSessionView.d.ts +0 -26
- package/dist/cjs/api/types/BrowserSessionView.js +0 -3
- package/dist/cjs/api/types/CannotDeleteSkillWhileGeneratingError.d.ts +0 -6
- package/dist/cjs/api/types/CannotDeleteSkillWhileGeneratingError.js +0 -3
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.d.ts +0 -6
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +0 -3
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/ConcurrentSkillCreationsError.d.ts +0 -6
- package/dist/cjs/api/types/ConcurrentSkillCreationsError.js +0 -3
- package/dist/cjs/api/types/CreateSkillResponse.d.ts +0 -7
- package/dist/cjs/api/types/CreateSkillResponse.js +0 -3
- package/dist/cjs/api/types/CustomProxy.d.ts +0 -13
- package/dist/cjs/api/types/CustomProxy.js +0 -3
- package/dist/cjs/api/types/DownloadUrlGenerationError.d.ts +0 -6
- package/dist/cjs/api/types/DownloadUrlGenerationError.js +0 -3
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +0 -6
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +0 -3
- package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +0 -9
- package/dist/cjs/api/types/ExecuteSkillRequest.js +0 -3
- package/dist/cjs/api/types/ExecuteSkillResponse.d.ts +0 -15
- package/dist/cjs/api/types/ExecuteSkillResponse.js +0 -3
- package/dist/cjs/api/types/ExecutionMode.d.ts +0 -12
- package/dist/cjs/api/types/ExecutionMode.js +0 -15
- package/dist/cjs/api/types/FileView.d.ts +0 -9
- package/dist/cjs/api/types/FileView.js +0 -3
- package/dist/cjs/api/types/GenerationNotCancellableError.d.ts +0 -6
- package/dist/cjs/api/types/GenerationNotCancellableError.js +0 -3
- package/dist/cjs/api/types/HttpValidationError.d.ts +0 -4
- package/dist/cjs/api/types/HttpValidationError.js +0 -3
- package/dist/cjs/api/types/InsufficientCreditsError.d.ts +0 -6
- package/dist/cjs/api/types/InsufficientCreditsError.js +0 -3
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -6
- package/dist/cjs/api/types/InternalServerErrorBody.js +0 -3
- package/dist/cjs/api/types/MarketplaceSkillListResponse.d.ts +0 -14
- package/dist/cjs/api/types/MarketplaceSkillListResponse.js +0 -3
- package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +0 -38
- package/dist/cjs/api/types/MarketplaceSkillResponse.js +0 -3
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -2
- package/dist/cjs/api/types/NotFoundErrorBody.js +0 -3
- package/dist/cjs/api/types/OutputFileNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/OutputFileNotFoundError.js +0 -3
- package/dist/cjs/api/types/ParameterSchema.d.ts +0 -12
- package/dist/cjs/api/types/ParameterSchema.js +0 -3
- package/dist/cjs/api/types/ParameterType.d.ts +0 -10
- package/dist/cjs/api/types/ParameterType.js +0 -13
- package/dist/cjs/api/types/PlanInfo.d.ts +0 -15
- package/dist/cjs/api/types/PlanInfo.js +0 -3
- package/dist/cjs/api/types/ProfileListResponse.d.ts +0 -14
- package/dist/cjs/api/types/ProfileListResponse.js +0 -3
- package/dist/cjs/api/types/ProfileNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/ProfileNotFoundError.js +0 -3
- package/dist/cjs/api/types/ProfileView.d.ts +0 -19
- package/dist/cjs/api/types/ProfileView.js +0 -3
- package/dist/cjs/api/types/ProxyCountryCode.d.ts +0 -250
- package/dist/cjs/api/types/ProxyCountryCode.js +0 -253
- package/dist/cjs/api/types/RefineSkillResponse.d.ts +0 -7
- package/dist/cjs/api/types/RefineSkillResponse.js +0 -3
- package/dist/cjs/api/types/SessionHasRunningTaskError.d.ts +0 -6
- package/dist/cjs/api/types/SessionHasRunningTaskError.js +0 -3
- package/dist/cjs/api/types/SessionItemView.d.ts +0 -24
- package/dist/cjs/api/types/SessionItemView.js +0 -3
- package/dist/cjs/api/types/SessionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/SessionListResponse.js +0 -3
- package/dist/cjs/api/types/SessionNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/SessionNotFoundError.js +0 -3
- package/dist/cjs/api/types/SessionStatus.d.ts +0 -12
- package/dist/cjs/api/types/SessionStatus.js +0 -15
- package/dist/cjs/api/types/SessionStoppedError.d.ts +0 -6
- package/dist/cjs/api/types/SessionStoppedError.js +0 -3
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +0 -6
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.js +0 -3
- package/dist/cjs/api/types/SessionUpdateAction.d.ts +0 -10
- package/dist/cjs/api/types/SessionUpdateAction.js +0 -13
- package/dist/cjs/api/types/SessionView.d.ts +0 -28
- package/dist/cjs/api/types/SessionView.js +0 -3
- package/dist/cjs/api/types/ShareNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/ShareNotFoundError.js +0 -3
- package/dist/cjs/api/types/ShareView.d.ts +0 -13
- package/dist/cjs/api/types/ShareView.js +0 -3
- package/dist/cjs/api/types/SkillCategory.d.ts +0 -20
- package/dist/cjs/api/types/SkillCategory.js +0 -23
- package/dist/cjs/api/types/SkillExecutionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/SkillExecutionListResponse.js +0 -3
- package/dist/cjs/api/types/SkillExecutionOutputResponse.d.ts +0 -7
- package/dist/cjs/api/types/SkillExecutionOutputResponse.js +0 -3
- package/dist/cjs/api/types/SkillExecutionView.d.ts +0 -21
- package/dist/cjs/api/types/SkillExecutionView.js +0 -3
- package/dist/cjs/api/types/SkillListResponse.d.ts +0 -14
- package/dist/cjs/api/types/SkillListResponse.js +0 -3
- package/dist/cjs/api/types/SkillNotFinishedError.d.ts +0 -6
- package/dist/cjs/api/types/SkillNotFinishedError.js +0 -3
- package/dist/cjs/api/types/SkillNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/SkillNotFoundError.js +0 -3
- package/dist/cjs/api/types/SkillResponse.d.ts +0 -52
- package/dist/cjs/api/types/SkillResponse.js +0 -3
- package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +0 -10
- package/dist/cjs/api/types/SkillsGenerationStatus.js +0 -13
- package/dist/cjs/api/types/SupportedLlMs.d.ts +0 -22
- package/dist/cjs/api/types/SupportedLlMs.js +0 -25
- package/dist/cjs/api/types/TaskCreatedResponse.d.ts +0 -9
- package/dist/cjs/api/types/TaskCreatedResponse.js +0 -3
- package/dist/cjs/api/types/TaskItemView.d.ts +0 -37
- package/dist/cjs/api/types/TaskItemView.js +0 -3
- package/dist/cjs/api/types/TaskListResponse.d.ts +0 -14
- package/dist/cjs/api/types/TaskListResponse.js +0 -3
- package/dist/cjs/api/types/TaskLogFileResponse.d.ts +0 -7
- package/dist/cjs/api/types/TaskLogFileResponse.js +0 -3
- package/dist/cjs/api/types/TaskNotFoundError.d.ts +0 -6
- package/dist/cjs/api/types/TaskNotFoundError.js +0 -3
- package/dist/cjs/api/types/TaskOutputFileResponse.d.ts +0 -11
- package/dist/cjs/api/types/TaskOutputFileResponse.js +0 -3
- package/dist/cjs/api/types/TaskStatus.d.ts +0 -16
- package/dist/cjs/api/types/TaskStatus.js +0 -19
- package/dist/cjs/api/types/TaskStatusView.d.ts +0 -19
- package/dist/cjs/api/types/TaskStatusView.js +0 -3
- package/dist/cjs/api/types/TaskStepView.d.ts +0 -19
- package/dist/cjs/api/types/TaskStepView.js +0 -3
- package/dist/cjs/api/types/TaskUpdateAction.d.ts +0 -12
- package/dist/cjs/api/types/TaskUpdateAction.js +0 -15
- package/dist/cjs/api/types/TaskView.d.ts +0 -39
- package/dist/cjs/api/types/TaskView.js +0 -3
- package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.d.ts +0 -6
- package/dist/cjs/api/types/TooManyConcurrentActiveSessionsError.js +0 -3
- package/dist/cjs/api/types/UnsupportedContentTypeError.d.ts +0 -6
- package/dist/cjs/api/types/UnsupportedContentTypeError.js +0 -3
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +0 -22
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +0 -11
- package/dist/cjs/api/types/UploadFileRequest.d.ts +0 -30
- package/dist/cjs/api/types/UploadFileRequest.js +0 -24
- package/dist/cjs/api/types/ValidationError.d.ts +0 -11
- package/dist/cjs/api/types/ValidationError.js +0 -3
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.d.ts +0 -11
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.d.ts +0 -12
- package/dist/cjs/api/types/WorkflowExecutionCreatedResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionItemView.d.ts +0 -28
- package/dist/cjs/api/types/WorkflowExecutionItemView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionListResponse.d.ts +0 -14
- package/dist/cjs/api/types/WorkflowExecutionListResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionLogResponse.d.ts +0 -7
- package/dist/cjs/api/types/WorkflowExecutionLogResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.d.ts +0 -13
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionMediaView.d.ts +0 -8
- package/dist/cjs/api/types/WorkflowExecutionMediaView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +0 -42
- package/dist/cjs/api/types/WorkflowExecutionResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +0 -32
- package/dist/cjs/api/types/WorkflowExecutionStateView.js +0 -3
- package/dist/cjs/api/types/WorkflowExecutionStatus.d.ts +0 -18
- package/dist/cjs/api/types/WorkflowExecutionStatus.js +0 -21
- package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +0 -29
- package/dist/cjs/api/types/WorkflowExecutionStepView.js +0 -3
- package/dist/cjs/api/types/WorkflowGenerateResponse.d.ts +0 -11
- package/dist/cjs/api/types/WorkflowGenerateResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +0 -24
- package/dist/cjs/api/types/WorkflowGenerationStateView.js +0 -3
- package/dist/cjs/api/types/WorkflowGenerationStatus.d.ts +0 -8
- package/dist/cjs/api/types/WorkflowGenerationStatus.js +0 -11
- package/dist/cjs/api/types/WorkflowGenerationStepView.d.ts +0 -19
- package/dist/cjs/api/types/WorkflowGenerationStepView.js +0 -3
- package/dist/cjs/api/types/WorkflowItemView.d.ts +0 -26
- package/dist/cjs/api/types/WorkflowItemView.js +0 -3
- package/dist/cjs/api/types/WorkflowListResponse.d.ts +0 -14
- package/dist/cjs/api/types/WorkflowListResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowResponse.d.ts +0 -40
- package/dist/cjs/api/types/WorkflowResponse.js +0 -3
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +0 -22
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +0 -11
- package/dist/cjs/api/types/index.d.ts +0 -73
- package/dist/cjs/api/types/index.js +0 -89
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -17
- package/dist/cjs/core/fetcher/APIResponse.d.ts +0 -20
- package/dist/cjs/core/fetcher/APIResponse.js +0 -2
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +0 -20
- package/dist/cjs/core/fetcher/BinaryResponse.js +0 -17
- package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +0 -13
- package/dist/cjs/core/fetcher/EndpointMetadata.js +0 -2
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +0 -12
- package/dist/cjs/core/fetcher/EndpointSupplier.js +0 -22
- package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -45
- package/dist/cjs/core/fetcher/Fetcher.js +0 -315
- package/dist/cjs/core/fetcher/Headers.d.ts +0 -2
- package/dist/cjs/core/fetcher/Headers.js +0 -84
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +0 -58
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +0 -103
- package/dist/cjs/core/fetcher/RawResponse.d.ts +0 -29
- package/dist/cjs/core/fetcher/RawResponse.js +0 -44
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/cjs/core/fetcher/Supplier.d.ts +0 -4
- package/dist/cjs/core/fetcher/Supplier.js +0 -22
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/cjs/core/fetcher/createRequestUrl.js +0 -8
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +0 -45
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +0 -1
- package/dist/cjs/core/fetcher/getFetchFn.js +0 -17
- package/dist/cjs/core/fetcher/getHeader.d.ts +0 -1
- package/dist/cjs/core/fetcher/getHeader.js +0 -11
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/cjs/core/fetcher/getRequestBody.js +0 -27
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +0 -55
- package/dist/cjs/core/fetcher/index.d.ts +0 -11
- package/dist/cjs/core/fetcher/index.js +0 -17
- package/dist/cjs/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/cjs/core/fetcher/makeRequest.js +0 -40
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +0 -67
- package/dist/cjs/core/fetcher/signals.d.ts +0 -5
- package/dist/cjs/core/fetcher/signals.js +0 -24
- package/dist/cjs/core/headers.d.ts +0 -2
- package/dist/cjs/core/headers.js +0 -31
- package/dist/cjs/core/index.d.ts +0 -4
- package/dist/cjs/core/index.js +0 -43
- package/dist/cjs/core/json.d.ts +0 -15
- package/dist/cjs/core/json.js +0 -24
- package/dist/cjs/core/logging/exports.d.ts +0 -18
- package/dist/cjs/core/logging/exports.js +0 -45
- package/dist/cjs/core/logging/index.d.ts +0 -1
- package/dist/cjs/core/logging/index.js +0 -17
- package/dist/cjs/core/logging/logger.d.ts +0 -126
- package/dist/cjs/core/logging/logger.js +0 -144
- package/dist/cjs/core/runtime/index.d.ts +0 -1
- package/dist/cjs/core/runtime/index.js +0 -5
- package/dist/cjs/core/runtime/runtime.d.ts +0 -9
- package/dist/cjs/core/runtime/runtime.js +0 -102
- package/dist/cjs/core/url/encodePathParam.d.ts +0 -1
- package/dist/cjs/core/url/encodePathParam.js +0 -21
- package/dist/cjs/core/url/index.d.ts +0 -3
- package/dist/cjs/core/url/index.js +0 -9
- package/dist/cjs/core/url/join.d.ts +0 -1
- package/dist/cjs/core/url/join.js +0 -68
- package/dist/cjs/core/url/qs.d.ts +0 -6
- package/dist/cjs/core/url/qs.js +0 -64
- package/dist/cjs/environments.d.ts +0 -4
- package/dist/cjs/environments.js +0 -7
- package/dist/cjs/errors/BrowserUseError.d.ts +0 -12
- package/dist/cjs/errors/BrowserUseError.js +0 -28
- package/dist/cjs/errors/BrowserUseTimeoutError.d.ts +0 -3
- package/dist/cjs/errors/BrowserUseTimeoutError.js +0 -11
- package/dist/cjs/errors/index.d.ts +0 -2
- package/dist/cjs/errors/index.js +0 -7
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/cjs/exports.js +0 -17
- package/dist/cjs/index.d.ts +0 -7
- package/dist/cjs/index.js +0 -47
- package/dist/cjs/version.d.ts +0 -1
- package/dist/cjs/version.js +0 -4
- package/dist/cjs/wrapper/BrowserUseClient.d.ts +0 -6
- package/dist/cjs/wrapper/BrowserUseClient.js +0 -12
- package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +0 -15
- package/dist/cjs/wrapper/api/BrowserUseTasks.js +0 -89
- package/dist/cjs/wrapper/lib/parse.d.ts +0 -69
- package/dist/cjs/wrapper/lib/parse.js +0 -202
- package/dist/cjs/wrapper/lib/types.d.ts +0 -74
- package/dist/cjs/wrapper/lib/types.js +0 -13
- package/dist/cjs/wrapper/lib/webhooks.d.ts +0 -92
- package/dist/cjs/wrapper/lib/webhooks.js +0 -97
- package/dist/esm/BaseClient.d.mts +0 -30
- package/dist/esm/BaseClient.mjs +0 -2
- package/dist/esm/Client.d.mts +0 -35
- package/dist/esm/Client.mjs +0 -55
- package/dist/esm/api/errors/BadRequestError.d.mts +0 -5
- package/dist/esm/api/errors/BadRequestError.mjs +0 -13
- package/dist/esm/api/errors/ForbiddenError.d.mts +0 -5
- package/dist/esm/api/errors/ForbiddenError.mjs +0 -13
- package/dist/esm/api/errors/InternalServerError.d.mts +0 -5
- package/dist/esm/api/errors/InternalServerError.mjs +0 -13
- package/dist/esm/api/errors/NotFoundError.d.mts +0 -5
- package/dist/esm/api/errors/NotFoundError.mjs +0 -13
- package/dist/esm/api/errors/PaymentRequiredError.d.mts +0 -5
- package/dist/esm/api/errors/PaymentRequiredError.mjs +0 -13
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +0 -6
- package/dist/esm/api/errors/TooManyRequestsError.mjs +0 -13
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +0 -5
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +0 -13
- package/dist/esm/api/errors/index.d.mts +0 -7
- package/dist/esm/api/errors/index.mjs +0 -7
- package/dist/esm/api/index.d.mts +0 -3
- package/dist/esm/api/index.mjs +0 -3
- package/dist/esm/api/resources/billing/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/billing/client/Client.mjs +0 -89
- package/dist/esm/api/resources/billing/client/index.d.mts +0 -1
- package/dist/esm/api/resources/billing/client/index.mjs +0 -1
- package/dist/esm/api/resources/billing/index.d.mts +0 -1
- package/dist/esm/api/resources/billing/index.mjs +0 -1
- package/dist/esm/api/resources/browsers/client/Client.d.mts +0 -93
- package/dist/esm/api/resources/browsers/client/Client.mjs +0 -340
- package/dist/esm/api/resources/browsers/client/index.d.mts +0 -1
- package/dist/esm/api/resources/browsers/client/index.mjs +0 -1
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +0 -21
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/browsers/client/requests/GetBrowserSessionBrowsersSessionIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.d.mts +0 -10
- package/dist/esm/api/resources/browsers/client/requests/ListBrowserSessionsBrowsersGetRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +0 -13
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/browsers/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/browsers/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/browsers/index.d.mts +0 -1
- package/dist/esm/api/resources/browsers/index.mjs +0 -1
- package/dist/esm/api/resources/files/client/Client.d.mts +0 -78
- package/dist/esm/api/resources/files/client/Client.mjs +0 -265
- package/dist/esm/api/resources/files/client/index.d.mts +0 -1
- package/dist/esm/api/resources/files/client/index.mjs +0 -1
- package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.d.mts +0 -16
- package/dist/esm/api/resources/files/client/requests/AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest.mjs +0 -2
- package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.d.mts +0 -16
- package/dist/esm/api/resources/files/client/requests/BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest.mjs +0 -2
- package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/files/client/requests/GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/files/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/files/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/files/index.d.mts +0 -1
- package/dist/esm/api/resources/files/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +0 -15
- package/dist/esm/api/resources/index.mjs +0 -15
- package/dist/esm/api/resources/profiles/client/Client.d.mts +0 -93
- package/dist/esm/api/resources/profiles/client/Client.mjs +0 -379
- package/dist/esm/api/resources/profiles/client/index.d.mts +0 -1
- package/dist/esm/api/resources/profiles/client/index.mjs +0 -1
- package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/profiles/client/requests/DeleteBrowserProfileProfilesProfileIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/profiles/client/requests/GetProfileProfilesProfileIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.d.mts +0 -8
- package/dist/esm/api/resources/profiles/client/requests/ListProfilesProfilesGetRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.d.mts +0 -8
- package/dist/esm/api/resources/profiles/client/requests/ProfileCreateRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.d.mts +0 -11
- package/dist/esm/api/resources/profiles/client/requests/ProfileUpdateRequest.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/profiles/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/profiles/index.d.mts +0 -1
- package/dist/esm/api/resources/profiles/index.mjs +0 -1
- package/dist/esm/api/resources/sessions/client/Client.d.mts +0 -140
- package/dist/esm/api/resources/sessions/client/Client.mjs +0 -588
- package/dist/esm/api/resources/sessions/client/index.d.mts +0 -1
- package/dist/esm/api/resources/sessions/client/index.mjs +0 -1
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionPublicShareSessionsSessionIdPublicSharePostRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +0 -23
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionPublicShareSessionsSessionIdPublicShareDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/DeleteSessionSessionsSessionIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/GetSessionPublicShareSessionsSessionIdPublicShareGetRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/sessions/client/requests/GetSessionSessionsSessionIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.d.mts +0 -10
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsSessionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +0 -13
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.mjs +0 -2
- package/dist/esm/api/resources/sessions/client/requests/index.d.mts +0 -8
- package/dist/esm/api/resources/sessions/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/sessions/index.d.mts +0 -1
- package/dist/esm/api/resources/sessions/index.mjs +0 -1
- package/dist/esm/api/resources/skills/client/Client.d.mts +0 -202
- package/dist/esm/api/resources/skills/client/Client.mjs +0 -855
- package/dist/esm/api/resources/skills/client/index.d.mts +0 -1
- package/dist/esm/api/resources/skills/client/index.mjs +0 -1
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelGenerationPostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.d.mts +0 -17
- package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/DeleteSkillSkillsSkillIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillRequest.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +0 -12
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/GetSkillSkillsSkillIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +0 -15
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/RefineSkillRequest.d.mts +0 -16
- package/dist/esm/api/resources/skills/client/requests/RefineSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +0 -20
- package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.mjs +0 -2
- package/dist/esm/api/resources/skills/client/requests/index.d.mts +0 -11
- package/dist/esm/api/resources/skills/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/skills/index.d.mts +0 -1
- package/dist/esm/api/resources/skills/index.mjs +0 -1
- package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +0 -79
- package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +0 -324
- package/dist/esm/api/resources/skillsMarketplace/client/index.d.mts +0 -1
- package/dist/esm/api/resources/skillsMarketplace/client/index.mjs +0 -1
- package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.mts +0 -9
- package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +0 -12
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +0 -13
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/skillsMarketplace/index.d.mts +0 -1
- package/dist/esm/api/resources/skillsMarketplace/index.mjs +0 -1
- package/dist/esm/api/resources/tasks/client/Client.d.mts +0 -131
- package/dist/esm/api/resources/tasks/client/Client.mjs +0 -488
- package/dist/esm/api/resources/tasks/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tasks/client/index.mjs +0 -1
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +0 -53
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/tasks/client/requests/GetTaskLogsTasksTaskIdLogsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/tasks/client/requests/GetTaskTasksTaskIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.d.mts +0 -13
- package/dist/esm/api/resources/tasks/client/requests/ListTasksTasksGetRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.d.mts +0 -13
- package/dist/esm/api/resources/tasks/client/requests/UpdateTaskRequest.mjs +0 -2
- package/dist/esm/api/resources/tasks/client/requests/index.d.mts +0 -6
- package/dist/esm/api/resources/tasks/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/tasks/index.d.mts +0 -1
- package/dist/esm/api/resources/tasks/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +0 -306
- package/dist/esm/api/resources/workflows/client/Client.mjs +0 -1246
- package/dist/esm/api/resources/workflows/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/client/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/DeleteWorkflowWorkflowsWorkflowIdDeleteRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionWorkflowsExecutionsExecutionIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowWorkflowsWorkflowIdGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.d.mts +0 -11
- package/dist/esm/api/resources/workflows/client/requests/ListAllExecutionsWorkflowsExecutionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.d.mts +0 -14
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.d.mts +0 -10
- package/dist/esm/api/resources/workflows/client/requests/ListWorkflowsWorkflowsGetRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.mts +0 -18
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.d.mts +0 -14
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +0 -13
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.d.mts +0 -36
- package/dist/esm/api/resources/workflows/client/requests/WorkflowGenerateRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.d.mts +0 -15
- package/dist/esm/api/resources/workflows/client/requests/WorkflowUpdateRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.d.mts +0 -14
- package/dist/esm/api/resources/workflows/client/requests/WorkflowYamlPresignedUploadRequest.mjs +0 -2
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +0 -17
- package/dist/esm/api/resources/workflows/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.mts +0 -2
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/types/index.mjs +0 -1
- package/dist/esm/api/types/AccountNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/AccountNotFoundError.mjs +0 -2
- package/dist/esm/api/types/AccountView.d.mts +0 -20
- package/dist/esm/api/types/AccountView.mjs +0 -2
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.mts +0 -11
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.mjs +0 -2
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.mts +0 -9
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.mjs +0 -9
- package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.d.mts +0 -11
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.mjs +0 -2
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.d.mts +0 -10
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.mjs +0 -10
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/AppViewsV2ErrorViewsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -2
- package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -2
- package/dist/esm/api/types/BrowserSessionItemView.d.mts +0 -26
- package/dist/esm/api/types/BrowserSessionItemView.mjs +0 -2
- package/dist/esm/api/types/BrowserSessionListResponse.d.mts +0 -14
- package/dist/esm/api/types/BrowserSessionListResponse.mjs +0 -2
- package/dist/esm/api/types/BrowserSessionStatus.d.mts +0 -12
- package/dist/esm/api/types/BrowserSessionStatus.mjs +0 -12
- package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +0 -10
- package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +0 -10
- package/dist/esm/api/types/BrowserSessionView.d.mts +0 -26
- package/dist/esm/api/types/BrowserSessionView.mjs +0 -2
- package/dist/esm/api/types/CannotDeleteSkillWhileGeneratingError.d.mts +0 -6
- package/dist/esm/api/types/CannotDeleteSkillWhileGeneratingError.mjs +0 -2
- package/dist/esm/api/types/CannotRollbackPublicSkillError.d.mts +0 -6
- package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +0 -2
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/ConcurrentSkillCreationsError.d.mts +0 -6
- package/dist/esm/api/types/ConcurrentSkillCreationsError.mjs +0 -2
- package/dist/esm/api/types/CreateSkillResponse.d.mts +0 -7
- package/dist/esm/api/types/CreateSkillResponse.mjs +0 -2
- package/dist/esm/api/types/CustomProxy.d.mts +0 -13
- package/dist/esm/api/types/CustomProxy.mjs +0 -2
- package/dist/esm/api/types/DownloadUrlGenerationError.d.mts +0 -6
- package/dist/esm/api/types/DownloadUrlGenerationError.mjs +0 -2
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +0 -6
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +0 -2
- package/dist/esm/api/types/ExecuteSkillRequest.d.mts +0 -9
- package/dist/esm/api/types/ExecuteSkillRequest.mjs +0 -2
- package/dist/esm/api/types/ExecuteSkillResponse.d.mts +0 -15
- package/dist/esm/api/types/ExecuteSkillResponse.mjs +0 -2
- package/dist/esm/api/types/ExecutionMode.d.mts +0 -12
- package/dist/esm/api/types/ExecutionMode.mjs +0 -12
- package/dist/esm/api/types/FileView.d.mts +0 -9
- package/dist/esm/api/types/FileView.mjs +0 -2
- package/dist/esm/api/types/GenerationNotCancellableError.d.mts +0 -6
- package/dist/esm/api/types/GenerationNotCancellableError.mjs +0 -2
- package/dist/esm/api/types/HttpValidationError.d.mts +0 -4
- package/dist/esm/api/types/HttpValidationError.mjs +0 -2
- package/dist/esm/api/types/InsufficientCreditsError.d.mts +0 -6
- package/dist/esm/api/types/InsufficientCreditsError.mjs +0 -2
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -6
- package/dist/esm/api/types/InternalServerErrorBody.mjs +0 -2
- package/dist/esm/api/types/MarketplaceSkillListResponse.d.mts +0 -14
- package/dist/esm/api/types/MarketplaceSkillListResponse.mjs +0 -2
- package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +0 -38
- package/dist/esm/api/types/MarketplaceSkillResponse.mjs +0 -2
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -2
- package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -2
- package/dist/esm/api/types/OutputFileNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/OutputFileNotFoundError.mjs +0 -2
- package/dist/esm/api/types/ParameterSchema.d.mts +0 -12
- package/dist/esm/api/types/ParameterSchema.mjs +0 -2
- package/dist/esm/api/types/ParameterType.d.mts +0 -10
- package/dist/esm/api/types/ParameterType.mjs +0 -10
- package/dist/esm/api/types/PlanInfo.d.mts +0 -15
- package/dist/esm/api/types/PlanInfo.mjs +0 -2
- package/dist/esm/api/types/ProfileListResponse.d.mts +0 -14
- package/dist/esm/api/types/ProfileListResponse.mjs +0 -2
- package/dist/esm/api/types/ProfileNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/ProfileNotFoundError.mjs +0 -2
- package/dist/esm/api/types/ProfileView.d.mts +0 -19
- package/dist/esm/api/types/ProfileView.mjs +0 -2
- package/dist/esm/api/types/ProxyCountryCode.d.mts +0 -250
- package/dist/esm/api/types/ProxyCountryCode.mjs +0 -250
- package/dist/esm/api/types/RefineSkillResponse.d.mts +0 -7
- package/dist/esm/api/types/RefineSkillResponse.mjs +0 -2
- package/dist/esm/api/types/SessionHasRunningTaskError.d.mts +0 -6
- package/dist/esm/api/types/SessionHasRunningTaskError.mjs +0 -2
- package/dist/esm/api/types/SessionItemView.d.mts +0 -24
- package/dist/esm/api/types/SessionItemView.mjs +0 -2
- package/dist/esm/api/types/SessionListResponse.d.mts +0 -14
- package/dist/esm/api/types/SessionListResponse.mjs +0 -2
- package/dist/esm/api/types/SessionNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/SessionNotFoundError.mjs +0 -2
- package/dist/esm/api/types/SessionStatus.d.mts +0 -12
- package/dist/esm/api/types/SessionStatus.mjs +0 -12
- package/dist/esm/api/types/SessionStoppedError.d.mts +0 -6
- package/dist/esm/api/types/SessionStoppedError.mjs +0 -2
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +0 -6
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.mjs +0 -2
- package/dist/esm/api/types/SessionUpdateAction.d.mts +0 -10
- package/dist/esm/api/types/SessionUpdateAction.mjs +0 -10
- package/dist/esm/api/types/SessionView.d.mts +0 -28
- package/dist/esm/api/types/SessionView.mjs +0 -2
- package/dist/esm/api/types/ShareNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/ShareNotFoundError.mjs +0 -2
- package/dist/esm/api/types/ShareView.d.mts +0 -13
- package/dist/esm/api/types/ShareView.mjs +0 -2
- package/dist/esm/api/types/SkillCategory.d.mts +0 -20
- package/dist/esm/api/types/SkillCategory.mjs +0 -20
- package/dist/esm/api/types/SkillExecutionListResponse.d.mts +0 -14
- package/dist/esm/api/types/SkillExecutionListResponse.mjs +0 -2
- package/dist/esm/api/types/SkillExecutionOutputResponse.d.mts +0 -7
- package/dist/esm/api/types/SkillExecutionOutputResponse.mjs +0 -2
- package/dist/esm/api/types/SkillExecutionView.d.mts +0 -21
- package/dist/esm/api/types/SkillExecutionView.mjs +0 -2
- package/dist/esm/api/types/SkillListResponse.d.mts +0 -14
- package/dist/esm/api/types/SkillListResponse.mjs +0 -2
- package/dist/esm/api/types/SkillNotFinishedError.d.mts +0 -6
- package/dist/esm/api/types/SkillNotFinishedError.mjs +0 -2
- package/dist/esm/api/types/SkillNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/SkillNotFoundError.mjs +0 -2
- package/dist/esm/api/types/SkillResponse.d.mts +0 -52
- package/dist/esm/api/types/SkillResponse.mjs +0 -2
- package/dist/esm/api/types/SkillsGenerationStatus.d.mts +0 -10
- package/dist/esm/api/types/SkillsGenerationStatus.mjs +0 -10
- package/dist/esm/api/types/SupportedLlMs.d.mts +0 -22
- package/dist/esm/api/types/SupportedLlMs.mjs +0 -22
- package/dist/esm/api/types/TaskCreatedResponse.d.mts +0 -9
- package/dist/esm/api/types/TaskCreatedResponse.mjs +0 -2
- package/dist/esm/api/types/TaskItemView.d.mts +0 -37
- package/dist/esm/api/types/TaskItemView.mjs +0 -2
- package/dist/esm/api/types/TaskListResponse.d.mts +0 -14
- package/dist/esm/api/types/TaskListResponse.mjs +0 -2
- package/dist/esm/api/types/TaskLogFileResponse.d.mts +0 -7
- package/dist/esm/api/types/TaskLogFileResponse.mjs +0 -2
- package/dist/esm/api/types/TaskNotFoundError.d.mts +0 -6
- package/dist/esm/api/types/TaskNotFoundError.mjs +0 -2
- package/dist/esm/api/types/TaskOutputFileResponse.d.mts +0 -11
- package/dist/esm/api/types/TaskOutputFileResponse.mjs +0 -2
- package/dist/esm/api/types/TaskStatus.d.mts +0 -16
- package/dist/esm/api/types/TaskStatus.mjs +0 -16
- package/dist/esm/api/types/TaskStatusView.d.mts +0 -19
- package/dist/esm/api/types/TaskStatusView.mjs +0 -2
- package/dist/esm/api/types/TaskStepView.d.mts +0 -19
- package/dist/esm/api/types/TaskStepView.mjs +0 -2
- package/dist/esm/api/types/TaskUpdateAction.d.mts +0 -12
- package/dist/esm/api/types/TaskUpdateAction.mjs +0 -12
- package/dist/esm/api/types/TaskView.d.mts +0 -39
- package/dist/esm/api/types/TaskView.mjs +0 -2
- package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.d.mts +0 -6
- package/dist/esm/api/types/TooManyConcurrentActiveSessionsError.mjs +0 -2
- package/dist/esm/api/types/UnsupportedContentTypeError.d.mts +0 -6
- package/dist/esm/api/types/UnsupportedContentTypeError.mjs +0 -2
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +0 -22
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +0 -8
- package/dist/esm/api/types/UploadFileRequest.d.mts +0 -30
- package/dist/esm/api/types/UploadFileRequest.mjs +0 -21
- package/dist/esm/api/types/ValidationError.d.mts +0 -11
- package/dist/esm/api/types/ValidationError.mjs +0 -2
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.d.mts +0 -11
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionCreatedResponse.d.mts +0 -12
- package/dist/esm/api/types/WorkflowExecutionCreatedResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionItemView.d.mts +0 -28
- package/dist/esm/api/types/WorkflowExecutionItemView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionListResponse.d.mts +0 -14
- package/dist/esm/api/types/WorkflowExecutionListResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionLogResponse.d.mts +0 -7
- package/dist/esm/api/types/WorkflowExecutionLogResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.d.mts +0 -13
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionMediaView.d.mts +0 -8
- package/dist/esm/api/types/WorkflowExecutionMediaView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +0 -42
- package/dist/esm/api/types/WorkflowExecutionResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +0 -32
- package/dist/esm/api/types/WorkflowExecutionStateView.mjs +0 -2
- package/dist/esm/api/types/WorkflowExecutionStatus.d.mts +0 -18
- package/dist/esm/api/types/WorkflowExecutionStatus.mjs +0 -18
- package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +0 -29
- package/dist/esm/api/types/WorkflowExecutionStepView.mjs +0 -2
- package/dist/esm/api/types/WorkflowGenerateResponse.d.mts +0 -11
- package/dist/esm/api/types/WorkflowGenerateResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +0 -24
- package/dist/esm/api/types/WorkflowGenerationStateView.mjs +0 -2
- package/dist/esm/api/types/WorkflowGenerationStatus.d.mts +0 -8
- package/dist/esm/api/types/WorkflowGenerationStatus.mjs +0 -8
- package/dist/esm/api/types/WorkflowGenerationStepView.d.mts +0 -19
- package/dist/esm/api/types/WorkflowGenerationStepView.mjs +0 -2
- package/dist/esm/api/types/WorkflowItemView.d.mts +0 -26
- package/dist/esm/api/types/WorkflowItemView.mjs +0 -2
- package/dist/esm/api/types/WorkflowListResponse.d.mts +0 -14
- package/dist/esm/api/types/WorkflowListResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowResponse.d.mts +0 -40
- package/dist/esm/api/types/WorkflowResponse.mjs +0 -2
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +0 -22
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +0 -8
- package/dist/esm/api/types/index.d.mts +0 -73
- package/dist/esm/api/types/index.mjs +0 -73
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -20
- package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
- package/dist/esm/core/fetcher/EndpointMetadata.d.mts +0 -13
- package/dist/esm/core/fetcher/EndpointMetadata.mjs +0 -1
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +0 -12
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -19
- package/dist/esm/core/fetcher/Fetcher.d.mts +0 -45
- package/dist/esm/core/fetcher/Fetcher.mjs +0 -311
- package/dist/esm/core/fetcher/Headers.d.mts +0 -2
- package/dist/esm/core/fetcher/Headers.mjs +0 -82
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
- package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
- package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
- package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
- package/dist/esm/core/fetcher/Supplier.mjs +0 -19
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
- package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -42
- package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
- package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
- package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
- package/dist/esm/core/fetcher/getHeader.mjs +0 -8
- package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
- package/dist/esm/core/fetcher/getRequestBody.mjs +0 -24
- package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +0 -52
- package/dist/esm/core/fetcher/index.d.mts +0 -11
- package/dist/esm/core/fetcher/index.mjs +0 -6
- package/dist/esm/core/fetcher/makeRequest.d.mts +0 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +0 -36
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -64
- package/dist/esm/core/fetcher/signals.d.mts +0 -5
- package/dist/esm/core/fetcher/signals.mjs +0 -20
- package/dist/esm/core/headers.d.mts +0 -2
- package/dist/esm/core/headers.mjs +0 -27
- package/dist/esm/core/index.d.mts +0 -4
- package/dist/esm/core/index.mjs +0 -4
- package/dist/esm/core/json.d.mts +0 -15
- package/dist/esm/core/json.mjs +0 -19
- package/dist/esm/core/logging/exports.d.mts +0 -18
- package/dist/esm/core/logging/exports.mjs +0 -9
- package/dist/esm/core/logging/index.d.mts +0 -1
- package/dist/esm/core/logging/index.mjs +0 -1
- package/dist/esm/core/logging/logger.d.mts +0 -126
- package/dist/esm/core/logging/logger.mjs +0 -138
- package/dist/esm/core/runtime/index.d.mts +0 -1
- package/dist/esm/core/runtime/index.mjs +0 -1
- package/dist/esm/core/runtime/runtime.d.mts +0 -9
- package/dist/esm/core/runtime/runtime.mjs +0 -99
- package/dist/esm/core/url/encodePathParam.d.mts +0 -1
- package/dist/esm/core/url/encodePathParam.mjs +0 -18
- package/dist/esm/core/url/index.d.mts +0 -3
- package/dist/esm/core/url/index.mjs +0 -3
- package/dist/esm/core/url/join.d.mts +0 -1
- package/dist/esm/core/url/join.mjs +0 -65
- package/dist/esm/core/url/qs.d.mts +0 -6
- package/dist/esm/core/url/qs.mjs +0 -61
- package/dist/esm/environments.d.mts +0 -4
- package/dist/esm/environments.mjs +0 -4
- package/dist/esm/errors/BrowserUseError.d.mts +0 -12
- package/dist/esm/errors/BrowserUseError.mjs +0 -24
- package/dist/esm/errors/BrowserUseTimeoutError.d.mts +0 -3
- package/dist/esm/errors/BrowserUseTimeoutError.mjs +0 -7
- package/dist/esm/errors/index.d.mts +0 -2
- package/dist/esm/errors/index.mjs +0 -2
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
- package/dist/esm/index.d.mts +0 -7
- package/dist/esm/index.mjs +0 -5
- package/dist/esm/version.d.mts +0 -1
- package/dist/esm/version.mjs +0 -1
- package/dist/esm/wrapper/BrowserUseClient.d.mts +0 -6
- package/dist/esm/wrapper/BrowserUseClient.mjs +0 -8
- package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +0 -15
- package/dist/esm/wrapper/api/BrowserUseTasks.mjs +0 -53
- package/dist/esm/wrapper/lib/parse.d.mts +0 -69
- package/dist/esm/wrapper/lib/parse.mjs +0 -193
- package/dist/esm/wrapper/lib/types.d.mts +0 -74
- package/dist/esm/wrapper/lib/types.mjs +0 -9
- package/dist/esm/wrapper/lib/webhooks.d.mts +0 -92
- package/dist/esm/wrapper/lib/webhooks.mjs +0 -89
- package/reference.md +0 -2771
package/dist/cjs/exports.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./core/exports.js"), exports);
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * as BrowserUse from "./api/index.js";
|
|
2
|
-
export { BrowserUseEnvironment } from "./environments.js";
|
|
3
|
-
export { BrowserUseError, BrowserUseTimeoutError } from "./errors/index.js";
|
|
4
|
-
export { BrowserUseClient } from "./wrapper/BrowserUseClient.js";
|
|
5
|
-
export type { WrappedTaskFnsWithoutSchema, WrappedTaskFnsWithSchema, PollConfig, TaskViewWithSchema, } from "./wrapper/lib/parse.js";
|
|
6
|
-
export { createWebhookSignature, verifyWebhookEventSignature } from "./wrapper/lib/webhooks.js";
|
|
7
|
-
export type { Webhook, WebhookAgentTaskStatusUpdatePayload, WebhookTestPayload } from "./wrapper/lib/webhooks.js";
|
package/dist/cjs/index.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.verifyWebhookEventSignature = exports.createWebhookSignature = exports.BrowserUseClient = exports.BrowserUseTimeoutError = exports.BrowserUseError = exports.BrowserUseEnvironment = exports.BrowserUse = void 0;
|
|
37
|
-
exports.BrowserUse = __importStar(require("./api/index.js"));
|
|
38
|
-
var environments_js_1 = require("./environments.js");
|
|
39
|
-
Object.defineProperty(exports, "BrowserUseEnvironment", { enumerable: true, get: function () { return environments_js_1.BrowserUseEnvironment; } });
|
|
40
|
-
var index_js_1 = require("./errors/index.js");
|
|
41
|
-
Object.defineProperty(exports, "BrowserUseError", { enumerable: true, get: function () { return index_js_1.BrowserUseError; } });
|
|
42
|
-
Object.defineProperty(exports, "BrowserUseTimeoutError", { enumerable: true, get: function () { return index_js_1.BrowserUseTimeoutError; } });
|
|
43
|
-
var BrowserUseClient_js_1 = require("./wrapper/BrowserUseClient.js");
|
|
44
|
-
Object.defineProperty(exports, "BrowserUseClient", { enumerable: true, get: function () { return BrowserUseClient_js_1.BrowserUseClient; } });
|
|
45
|
-
var webhooks_js_1 = require("./wrapper/lib/webhooks.js");
|
|
46
|
-
Object.defineProperty(exports, "createWebhookSignature", { enumerable: true, get: function () { return webhooks_js_1.createWebhookSignature; } });
|
|
47
|
-
Object.defineProperty(exports, "verifyWebhookEventSignature", { enumerable: true, get: function () { return webhooks_js_1.verifyWebhookEventSignature; } });
|
package/dist/cjs/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.15";
|
package/dist/cjs/version.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BrowserUseClient as FernClient } from "../Client.js";
|
|
2
|
-
import { BrowserUseTasks } from "./api/BrowserUseTasks.js";
|
|
3
|
-
export declare class BrowserUseClient extends FernClient {
|
|
4
|
-
protected _tasks: BrowserUseTasks | undefined;
|
|
5
|
-
get tasks(): BrowserUseTasks;
|
|
6
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BrowserUseClient = void 0;
|
|
4
|
-
const Client_js_1 = require("../Client.js");
|
|
5
|
-
const BrowserUseTasks_js_1 = require("./api/BrowserUseTasks.js");
|
|
6
|
-
class BrowserUseClient extends Client_js_1.BrowserUseClient {
|
|
7
|
-
get tasks() {
|
|
8
|
-
var _a;
|
|
9
|
-
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new BrowserUseTasks_js_1.BrowserUseTasks(this._options)));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.BrowserUseClient = BrowserUseClient;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ZodType } from "zod";
|
|
2
|
-
import * as BrowserUse from "../../api/index.js";
|
|
3
|
-
import * as core from "../../core/index.js";
|
|
4
|
-
import { Tasks } from "../../api/resources/tasks/client/Client.js";
|
|
5
|
-
import { type CreateTaskRequestWithSchema, type WrappedTaskFnsWithSchema, type WrappedTaskFnsWithoutSchema, type TaskViewWithSchema } from "../lib/parse.js";
|
|
6
|
-
export declare class BrowserUseTasks extends Tasks {
|
|
7
|
-
constructor(options: Tasks.Options);
|
|
8
|
-
createTask<T extends ZodType>(request: CreateTaskRequestWithSchema<T>, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<WrappedTaskFnsWithSchema<T>>;
|
|
9
|
-
createTask(request: BrowserUse.CreateTaskRequest, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<WrappedTaskFnsWithoutSchema>;
|
|
10
|
-
getTask<T extends ZodType>(request: {
|
|
11
|
-
task_id: string;
|
|
12
|
-
schema: T;
|
|
13
|
-
}, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<TaskViewWithSchema<T>>;
|
|
14
|
-
getTask(request: BrowserUse.GetTaskTasksTaskIdGetRequest, requestOptions?: Tasks.RequestOptions): core.HttpResponsePromise<BrowserUse.TaskView>;
|
|
15
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.BrowserUseTasks = void 0;
|
|
37
|
-
const core = __importStar(require("../../core/index.js"));
|
|
38
|
-
const Client_js_1 = require("../../api/resources/tasks/client/Client.js");
|
|
39
|
-
const parse_js_1 = require("../lib/parse.js");
|
|
40
|
-
class BrowserUseTasks extends Client_js_1.Tasks {
|
|
41
|
-
constructor(options) {
|
|
42
|
-
super(options);
|
|
43
|
-
}
|
|
44
|
-
createTask(request, requestOptions) {
|
|
45
|
-
if ("schema" in request) {
|
|
46
|
-
const req = Object.assign(Object.assign({}, request), { structuredOutput: (0, parse_js_1.stringifyStructuredOutput)(request.schema) });
|
|
47
|
-
const promise = super
|
|
48
|
-
.createTask(req, requestOptions)
|
|
49
|
-
.withRawResponse()
|
|
50
|
-
.then((res) => {
|
|
51
|
-
const wrapped = (0, parse_js_1.wrapCreateTaskResponse)(this, res.data, request.schema);
|
|
52
|
-
return {
|
|
53
|
-
data: wrapped,
|
|
54
|
-
rawResponse: res.rawResponse,
|
|
55
|
-
};
|
|
56
|
-
});
|
|
57
|
-
return core.HttpResponsePromise.fromPromise(promise);
|
|
58
|
-
}
|
|
59
|
-
const promise = super
|
|
60
|
-
.createTask(request, requestOptions)
|
|
61
|
-
.withRawResponse()
|
|
62
|
-
.then((res) => {
|
|
63
|
-
const wrapped = (0, parse_js_1.wrapCreateTaskResponse)(this, res.data, null);
|
|
64
|
-
return {
|
|
65
|
-
data: wrapped,
|
|
66
|
-
rawResponse: res.rawResponse,
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
return core.HttpResponsePromise.fromPromise(promise);
|
|
70
|
-
}
|
|
71
|
-
getTask(request, requestOptions) {
|
|
72
|
-
if (!request.schema) {
|
|
73
|
-
return super.getTask(request, requestOptions);
|
|
74
|
-
}
|
|
75
|
-
const { task_id, schema } = request;
|
|
76
|
-
const promise = super
|
|
77
|
-
.getTask({ task_id }, requestOptions)
|
|
78
|
-
.withRawResponse()
|
|
79
|
-
.then((res) => {
|
|
80
|
-
const parsed = (0, parse_js_1.parseStructuredTaskOutput)(res.data, schema);
|
|
81
|
-
return {
|
|
82
|
-
data: parsed,
|
|
83
|
-
rawResponse: res.rawResponse,
|
|
84
|
-
};
|
|
85
|
-
});
|
|
86
|
-
return core.HttpResponsePromise.fromPromise(promise);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.BrowserUseTasks = BrowserUseTasks;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { RequestOptions } from "node:http";
|
|
2
|
-
import z, { type ZodType } from "zod";
|
|
3
|
-
import type { BrowserUse } from "../../index.js";
|
|
4
|
-
import type { BrowserUseTasks } from "../api/BrowserUseTasks.js";
|
|
5
|
-
import type { CreateTaskRequest, TaskView } from "../../api/index.js";
|
|
6
|
-
export type CreateTaskRequestWithSchema<T extends ZodType> = Omit<CreateTaskRequest, "structuredOutput"> & {
|
|
7
|
-
schema: T;
|
|
8
|
-
};
|
|
9
|
-
export declare function stringifyStructuredOutput<T extends ZodType>(schema: T): string;
|
|
10
|
-
export type TaskViewWithSchema<T extends ZodType> = TaskView & {
|
|
11
|
-
/**
|
|
12
|
-
* The parsed output of the task.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const task = await client.tasks.retrieve(taskId, { schema: z.object({ name: z.string() }) });
|
|
17
|
-
* console.log(task.parsed);
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
parsed: z.output<T> | null;
|
|
21
|
-
};
|
|
22
|
-
export declare function parseStructuredTaskOutput<T extends ZodType>(res: TaskView, schema: T): TaskViewWithSchema<T>;
|
|
23
|
-
/**
|
|
24
|
-
* Hashes the task view to detect changes.
|
|
25
|
-
* Uses fast-json-stable-stringify for deterministic JSON, then SHA-256.
|
|
26
|
-
*/
|
|
27
|
-
export declare function getTaskViewHash(view: TaskView): string;
|
|
28
|
-
export type PollConfig = {
|
|
29
|
-
interval?: number;
|
|
30
|
-
};
|
|
31
|
-
export type WrappedTaskFnsWithSchema<T extends ZodType> = BrowserUse.TaskCreatedResponse & {
|
|
32
|
-
/**
|
|
33
|
-
* Streams the steps of the task and closes when the task is finished.
|
|
34
|
-
*/
|
|
35
|
-
stream: (config?: PollConfig, options?: RequestOptions) => AsyncGenerator<BrowserUse.TaskStepView>;
|
|
36
|
-
/**
|
|
37
|
-
* Get the latest task update on every change.
|
|
38
|
-
*/
|
|
39
|
-
watch: (config?: PollConfig, options?: RequestOptions) => AsyncGenerator<{
|
|
40
|
-
event: "status";
|
|
41
|
-
data: TaskViewWithSchema<T>;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Wait for the task to finish and return the result.
|
|
45
|
-
*/
|
|
46
|
-
complete: (config?: PollConfig, options?: RequestOptions) => Promise<TaskViewWithSchema<T>>;
|
|
47
|
-
};
|
|
48
|
-
export type WrappedTaskFnsWithoutSchema = BrowserUse.TaskCreatedResponse & {
|
|
49
|
-
/**
|
|
50
|
-
* Streams the steps of the task and closes when the task is finished.
|
|
51
|
-
*/
|
|
52
|
-
stream: (config?: PollConfig, options?: RequestOptions) => AsyncGenerator<BrowserUse.TaskStepView>;
|
|
53
|
-
/**
|
|
54
|
-
* Get the latest task update on every change.
|
|
55
|
-
*/
|
|
56
|
-
watch: (config?: PollConfig, options?: RequestOptions) => AsyncGenerator<{
|
|
57
|
-
event: "status";
|
|
58
|
-
data: TaskView;
|
|
59
|
-
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Wait for the task to finish and return the result.
|
|
62
|
-
*/
|
|
63
|
-
complete: (config?: PollConfig, options?: RequestOptions) => Promise<TaskView>;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Wraps the task created response with the stream and complete functions.
|
|
67
|
-
*/
|
|
68
|
-
export declare function wrapCreateTaskResponse<T extends ZodType>(client: BrowserUseTasks, response: BrowserUse.TaskCreatedResponse, schema: T): WrappedTaskFnsWithSchema<T>;
|
|
69
|
-
export declare function wrapCreateTaskResponse(client: BrowserUseTasks, response: BrowserUse.TaskCreatedResponse, schema: null): WrappedTaskFnsWithoutSchema;
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
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 __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
12
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
13
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
14
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
15
|
-
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
16
|
-
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
17
|
-
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
18
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
19
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
20
|
-
function fulfill(value) { resume("next", value); }
|
|
21
|
-
function reject(value) { resume("throw", value); }
|
|
22
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
23
|
-
};
|
|
24
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
25
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
26
|
-
var m = o[Symbol.asyncIterator], i;
|
|
27
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
28
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
29
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
30
|
-
};
|
|
31
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.stringifyStructuredOutput = stringifyStructuredOutput;
|
|
36
|
-
exports.parseStructuredTaskOutput = parseStructuredTaskOutput;
|
|
37
|
-
exports.getTaskViewHash = getTaskViewHash;
|
|
38
|
-
exports.wrapCreateTaskResponse = wrapCreateTaskResponse;
|
|
39
|
-
const crypto_1 = require("crypto");
|
|
40
|
-
const fast_json_stable_stringify_1 = __importDefault(require("fast-json-stable-stringify"));
|
|
41
|
-
const zod_1 = __importDefault(require("zod"));
|
|
42
|
-
function stringifyStructuredOutput(schema) {
|
|
43
|
-
return JSON.stringify(zod_1.default.toJSONSchema(schema));
|
|
44
|
-
}
|
|
45
|
-
function parseStructuredTaskOutput(res, schema) {
|
|
46
|
-
if (res.output == null) {
|
|
47
|
-
return Object.assign(Object.assign({}, res), { parsed: null });
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
const parsed = JSON.parse(res.output);
|
|
51
|
-
const response = schema.safeParse(parsed);
|
|
52
|
-
if (!response.success) {
|
|
53
|
-
throw new Error(`Invalid structured output: ${response.error.message}`);
|
|
54
|
-
}
|
|
55
|
-
return Object.assign(Object.assign({}, res), { parsed: response.data });
|
|
56
|
-
}
|
|
57
|
-
catch (e) {
|
|
58
|
-
if (e instanceof SyntaxError) {
|
|
59
|
-
return Object.assign(Object.assign({}, res), { parsed: null });
|
|
60
|
-
}
|
|
61
|
-
throw e;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Hashes the task view to detect changes.
|
|
66
|
-
* Uses fast-json-stable-stringify for deterministic JSON, then SHA-256.
|
|
67
|
-
*/
|
|
68
|
-
function getTaskViewHash(view) {
|
|
69
|
-
const dump = (0, fast_json_stable_stringify_1.default)(view);
|
|
70
|
-
const hash = (0, crypto_1.createHash)("sha256").update(dump).digest("hex");
|
|
71
|
-
return hash;
|
|
72
|
-
}
|
|
73
|
-
function wrapCreateTaskResponse(client, response, schema) {
|
|
74
|
-
// NOTE: We create utility functions for streaming and watching internally in the function
|
|
75
|
-
// to expose them as utility methods to the base object.
|
|
76
|
-
function _watch(taskId, config, options) {
|
|
77
|
-
return __asyncGenerator(this, arguments, function* _watch_1() {
|
|
78
|
-
var _a, _b;
|
|
79
|
-
const intervalMs = (_a = config === null || config === void 0 ? void 0 : config.interval) !== null && _a !== void 0 ? _a : 2000;
|
|
80
|
-
const hash = { current: null };
|
|
81
|
-
poll: do {
|
|
82
|
-
if ((_b = options === null || options === void 0 ? void 0 : options.signal) === null || _b === void 0 ? void 0 : _b.aborted) {
|
|
83
|
-
break poll;
|
|
84
|
-
}
|
|
85
|
-
const res = yield __await(client.getTask({ task_id: taskId }));
|
|
86
|
-
const resHash = getTaskViewHash(res);
|
|
87
|
-
if (hash.current == null || resHash !== hash.current) {
|
|
88
|
-
hash.current = resHash;
|
|
89
|
-
yield yield __await({ event: "status", data: res });
|
|
90
|
-
}
|
|
91
|
-
switch (res.status) {
|
|
92
|
-
case "finished":
|
|
93
|
-
case "stopped":
|
|
94
|
-
break poll;
|
|
95
|
-
case "created":
|
|
96
|
-
case "started":
|
|
97
|
-
yield __await(new Promise((resolve) => setTimeout(resolve, intervalMs)));
|
|
98
|
-
break;
|
|
99
|
-
// default:
|
|
100
|
-
// throw new ExhaustiveSwitchCheck(res.status as never);
|
|
101
|
-
}
|
|
102
|
-
} while (true);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Streams the steps of the task and closes when the task is finished.
|
|
107
|
-
*
|
|
108
|
-
* @description Logs each step of the task exactly once. If you start the stream again, it will log the steps again.
|
|
109
|
-
*/
|
|
110
|
-
function stream(config, options) {
|
|
111
|
-
return __asyncGenerator(this, arguments, function* stream_1() {
|
|
112
|
-
var _a, e_1, _b, _c;
|
|
113
|
-
const steps = { total: 0 };
|
|
114
|
-
try {
|
|
115
|
-
for (var _d = true, _e = __asyncValues(_watch(response.id, config, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
116
|
-
_c = _f.value;
|
|
117
|
-
_d = false;
|
|
118
|
-
const msg = _c;
|
|
119
|
-
for (let i = steps.total; i < msg.data.steps.length; i++) {
|
|
120
|
-
steps.total = i + 1;
|
|
121
|
-
yield yield __await(msg.data.steps[i]);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
126
|
-
finally {
|
|
127
|
-
try {
|
|
128
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
129
|
-
}
|
|
130
|
-
finally { if (e_1) throw e_1.error; }
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
function watch(schema, config, options) {
|
|
135
|
-
return __asyncGenerator(this, arguments, function* watch_1() {
|
|
136
|
-
var _a, e_2, _b, _c;
|
|
137
|
-
var _d;
|
|
138
|
-
try {
|
|
139
|
-
for (var _e = true, _f = __asyncValues(_watch(response.id, config, options)), _g; _g = yield __await(_f.next()), _a = _g.done, !_a; _e = true) {
|
|
140
|
-
_c = _g.value;
|
|
141
|
-
_e = false;
|
|
142
|
-
const msg = _c;
|
|
143
|
-
if ((_d = options === null || options === void 0 ? void 0 : options.signal) === null || _d === void 0 ? void 0 : _d.aborted) {
|
|
144
|
-
break;
|
|
145
|
-
}
|
|
146
|
-
if (schema != null) {
|
|
147
|
-
const parsed = parseStructuredTaskOutput(msg.data, schema);
|
|
148
|
-
yield yield __await({ event: "status", data: parsed });
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
yield yield __await({ event: "status", data: msg.data });
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
156
|
-
finally {
|
|
157
|
-
try {
|
|
158
|
-
if (!_e && !_a && (_b = _f.return)) yield __await(_b.call(_f));
|
|
159
|
-
}
|
|
160
|
-
finally { if (e_2) throw e_2.error; }
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function complete(schema, config, options) {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
var _a, e_3, _b, _c;
|
|
167
|
-
try {
|
|
168
|
-
for (var _d = true, _e = __asyncValues(_watch(response.id, config, options)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
169
|
-
_c = _f.value;
|
|
170
|
-
_d = false;
|
|
171
|
-
const msg = _c;
|
|
172
|
-
// Return on terminal statuses
|
|
173
|
-
if (msg.data.status === "finished" || msg.data.status === "stopped") {
|
|
174
|
-
if (schema != null) {
|
|
175
|
-
return parseStructuredTaskOutput(msg.data, schema);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return msg.data;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
184
|
-
finally {
|
|
185
|
-
try {
|
|
186
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
187
|
-
}
|
|
188
|
-
finally { if (e_3) throw e_3.error; }
|
|
189
|
-
}
|
|
190
|
-
throw new Error("Stream ended before the task finished!");
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
// NOTE: Finally, we return the wrapped task response.
|
|
194
|
-
if (schema == null) {
|
|
195
|
-
const wrapped = Object.assign(Object.assign({}, response), { stream: (config, options) => stream(config, options), watch: (config, options) => watch(null, config, options), complete: (config, options) => complete(null, config, options) });
|
|
196
|
-
return wrapped;
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
const wrapped = Object.assign(Object.assign({}, response), { stream: (config, options) => stream(config, options), watch: (config, options) => watch(schema, config, options), complete: (config, options) => complete(schema, config, options) });
|
|
200
|
-
return wrapped;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Distributive Pick - does not collapse unions into a "shared type" only to
|
|
3
|
-
* run Pick on it. Instead, it "picks" from each union item separately.
|
|
4
|
-
*
|
|
5
|
-
* See https://github.com/klimashkin/css-modules-theme/pull/8
|
|
6
|
-
*
|
|
7
|
-
* Example:
|
|
8
|
-
* Pick<{ type: "pick" } | { type: "omit" }, "type">
|
|
9
|
-
* produces { type: "pick" | "omit" }
|
|
10
|
-
*
|
|
11
|
-
* UnionPick<{ type: "pick" } | { type: "omit" }, "type">
|
|
12
|
-
* produces { type: "pick" } | { type: "omit" }
|
|
13
|
-
*/
|
|
14
|
-
export type UnionPick<T, K extends keyof T> = T extends unknown ? Pick<T, K> : never;
|
|
15
|
-
/**
|
|
16
|
-
* Like UnionPick, but for Omit
|
|
17
|
-
*/
|
|
18
|
-
export type UnionOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
|
|
19
|
-
/**
|
|
20
|
-
* Utility type for properties that may be undefined until loaded.
|
|
21
|
-
*/
|
|
22
|
-
export type Loadable<T> = ({
|
|
23
|
-
loading: true;
|
|
24
|
-
} & {
|
|
25
|
-
[K in keyof T]?: never;
|
|
26
|
-
}) | ({
|
|
27
|
-
loading: false;
|
|
28
|
-
} & T);
|
|
29
|
-
/**
|
|
30
|
-
* Utility type that removes null fields from a type.
|
|
31
|
-
*/
|
|
32
|
-
export type DeepRequired<T> = {
|
|
33
|
-
[P in keyof T]: Exclude<T[P], null>;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Makes a type check that is only valid when all cases of a switch
|
|
37
|
-
* statement have been convered.
|
|
38
|
-
*/
|
|
39
|
-
export declare class ExhaustiveSwitchCheck extends Error {
|
|
40
|
-
constructor(val: never);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A utiliy type that lets you extract a union member by its `kind` property.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
*
|
|
47
|
-
* type Shape =
|
|
48
|
-
* | { kind: 'circle'; radius: number }
|
|
49
|
-
* | { kind: 'square'; sideLength: number }
|
|
50
|
-
* | { kind: 'rectangle'; width: number; height: number };
|
|
51
|
-
*
|
|
52
|
-
* type Circle = ExtractKind<Shape, 'circle'>; // { kind: 'circle'; radius: number }
|
|
53
|
-
*/
|
|
54
|
-
export type ExtractKind<T, K> = T extends {
|
|
55
|
-
kind: K;
|
|
56
|
-
} ? T : never;
|
|
57
|
-
/**
|
|
58
|
-
* A utiliy type that lets you extract a union member by its `ok` property.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
*
|
|
62
|
-
* type Result = { ok: true; value: string } | { ok: false; error: string };
|
|
63
|
-
*
|
|
64
|
-
* type Ok = ExtractResult<Result, true>; // { ok: true; value: string }
|
|
65
|
-
*/
|
|
66
|
-
export type ExtractResult<T, K extends boolean> = T extends {
|
|
67
|
-
ok: K;
|
|
68
|
-
} ? T : never;
|
|
69
|
-
/**
|
|
70
|
-
* Creates a deep readonly object mutable.
|
|
71
|
-
*/
|
|
72
|
-
export type DeepMutable<T> = {
|
|
73
|
-
-readonly [P in keyof T]: T[P] extends object ? DeepMutable<T[P]> : T[P];
|
|
74
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExhaustiveSwitchCheck = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Makes a type check that is only valid when all cases of a switch
|
|
6
|
-
* statement have been convered.
|
|
7
|
-
*/
|
|
8
|
-
class ExhaustiveSwitchCheck extends Error {
|
|
9
|
-
constructor(val) {
|
|
10
|
-
super(`Unreachable case: ${JSON.stringify(val)}`);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.ExhaustiveSwitchCheck = ExhaustiveSwitchCheck;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const zWebhookTimestamp: z.ZodISODateTime;
|
|
3
|
-
export declare const zWebhookTestPayload: z.ZodObject<{
|
|
4
|
-
test: z.ZodLiteral<"ok">;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export type WebhookTestPayload = z.infer<typeof zWebhookTestPayload>;
|
|
7
|
-
export declare const zWebhookTest: z.ZodObject<{
|
|
8
|
-
type: z.ZodLiteral<"test">;
|
|
9
|
-
timestamp: z.ZodISODateTime;
|
|
10
|
-
payload: z.ZodObject<{
|
|
11
|
-
test: z.ZodLiteral<"ok">;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export declare const zWebhookAgentTaskStatusUpdatePayloadMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
15
|
-
export declare const zWebhookAgentTaskStatusUpdatePayloadStatus: z.ZodEnum<{
|
|
16
|
-
stopped: "stopped";
|
|
17
|
-
started: "started";
|
|
18
|
-
finished: "finished";
|
|
19
|
-
initializing: "initializing";
|
|
20
|
-
}>;
|
|
21
|
-
export declare const zWebhookAgentTaskStatusUpdatePayload: z.ZodObject<{
|
|
22
|
-
session_id: z.ZodString;
|
|
23
|
-
task_id: z.ZodString;
|
|
24
|
-
status: z.ZodEnum<{
|
|
25
|
-
stopped: "stopped";
|
|
26
|
-
started: "started";
|
|
27
|
-
finished: "finished";
|
|
28
|
-
initializing: "initializing";
|
|
29
|
-
}>;
|
|
30
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export type WebhookAgentTaskStatusUpdatePayload = z.infer<typeof zWebhookAgentTaskStatusUpdatePayload>;
|
|
33
|
-
export declare const zWebhookAgentTaskStatusUpdate: z.ZodObject<{
|
|
34
|
-
type: z.ZodLiteral<"agent.task.status_update">;
|
|
35
|
-
timestamp: z.ZodISODateTime;
|
|
36
|
-
payload: z.ZodObject<{
|
|
37
|
-
session_id: z.ZodString;
|
|
38
|
-
task_id: z.ZodString;
|
|
39
|
-
status: z.ZodEnum<{
|
|
40
|
-
stopped: "stopped";
|
|
41
|
-
started: "started";
|
|
42
|
-
finished: "finished";
|
|
43
|
-
initializing: "initializing";
|
|
44
|
-
}>;
|
|
45
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
}, z.core.$strip>;
|
|
48
|
-
export declare const zWebhookSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
-
type: z.ZodLiteral<"test">;
|
|
50
|
-
timestamp: z.ZodISODateTime;
|
|
51
|
-
payload: z.ZodObject<{
|
|
52
|
-
test: z.ZodLiteral<"ok">;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
type: z.ZodLiteral<"agent.task.status_update">;
|
|
56
|
-
timestamp: z.ZodISODateTime;
|
|
57
|
-
payload: z.ZodObject<{
|
|
58
|
-
session_id: z.ZodString;
|
|
59
|
-
task_id: z.ZodString;
|
|
60
|
-
status: z.ZodEnum<{
|
|
61
|
-
stopped: "stopped";
|
|
62
|
-
started: "started";
|
|
63
|
-
finished: "finished";
|
|
64
|
-
initializing: "initializing";
|
|
65
|
-
}>;
|
|
66
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
}, z.core.$strip>], "type">;
|
|
69
|
-
export type Webhook = z.infer<typeof zWebhookSchema>;
|
|
70
|
-
/**
|
|
71
|
-
* Utility function that validates the received Webhook event/
|
|
72
|
-
*/
|
|
73
|
-
export declare function verifyWebhookEventSignature(evt: {
|
|
74
|
-
body: string | object;
|
|
75
|
-
signature: string;
|
|
76
|
-
timestamp: string;
|
|
77
|
-
}, cfg: {
|
|
78
|
-
secret: string;
|
|
79
|
-
}): Promise<{
|
|
80
|
-
ok: true;
|
|
81
|
-
event: Webhook;
|
|
82
|
-
} | {
|
|
83
|
-
ok: false;
|
|
84
|
-
}>;
|
|
85
|
-
/**
|
|
86
|
-
* Creates a webhook signature for the given payload, timestamp, and secret.
|
|
87
|
-
*/
|
|
88
|
-
export declare function createWebhookSignature({ body, timestamp, secret, }: {
|
|
89
|
-
body: unknown;
|
|
90
|
-
timestamp: string;
|
|
91
|
-
secret: string;
|
|
92
|
-
}): string;
|