browser-use-sdk 2.0.13 → 2.0.15

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.
Files changed (90) hide show
  1. package/dist/cjs/Client.d.ts +0 -3
  2. package/dist/cjs/Client.js +2 -7
  3. package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +2 -0
  4. package/dist/cjs/api/resources/index.d.ts +0 -2
  5. package/dist/cjs/api/resources/index.js +1 -3
  6. package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -0
  7. package/dist/cjs/api/resources/sessions/client/Client.js +3 -0
  8. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +4 -0
  9. package/dist/cjs/api/resources/skills/client/Client.d.ts +37 -0
  10. package/dist/cjs/api/resources/skills/client/Client.js +160 -0
  11. package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.ts +11 -0
  12. package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.js +3 -0
  13. package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.ts +11 -0
  14. package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.js +3 -0
  15. package/dist/cjs/api/resources/skills/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/tasks/client/Client.d.ts +32 -4
  17. package/dist/cjs/api/resources/tasks/client/Client.js +83 -4
  18. package/dist/cjs/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.d.ts +9 -0
  19. package/dist/cjs/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.js +3 -0
  20. package/dist/cjs/api/resources/tasks/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/types/BrowserSessionItemView.d.ts +6 -0
  22. package/dist/cjs/api/types/BrowserSessionView.d.ts +6 -0
  23. package/dist/cjs/api/types/CustomProxy.d.ts +13 -0
  24. package/dist/cjs/api/types/CustomProxy.js +3 -0
  25. package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +2 -0
  26. package/dist/cjs/api/types/InsufficientCreditsError.d.ts +1 -1
  27. package/dist/cjs/api/types/SessionItemView.d.ts +6 -0
  28. package/dist/cjs/api/types/SessionView.d.ts +6 -0
  29. package/dist/cjs/api/types/SkillExecutionListResponse.d.ts +14 -0
  30. package/dist/cjs/api/types/SkillExecutionListResponse.js +3 -0
  31. package/dist/cjs/api/types/SkillExecutionOutputResponse.d.ts +7 -0
  32. package/dist/cjs/api/types/SkillExecutionOutputResponse.js +3 -0
  33. package/dist/cjs/api/types/SkillExecutionView.d.ts +21 -0
  34. package/dist/cjs/api/types/SkillExecutionView.js +3 -0
  35. package/dist/cjs/api/types/SupportedLlMs.d.ts +2 -0
  36. package/dist/cjs/api/types/SupportedLlMs.js +2 -0
  37. package/dist/cjs/api/types/TaskItemView.d.ts +4 -0
  38. package/dist/cjs/api/types/TaskStatusView.d.ts +19 -0
  39. package/dist/cjs/api/types/TaskStatusView.js +3 -0
  40. package/dist/cjs/api/types/TaskView.d.ts +4 -0
  41. package/dist/cjs/api/types/index.d.ts +6 -20
  42. package/dist/cjs/api/types/index.js +6 -20
  43. package/dist/cjs/version.d.ts +1 -1
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/esm/Client.d.mts +0 -3
  46. package/dist/esm/Client.mjs +2 -7
  47. package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +2 -0
  48. package/dist/esm/api/resources/index.d.mts +0 -2
  49. package/dist/esm/api/resources/index.mjs +0 -2
  50. package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -0
  51. package/dist/esm/api/resources/sessions/client/Client.mjs +3 -0
  52. package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +4 -0
  53. package/dist/esm/api/resources/skills/client/Client.d.mts +37 -0
  54. package/dist/esm/api/resources/skills/client/Client.mjs +160 -0
  55. package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.mts +11 -0
  56. package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.mjs +2 -0
  57. package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.mts +11 -0
  58. package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.mjs +2 -0
  59. package/dist/esm/api/resources/skills/client/requests/index.d.mts +2 -0
  60. package/dist/esm/api/resources/tasks/client/Client.d.mts +32 -4
  61. package/dist/esm/api/resources/tasks/client/Client.mjs +83 -4
  62. package/dist/esm/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.d.mts +9 -0
  63. package/dist/esm/api/resources/tasks/client/requests/GetTaskStatusTasksTaskIdStatusGetRequest.mjs +2 -0
  64. package/dist/esm/api/resources/tasks/client/requests/index.d.mts +1 -0
  65. package/dist/esm/api/types/BrowserSessionItemView.d.mts +6 -0
  66. package/dist/esm/api/types/BrowserSessionView.d.mts +6 -0
  67. package/dist/esm/api/types/CustomProxy.d.mts +13 -0
  68. package/dist/esm/api/types/CustomProxy.mjs +2 -0
  69. package/dist/esm/api/types/ExecuteSkillRequest.d.mts +2 -0
  70. package/dist/esm/api/types/InsufficientCreditsError.d.mts +1 -1
  71. package/dist/esm/api/types/SessionItemView.d.mts +6 -0
  72. package/dist/esm/api/types/SessionView.d.mts +6 -0
  73. package/dist/esm/api/types/SkillExecutionListResponse.d.mts +14 -0
  74. package/dist/esm/api/types/SkillExecutionListResponse.mjs +2 -0
  75. package/dist/esm/api/types/SkillExecutionOutputResponse.d.mts +7 -0
  76. package/dist/esm/api/types/SkillExecutionOutputResponse.mjs +2 -0
  77. package/dist/esm/api/types/SkillExecutionView.d.mts +21 -0
  78. package/dist/esm/api/types/SkillExecutionView.mjs +2 -0
  79. package/dist/esm/api/types/SupportedLlMs.d.mts +2 -0
  80. package/dist/esm/api/types/SupportedLlMs.mjs +2 -0
  81. package/dist/esm/api/types/TaskItemView.d.mts +4 -0
  82. package/dist/esm/api/types/TaskStatusView.d.mts +19 -0
  83. package/dist/esm/api/types/TaskStatusView.mjs +2 -0
  84. package/dist/esm/api/types/TaskView.d.mts +4 -0
  85. package/dist/esm/api/types/index.d.mts +6 -20
  86. package/dist/esm/api/types/index.mjs +6 -20
  87. package/dist/esm/version.d.mts +1 -1
  88. package/dist/esm/version.mjs +1 -1
  89. package/package.json +82 -83
  90. package/reference.md +117 -1051
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Request model for creating a custom proxy.
3
+ */
4
+ export interface CustomProxy {
5
+ /** Host of the proxy. */
6
+ host: string;
7
+ /** Port of the proxy. */
8
+ port: number;
9
+ /** Username for proxy authentication. */
10
+ username?: string | null;
11
+ /** Password for proxy authentication. */
12
+ password?: string | null;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,4 +4,6 @@
4
4
  export interface ExecuteSkillRequest {
5
5
  /** Parameters to pass to the skill handler */
6
6
  parameters?: Record<string, unknown>;
7
+ /** Optional session ID (UUID) for IP persistence. */
8
+ sessionId?: string | null;
7
9
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Error response when user has insufficient credits
2
+ * Error response when there are insufficient credits
3
3
  */
4
4
  export interface InsufficientCreditsError {
5
5
  detail?: string;
@@ -15,4 +15,10 @@ export interface SessionItemView {
15
15
  finishedAt?: string | null;
16
16
  /** Whether tasks in this session share memory and history with each other */
17
17
  persistMemory: boolean;
18
+ /** Whether the browser session stays alive after tasks complete */
19
+ keepAlive: boolean;
20
+ /** Amount of proxy data used in MB */
21
+ proxyUsedMb?: string;
22
+ /** Cost of proxy usage in USD */
23
+ proxyCost?: string;
18
24
  }
@@ -19,4 +19,10 @@ export interface SessionView {
19
19
  publicShareUrl?: string | null;
20
20
  /** Whether tasks in this session share memory and history with each other */
21
21
  persistMemory?: boolean;
22
+ /** Whether the browser session stays alive after tasks complete */
23
+ keepAlive?: boolean;
24
+ /** Amount of proxy data used in MB */
25
+ proxyUsedMb?: string;
26
+ /** Cost of proxy usage in USD */
27
+ proxyCost?: string;
22
28
  }
@@ -0,0 +1,14 @@
1
+ import type * as BrowserUse from "../index.js";
2
+ /**
3
+ * Response for listing skill executions.
4
+ */
5
+ export interface SkillExecutionListResponse {
6
+ /** List of executions */
7
+ items: BrowserUse.SkillExecutionView[];
8
+ /** Total number of items in the list */
9
+ totalItems: number;
10
+ /** Page number */
11
+ pageNumber: number;
12
+ /** Number of items per page */
13
+ pageSize: number;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Response containing presigned URL for downloading execution output.
3
+ */
4
+ export interface SkillExecutionOutputResponse {
5
+ /** Presigned URL for downloading the execution output (valid for 5 minutes) */
6
+ downloadUrl: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * View for a skill execution.
3
+ */
4
+ export interface SkillExecutionView {
5
+ /** Unique identifier for the execution */
6
+ id: string;
7
+ /** ID of the skill that was executed */
8
+ skillId: string;
9
+ /** Execution status (running, completed, failed) */
10
+ status: string;
11
+ /** Whether the execution succeeded */
12
+ success: boolean;
13
+ /** When the execution started */
14
+ startedAt: string;
15
+ /** When the execution finished */
16
+ finishedAt: string | null;
17
+ /** Execution latency in milliseconds */
18
+ latencyMs: number | null;
19
+ /** Whether output is available for download */
20
+ hasOutput: boolean;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export declare const SupportedLlMs: {
2
2
  readonly BrowserUseLlm: "browser-use-llm";
3
+ readonly BrowserUse20: "browser-use-2.0";
3
4
  readonly Gpt41: "gpt-4.1";
4
5
  readonly Gpt41Mini: "gpt-4.1-mini";
5
6
  readonly O4Mini: "o4-mini";
@@ -7,6 +8,7 @@ export declare const SupportedLlMs: {
7
8
  readonly Gemini25Flash: "gemini-2.5-flash";
8
9
  readonly Gemini25Pro: "gemini-2.5-pro";
9
10
  readonly Gemini3ProPreview: "gemini-3-pro-preview";
11
+ readonly Gemini3FlashPreview: "gemini-3-flash-preview";
10
12
  readonly GeminiFlashLatest: "gemini-flash-latest";
11
13
  readonly GeminiFlashLiteLatest: "gemini-flash-lite-latest";
12
14
  readonly ClaudeSonnet420250514: "claude-sonnet-4-20250514";
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SupportedLlMs = void 0;
5
5
  exports.SupportedLlMs = {
6
6
  BrowserUseLlm: "browser-use-llm",
7
+ BrowserUse20: "browser-use-2.0",
7
8
  Gpt41: "gpt-4.1",
8
9
  Gpt41Mini: "gpt-4.1-mini",
9
10
  O4Mini: "o4-mini",
@@ -11,6 +12,7 @@ exports.SupportedLlMs = {
11
12
  Gemini25Flash: "gemini-2.5-flash",
12
13
  Gemini25Pro: "gemini-2.5-pro",
13
14
  Gemini3ProPreview: "gemini-3-pro-preview",
15
+ Gemini3FlashPreview: "gemini-3-flash-preview",
14
16
  GeminiFlashLatest: "gemini-flash-latest",
15
17
  GeminiFlashLiteLatest: "gemini-flash-lite-latest",
16
18
  ClaudeSonnet420250514: "claude-sonnet-4-20250514",
@@ -30,4 +30,8 @@ export interface TaskItemView {
30
30
  judgement?: string | null;
31
31
  /** Judge verdict - True if the judge found the task to be successful, False otherwise (None if judge is not enabled) */
32
32
  judgeVerdict?: boolean | null;
33
+ /** Total cost of the task in USD. This is the sum of all step costs incurred during task execution. */
34
+ cost?: string | null;
35
+ /** List of actionable suggestions for improving task configuration based on detected issues during execution. */
36
+ suggestions?: Record<string, unknown>[] | null;
33
37
  }
@@ -0,0 +1,19 @@
1
+ import type * as BrowserUse from "../index.js";
2
+ /**
3
+ * Lightweight view optimized for polling. Use GET /tasks/{id}/status for efficient polling
4
+ * instead of GET /tasks/{id} which loads full step details.
5
+ */
6
+ export interface TaskStatusView {
7
+ /** Unique identifier for the task */
8
+ id: string;
9
+ /** Current status of the task */
10
+ status: BrowserUse.TaskStatus;
11
+ /** Final output/result of the task (null while running) */
12
+ output?: string | null;
13
+ /** Naive UTC timestamp when the task completed (null if still running) */
14
+ finishedAt?: string | null;
15
+ /** Whether the task was successful based on the agent's self-reported output */
16
+ isSuccess?: boolean | null;
17
+ /** Total cost of the task in USD */
18
+ cost?: string | null;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -32,4 +32,8 @@ export interface TaskView {
32
32
  judgement?: string | null;
33
33
  /** Judge verdict - True if the judge found the task to be successful, False otherwise (None if judge is not enabled) */
34
34
  judgeVerdict?: boolean | null;
35
+ /** Total cost of the task in USD. This is the sum of all step costs incurred during task execution. */
36
+ cost?: string | null;
37
+ /** List of actionable suggestions for improving task configuration based on detected issues during execution. */
38
+ suggestions?: Record<string, unknown>[] | null;
35
39
  }
@@ -1,6 +1,5 @@
1
1
  export * from "./AccountNotFoundError.js";
2
2
  export * from "./AccountView.js";
3
- export * from "./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js";
4
3
  export * from "./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js";
5
4
  export * from "./BadRequestErrorBody.js";
6
5
  export * from "./BrowserSessionItemView.js";
@@ -13,6 +12,7 @@ export * from "./CannotRollbackPublicSkillError.js";
13
12
  export * from "./CommonUtilsErrorsInsufficientCreditsError.js";
14
13
  export * from "./ConcurrentSkillCreationsError.js";
15
14
  export * from "./CreateSkillResponse.js";
15
+ export * from "./CustomProxy.js";
16
16
  export * from "./DownloadUrlGenerationError.js";
17
17
  export * from "./EnabledSkillsLimitExceededError.js";
18
18
  export * from "./ExecuteSkillRequest.js";
@@ -20,6 +20,7 @@ export * from "./ExecuteSkillResponse.js";
20
20
  export * from "./FileView.js";
21
21
  export * from "./GenerationNotCancellableError.js";
22
22
  export * from "./HttpValidationError.js";
23
+ export * from "./InsufficientCreditsError.js";
23
24
  export * from "./InternalServerErrorBody.js";
24
25
  export * from "./MarketplaceSkillListResponse.js";
25
26
  export * from "./MarketplaceSkillResponse.js";
@@ -45,6 +46,9 @@ export * from "./SessionView.js";
45
46
  export * from "./ShareNotFoundError.js";
46
47
  export * from "./ShareView.js";
47
48
  export * from "./SkillCategory.js";
49
+ export * from "./SkillExecutionListResponse.js";
50
+ export * from "./SkillExecutionOutputResponse.js";
51
+ export * from "./SkillExecutionView.js";
48
52
  export * from "./SkillListResponse.js";
49
53
  export * from "./SkillNotFinishedError.js";
50
54
  export * from "./SkillNotFoundError.js";
@@ -58,6 +62,7 @@ export * from "./TaskLogFileResponse.js";
58
62
  export * from "./TaskNotFoundError.js";
59
63
  export * from "./TaskOutputFileResponse.js";
60
64
  export * from "./TaskStatus.js";
65
+ export * from "./TaskStatusView.js";
61
66
  export * from "./TaskStepView.js";
62
67
  export * from "./TaskUpdateAction.js";
63
68
  export * from "./TaskView.js";
@@ -66,22 +71,3 @@ export * from "./UnsupportedContentTypeError.js";
66
71
  export * from "./UploadFilePresignedUrlResponse.js";
67
72
  export * from "./UploadFileRequest.js";
68
73
  export * from "./ValidationError.js";
69
- export * from "./WorkflowCreateFromTaskResponse.js";
70
- export * from "./WorkflowExecutionCreatedResponse.js";
71
- export * from "./WorkflowExecutionItemView.js";
72
- export * from "./WorkflowExecutionListResponse.js";
73
- export * from "./WorkflowExecutionLogResponse.js";
74
- export * from "./WorkflowExecutionMediaStepView.js";
75
- export * from "./WorkflowExecutionMediaView.js";
76
- export * from "./WorkflowExecutionResponse.js";
77
- export * from "./WorkflowExecutionStateView.js";
78
- export * from "./WorkflowExecutionStatus.js";
79
- export * from "./WorkflowExecutionStepView.js";
80
- export * from "./WorkflowGenerateResponse.js";
81
- export * from "./WorkflowGenerationStateView.js";
82
- export * from "./WorkflowGenerationStatus.js";
83
- export * from "./WorkflowGenerationStepView.js";
84
- export * from "./WorkflowItemView.js";
85
- export * from "./WorkflowListResponse.js";
86
- export * from "./WorkflowResponse.js";
87
- export * from "./WorkflowYamlPresignedUploadResponse.js";
@@ -16,7 +16,6 @@ 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("./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js"), exports);
20
19
  __exportStar(require("./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js"), exports);
21
20
  __exportStar(require("./BadRequestErrorBody.js"), exports);
22
21
  __exportStar(require("./BrowserSessionItemView.js"), exports);
@@ -29,6 +28,7 @@ __exportStar(require("./CannotRollbackPublicSkillError.js"), exports);
29
28
  __exportStar(require("./CommonUtilsErrorsInsufficientCreditsError.js"), exports);
30
29
  __exportStar(require("./ConcurrentSkillCreationsError.js"), exports);
31
30
  __exportStar(require("./CreateSkillResponse.js"), exports);
31
+ __exportStar(require("./CustomProxy.js"), exports);
32
32
  __exportStar(require("./DownloadUrlGenerationError.js"), exports);
33
33
  __exportStar(require("./EnabledSkillsLimitExceededError.js"), exports);
34
34
  __exportStar(require("./ExecuteSkillRequest.js"), exports);
@@ -36,6 +36,7 @@ __exportStar(require("./ExecuteSkillResponse.js"), exports);
36
36
  __exportStar(require("./FileView.js"), exports);
37
37
  __exportStar(require("./GenerationNotCancellableError.js"), exports);
38
38
  __exportStar(require("./HttpValidationError.js"), exports);
39
+ __exportStar(require("./InsufficientCreditsError.js"), exports);
39
40
  __exportStar(require("./InternalServerErrorBody.js"), exports);
40
41
  __exportStar(require("./MarketplaceSkillListResponse.js"), exports);
41
42
  __exportStar(require("./MarketplaceSkillResponse.js"), exports);
@@ -61,6 +62,9 @@ __exportStar(require("./SessionView.js"), exports);
61
62
  __exportStar(require("./ShareNotFoundError.js"), exports);
62
63
  __exportStar(require("./ShareView.js"), exports);
63
64
  __exportStar(require("./SkillCategory.js"), exports);
65
+ __exportStar(require("./SkillExecutionListResponse.js"), exports);
66
+ __exportStar(require("./SkillExecutionOutputResponse.js"), exports);
67
+ __exportStar(require("./SkillExecutionView.js"), exports);
64
68
  __exportStar(require("./SkillListResponse.js"), exports);
65
69
  __exportStar(require("./SkillNotFinishedError.js"), exports);
66
70
  __exportStar(require("./SkillNotFoundError.js"), exports);
@@ -74,6 +78,7 @@ __exportStar(require("./TaskLogFileResponse.js"), exports);
74
78
  __exportStar(require("./TaskNotFoundError.js"), exports);
75
79
  __exportStar(require("./TaskOutputFileResponse.js"), exports);
76
80
  __exportStar(require("./TaskStatus.js"), exports);
81
+ __exportStar(require("./TaskStatusView.js"), exports);
77
82
  __exportStar(require("./TaskStepView.js"), exports);
78
83
  __exportStar(require("./TaskUpdateAction.js"), exports);
79
84
  __exportStar(require("./TaskView.js"), exports);
@@ -82,22 +87,3 @@ __exportStar(require("./UnsupportedContentTypeError.js"), exports);
82
87
  __exportStar(require("./UploadFilePresignedUrlResponse.js"), exports);
83
88
  __exportStar(require("./UploadFileRequest.js"), exports);
84
89
  __exportStar(require("./ValidationError.js"), exports);
85
- __exportStar(require("./WorkflowCreateFromTaskResponse.js"), exports);
86
- __exportStar(require("./WorkflowExecutionCreatedResponse.js"), exports);
87
- __exportStar(require("./WorkflowExecutionItemView.js"), exports);
88
- __exportStar(require("./WorkflowExecutionListResponse.js"), exports);
89
- __exportStar(require("./WorkflowExecutionLogResponse.js"), exports);
90
- __exportStar(require("./WorkflowExecutionMediaStepView.js"), exports);
91
- __exportStar(require("./WorkflowExecutionMediaView.js"), exports);
92
- __exportStar(require("./WorkflowExecutionResponse.js"), exports);
93
- __exportStar(require("./WorkflowExecutionStateView.js"), exports);
94
- __exportStar(require("./WorkflowExecutionStatus.js"), exports);
95
- __exportStar(require("./WorkflowExecutionStepView.js"), exports);
96
- __exportStar(require("./WorkflowGenerateResponse.js"), exports);
97
- __exportStar(require("./WorkflowGenerationStateView.js"), exports);
98
- __exportStar(require("./WorkflowGenerationStatus.js"), exports);
99
- __exportStar(require("./WorkflowGenerationStepView.js"), exports);
100
- __exportStar(require("./WorkflowItemView.js"), exports);
101
- __exportStar(require("./WorkflowListResponse.js"), exports);
102
- __exportStar(require("./WorkflowResponse.js"), exports);
103
- __exportStar(require("./WorkflowYamlPresignedUploadResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.13";
1
+ export declare const SDK_VERSION = "2.0.15";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.0.13";
4
+ exports.SDK_VERSION = "2.0.15";
@@ -6,7 +6,6 @@ import { Sessions } from "./api/resources/sessions/client/Client.mjs";
6
6
  import { Skills } from "./api/resources/skills/client/Client.mjs";
7
7
  import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.mjs";
8
8
  import { Tasks } from "./api/resources/tasks/client/Client.mjs";
9
- import { Workflows } from "./api/resources/workflows/client/Client.mjs";
10
9
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
11
10
  export declare namespace BrowserUseClient {
12
11
  interface Options extends BaseClientOptions {
@@ -24,7 +23,6 @@ export declare class BrowserUseClient {
24
23
  protected _browsers: Browsers | undefined;
25
24
  protected _skills: Skills | undefined;
26
25
  protected _skillsMarketplace: SkillsMarketplace | undefined;
27
- protected _workflows: Workflows | undefined;
28
26
  constructor(_options?: BrowserUseClient.Options);
29
27
  get billing(): Billing;
30
28
  get tasks(): Tasks;
@@ -34,5 +32,4 @@ export declare class BrowserUseClient {
34
32
  get browsers(): Browsers;
35
33
  get skills(): Skills;
36
34
  get skillsMarketplace(): SkillsMarketplace;
37
- get workflows(): Workflows;
38
35
  }
@@ -7,7 +7,6 @@ import { Sessions } from "./api/resources/sessions/client/Client.mjs";
7
7
  import { Skills } from "./api/resources/skills/client/Client.mjs";
8
8
  import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.mjs";
9
9
  import { Tasks } from "./api/resources/tasks/client/Client.mjs";
10
- import { Workflows } from "./api/resources/workflows/client/Client.mjs";
11
10
  import { mergeHeaders } from "./core/headers.mjs";
12
11
  import * as core from "./core/index.mjs";
13
12
  export class BrowserUseClient {
@@ -15,8 +14,8 @@ export class BrowserUseClient {
15
14
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
16
15
  "X-Fern-Language": "JavaScript",
17
16
  "X-Fern-SDK-Name": "browser-use-sdk",
18
- "X-Fern-SDK-Version": "2.0.13",
19
- "User-Agent": "browser-use-sdk/2.0.13",
17
+ "X-Fern-SDK-Version": "2.0.15",
18
+ "User-Agent": "browser-use-sdk/2.0.15",
20
19
  "X-Fern-Runtime": core.RUNTIME.type,
21
20
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
21
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -53,8 +52,4 @@ export class BrowserUseClient {
53
52
  var _a;
54
53
  return ((_a = this._skillsMarketplace) !== null && _a !== void 0 ? _a : (this._skillsMarketplace = new SkillsMarketplace(this._options)));
55
54
  }
56
- get workflows() {
57
- var _a;
58
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Workflows(this._options)));
59
- }
60
55
  }
@@ -16,4 +16,6 @@ export interface CreateBrowserSessionRequest {
16
16
  browserScreenHeight?: number | null;
17
17
  /** Whether to allow the browser to be resized during the session (not recommended since it reduces stealthiness). */
18
18
  allowResizing?: boolean;
19
+ /** Custom proxy settings to use for the session. If not provided, our proxies will be used. Custom proxies are only available for Business and Scaleup subscribers. */
20
+ customProxy?: BrowserUse.CustomProxy | null;
19
21
  }
@@ -13,5 +13,3 @@ export * from "./skillsMarketplace/client/requests/index.mjs";
13
13
  export * as skillsMarketplace from "./skillsMarketplace/index.mjs";
14
14
  export * from "./tasks/client/requests/index.mjs";
15
15
  export * as tasks from "./tasks/index.mjs";
16
- export * from "./workflows/client/requests/index.mjs";
17
- export * as workflows from "./workflows/index.mjs";
@@ -13,5 +13,3 @@ export * from "./skillsMarketplace/client/requests/index.mjs";
13
13
  export * as skillsMarketplace from "./skillsMarketplace/index.mjs";
14
14
  export * from "./tasks/client/requests/index.mjs";
15
15
  export * as tasks from "./tasks/index.mjs";
16
- export * from "./workflows/client/requests/index.mjs";
17
- export * as workflows from "./workflows/index.mjs";
@@ -29,6 +29,7 @@ export declare class Sessions {
29
29
  * @param {BrowserUse.CreateSessionRequest} request
30
30
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
31
31
  *
32
+ * @throws {@link BrowserUse.PaymentRequiredError}
32
33
  * @throws {@link BrowserUse.NotFoundError}
33
34
  * @throws {@link BrowserUse.UnprocessableEntityError}
34
35
  * @throws {@link BrowserUse.TooManyRequestsError}
@@ -106,6 +106,7 @@ export class Sessions {
106
106
  * @param {BrowserUse.CreateSessionRequest} request
107
107
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
108
108
  *
109
+ * @throws {@link BrowserUse.PaymentRequiredError}
109
110
  * @throws {@link BrowserUse.NotFoundError}
110
111
  * @throws {@link BrowserUse.UnprocessableEntityError}
111
112
  * @throws {@link BrowserUse.TooManyRequestsError}
@@ -139,6 +140,8 @@ export class Sessions {
139
140
  }
140
141
  if (_response.error.reason === "status-code") {
141
142
  switch (_response.error.statusCode) {
143
+ case 402:
144
+ throw new BrowserUse.PaymentRequiredError(_response.error.body, _response.rawResponse);
142
145
  case 404:
143
146
  throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
144
147
  case 422:
@@ -16,4 +16,8 @@ export interface CreateSessionRequest {
16
16
  browserScreenHeight?: number | null;
17
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
18
  persistMemory?: boolean;
19
+ /** If True (default), the browser session stays alive after tasks complete, allowing follow-up tasks. If False, the session is closed immediately after task completion. Set to False for simple one-off tasks to reduce session idle time. */
20
+ keepAlive?: boolean;
21
+ /** Custom proxy settings to use for the session. If not provided, our proxies will be used. Custom proxies are only available for Business and Scaleup subscribers. */
22
+ customProxy?: BrowserUse.CustomProxy | null;
19
23
  }
@@ -30,7 +30,9 @@ export declare class Skills {
30
30
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
31
31
  *
32
32
  * @throws {@link BrowserUse.BadRequestError}
33
+ * @throws {@link BrowserUse.PaymentRequiredError}
33
34
  * @throws {@link BrowserUse.UnprocessableEntityError}
35
+ * @throws {@link BrowserUse.TooManyRequestsError}
34
36
  *
35
37
  * @example
36
38
  * await client.skills.createSkill({
@@ -134,6 +136,7 @@ export declare class Skills {
134
136
  * @throws {@link BrowserUse.PaymentRequiredError}
135
137
  * @throws {@link BrowserUse.NotFoundError}
136
138
  * @throws {@link BrowserUse.UnprocessableEntityError}
139
+ * @throws {@link BrowserUse.TooManyRequestsError}
137
140
  *
138
141
  * @example
139
142
  * await client.skills.executeSkill({
@@ -152,6 +155,7 @@ export declare class Skills {
152
155
  * @throws {@link BrowserUse.BadRequestError}
153
156
  * @throws {@link BrowserUse.NotFoundError}
154
157
  * @throws {@link BrowserUse.UnprocessableEntityError}
158
+ * @throws {@link BrowserUse.TooManyRequestsError}
155
159
  *
156
160
  * @example
157
161
  * await client.skills.refineSkill({
@@ -161,5 +165,38 @@ export declare class Skills {
161
165
  */
162
166
  refineSkill(request: BrowserUse.RefineSkillRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.RefineSkillResponse>;
163
167
  private __refineSkill;
168
+ /**
169
+ * List executions for a specific skill.
170
+ *
171
+ * @param {BrowserUse.ListSkillExecutionsSkillsSkillIdExecutionsGetRequest} request
172
+ * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
173
+ *
174
+ * @throws {@link BrowserUse.NotFoundError}
175
+ * @throws {@link BrowserUse.UnprocessableEntityError}
176
+ *
177
+ * @example
178
+ * await client.skills.listSkillExecutions({
179
+ * skill_id: "skill_id"
180
+ * })
181
+ */
182
+ listSkillExecutions(request: BrowserUse.ListSkillExecutionsSkillsSkillIdExecutionsGetRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillExecutionListResponse>;
183
+ private __listSkillExecutions;
184
+ /**
185
+ * Get presigned URL for downloading skill execution output.
186
+ *
187
+ * @param {BrowserUse.GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest} request
188
+ * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
189
+ *
190
+ * @throws {@link BrowserUse.NotFoundError}
191
+ * @throws {@link BrowserUse.UnprocessableEntityError}
192
+ *
193
+ * @example
194
+ * await client.skills.getSkillExecutionOutput({
195
+ * skill_id: "skill_id",
196
+ * execution_id: "execution_id"
197
+ * })
198
+ */
199
+ getSkillExecutionOutput(request: BrowserUse.GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillExecutionOutputResponse>;
200
+ private __getSkillExecutionOutput;
164
201
  protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
165
202
  }