browser-use-sdk 0.1.0 → 0.2.0

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 (169) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +10 -10
  3. package/client.d.mts +9 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/internal/tslib.js +4 -0
  12. package/lib/parse.d.mts +11 -0
  13. package/lib/parse.d.mts.map +1 -0
  14. package/lib/parse.d.ts +11 -0
  15. package/lib/parse.d.ts.map +1 -0
  16. package/lib/parse.js +32 -0
  17. package/lib/parse.js.map +1 -0
  18. package/lib/parse.mjs +27 -0
  19. package/lib/parse.mjs.map +1 -0
  20. package/lib/stream.d.mts +15 -0
  21. package/lib/stream.d.mts.map +1 -0
  22. package/lib/stream.d.ts +15 -0
  23. package/lib/stream.d.ts.map +1 -0
  24. package/lib/stream.js +44 -0
  25. package/lib/stream.js.map +1 -0
  26. package/lib/stream.mjs +41 -0
  27. package/lib/stream.mjs.map +1 -0
  28. package/lib/types.d.mts +75 -0
  29. package/lib/types.d.mts.map +1 -0
  30. package/lib/types.d.ts +75 -0
  31. package/lib/types.d.ts.map +1 -0
  32. package/lib/types.js +14 -0
  33. package/lib/types.js.map +1 -0
  34. package/lib/types.mjs +10 -0
  35. package/lib/types.mjs.map +1 -0
  36. package/package.json +14 -1
  37. package/resources/agent-profiles.d.mts +94 -14
  38. package/resources/agent-profiles.d.mts.map +1 -1
  39. package/resources/agent-profiles.d.ts +94 -14
  40. package/resources/agent-profiles.d.ts.map +1 -1
  41. package/resources/agent-profiles.js +91 -6
  42. package/resources/agent-profiles.js.map +1 -1
  43. package/resources/agent-profiles.mjs +91 -6
  44. package/resources/agent-profiles.mjs.map +1 -1
  45. package/resources/browser-profiles.d.mts +91 -10
  46. package/resources/browser-profiles.d.mts.map +1 -1
  47. package/resources/browser-profiles.d.ts +91 -10
  48. package/resources/browser-profiles.d.ts.map +1 -1
  49. package/resources/browser-profiles.js +92 -6
  50. package/resources/browser-profiles.js.map +1 -1
  51. package/resources/browser-profiles.mjs +92 -6
  52. package/resources/browser-profiles.mjs.map +1 -1
  53. package/resources/index.d.mts +4 -3
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +4 -3
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +3 -1
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +1 -0
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/sessions/index.d.mts +1 -1
  62. package/resources/sessions/index.d.mts.map +1 -1
  63. package/resources/sessions/index.d.ts +1 -1
  64. package/resources/sessions/index.d.ts.map +1 -1
  65. package/resources/sessions/index.js.map +1 -1
  66. package/resources/sessions/index.mjs.map +1 -1
  67. package/resources/sessions/public-share.d.mts +59 -6
  68. package/resources/sessions/public-share.d.mts.map +1 -1
  69. package/resources/sessions/public-share.d.ts +59 -6
  70. package/resources/sessions/public-share.d.ts.map +1 -1
  71. package/resources/sessions/public-share.js +62 -4
  72. package/resources/sessions/public-share.js.map +1 -1
  73. package/resources/sessions/public-share.mjs +62 -4
  74. package/resources/sessions/public-share.mjs.map +1 -1
  75. package/resources/sessions/sessions.d.mts +117 -22
  76. package/resources/sessions/sessions.d.mts.map +1 -1
  77. package/resources/sessions/sessions.d.ts +117 -22
  78. package/resources/sessions/sessions.d.ts.map +1 -1
  79. package/resources/sessions/sessions.js +80 -3
  80. package/resources/sessions/sessions.js.map +1 -1
  81. package/resources/sessions/sessions.mjs +80 -3
  82. package/resources/sessions/sessions.mjs.map +1 -1
  83. package/resources/tasks.d.mts +333 -105
  84. package/resources/tasks.d.mts.map +1 -1
  85. package/resources/tasks.d.ts +333 -105
  86. package/resources/tasks.d.ts.map +1 -1
  87. package/resources/tasks.js +210 -15
  88. package/resources/tasks.js.map +1 -1
  89. package/resources/tasks.mjs +210 -15
  90. package/resources/tasks.mjs.map +1 -1
  91. package/resources/users/index.d.mts +3 -0
  92. package/resources/users/index.d.mts.map +1 -0
  93. package/resources/users/index.d.ts +3 -0
  94. package/resources/users/index.d.ts.map +1 -0
  95. package/resources/users/index.js +9 -0
  96. package/resources/users/index.js.map +1 -0
  97. package/resources/users/index.mjs +4 -0
  98. package/resources/users/index.mjs.map +1 -0
  99. package/resources/users/me/files.d.mts +64 -0
  100. package/resources/users/me/files.d.mts.map +1 -0
  101. package/resources/users/me/files.d.ts +64 -0
  102. package/resources/users/me/files.d.ts.map +1 -0
  103. package/resources/users/me/files.js +43 -0
  104. package/resources/users/me/files.js.map +1 -0
  105. package/resources/users/me/files.mjs +39 -0
  106. package/resources/users/me/files.mjs.map +1 -0
  107. package/resources/users/me/index.d.mts +3 -0
  108. package/resources/users/me/index.d.mts.map +1 -0
  109. package/resources/users/me/index.d.ts +3 -0
  110. package/resources/users/me/index.d.ts.map +1 -0
  111. package/resources/users/me/index.js +9 -0
  112. package/resources/users/me/index.js.map +1 -0
  113. package/resources/users/me/index.mjs +4 -0
  114. package/resources/users/me/index.mjs.map +1 -0
  115. package/resources/users/me/me.d.mts +50 -0
  116. package/resources/users/me/me.d.mts.map +1 -0
  117. package/resources/users/me/me.d.ts +50 -0
  118. package/resources/users/me/me.d.ts.map +1 -0
  119. package/resources/users/me/me.js +41 -0
  120. package/resources/users/me/me.js.map +1 -0
  121. package/resources/users/me/me.mjs +36 -0
  122. package/resources/users/me/me.mjs.map +1 -0
  123. package/resources/users/me.d.mts +2 -0
  124. package/resources/users/me.d.mts.map +1 -0
  125. package/resources/users/me.d.ts +2 -0
  126. package/resources/users/me.d.ts.map +1 -0
  127. package/resources/users/me.js +6 -0
  128. package/resources/users/me.js.map +1 -0
  129. package/resources/users/me.mjs +3 -0
  130. package/resources/users/me.mjs.map +1 -0
  131. package/resources/users/users.d.mts +10 -0
  132. package/resources/users/users.d.mts.map +1 -0
  133. package/resources/users/users.d.ts +10 -0
  134. package/resources/users/users.d.ts.map +1 -0
  135. package/resources/users/users.js +17 -0
  136. package/resources/users/users.js.map +1 -0
  137. package/resources/users/users.mjs +12 -0
  138. package/resources/users/users.mjs.map +1 -0
  139. package/resources/users.d.mts +2 -0
  140. package/resources/users.d.mts.map +1 -0
  141. package/resources/users.d.ts +2 -0
  142. package/resources/users.d.ts.map +1 -0
  143. package/resources/users.js +6 -0
  144. package/resources/users.js.map +1 -0
  145. package/resources/users.mjs +3 -0
  146. package/resources/users.mjs.map +1 -0
  147. package/src/client.ts +21 -14
  148. package/src/lib/parse.ts +46 -0
  149. package/src/lib/stream.ts +70 -0
  150. package/src/lib/types.ts +73 -0
  151. package/src/resources/agent-profiles.ts +101 -19
  152. package/src/resources/browser-profiles.ts +95 -12
  153. package/src/resources/index.ts +9 -7
  154. package/src/resources/sessions/index.ts +1 -1
  155. package/src/resources/sessions/public-share.ts +64 -8
  156. package/src/resources/sessions/sessions.ts +130 -26
  157. package/src/resources/tasks.ts +488 -123
  158. package/src/resources/users/index.ts +4 -0
  159. package/src/resources/users/me/files.ts +95 -0
  160. package/src/resources/users/me/index.ts +4 -0
  161. package/src/resources/users/me/me.ts +68 -0
  162. package/src/resources/users/me.ts +3 -0
  163. package/src/resources/users/users.ts +15 -0
  164. package/src/resources/users.ts +3 -0
  165. package/src/version.ts +1 -1
  166. package/version.d.mts +1 -1
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. package/version.mjs +1 -1
@@ -1,62 +1,260 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import * as TasksAPI from "./tasks.mjs";
1
+ import type { ZodType } from 'zod';
3
2
  import { APIPromise } from "../core/api-promise.mjs";
3
+ import { APIResource } from "../core/resource.mjs";
4
4
  import { RequestOptions } from "../internal/request-options.mjs";
5
+ import { type TaskCreateParamsWithSchema, type TaskViewWithSchema } from "../lib/parse.mjs";
6
+ import * as TasksAPI from "./tasks.mjs";
5
7
  export declare class Tasks extends APIResource {
6
8
  /**
7
- * Create Task
9
+ * Create and start a new AI agent task.
10
+ *
11
+ * This is the main endpoint for running AI agents. You can either:
12
+ *
13
+ * 1. Start a new session with a new task
14
+ * 2. Add a follow-up task to an existing session
15
+ *
16
+ * When starting a new session:
17
+ *
18
+ * - A new browser session is created
19
+ * - Credits are deducted from your account
20
+ * - The agent begins executing your task immediately
21
+ *
22
+ * When adding to an existing session:
23
+ *
24
+ * - The agent continues in the same browser context
25
+ * - No additional browser start up costs are charged (browser session is already
26
+ * active)
27
+ * - The agent can build on previous work
28
+ *
29
+ * Key features:
30
+ *
31
+ * - Agent profiles: Define agent behavior and capabilities
32
+ * - Browser profiles: Control browser settings and environment (only used for new
33
+ * sessions)
34
+ * - File uploads: Include documents for the agent to work with
35
+ * - Structured output: Define the format you want results in
36
+ * - Task metadata: Add custom data for tracking and organization (useful when
37
+ * using webhooks)
38
+ *
39
+ * Args:
40
+ *
41
+ * - request: Complete task configuration including agent settings, browser
42
+ * settings, and task description
43
+ *
44
+ * Returns:
45
+ *
46
+ * - The created task with its initial details
47
+ *
48
+ * Raises:
49
+ *
50
+ * - 402: If user has insufficient credits for a new session
51
+ * - 404: If referenced agent/browser profiles don't exist
52
+ * - 400: If session is stopped or already has a running task
8
53
  */
54
+ create<T extends ZodType>(body: TaskCreateParamsWithSchema<T>, options?: RequestOptions): APIPromise<TaskViewWithSchema<T>>;
9
55
  create(body: TaskCreateParams, options?: RequestOptions): APIPromise<TaskView>;
56
+ private watch;
57
+ stream(body: TaskCreateParams, options?: RequestOptions): import("stream/web").ReadableStream<Uint8Array<ArrayBufferLike>>;
10
58
  /**
11
- * Get Task
59
+ * Get detailed information about a specific AI agent task.
60
+ *
61
+ * Retrieves comprehensive information about a task, including its current status,
62
+ * progress, and detailed execution data. You can choose to get just the status
63
+ * (for quick polling) or full details including steps and file information.
64
+ *
65
+ * Use this endpoint to:
66
+ *
67
+ * - Monitor task progress in real-time
68
+ * - Review completed task results
69
+ * - Debug failed tasks by examining steps
70
+ * - Download output files and logs
71
+ *
72
+ * Args:
73
+ *
74
+ * - task_id: The unique identifier of the agent task
75
+ *
76
+ * Returns:
77
+ *
78
+ * - Complete task information
79
+ *
80
+ * Raises:
81
+ *
82
+ * - 404: If the user agent task doesn't exist
12
83
  */
13
- retrieve(taskID: string, query?: TaskRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<TaskRetrieveResponse>;
84
+ retrieve<T extends ZodType>(req: {
85
+ taskId: string;
86
+ schema: T;
87
+ }, options?: RequestOptions): APIPromise<TaskViewWithSchema<T>>;
88
+ retrieve(taskID: string, options?: RequestOptions): APIPromise<TaskView>;
14
89
  /**
15
- * Update Task
90
+ * Control the execution of an AI agent task.
91
+ *
92
+ * Allows you to pause, resume, or stop tasks, and optionally stop the entire
93
+ * session. This is useful for:
94
+ *
95
+ * - Pausing long-running tasks to review progress
96
+ * - Stopping tasks that are taking too long
97
+ * - Ending sessions when you're done with all tasks
98
+ *
99
+ * Available actions:
100
+ *
101
+ * - STOP: Stop the current task
102
+ * - PAUSE: Pause the task (can be resumed later)
103
+ * - RESUME: Resume a paused task
104
+ * - STOP_TASK_AND_SESSION: Stop the task and end the entire session
105
+ *
106
+ * Args:
107
+ *
108
+ * - task_id: The unique identifier of the agent task to control
109
+ * - request: The action to perform on the task
110
+ *
111
+ * Returns:
112
+ *
113
+ * - The updated task information
114
+ *
115
+ * Raises:
116
+ *
117
+ * - 404: If the user agent task doesn't exist
16
118
  */
17
119
  update(taskID: string, body: TaskUpdateParams, options?: RequestOptions): APIPromise<TaskView>;
18
120
  /**
19
- * List Tasks
121
+ * Get a paginated list of all AI agent tasks for the authenticated user.
122
+ *
123
+ * AI agent tasks are the individual jobs that your agents perform within a
124
+ * session. Each task represents a specific instruction or goal that the agent
125
+ * works on, such as filling out a form, extracting data, or navigating to specific
126
+ * pages.
127
+ *
128
+ * You can control what data is included for each task:
129
+ *
130
+ * - Task steps: Detailed actions the agent took
131
+ * - User uploaded files: Files you provided for the task
132
+ * - Output files: Files generated by the agent during the task
133
+ *
134
+ * Returns:
135
+ *
136
+ * - A paginated list of agent tasks
137
+ * - Total count of tasks
138
+ * - Page information for navigation
139
+ * - Optional detailed data based on your parameters
20
140
  */
21
141
  list(query?: TaskListParams | null | undefined, options?: RequestOptions): APIPromise<TaskListResponse>;
22
142
  /**
23
- * Get Task Logs
143
+ * Get a download URL for the execution logs of an AI agent task.
144
+ *
145
+ * Task logs contain detailed information about how the AI agent executed the task,
146
+ * including:
147
+ *
148
+ * - Step-by-step reasoning and decisions
149
+ * - Actions taken on web pages
150
+ * - Error messages and debugging information
151
+ * - Performance metrics and timing data
152
+ *
153
+ * This is useful for:
154
+ *
155
+ * - Understanding how the agent solved the task
156
+ * - Debugging failed or unexpected results
157
+ * - Optimizing agent behavior and prompts
158
+ * - Auditing agent actions for compliance
159
+ *
160
+ * Args:
161
+ *
162
+ * - task_id: The unique identifier of the agent task
163
+ *
164
+ * Returns:
165
+ *
166
+ * - A presigned download URL for the task log file
167
+ *
168
+ * Raises:
169
+ *
170
+ * - 404: If the user agent task doesn't exist
171
+ * - 500: If the download URL cannot be generated (should not happen)
172
+ */
173
+ getLogs(taskID: string, options?: RequestOptions): APIPromise<TaskGetLogsResponse>;
174
+ /**
175
+ * Get a download URL for a specific output file generated by an AI agent task.
176
+ *
177
+ * AI agents can generate various output files during task execution, such as:
178
+ *
179
+ * - Screenshots of web pages
180
+ * - Extracted data in CSV/JSON format
181
+ * - Generated reports or documents
182
+ * - Downloaded files from websites
183
+ *
184
+ * This endpoint provides a secure, time-limited download URL for accessing these
185
+ * files. The URL expires after a short time for security.
186
+ *
187
+ * Args:
188
+ *
189
+ * - task_id: The unique identifier of the agent task
190
+ * - file_id: The unique identifier of the output file
191
+ *
192
+ * Returns:
193
+ *
194
+ * - A presigned download URL for the requested file
195
+ *
196
+ * Raises:
197
+ *
198
+ * - 404: If the user agent task or output file doesn't exist
199
+ * - 500: If the download URL cannot be generated (should not happen)
24
200
  */
25
- retrieveLogs(taskID: string, options?: RequestOptions): APIPromise<TaskRetrieveLogsResponse>;
201
+ getOutputFile(fileID: string, params: TaskGetOutputFileParams, options?: RequestOptions): APIPromise<TaskGetOutputFileResponse>;
26
202
  /**
27
- * Get Task Output File
203
+ * Get a download URL for a specific user uploaded file that was used in the task.
204
+ *
205
+ * A user can upload files to their account file bucket and reference the name of
206
+ * the file in a task. These files are then made available for the agent to use
207
+ * during the agent task run.
208
+ *
209
+ * This endpoint provides a secure, time-limited download URL for accessing these
210
+ * files. The URL expires after a short time for security.
211
+ *
212
+ * Args:
213
+ *
214
+ * - task_id: The unique identifier of the agent task
215
+ * - file_id: The unique identifier of the user uploaded file
216
+ *
217
+ * Returns:
218
+ *
219
+ * - A presigned download URL for the requested file
220
+ *
221
+ * Raises:
222
+ *
223
+ * - 404: If the user agent task or user uploaded file doesn't exist
224
+ * - 500: If the download URL cannot be generated (should not happen)
28
225
  */
29
- retrieveOutputFile(fileName: string, params: TaskRetrieveOutputFileParams, options?: RequestOptions): APIPromise<TaskRetrieveOutputFileResponse>;
226
+ getUserUploadedFile(fileID: string, params: TaskGetUserUploadedFileParams, options?: RequestOptions): APIPromise<TaskGetUserUploadedFileResponse>;
30
227
  }
31
- export type LlmModel = 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'o4-mini' | 'o3' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash-preview-04-17' | 'gemini-2.5-flash' | 'gemini-2.5-pro' | 'claude-3-7-sonnet-20250219' | 'claude-sonnet-4-20250514' | 'llama-4-maverick-17b-128e-instruct';
32
228
  /**
33
- * Enumeration of possible task execution states
229
+ * View model for representing an output file generated by the agent
34
230
  *
35
- * Attributes: STARTED: Task has been initiated and is currently running PAUSED:
36
- * Task execution has been temporarily paused STOPPED: Task execution has been
37
- * stopped (not completed) FINISHED: Task has completed successfully
231
+ * Attributes: id: Unique identifier for the output file file_name: Name of the
232
+ * output file
38
233
  */
39
- export type TaskStatus = 'started' | 'paused' | 'stopped' | 'finished';
234
+ export interface FileView {
235
+ id: string;
236
+ fileName: string;
237
+ }
238
+ export type LlmModel = 'gpt-4o' | 'gpt-4o-mini' | 'gpt-4.1' | 'gpt-4.1-mini' | 'o4-mini' | 'o3' | 'gemini-2.0-flash' | 'gemini-2.0-flash-lite' | 'gemini-2.5-flash-preview-04-17' | 'gemini-2.5-flash' | 'gemini-2.5-pro' | 'claude-3-7-sonnet-20250219' | 'claude-sonnet-4-20250514' | 'llama-4-maverick-17b-128e-instruct';
40
239
  /**
41
240
  * View model for representing a task with its execution details
42
241
  *
43
242
  * Attributes: id: Unique identifier for the task session_id: ID of the session
44
- * this task belongs to session_live_url: Live URL of the session llm: The LLM
45
- * model used for this task task: The task prompt/instruction given to the agent
46
- * status: Current status of the task execution started_at: Naive UTC timestamp
47
- * when the task was started finished_at: Naive UTC timestamp when the task
48
- * completed (None if still running) metadata: Additional metadata associated with
49
- * the task (optionally set by the user) is_scheduled: Whether this task was
50
- * created as a scheduled task steps: List of execution steps (optionally included
51
- * per user request) done_output: Final output/result of the task
52
- * user_uploaded_files: List of files uploaded by user for this task (optionally
53
- * included per user request) output_files: List of files generated as output by
54
- * this task (optionally included per user request) browser_use_version: Version of
55
- * browser-use used for this task
243
+ * this task belongs to session_live_url: Optional live URL of the session llm: The
244
+ * LLM model used for this task task: The task prompt/instruction given to the
245
+ * agent status: Current status of the task execution started_at: Naive UTC
246
+ * timestamp when the task was started finished_at: Naive UTC timestamp when the
247
+ * task completed (None if still running) metadata: Optional additional metadata
248
+ * associated with the task set by the user is_scheduled: Whether this task was
249
+ * created as a scheduled task steps: Optional list of execution steps done_output:
250
+ * Final output/result of the task user_uploaded_files: Optional list of files
251
+ * uploaded by user for this task output_files: Optional list of files generated as
252
+ * output by this task browser_use_version: Version of browser-use used for this
253
+ * task (older tasks may not have this set) is_success: Whether the task was
254
+ * successful (self-reported by the agent)
56
255
  */
57
- export interface TaskView {
256
+ export interface TaskItemView {
58
257
  id: string;
59
- doneOutput: string;
60
258
  isScheduled: boolean;
61
259
  llm: LlmModel;
62
260
  sessionId: string;
@@ -64,77 +262,94 @@ export interface TaskView {
64
262
  /**
65
263
  * Enumeration of possible task execution states
66
264
  *
67
- * Attributes: STARTED: Task has been initiated and is currently running PAUSED:
68
- * Task execution has been temporarily paused STOPPED: Task execution has been
69
- * stopped (not completed) FINISHED: Task has completed successfully
265
+ * Attributes: STARTED: Task has been started and is currently running PAUSED: Task
266
+ * execution has been temporarily paused (can be resumed) STOPPED: Task execution
267
+ * has been stopped (cannot be resumed) FINISHED: Task has completed successfully
70
268
  */
71
269
  status: TaskStatus;
72
270
  task: string;
73
271
  browserUseVersion?: string | null;
272
+ doneOutput?: string | null;
74
273
  finishedAt?: string | null;
274
+ isSuccess?: boolean | null;
75
275
  metadata?: {
76
276
  [key: string]: unknown;
77
277
  };
78
- outputFiles?: Array<string> | null;
278
+ outputFiles?: Array<FileView> | null;
79
279
  sessionLiveUrl?: string | null;
80
- steps?: Array<TaskView.Step> | null;
81
- userUploadedFiles?: Array<string> | null;
280
+ steps?: Array<TaskStepView> | null;
281
+ userUploadedFiles?: Array<FileView> | null;
82
282
  }
83
- export declare namespace TaskView {
84
- /**
85
- * View model for representing a single step in a task's execution
86
- *
87
- * Attributes: number: Sequential step number within the task memory: Agent's
88
- * memory/context at this step evaluation_previous_goal: Agent's evaluation of the
89
- * previous goal completion next_goal: The goal for the next step url: Current URL
90
- * the browser is on for this step screenshot_url: URL to the screenshot taken at
91
- * this step actions: List of stringified json actions performed by the agent in
92
- * this step
93
- */
94
- interface Step {
95
- actions: Array<string>;
96
- evaluationPreviousGoal: string;
97
- memory: string;
98
- nextGoal: string;
99
- number: number;
100
- url: string;
101
- screenshotUrl?: string | null;
102
- }
283
+ /**
284
+ * Enumeration of possible task execution states
285
+ *
286
+ * Attributes: STARTED: Task has been started and is currently running PAUSED: Task
287
+ * execution has been temporarily paused (can be resumed) STOPPED: Task execution
288
+ * has been stopped (cannot be resumed) FINISHED: Task has completed successfully
289
+ */
290
+ export type TaskStatus = 'started' | 'paused' | 'stopped' | 'finished';
291
+ /**
292
+ * View model for representing a single step in a task's execution
293
+ *
294
+ * Attributes: number: Sequential step number within the task memory: Agent's
295
+ * memory at this step evaluation_previous_goal: Agent's evaluation of the previous
296
+ * goal completion next_goal: The goal for the next step url: Current URL the
297
+ * browser is on for this step screenshot_url: Optional URL to the screenshot taken
298
+ * at this step actions: List of stringified json actions performed by the agent in
299
+ * this step
300
+ */
301
+ export interface TaskStepView {
302
+ actions: Array<string>;
303
+ evaluationPreviousGoal: string;
304
+ memory: string;
305
+ nextGoal: string;
306
+ number: number;
307
+ url: string;
308
+ screenshotUrl?: string | null;
103
309
  }
104
310
  /**
105
311
  * View model for representing a task with its execution details
106
312
  *
107
313
  * Attributes: id: Unique identifier for the task session_id: ID of the session
108
- * this task belongs to session_live_url: Live URL of the session llm: The LLM
109
- * model used for this task task: The task prompt/instruction given to the agent
110
- * status: Current status of the task execution started_at: Naive UTC timestamp
111
- * when the task was started finished_at: Naive UTC timestamp when the task
112
- * completed (None if still running) metadata: Additional metadata associated with
113
- * the task (optionally set by the user) is_scheduled: Whether this task was
114
- * created as a scheduled task steps: List of execution steps (optionally included
115
- * per user request) done_output: Final output/result of the task
116
- * user_uploaded_files: List of files uploaded by user for this task (optionally
117
- * included per user request) output_files: List of files generated as output by
118
- * this task (optionally included per user request) browser_use_version: Version of
119
- * browser-use used for this task
314
+ * this task belongs to session_live_url: Optional live URL of the session llm: The
315
+ * LLM model used for this task task: The task prompt/instruction given to the
316
+ * agent status: Current status of the task execution started_at: Naive UTC
317
+ * timestamp when the task was started finished_at: Naive UTC timestamp when the
318
+ * task completed (None if still running) metadata: Optional additional metadata
319
+ * associated with the task set by the user is_scheduled: Whether this task was
320
+ * created as a scheduled task steps: List of execution steps done_output: Final
321
+ * output/result of the task user_uploaded_files: List of files uploaded by user
322
+ * for this task output_files: List of files generated as output by this task
323
+ * browser_use_version: Version of browser-use used for this task (older tasks may
324
+ * not have this set) is_success: Whether the task was successful (self-reported by
325
+ * the agent)
120
326
  */
121
- export type TaskRetrieveResponse = TaskView | TaskRetrieveResponse.TaskStatusView;
122
- export declare namespace TaskRetrieveResponse {
327
+ export interface TaskView {
328
+ id: string;
329
+ isScheduled: boolean;
330
+ llm: LlmModel;
331
+ outputFiles: Array<FileView>;
332
+ sessionId: string;
333
+ startedAt: string;
123
334
  /**
124
- * Minimal view for returning just the task status
335
+ * Enumeration of possible task execution states
125
336
  *
126
- * Attributes: status: Current status of the task
337
+ * Attributes: STARTED: Task has been started and is currently running PAUSED: Task
338
+ * execution has been temporarily paused (can be resumed) STOPPED: Task execution
339
+ * has been stopped (cannot be resumed) FINISHED: Task has completed successfully
127
340
  */
128
- interface TaskStatusView {
129
- /**
130
- * Enumeration of possible task execution states
131
- *
132
- * Attributes: STARTED: Task has been initiated and is currently running PAUSED:
133
- * Task execution has been temporarily paused STOPPED: Task execution has been
134
- * stopped (not completed) FINISHED: Task has completed successfully
135
- */
136
- status: TasksAPI.TaskStatus;
137
- }
341
+ status: TaskStatus;
342
+ steps: Array<TaskStepView>;
343
+ task: string;
344
+ userUploadedFiles: Array<FileView>;
345
+ browserUseVersion?: string | null;
346
+ doneOutput?: string | null;
347
+ finishedAt?: string | null;
348
+ isSuccess?: boolean | null;
349
+ metadata?: {
350
+ [key: string]: unknown;
351
+ };
352
+ sessionLiveUrl?: string | null;
138
353
  }
139
354
  /**
140
355
  * Response model for paginated task list requests
@@ -142,7 +357,7 @@ export declare namespace TaskRetrieveResponse {
142
357
  * Attributes: items: List of task views for the current page
143
358
  */
144
359
  export interface TaskListResponse {
145
- items: Array<TaskView>;
360
+ items: Array<TaskItemView>;
146
361
  pageNumber: number;
147
362
  pageSize: number;
148
363
  totalItems: number;
@@ -152,7 +367,7 @@ export interface TaskListResponse {
152
367
  *
153
368
  * Attributes: download_url: URL to download the log file
154
369
  */
155
- export interface TaskRetrieveLogsResponse {
370
+ export interface TaskGetLogsResponse {
156
371
  downloadUrl: string;
157
372
  }
158
373
  /**
@@ -160,7 +375,15 @@ export interface TaskRetrieveLogsResponse {
160
375
  *
161
376
  * Attributes: download_url: URL to download the output file
162
377
  */
163
- export interface TaskRetrieveOutputFileResponse {
378
+ export interface TaskGetOutputFileResponse {
379
+ downloadUrl: string;
380
+ }
381
+ /**
382
+ * Response model for user uploaded file requests
383
+ *
384
+ * Attributes: download_url: URL to download the user uploaded file
385
+ */
386
+ export interface TaskGetUserUploadedFileResponse {
164
387
  downloadUrl: string;
165
388
  }
166
389
  export interface TaskCreateParams {
@@ -168,18 +391,16 @@ export interface TaskCreateParams {
168
391
  /**
169
392
  * Configuration settings for the AI agent
170
393
  *
171
- * Attributes: llm: The LLM model to use for the agent (default: O3 - best
172
- * performance for now) profile_id: ID of the agent profile to use for the task
173
- * (None for default)
394
+ * Attributes: llm: The LLM model to use for the agent profile_id: Unique
395
+ * identifier of the agent profile to use for the task
174
396
  */
175
397
  agentSettings?: TaskCreateParams.AgentSettings;
176
398
  /**
177
399
  * Configuration settings for the browser session
178
400
  *
179
- * Attributes: session_id: ID of existing session to continue (None for new
180
- * session) profile_id: ID of browser profile to use (None for default)
181
- * save_browser_data: Whether to save browser state/data for the user to download
182
- * later
401
+ * Attributes: session_id: Unique identifier of existing session to continue
402
+ * profile_id: Unique identifier of browser profile to use save_browser_data:
403
+ * Whether to save browser state/data for the user to download later
183
404
  */
184
405
  browserSettings?: TaskCreateParams.BrowserSettings;
185
406
  includedFileNames?: Array<string> | null;
@@ -195,9 +416,8 @@ export declare namespace TaskCreateParams {
195
416
  /**
196
417
  * Configuration settings for the AI agent
197
418
  *
198
- * Attributes: llm: The LLM model to use for the agent (default: O3 - best
199
- * performance for now) profile_id: ID of the agent profile to use for the task
200
- * (None for default)
419
+ * Attributes: llm: The LLM model to use for the agent profile_id: Unique
420
+ * identifier of the agent profile to use for the task
201
421
  */
202
422
  interface AgentSettings {
203
423
  llm?: TasksAPI.LlmModel;
@@ -206,10 +426,9 @@ export declare namespace TaskCreateParams {
206
426
  /**
207
427
  * Configuration settings for the browser session
208
428
  *
209
- * Attributes: session_id: ID of existing session to continue (None for new
210
- * session) profile_id: ID of browser profile to use (None for default)
211
- * save_browser_data: Whether to save browser state/data for the user to download
212
- * later
429
+ * Attributes: session_id: Unique identifier of existing session to continue
430
+ * profile_id: Unique identifier of browser profile to use save_browser_data:
431
+ * Whether to save browser state/data for the user to download later
213
432
  */
214
433
  interface BrowserSettings {
215
434
  profileId?: string | null;
@@ -217,9 +436,6 @@ export declare namespace TaskCreateParams {
217
436
  sessionId?: string | null;
218
437
  }
219
438
  }
220
- export interface TaskRetrieveParams {
221
- statusOnly?: boolean;
222
- }
223
439
  export interface TaskUpdateParams {
224
440
  /**
225
441
  * Available actions that can be performed on a task
@@ -231,16 +447,28 @@ export interface TaskUpdateParams {
231
447
  action: 'stop' | 'pause' | 'resume' | 'stop_task_and_session';
232
448
  }
233
449
  export interface TaskListParams {
450
+ /**
451
+ * Enumeration of possible task filters
452
+ *
453
+ * Attributes: STARTED: All started tasks PAUSED: All paused tasks STOPPED: All
454
+ * stopped tasks FINISHED: All finished tasks SUCCESSFUL: All successful tasks
455
+ * UNSUCCESSFUL: All unsuccessful tasks
456
+ */
457
+ filterBy?: 'started' | 'paused' | 'stopped' | 'finished' | 'successful' | 'unsuccessful' | null;
234
458
  includeOutputFiles?: boolean;
235
459
  includeSteps?: boolean;
236
460
  includeUserUploadedFiles?: boolean;
237
461
  pageNumber?: number;
238
462
  pageSize?: number;
463
+ sessionId?: string | null;
464
+ }
465
+ export interface TaskGetOutputFileParams {
466
+ task_id: string;
239
467
  }
240
- export interface TaskRetrieveOutputFileParams {
468
+ export interface TaskGetUserUploadedFileParams {
241
469
  task_id: string;
242
470
  }
243
471
  export declare namespace Tasks {
244
- export { type LlmModel as LlmModel, type TaskStatus as TaskStatus, type TaskView as TaskView, type TaskRetrieveResponse as TaskRetrieveResponse, type TaskListResponse as TaskListResponse, type TaskRetrieveLogsResponse as TaskRetrieveLogsResponse, type TaskRetrieveOutputFileResponse as TaskRetrieveOutputFileResponse, type TaskCreateParams as TaskCreateParams, type TaskRetrieveParams as TaskRetrieveParams, type TaskUpdateParams as TaskUpdateParams, type TaskListParams as TaskListParams, type TaskRetrieveOutputFileParams as TaskRetrieveOutputFileParams, };
472
+ export { type FileView as FileView, type LlmModel as LlmModel, type TaskItemView as TaskItemView, type TaskStatus as TaskStatus, type TaskStepView as TaskStepView, type TaskView as TaskView, type TaskListResponse as TaskListResponse, type TaskGetLogsResponse as TaskGetLogsResponse, type TaskGetOutputFileResponse as TaskGetOutputFileResponse, type TaskGetUserUploadedFileResponse as TaskGetUserUploadedFileResponse, type TaskCreateParams as TaskCreateParams, type TaskUpdateParams as TaskUpdateParams, type TaskListParams as TaskListParams, type TaskGetOutputFileParams as TaskGetOutputFileParams, type TaskGetUserUploadedFileParams as TaskGetUserUploadedFileParams, };
245
473
  }
246
474
  //# sourceMappingURL=tasks.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAI9E;;OAEG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC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