browser-use-sdk 2.0.7 → 2.0.9
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 +2 -1
- package/dist/cjs/BaseClient.js +47 -0
- package/dist/cjs/Client.d.ts +22 -22
- package/dist/cjs/Client.js +10 -51
- package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billing/client/Client.js +7 -6
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/browsers/client/Client.js +10 -9
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +4 -0
- package/dist/cjs/api/resources/files/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/files/client/Client.js +9 -8
- package/dist/cjs/api/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/index.js +0 -1
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/profiles/client/Client.js +11 -10
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/sessions/client/Client.js +14 -13
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +4 -0
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/tasks/client/Client.js +11 -10
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +92 -35
- package/dist/cjs/api/resources/workflows/client/Client.js +241 -27
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/index.js +0 -1
- package/dist/cjs/api/types/SupportedLlMs.d.ts +2 -0
- package/dist/cjs/api/types/SupportedLlMs.js +2 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.d.ts +13 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaView.d.ts +8 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +28 -0
- package/dist/cjs/api/types/WorkflowExecutionStateView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +29 -0
- package/dist/cjs/api/types/WorkflowExecutionStepView.js +3 -0
- package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +18 -0
- package/dist/cjs/api/types/WorkflowGenerationStateView.js +3 -0
- package/dist/cjs/api/types/WorkflowGenerationStepView.d.ts +19 -0
- package/dist/cjs/api/types/WorkflowGenerationStepView.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -1
- package/dist/cjs/api/types/index.js +6 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +7 -7
- package/dist/cjs/wrapper/api/BrowserUseTasks.js +1 -1
- package/dist/cjs/wrapper/lib/webhooks.d.ts +2 -2
- package/dist/cjs/wrapper/lib/webhooks.js +3 -3
- package/dist/esm/BaseClient.d.mts +2 -1
- package/dist/esm/BaseClient.mjs +13 -1
- package/dist/esm/Client.d.mts +22 -22
- package/dist/esm/Client.mjs +17 -25
- package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billing/client/Client.mjs +5 -4
- package/dist/esm/api/resources/browsers/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/browsers/client/Client.mjs +8 -7
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +4 -0
- package/dist/esm/api/resources/files/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/files/client/Client.mjs +7 -6
- package/dist/esm/api/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/index.mjs +0 -1
- package/dist/esm/api/resources/profiles/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/profiles/client/Client.mjs +9 -8
- package/dist/esm/api/resources/sessions/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/sessions/client/Client.mjs +12 -11
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +4 -0
- package/dist/esm/api/resources/tasks/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/tasks/client/Client.mjs +9 -8
- package/dist/esm/api/resources/workflows/client/Client.d.mts +92 -35
- package/dist/esm/api/resources/workflows/client/Client.mjs +239 -25
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +0 -3
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/workflows/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/index.mjs +0 -1
- package/dist/esm/api/types/SupportedLlMs.d.mts +2 -0
- package/dist/esm/api/types/SupportedLlMs.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.d.mts +13 -0
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionMediaView.d.mts +8 -0
- package/dist/esm/api/types/WorkflowExecutionMediaView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +28 -0
- package/dist/esm/api/types/WorkflowExecutionStateView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +29 -0
- package/dist/esm/api/types/WorkflowExecutionStepView.mjs +2 -0
- package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +18 -0
- package/dist/esm/api/types/WorkflowGenerationStateView.mjs +2 -0
- package/dist/esm/api/types/WorkflowGenerationStepView.d.mts +19 -0
- package/dist/esm/api/types/WorkflowGenerationStepView.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -1
- package/dist/esm/api/types/index.mjs +6 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +7 -7
- package/dist/esm/wrapper/api/BrowserUseTasks.mjs +2 -2
- package/dist/esm/wrapper/lib/webhooks.d.mts +2 -2
- package/dist/esm/wrapper/lib/webhooks.mjs +3 -3
- package/package.json +82 -83
- package/reference.md +251 -44
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import * as BrowserUse from "../../../index.mjs";
|
|
4
|
-
export declare namespace
|
|
4
|
+
export declare namespace WorkflowsClient {
|
|
5
5
|
interface Options extends BaseClientOptions {
|
|
6
6
|
}
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class WorkflowsClient {
|
|
11
|
+
protected readonly _options: WorkflowsClient.Options;
|
|
12
|
+
constructor(options: WorkflowsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get paginated list of workflows with optional filtering.
|
|
15
15
|
*
|
|
16
16
|
* @param {BrowserUse.ListWorkflowsWorkflowsGetRequest} request
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* await client.workflows.listWorkflows()
|
|
23
23
|
*/
|
|
24
|
-
listWorkflows(request?: BrowserUse.ListWorkflowsWorkflowsGetRequest, requestOptions?:
|
|
24
|
+
listWorkflows(request?: BrowserUse.ListWorkflowsWorkflowsGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowListResponse>;
|
|
25
25
|
private __listWorkflows;
|
|
26
26
|
/**
|
|
27
27
|
* Create a new workflow. The workflow YAML should be uploaded separately via the update endpoint.
|
|
28
28
|
*
|
|
29
29
|
* @param {BrowserUse.WorkflowCreateRequest} request
|
|
30
|
-
* @param {
|
|
30
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
33
33
|
*
|
|
@@ -36,13 +36,13 @@ export declare class Workflows {
|
|
|
36
36
|
* name: "name"
|
|
37
37
|
* })
|
|
38
38
|
*/
|
|
39
|
-
createWorkflow(request: BrowserUse.WorkflowCreateRequest, requestOptions?:
|
|
39
|
+
createWorkflow(request: BrowserUse.WorkflowCreateRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
40
40
|
private __createWorkflow;
|
|
41
41
|
/**
|
|
42
42
|
* Get detailed workflow information including presigned URL to download YAML.
|
|
43
43
|
*
|
|
44
44
|
* @param {BrowserUse.GetWorkflowWorkflowsWorkflowIdGetRequest} request
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
48
48
|
*
|
|
@@ -51,13 +51,13 @@ export declare class Workflows {
|
|
|
51
51
|
* workflow_id: "workflow_id"
|
|
52
52
|
* })
|
|
53
53
|
*/
|
|
54
|
-
getWorkflow(request: BrowserUse.GetWorkflowWorkflowsWorkflowIdGetRequest, requestOptions?:
|
|
54
|
+
getWorkflow(request: BrowserUse.GetWorkflowWorkflowsWorkflowIdGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
55
55
|
private __getWorkflow;
|
|
56
56
|
/**
|
|
57
57
|
* Archive a workflow (soft delete).
|
|
58
58
|
*
|
|
59
59
|
* @param {BrowserUse.DeleteWorkflowWorkflowsWorkflowIdDeleteRequest} request
|
|
60
|
-
* @param {
|
|
60
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
63
63
|
*
|
|
@@ -66,13 +66,13 @@ export declare class Workflows {
|
|
|
66
66
|
* workflow_id: "workflow_id"
|
|
67
67
|
* })
|
|
68
68
|
*/
|
|
69
|
-
deleteWorkflow(request: BrowserUse.DeleteWorkflowWorkflowsWorkflowIdDeleteRequest, requestOptions?:
|
|
69
|
+
deleteWorkflow(request: BrowserUse.DeleteWorkflowWorkflowsWorkflowIdDeleteRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
70
70
|
private __deleteWorkflow;
|
|
71
71
|
/**
|
|
72
72
|
* Update workflow metadata.
|
|
73
73
|
*
|
|
74
74
|
* @param {BrowserUse.WorkflowUpdateRequest} request
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
78
78
|
*
|
|
@@ -81,8 +81,27 @@ export declare class Workflows {
|
|
|
81
81
|
* workflow_id: "workflow_id"
|
|
82
82
|
* })
|
|
83
83
|
*/
|
|
84
|
-
updateWorkflow(request: BrowserUse.WorkflowUpdateRequest, requestOptions?:
|
|
84
|
+
updateWorkflow(request: BrowserUse.WorkflowUpdateRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
|
|
85
85
|
private __updateWorkflow;
|
|
86
|
+
/**
|
|
87
|
+
* Get workflow generation state with live browser URL for polling.
|
|
88
|
+
*
|
|
89
|
+
* This endpoint returns the current state of workflow generation including
|
|
90
|
+
* the live browser URL (if available). It's designed to be polled every 2 seconds
|
|
91
|
+
* during generation to show real-time browser activity in the frontend.
|
|
92
|
+
*
|
|
93
|
+
* @param {BrowserUse.GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest} request
|
|
94
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* await client.workflows.getWorkflowGenerationState({
|
|
100
|
+
* workflow_id: "workflow_id"
|
|
101
|
+
* })
|
|
102
|
+
*/
|
|
103
|
+
getWorkflowGenerationState(request: BrowserUse.GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowGenerationStateView>;
|
|
104
|
+
private __getWorkflowGenerationState;
|
|
86
105
|
/**
|
|
87
106
|
* Get a presigned URL to upload workflow YAML directly to S3 from the browser.
|
|
88
107
|
*
|
|
@@ -90,7 +109,7 @@ export declare class Workflows {
|
|
|
90
109
|
* and avoiding KMS permission issues in local development.
|
|
91
110
|
*
|
|
92
111
|
* @param {BrowserUse.WorkflowYamlPresignedUploadRequest} request
|
|
93
|
-
* @param {
|
|
112
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
113
|
*
|
|
95
114
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
96
115
|
*
|
|
@@ -100,26 +119,26 @@ export declare class Workflows {
|
|
|
100
119
|
* sizeBytes: 1
|
|
101
120
|
* })
|
|
102
121
|
*/
|
|
103
|
-
getWorkflowYamlPresignedUrl(request: BrowserUse.WorkflowYamlPresignedUploadRequest, requestOptions?:
|
|
122
|
+
getWorkflowYamlPresignedUrl(request: BrowserUse.WorkflowYamlPresignedUploadRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowYamlPresignedUploadResponse>;
|
|
104
123
|
private __getWorkflowYamlPresignedUrl;
|
|
105
124
|
/**
|
|
106
|
-
* Execute a workflow
|
|
125
|
+
* Execute a workflow asynchronously.
|
|
107
126
|
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
127
|
+
* Returns execution ID immediately and processes in background via Inngest.
|
|
128
|
+
* Use the GET /workflows/executions/{execution_id} endpoint to check status and retrieve results.
|
|
110
129
|
*
|
|
111
130
|
* @param {BrowserUse.WorkflowExecuteRequest} request
|
|
112
|
-
* @param {
|
|
131
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
132
|
*
|
|
114
133
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
115
134
|
*
|
|
116
135
|
* @example
|
|
117
|
-
* await client.workflows.
|
|
136
|
+
* await client.workflows.runWorkflow({
|
|
118
137
|
* workflow_id: "workflow_id"
|
|
119
138
|
* })
|
|
120
139
|
*/
|
|
121
|
-
|
|
122
|
-
private
|
|
140
|
+
runWorkflow(request: BrowserUse.WorkflowExecuteRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionCreatedResponse>;
|
|
141
|
+
private __runWorkflow;
|
|
123
142
|
/**
|
|
124
143
|
* Generate a workflow from a natural language task description.
|
|
125
144
|
*
|
|
@@ -132,7 +151,7 @@ export declare class Workflows {
|
|
|
132
151
|
* The generation happens asynchronously via the workflow_worker Lambda.
|
|
133
152
|
*
|
|
134
153
|
* @param {BrowserUse.WorkflowGenerateRequest} request
|
|
135
|
-
* @param {
|
|
154
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
155
|
*
|
|
137
156
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
138
157
|
*
|
|
@@ -142,13 +161,13 @@ export declare class Workflows {
|
|
|
142
161
|
* taskPrompt: "Go to github.com and search for browser-use"
|
|
143
162
|
* })
|
|
144
163
|
*/
|
|
145
|
-
generateWorkflow(request: BrowserUse.WorkflowGenerateRequest, requestOptions?:
|
|
164
|
+
generateWorkflow(request: BrowserUse.WorkflowGenerateRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowGenerateResponse>;
|
|
146
165
|
private __generateWorkflow;
|
|
147
166
|
/**
|
|
148
167
|
* Get detailed execution information including status, results, and costs.
|
|
149
168
|
*
|
|
150
169
|
* @param {BrowserUse.GetExecutionWorkflowsExecutionsExecutionIdGetRequest} request
|
|
151
|
-
* @param {
|
|
170
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
171
|
*
|
|
153
172
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
154
173
|
*
|
|
@@ -157,13 +176,13 @@ export declare class Workflows {
|
|
|
157
176
|
* execution_id: "execution_id"
|
|
158
177
|
* })
|
|
159
178
|
*/
|
|
160
|
-
getExecution(request: BrowserUse.GetExecutionWorkflowsExecutionsExecutionIdGetRequest, requestOptions?:
|
|
179
|
+
getExecution(request: BrowserUse.GetExecutionWorkflowsExecutionsExecutionIdGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionResponse>;
|
|
161
180
|
private __getExecution;
|
|
162
181
|
/**
|
|
163
182
|
* Get paginated list of executions for a specific workflow.
|
|
164
183
|
*
|
|
165
184
|
* @param {BrowserUse.ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest} request
|
|
166
|
-
* @param {
|
|
185
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
186
|
*
|
|
168
187
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
169
188
|
*
|
|
@@ -172,26 +191,26 @@ export declare class Workflows {
|
|
|
172
191
|
* workflow_id: "workflow_id"
|
|
173
192
|
* })
|
|
174
193
|
*/
|
|
175
|
-
listWorkflowExecutions(request: BrowserUse.ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest, requestOptions?:
|
|
194
|
+
listWorkflowExecutions(request: BrowserUse.ListWorkflowExecutionsWorkflowsWorkflowIdExecutionsGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionListResponse>;
|
|
176
195
|
private __listWorkflowExecutions;
|
|
177
196
|
/**
|
|
178
197
|
* Get paginated list of all workflow executions for a project.
|
|
179
198
|
*
|
|
180
199
|
* @param {BrowserUse.ListAllExecutionsWorkflowsExecutionsGetRequest} request
|
|
181
|
-
* @param {
|
|
200
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
182
201
|
*
|
|
183
202
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
184
203
|
*
|
|
185
204
|
* @example
|
|
186
205
|
* await client.workflows.listAllExecutions()
|
|
187
206
|
*/
|
|
188
|
-
listAllExecutions(request?: BrowserUse.ListAllExecutionsWorkflowsExecutionsGetRequest, requestOptions?:
|
|
207
|
+
listAllExecutions(request?: BrowserUse.ListAllExecutionsWorkflowsExecutionsGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionListResponse>;
|
|
189
208
|
private __listAllExecutions;
|
|
190
209
|
/**
|
|
191
210
|
* Cancel a pending or running workflow execution.
|
|
192
211
|
*
|
|
193
212
|
* @param {BrowserUse.CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest} request
|
|
194
|
-
* @param {
|
|
213
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
214
|
*
|
|
196
215
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
197
216
|
*
|
|
@@ -200,13 +219,13 @@ export declare class Workflows {
|
|
|
200
219
|
* execution_id: "execution_id"
|
|
201
220
|
* })
|
|
202
221
|
*/
|
|
203
|
-
cancelExecution(request: BrowserUse.CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest, requestOptions?:
|
|
222
|
+
cancelExecution(request: BrowserUse.CancelExecutionWorkflowsExecutionsExecutionIdCancelPatchRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionResponse>;
|
|
204
223
|
private __cancelExecution;
|
|
205
224
|
/**
|
|
206
225
|
* Get presigned URL to download execution logs.
|
|
207
226
|
*
|
|
208
227
|
* @param {BrowserUse.GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest} request
|
|
209
|
-
* @param {
|
|
228
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
229
|
*
|
|
211
230
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
212
231
|
*
|
|
@@ -215,7 +234,45 @@ export declare class Workflows {
|
|
|
215
234
|
* execution_id: "execution_id"
|
|
216
235
|
* })
|
|
217
236
|
*/
|
|
218
|
-
getExecutionLogs(request: BrowserUse.GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest, requestOptions?:
|
|
237
|
+
getExecutionLogs(request: BrowserUse.GetExecutionLogsWorkflowsExecutionsExecutionIdLogsGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionLogResponse>;
|
|
219
238
|
private __getExecutionLogs;
|
|
239
|
+
/**
|
|
240
|
+
* Get workflow execution state with steps for live UI polling.
|
|
241
|
+
*
|
|
242
|
+
* This endpoint returns the current state of a workflow execution including all steps
|
|
243
|
+
* with their details. It's designed to be polled every 2 seconds during execution
|
|
244
|
+
* to show real-time progress in the frontend.
|
|
245
|
+
*
|
|
246
|
+
* @param {BrowserUse.GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest} request
|
|
247
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
|
+
*
|
|
249
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* await client.workflows.getExecutionState({
|
|
253
|
+
* execution_id: "execution_id"
|
|
254
|
+
* })
|
|
255
|
+
*/
|
|
256
|
+
getExecutionState(request: BrowserUse.GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionStateView>;
|
|
257
|
+
private __getExecutionState;
|
|
258
|
+
/**
|
|
259
|
+
* Get workflow execution media (screenshots) with presigned URLs.
|
|
260
|
+
*
|
|
261
|
+
* This endpoint returns media URLs for completed executions. Screenshots
|
|
262
|
+
* are returned with presigned S3 URLs for direct access from the frontend.
|
|
263
|
+
* Should be called when execution status is 'completed', 'failed', or 'cancelled'.
|
|
264
|
+
*
|
|
265
|
+
* @param {BrowserUse.GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest} request
|
|
266
|
+
* @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
267
|
+
*
|
|
268
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* await client.workflows.getExecutionMedia({
|
|
272
|
+
* execution_id: "execution_id"
|
|
273
|
+
* })
|
|
274
|
+
*/
|
|
275
|
+
getExecutionMedia(request: BrowserUse.GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionMediaView>;
|
|
276
|
+
private __getExecutionMedia;
|
|
220
277
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
221
278
|
}
|