browser-use-sdk 2.0.11 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.d.ts +1 -1
- package/dist/cjs/Client.d.ts +1 -1
- package/dist/cjs/Client.js +3 -3
- package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -2
- package/dist/cjs/api/resources/billing/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/billing/client/Client.js +2 -2
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +9 -7
- package/dist/cjs/api/resources/browsers/client/Client.js +9 -7
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/profiles/client/Client.js +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +1 -1
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skills/client/Client.d.ts +25 -6
- package/dist/cjs/api/resources/skills/client/Client.js +85 -8
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +3 -0
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +12 -0
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +3 -0
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +3 -0
- package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +5 -2
- package/dist/cjs/api/resources/skills/client/requests/index.d.ts +3 -2
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +24 -5
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +87 -7
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +12 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +9 -3
- package/dist/cjs/api/resources/tasks/client/Client.js +9 -3
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +29 -1
- package/dist/cjs/api/resources/workflows/client/Client.js +85 -1
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.ts +18 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/AccountNotFoundError.d.ts +1 -1
- package/dist/cjs/api/types/AccountView.d.ts +5 -5
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +6 -0
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +3 -0
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +6 -0
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +3 -0
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.d.ts +6 -0
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +3 -0
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +6 -0
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +3 -0
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +6 -0
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +3 -0
- package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +7 -0
- package/dist/cjs/api/types/ExecuteSkillRequest.js +3 -0
- package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +15 -1
- package/dist/cjs/api/types/ParameterSchema.d.ts +1 -0
- package/dist/cjs/api/types/ParameterType.d.ts +1 -0
- package/dist/cjs/api/types/ParameterType.js +1 -0
- package/dist/cjs/api/types/SessionItemView.d.ts +2 -0
- package/dist/cjs/api/types/SessionStatus.d.ts +3 -3
- package/dist/cjs/api/types/SessionStatus.js +3 -3
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +1 -1
- package/dist/cjs/api/types/SessionView.d.ts +2 -0
- package/dist/cjs/api/types/SkillCategory.d.ts +20 -0
- package/dist/cjs/api/types/SkillCategory.js +23 -0
- package/dist/cjs/api/types/SkillResponse.d.ts +19 -3
- package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +1 -0
- package/dist/cjs/api/types/SkillsGenerationStatus.js +1 -0
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.d.ts +11 -0
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +4 -0
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +4 -0
- package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +4 -4
- package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +6 -0
- package/dist/cjs/api/types/WorkflowItemView.d.ts +7 -0
- package/dist/cjs/api/types/WorkflowResponse.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +10 -6
- package/dist/cjs/api/types/index.js +10 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +1 -1
- package/dist/esm/Client.d.mts +1 -1
- package/dist/esm/Client.mjs +3 -3
- package/dist/esm/api/errors/ForbiddenError.d.mts +1 -2
- package/dist/esm/api/resources/billing/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
- package/dist/esm/api/resources/browsers/client/Client.d.mts +9 -7
- package/dist/esm/api/resources/browsers/client/Client.mjs +9 -7
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +1 -1
- package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/profiles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/profiles/client/Client.mjs +1 -1
- package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +2 -0
- package/dist/esm/api/resources/skills/client/Client.d.mts +25 -6
- package/dist/esm/api/resources/skills/client/Client.mjs +85 -8
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +9 -0
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +2 -0
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +12 -0
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +2 -0
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +2 -0
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +9 -0
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +2 -0
- package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +5 -2
- package/dist/esm/api/resources/skills/client/requests/index.d.mts +3 -2
- package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +24 -5
- package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +87 -7
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +12 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/tasks/client/Client.d.mts +9 -3
- package/dist/esm/api/resources/tasks/client/Client.mjs +9 -3
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +2 -0
- package/dist/esm/api/resources/workflows/client/Client.d.mts +29 -1
- package/dist/esm/api/resources/workflows/client/Client.mjs +85 -1
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.mts +18 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/AccountNotFoundError.d.mts +1 -1
- package/dist/esm/api/types/AccountView.d.mts +5 -5
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +6 -0
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +2 -0
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +6 -0
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +2 -0
- package/dist/esm/api/types/CannotRollbackPublicSkillError.d.mts +6 -0
- package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +2 -0
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +6 -0
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +2 -0
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +6 -0
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +2 -0
- package/dist/esm/api/types/ExecuteSkillRequest.d.mts +7 -0
- package/dist/esm/api/types/ExecuteSkillRequest.mjs +2 -0
- package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +15 -1
- package/dist/esm/api/types/ParameterSchema.d.mts +1 -0
- package/dist/esm/api/types/ParameterType.d.mts +1 -0
- package/dist/esm/api/types/ParameterType.mjs +1 -0
- package/dist/esm/api/types/SessionItemView.d.mts +2 -0
- package/dist/esm/api/types/SessionStatus.d.mts +3 -3
- package/dist/esm/api/types/SessionStatus.mjs +3 -3
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +1 -1
- package/dist/esm/api/types/SessionView.d.mts +2 -0
- package/dist/esm/api/types/SkillCategory.d.mts +20 -0
- package/dist/esm/api/types/SkillCategory.mjs +20 -0
- package/dist/esm/api/types/SkillResponse.d.mts +19 -3
- package/dist/esm/api/types/SkillsGenerationStatus.d.mts +1 -0
- package/dist/esm/api/types/SkillsGenerationStatus.mjs +1 -0
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.d.mts +11 -0
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +4 -0
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +4 -0
- package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +4 -4
- package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +6 -0
- package/dist/esm/api/types/WorkflowItemView.d.mts +7 -0
- package/dist/esm/api/types/WorkflowResponse.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +10 -6
- package/dist/esm/api/types/index.mjs +10 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +83 -82
- package/reference.md +232 -15
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SessionStatus = void 0;
|
|
5
5
|
/**
|
|
6
|
-
* Enumeration of possible
|
|
6
|
+
* Enumeration of possible agent session states
|
|
7
7
|
*
|
|
8
8
|
* Attributes:
|
|
9
|
-
* ACTIVE:
|
|
10
|
-
* STOPPED:
|
|
9
|
+
* ACTIVE: Agent session is currently active and running
|
|
10
|
+
* STOPPED: Agent session has been stopped and is no longer active
|
|
11
11
|
*/
|
|
12
12
|
exports.SessionStatus = {
|
|
13
13
|
Active: "active",
|
|
@@ -17,4 +17,6 @@ export interface SessionView {
|
|
|
17
17
|
tasks: BrowserUse.TaskItemView[];
|
|
18
18
|
/** Optional URL to access the public share of the session */
|
|
19
19
|
publicShareUrl?: string | null;
|
|
20
|
+
/** Whether tasks in this session share memory and history with each other */
|
|
21
|
+
persistMemory?: boolean;
|
|
20
22
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Skill category. */
|
|
2
|
+
export declare const SkillCategory: {
|
|
3
|
+
readonly Search: "search";
|
|
4
|
+
readonly ECommerce: "e_commerce";
|
|
5
|
+
readonly Financial: "financial";
|
|
6
|
+
readonly News: "news";
|
|
7
|
+
readonly RealEstate: "real_estate";
|
|
8
|
+
readonly SocialMedia: "social_media";
|
|
9
|
+
readonly Travel: "travel";
|
|
10
|
+
readonly Marketplace: "marketplace";
|
|
11
|
+
readonly LeadGeneration: "lead_generation";
|
|
12
|
+
readonly Seo: "seo";
|
|
13
|
+
readonly Jobs: "jobs";
|
|
14
|
+
readonly Developer: "developer";
|
|
15
|
+
readonly Media: "media";
|
|
16
|
+
readonly Automation: "automation";
|
|
17
|
+
readonly Integration: "integration";
|
|
18
|
+
readonly Other: "other";
|
|
19
|
+
};
|
|
20
|
+
export type SkillCategory = (typeof SkillCategory)[keyof typeof SkillCategory];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SkillCategory = void 0;
|
|
5
|
+
/** Skill category. */
|
|
6
|
+
exports.SkillCategory = {
|
|
7
|
+
Search: "search",
|
|
8
|
+
ECommerce: "e_commerce",
|
|
9
|
+
Financial: "financial",
|
|
10
|
+
News: "news",
|
|
11
|
+
RealEstate: "real_estate",
|
|
12
|
+
SocialMedia: "social_media",
|
|
13
|
+
Travel: "travel",
|
|
14
|
+
Marketplace: "marketplace",
|
|
15
|
+
LeadGeneration: "lead_generation",
|
|
16
|
+
Seo: "seo",
|
|
17
|
+
Jobs: "jobs",
|
|
18
|
+
Developer: "developer",
|
|
19
|
+
Media: "media",
|
|
20
|
+
Automation: "automation",
|
|
21
|
+
Integration: "integration",
|
|
22
|
+
Other: "other",
|
|
23
|
+
};
|
|
@@ -5,10 +5,16 @@ import type * as BrowserUse from "../index.js";
|
|
|
5
5
|
export interface SkillResponse {
|
|
6
6
|
/** Unique identifier for the skill */
|
|
7
7
|
id: string;
|
|
8
|
+
/** URL-friendly slug for the skill */
|
|
9
|
+
slug?: string | null;
|
|
8
10
|
/** Title of the skill (shows up in the public view) */
|
|
9
11
|
title: string;
|
|
10
12
|
/** Description of the skill (shows up in the public view) */
|
|
11
13
|
description: string;
|
|
14
|
+
/** Categories of the skill */
|
|
15
|
+
categories: BrowserUse.SkillCategory[];
|
|
16
|
+
/** Domains/websites this skill interacts with */
|
|
17
|
+
domains: string[];
|
|
12
18
|
/** Goal of the skill (not shown in the public view) */
|
|
13
19
|
goal?: string | null;
|
|
14
20
|
/** Prompt for the agent to use when generating the skill automatically (not shown in the public view) */
|
|
@@ -16,19 +22,29 @@ export interface SkillResponse {
|
|
|
16
22
|
/** Status of the skill */
|
|
17
23
|
status: BrowserUse.SkillsGenerationStatus;
|
|
18
24
|
/** Input parameters of the skill */
|
|
19
|
-
parameters: BrowserUse.
|
|
25
|
+
parameters: BrowserUse.ParameterSchema[];
|
|
20
26
|
/** Output schema of the skill */
|
|
21
27
|
outputSchema: Record<string, unknown>;
|
|
22
28
|
/** Whether the skill is enabled */
|
|
23
29
|
isEnabled: boolean;
|
|
24
30
|
/** Whether the skill is publicly available */
|
|
25
31
|
isPublic: boolean;
|
|
26
|
-
/**
|
|
27
|
-
|
|
32
|
+
/** URL of the custom skill icon */
|
|
33
|
+
iconUrl?: string | null;
|
|
34
|
+
/** When the skill was first published */
|
|
35
|
+
firstPublishedAt?: string | null;
|
|
36
|
+
/** When the skill was last published */
|
|
37
|
+
lastPublishedAt?: string | null;
|
|
28
38
|
/** Current version of the skill */
|
|
29
39
|
currentVersion: number | null;
|
|
40
|
+
/** When the current version started generating */
|
|
41
|
+
currentVersionStartedAt?: string | null;
|
|
42
|
+
/** When the current version finished generating */
|
|
43
|
+
currentVersionFinishedAt?: string | null;
|
|
30
44
|
/** Base64 encoded generated code (contact support@browser-use.com to get access) - ENTERPRISE ONLY */
|
|
31
45
|
code?: string | null;
|
|
46
|
+
/** Unique identifier for the skill this skill was cloned from */
|
|
47
|
+
clonedFromSkillId?: string | null;
|
|
32
48
|
/** Creation timestamp */
|
|
33
49
|
createdAt: string;
|
|
34
50
|
/** Last update timestamp */
|
|
@@ -5,5 +5,6 @@ export declare const SkillsGenerationStatus: {
|
|
|
5
5
|
readonly Failed: "failed";
|
|
6
6
|
readonly Finished: "finished";
|
|
7
7
|
readonly Cancelled: "cancelled";
|
|
8
|
+
readonly TimedOut: "timed_out";
|
|
8
9
|
};
|
|
9
10
|
export type SkillsGenerationStatus = (typeof SkillsGenerationStatus)[keyof typeof SkillsGenerationStatus];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response model for workflow created from an agent task.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkflowCreateFromTaskResponse {
|
|
5
|
+
/** ID of the newly created workflow */
|
|
6
|
+
workflowId: string;
|
|
7
|
+
/** Status of the workflow creation (pending, completed) */
|
|
8
|
+
status?: string;
|
|
9
|
+
/** Human-readable message about the creation */
|
|
10
|
+
message?: string;
|
|
11
|
+
}
|
|
@@ -33,6 +33,10 @@ export interface WorkflowExecutionResponse {
|
|
|
33
33
|
executionMetadata?: Record<string, unknown> | null;
|
|
34
34
|
/** Presigned URL to download execution logs */
|
|
35
35
|
logsDownloadUrl?: string | null;
|
|
36
|
+
/** AI-generated summary of the execution result */
|
|
37
|
+
aiSummary?: string | null;
|
|
38
|
+
/** AI's determination of whether execution succeeded */
|
|
39
|
+
aiSuccess?: boolean | null;
|
|
36
40
|
/** Naive UTC timestamp when execution was created */
|
|
37
41
|
createdAt: string;
|
|
38
42
|
}
|
|
@@ -25,4 +25,8 @@ export interface WorkflowExecutionStateView {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
/** Live browser view URL (available during and up to 60s after execution) */
|
|
27
27
|
liveUrl?: string | null;
|
|
28
|
+
/** AI-generated summary of the execution result */
|
|
29
|
+
aiSummary?: string | null;
|
|
30
|
+
/** AI's determination of whether execution succeeded */
|
|
31
|
+
aiSuccess?: boolean | null;
|
|
28
32
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface WorkflowExecutionStepView {
|
|
5
5
|
/** Unique identifier for the step (execution_id-step-N) */
|
|
6
|
-
id
|
|
6
|
+
id?: string;
|
|
7
7
|
/** Sequential step number (1-indexed) */
|
|
8
|
-
stepNumber
|
|
8
|
+
stepNumber?: number;
|
|
9
9
|
/** Name of the step from workflow definition */
|
|
10
10
|
stepName?: string | null;
|
|
11
11
|
/** Description of what this step is doing */
|
|
12
|
-
nextGoal
|
|
12
|
+
nextGoal?: string;
|
|
13
13
|
/** Whether the step has completed */
|
|
14
14
|
isDone?: boolean;
|
|
15
15
|
/** Whether the step succeeded (None if in progress) */
|
|
@@ -25,5 +25,5 @@ export interface WorkflowExecutionStepView {
|
|
|
25
25
|
/** Error message if step failed */
|
|
26
26
|
error?: string | null;
|
|
27
27
|
/** ISO 8601 timestamp when step was executed */
|
|
28
|
-
createdAt
|
|
28
|
+
createdAt?: string;
|
|
29
29
|
}
|
|
@@ -9,10 +9,16 @@ export interface WorkflowGenerationStateView {
|
|
|
9
9
|
name: string;
|
|
10
10
|
/** Current status of workflow generation */
|
|
11
11
|
generationStatus: BrowserUse.WorkflowGenerationStatus;
|
|
12
|
+
/** Error message if generation failed */
|
|
13
|
+
generationError?: string | null;
|
|
14
|
+
/** Current progress step (e.g., "downloading_history", "detecting_variables") */
|
|
15
|
+
generationProgress?: string | null;
|
|
12
16
|
/** Live browser view URL (available only during generation) */
|
|
13
17
|
liveUrl?: string | null;
|
|
14
18
|
/** List of generated workflow steps (available after completion) */
|
|
15
19
|
steps?: BrowserUse.WorkflowGenerationStepView[];
|
|
16
20
|
/** When workflow was created */
|
|
17
21
|
createdAt: string;
|
|
22
|
+
/** When workflow was last updated */
|
|
23
|
+
updatedAt?: string | null;
|
|
18
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as BrowserUse from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* Minimal view model for listing workflows.
|
|
3
4
|
*/
|
|
@@ -14,6 +15,12 @@ export interface WorkflowItemView {
|
|
|
14
15
|
cost?: string;
|
|
15
16
|
/** Whether the workflow is archived */
|
|
16
17
|
isArchived?: boolean;
|
|
18
|
+
/** Status of workflow generation */
|
|
19
|
+
generationStatus?: BrowserUse.WorkflowGenerationStatus;
|
|
20
|
+
/** Error message if generation failed */
|
|
21
|
+
generationError?: string | null;
|
|
22
|
+
/** Generation metadata including progress_step */
|
|
23
|
+
generationMetadata?: Record<string, unknown> | null;
|
|
17
24
|
/** Naive UTC timestamp when the workflow was created */
|
|
18
25
|
createdAt: string;
|
|
19
26
|
}
|
|
@@ -27,6 +27,8 @@ export interface WorkflowResponse {
|
|
|
27
27
|
generationStatus?: BrowserUse.WorkflowGenerationStatus;
|
|
28
28
|
/** Error message if generation failed */
|
|
29
29
|
generationError?: string | null;
|
|
30
|
+
/** Generation metadata including progress_step */
|
|
31
|
+
generationMetadata?: Record<string, unknown> | null;
|
|
30
32
|
/** Input schema from workflow YAML defining required/optional variables */
|
|
31
33
|
inputSchema?: Record<string, unknown>[] | null;
|
|
32
34
|
/** Pre-filled input template based on input_schema for easy execution */
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export * from "./AccountNotFoundError.js";
|
|
2
2
|
export * from "./AccountView.js";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./AppApiV2SkillsViewsInsufficientCreditsError.js";
|
|
6
|
-
export * from "./AppApiV2SkillsViewsParameterSchema.js";
|
|
7
|
-
export * from "./AppApiV2SkillsViewsParameterType.js";
|
|
8
|
-
export * from "./AppViewsV2ErrorViewsInsufficientCreditsError.js";
|
|
3
|
+
export * from "./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js";
|
|
4
|
+
export * from "./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js";
|
|
9
5
|
export * from "./BadRequestErrorBody.js";
|
|
10
6
|
export * from "./BrowserSessionItemView.js";
|
|
11
7
|
export * from "./BrowserSessionListResponse.js";
|
|
@@ -13,9 +9,13 @@ export * from "./BrowserSessionStatus.js";
|
|
|
13
9
|
export * from "./BrowserSessionUpdateAction.js";
|
|
14
10
|
export * from "./BrowserSessionView.js";
|
|
15
11
|
export * from "./CannotDeleteSkillWhileGeneratingError.js";
|
|
12
|
+
export * from "./CannotRollbackPublicSkillError.js";
|
|
13
|
+
export * from "./CommonUtilsErrorsInsufficientCreditsError.js";
|
|
16
14
|
export * from "./ConcurrentSkillCreationsError.js";
|
|
17
15
|
export * from "./CreateSkillResponse.js";
|
|
18
16
|
export * from "./DownloadUrlGenerationError.js";
|
|
17
|
+
export * from "./EnabledSkillsLimitExceededError.js";
|
|
18
|
+
export * from "./ExecuteSkillRequest.js";
|
|
19
19
|
export * from "./ExecuteSkillResponse.js";
|
|
20
20
|
export * from "./FileView.js";
|
|
21
21
|
export * from "./GenerationNotCancellableError.js";
|
|
@@ -25,6 +25,8 @@ export * from "./MarketplaceSkillListResponse.js";
|
|
|
25
25
|
export * from "./MarketplaceSkillResponse.js";
|
|
26
26
|
export * from "./NotFoundErrorBody.js";
|
|
27
27
|
export * from "./OutputFileNotFoundError.js";
|
|
28
|
+
export * from "./ParameterSchema.js";
|
|
29
|
+
export * from "./ParameterType.js";
|
|
28
30
|
export * from "./PlanInfo.js";
|
|
29
31
|
export * from "./ProfileListResponse.js";
|
|
30
32
|
export * from "./ProfileNotFoundError.js";
|
|
@@ -42,6 +44,7 @@ export * from "./SessionUpdateAction.js";
|
|
|
42
44
|
export * from "./SessionView.js";
|
|
43
45
|
export * from "./ShareNotFoundError.js";
|
|
44
46
|
export * from "./ShareView.js";
|
|
47
|
+
export * from "./SkillCategory.js";
|
|
45
48
|
export * from "./SkillListResponse.js";
|
|
46
49
|
export * from "./SkillNotFinishedError.js";
|
|
47
50
|
export * from "./SkillNotFoundError.js";
|
|
@@ -63,6 +66,7 @@ export * from "./UnsupportedContentTypeError.js";
|
|
|
63
66
|
export * from "./UploadFilePresignedUrlResponse.js";
|
|
64
67
|
export * from "./UploadFileRequest.js";
|
|
65
68
|
export * from "./ValidationError.js";
|
|
69
|
+
export * from "./WorkflowCreateFromTaskResponse.js";
|
|
66
70
|
export * from "./WorkflowExecutionCreatedResponse.js";
|
|
67
71
|
export * from "./WorkflowExecutionItemView.js";
|
|
68
72
|
export * from "./WorkflowExecutionListResponse.js";
|
|
@@ -16,12 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AccountNotFoundError.js"), exports);
|
|
18
18
|
__exportStar(require("./AccountView.js"), exports);
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./AppApiV2SkillsViewsInsufficientCreditsError.js"), exports);
|
|
22
|
-
__exportStar(require("./AppApiV2SkillsViewsParameterSchema.js"), exports);
|
|
23
|
-
__exportStar(require("./AppApiV2SkillsViewsParameterType.js"), exports);
|
|
24
|
-
__exportStar(require("./AppViewsV2ErrorViewsInsufficientCreditsError.js"), exports);
|
|
19
|
+
__exportStar(require("./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js"), exports);
|
|
20
|
+
__exportStar(require("./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js"), exports);
|
|
25
21
|
__exportStar(require("./BadRequestErrorBody.js"), exports);
|
|
26
22
|
__exportStar(require("./BrowserSessionItemView.js"), exports);
|
|
27
23
|
__exportStar(require("./BrowserSessionListResponse.js"), exports);
|
|
@@ -29,9 +25,13 @@ __exportStar(require("./BrowserSessionStatus.js"), exports);
|
|
|
29
25
|
__exportStar(require("./BrowserSessionUpdateAction.js"), exports);
|
|
30
26
|
__exportStar(require("./BrowserSessionView.js"), exports);
|
|
31
27
|
__exportStar(require("./CannotDeleteSkillWhileGeneratingError.js"), exports);
|
|
28
|
+
__exportStar(require("./CannotRollbackPublicSkillError.js"), exports);
|
|
29
|
+
__exportStar(require("./CommonUtilsErrorsInsufficientCreditsError.js"), exports);
|
|
32
30
|
__exportStar(require("./ConcurrentSkillCreationsError.js"), exports);
|
|
33
31
|
__exportStar(require("./CreateSkillResponse.js"), exports);
|
|
34
32
|
__exportStar(require("./DownloadUrlGenerationError.js"), exports);
|
|
33
|
+
__exportStar(require("./EnabledSkillsLimitExceededError.js"), exports);
|
|
34
|
+
__exportStar(require("./ExecuteSkillRequest.js"), exports);
|
|
35
35
|
__exportStar(require("./ExecuteSkillResponse.js"), exports);
|
|
36
36
|
__exportStar(require("./FileView.js"), exports);
|
|
37
37
|
__exportStar(require("./GenerationNotCancellableError.js"), exports);
|
|
@@ -41,6 +41,8 @@ __exportStar(require("./MarketplaceSkillListResponse.js"), exports);
|
|
|
41
41
|
__exportStar(require("./MarketplaceSkillResponse.js"), exports);
|
|
42
42
|
__exportStar(require("./NotFoundErrorBody.js"), exports);
|
|
43
43
|
__exportStar(require("./OutputFileNotFoundError.js"), exports);
|
|
44
|
+
__exportStar(require("./ParameterSchema.js"), exports);
|
|
45
|
+
__exportStar(require("./ParameterType.js"), exports);
|
|
44
46
|
__exportStar(require("./PlanInfo.js"), exports);
|
|
45
47
|
__exportStar(require("./ProfileListResponse.js"), exports);
|
|
46
48
|
__exportStar(require("./ProfileNotFoundError.js"), exports);
|
|
@@ -58,6 +60,7 @@ __exportStar(require("./SessionUpdateAction.js"), exports);
|
|
|
58
60
|
__exportStar(require("./SessionView.js"), exports);
|
|
59
61
|
__exportStar(require("./ShareNotFoundError.js"), exports);
|
|
60
62
|
__exportStar(require("./ShareView.js"), exports);
|
|
63
|
+
__exportStar(require("./SkillCategory.js"), exports);
|
|
61
64
|
__exportStar(require("./SkillListResponse.js"), exports);
|
|
62
65
|
__exportStar(require("./SkillNotFinishedError.js"), exports);
|
|
63
66
|
__exportStar(require("./SkillNotFoundError.js"), exports);
|
|
@@ -79,6 +82,7 @@ __exportStar(require("./UnsupportedContentTypeError.js"), exports);
|
|
|
79
82
|
__exportStar(require("./UploadFilePresignedUrlResponse.js"), exports);
|
|
80
83
|
__exportStar(require("./UploadFileRequest.js"), exports);
|
|
81
84
|
__exportStar(require("./ValidationError.js"), exports);
|
|
85
|
+
__exportStar(require("./WorkflowCreateFromTaskResponse.js"), exports);
|
|
82
86
|
__exportStar(require("./WorkflowExecutionCreatedResponse.js"), exports);
|
|
83
87
|
__exportStar(require("./WorkflowExecutionItemView.js"), exports);
|
|
84
88
|
__exportStar(require("./WorkflowExecutionListResponse.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.13";
|
package/dist/cjs/version.js
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.BrowserUseEnvironment | string>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
apiKey
|
|
7
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class BrowserUseClient {
|
|
|
25
25
|
protected _skills: Skills | undefined;
|
|
26
26
|
protected _skillsMarketplace: SkillsMarketplace | undefined;
|
|
27
27
|
protected _workflows: Workflows | undefined;
|
|
28
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: BrowserUseClient.Options);
|
|
29
29
|
get billing(): Billing;
|
|
30
30
|
get tasks(): Tasks;
|
|
31
31
|
get sessions(): Sessions;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,12 +11,12 @@ import { Workflows } from "./api/resources/workflows/client/Client.mjs";
|
|
|
11
11
|
import { mergeHeaders } from "./core/headers.mjs";
|
|
12
12
|
import * as core from "./core/index.mjs";
|
|
13
13
|
export class BrowserUseClient {
|
|
14
|
-
constructor(_options) {
|
|
14
|
+
constructor(_options = {}) {
|
|
15
15
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
|
|
16
16
|
"X-Fern-Language": "JavaScript",
|
|
17
17
|
"X-Fern-SDK-Name": "browser-use-sdk",
|
|
18
|
-
"X-Fern-SDK-Version": "2.0.
|
|
19
|
-
"User-Agent": "browser-use-sdk/2.0.
|
|
18
|
+
"X-Fern-SDK-Version": "2.0.13",
|
|
19
|
+
"User-Agent": "browser-use-sdk/2.0.13",
|
|
20
20
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
21
21
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
22
22
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type * as core from "../../core/index.mjs";
|
|
2
2
|
import * as errors from "../../errors/index.mjs";
|
|
3
|
-
import type * as BrowserUse from "../index.mjs";
|
|
4
3
|
export declare class ForbiddenError extends errors.BrowserUseError {
|
|
5
|
-
constructor(body
|
|
4
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
6
5
|
}
|
|
@@ -9,9 +9,9 @@ export declare namespace Billing {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Billing {
|
|
11
11
|
protected readonly _options: Billing.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Billing.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Get authenticated account information including credit
|
|
14
|
+
* Get authenticated account information including credit balance and account details.
|
|
15
15
|
*
|
|
16
16
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
@@ -14,11 +14,11 @@ import * as environments from "../../../../environments.mjs";
|
|
|
14
14
|
import * as errors from "../../../../errors/index.mjs";
|
|
15
15
|
import * as BrowserUse from "../../../index.mjs";
|
|
16
16
|
export class Billing {
|
|
17
|
-
constructor(_options) {
|
|
17
|
+
constructor(_options = {}) {
|
|
18
18
|
this._options = _options;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Get authenticated account information including credit
|
|
21
|
+
* Get authenticated account information including credit balance and account details.
|
|
22
22
|
*
|
|
23
23
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
24
|
*
|
|
@@ -9,7 +9,7 @@ export declare namespace Browsers {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Browsers {
|
|
11
11
|
protected readonly _options: Browsers.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Browsers.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get paginated list of browser sessions with optional status filtering.
|
|
15
15
|
*
|
|
@@ -26,16 +26,18 @@ export declare class Browsers {
|
|
|
26
26
|
/**
|
|
27
27
|
* Create a new browser session.
|
|
28
28
|
*
|
|
29
|
-
* **Pricing:** Browser sessions are charged
|
|
30
|
-
*
|
|
29
|
+
* **Pricing:** Browser sessions are charged per hour with tiered pricing:
|
|
30
|
+
* - Pay As You Go users: $0.06/hour
|
|
31
|
+
* - Business/Scaleup subscribers: $0.03/hour (50% discount)
|
|
32
|
+
*
|
|
33
|
+
* The full rate is charged upfront when the session starts.
|
|
31
34
|
* When you stop the session, any unused time is automatically refunded proportionally.
|
|
32
35
|
*
|
|
33
|
-
* Billing is rounded to the
|
|
34
|
-
* For example, if you stop a session after 30 minutes, you'll be refunded
|
|
36
|
+
* Billing is rounded up to the minute (minimum 1 minute).
|
|
37
|
+
* For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.
|
|
35
38
|
*
|
|
36
39
|
* **Session Limits:**
|
|
37
|
-
* -
|
|
38
|
-
* - Paid subscribers: Up to 4 hours per session
|
|
40
|
+
* - All users: Up to 4 hours per session
|
|
39
41
|
*
|
|
40
42
|
* @param {BrowserUse.CreateBrowserSessionRequest} request
|
|
41
43
|
* @param {Browsers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
25
25
|
import * as errors from "../../../../errors/index.mjs";
|
|
26
26
|
import * as BrowserUse from "../../../index.mjs";
|
|
27
27
|
export class Browsers {
|
|
28
|
-
constructor(_options) {
|
|
28
|
+
constructor(_options = {}) {
|
|
29
29
|
this._options = _options;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -106,16 +106,18 @@ export class Browsers {
|
|
|
106
106
|
/**
|
|
107
107
|
* Create a new browser session.
|
|
108
108
|
*
|
|
109
|
-
* **Pricing:** Browser sessions are charged
|
|
110
|
-
*
|
|
109
|
+
* **Pricing:** Browser sessions are charged per hour with tiered pricing:
|
|
110
|
+
* - Pay As You Go users: $0.06/hour
|
|
111
|
+
* - Business/Scaleup subscribers: $0.03/hour (50% discount)
|
|
112
|
+
*
|
|
113
|
+
* The full rate is charged upfront when the session starts.
|
|
111
114
|
* When you stop the session, any unused time is automatically refunded proportionally.
|
|
112
115
|
*
|
|
113
|
-
* Billing is rounded to the
|
|
114
|
-
* For example, if you stop a session after 30 minutes, you'll be refunded
|
|
116
|
+
* Billing is rounded up to the minute (minimum 1 minute).
|
|
117
|
+
* For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.
|
|
115
118
|
*
|
|
116
119
|
* **Session Limits:**
|
|
117
|
-
* -
|
|
118
|
-
* - Paid subscribers: Up to 4 hours per session
|
|
120
|
+
* - All users: Up to 4 hours per session
|
|
119
121
|
*
|
|
120
122
|
* @param {BrowserUse.CreateBrowserSessionRequest} request
|
|
121
123
|
* @param {Browsers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8,7 +8,7 @@ export interface CreateBrowserSessionRequest {
|
|
|
8
8
|
profileId?: string | null;
|
|
9
9
|
/** Country code for proxy location. */
|
|
10
10
|
proxyCountryCode?: BrowserUse.ProxyCountryCode | null;
|
|
11
|
-
/** The timeout for the session in minutes.
|
|
11
|
+
/** The timeout for the session in minutes. All users can use up to 240 minutes (4 hours). Pay As You Go users are charged $0.06/hour, subscribers get 50% off. */
|
|
12
12
|
timeout?: number;
|
|
13
13
|
/** Custom screen width in pixels for the browser. */
|
|
14
14
|
browserScreenWidth?: number | null;
|
|
@@ -9,7 +9,7 @@ export declare namespace Files {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Files {
|
|
11
11
|
protected readonly _options: Files.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Files.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Generate a secure presigned URL for uploading files to an agent session.
|
|
15
15
|
*
|
|
@@ -14,7 +14,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
14
14
|
import * as errors from "../../../../errors/index.mjs";
|
|
15
15
|
import * as BrowserUse from "../../../index.mjs";
|
|
16
16
|
export class Files {
|
|
17
|
-
constructor(_options) {
|
|
17
|
+
constructor(_options = {}) {
|
|
18
18
|
this._options = _options;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
25
25
|
import * as errors from "../../../../errors/index.mjs";
|
|
26
26
|
import * as BrowserUse from "../../../index.mjs";
|
|
27
27
|
export class Profiles {
|
|
28
|
-
constructor(_options) {
|
|
28
|
+
constructor(_options = {}) {
|
|
29
29
|
this._options = _options;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -9,7 +9,7 @@ export declare namespace Sessions {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Sessions {
|
|
11
11
|
protected readonly _options: Sessions.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Sessions.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get paginated list of AI agent sessions with optional status filtering.
|
|
15
15
|
*
|
|
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
25
25
|
import * as errors from "../../../../errors/index.mjs";
|
|
26
26
|
import * as BrowserUse from "../../../index.mjs";
|
|
27
27
|
export class Sessions {
|
|
28
|
-
constructor(_options) {
|
|
28
|
+
constructor(_options = {}) {
|
|
29
29
|
this._options = _options;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -14,4 +14,6 @@ export interface CreateSessionRequest {
|
|
|
14
14
|
browserScreenWidth?: number | null;
|
|
15
15
|
/** Custom screen height in pixels for the browser. */
|
|
16
16
|
browserScreenHeight?: number | null;
|
|
17
|
+
/** If True (default), tasks in this session share memory and history with each other, allowing follow-up tasks to continue from previous context. If False, each task runs as a standalone task without any previous task context. */
|
|
18
|
+
persistMemory?: boolean;
|
|
17
19
|
}
|