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.
Files changed (110) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -1
  2. package/dist/cjs/BaseClient.js +47 -0
  3. package/dist/cjs/Client.d.ts +22 -22
  4. package/dist/cjs/Client.js +10 -51
  5. package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
  6. package/dist/cjs/api/resources/billing/client/Client.js +7 -6
  7. package/dist/cjs/api/resources/browsers/client/Client.d.ts +12 -12
  8. package/dist/cjs/api/resources/browsers/client/Client.js +10 -9
  9. package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +4 -0
  10. package/dist/cjs/api/resources/files/client/Client.d.ts +10 -10
  11. package/dist/cjs/api/resources/files/client/Client.js +9 -8
  12. package/dist/cjs/api/resources/index.d.ts +0 -1
  13. package/dist/cjs/api/resources/index.js +0 -1
  14. package/dist/cjs/api/resources/profiles/client/Client.d.ts +14 -14
  15. package/dist/cjs/api/resources/profiles/client/Client.js +11 -10
  16. package/dist/cjs/api/resources/sessions/client/Client.d.ts +20 -20
  17. package/dist/cjs/api/resources/sessions/client/Client.js +14 -13
  18. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +4 -0
  19. package/dist/cjs/api/resources/tasks/client/Client.d.ts +14 -14
  20. package/dist/cjs/api/resources/tasks/client/Client.js +11 -10
  21. package/dist/cjs/api/resources/workflows/client/Client.d.ts +92 -35
  22. package/dist/cjs/api/resources/workflows/client/Client.js +241 -27
  23. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.ts +9 -0
  24. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.js +3 -0
  25. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.ts +9 -0
  26. package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.js +3 -0
  27. package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.ts +9 -0
  28. package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.js +3 -0
  29. package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +0 -3
  30. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +3 -0
  31. package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
  32. package/dist/cjs/api/resources/workflows/index.js +0 -1
  33. package/dist/cjs/api/types/SupportedLlMs.d.ts +2 -0
  34. package/dist/cjs/api/types/SupportedLlMs.js +2 -0
  35. package/dist/cjs/api/types/WorkflowExecutionMediaStepView.d.ts +13 -0
  36. package/dist/cjs/api/types/WorkflowExecutionMediaStepView.js +3 -0
  37. package/dist/cjs/api/types/WorkflowExecutionMediaView.d.ts +8 -0
  38. package/dist/cjs/api/types/WorkflowExecutionMediaView.js +3 -0
  39. package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +28 -0
  40. package/dist/cjs/api/types/WorkflowExecutionStateView.js +3 -0
  41. package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +29 -0
  42. package/dist/cjs/api/types/WorkflowExecutionStepView.js +3 -0
  43. package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +18 -0
  44. package/dist/cjs/api/types/WorkflowGenerationStateView.js +3 -0
  45. package/dist/cjs/api/types/WorkflowGenerationStepView.d.ts +19 -0
  46. package/dist/cjs/api/types/WorkflowGenerationStepView.js +3 -0
  47. package/dist/cjs/api/types/index.d.ts +6 -1
  48. package/dist/cjs/api/types/index.js +6 -1
  49. package/dist/cjs/version.d.ts +1 -1
  50. package/dist/cjs/version.js +1 -1
  51. package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +7 -7
  52. package/dist/cjs/wrapper/api/BrowserUseTasks.js +1 -1
  53. package/dist/cjs/wrapper/lib/webhooks.d.ts +2 -2
  54. package/dist/cjs/wrapper/lib/webhooks.js +3 -3
  55. package/dist/esm/BaseClient.d.mts +2 -1
  56. package/dist/esm/BaseClient.mjs +13 -1
  57. package/dist/esm/Client.d.mts +22 -22
  58. package/dist/esm/Client.mjs +17 -25
  59. package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
  60. package/dist/esm/api/resources/billing/client/Client.mjs +5 -4
  61. package/dist/esm/api/resources/browsers/client/Client.d.mts +12 -12
  62. package/dist/esm/api/resources/browsers/client/Client.mjs +8 -7
  63. package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +4 -0
  64. package/dist/esm/api/resources/files/client/Client.d.mts +10 -10
  65. package/dist/esm/api/resources/files/client/Client.mjs +7 -6
  66. package/dist/esm/api/resources/index.d.mts +0 -1
  67. package/dist/esm/api/resources/index.mjs +0 -1
  68. package/dist/esm/api/resources/profiles/client/Client.d.mts +14 -14
  69. package/dist/esm/api/resources/profiles/client/Client.mjs +9 -8
  70. package/dist/esm/api/resources/sessions/client/Client.d.mts +20 -20
  71. package/dist/esm/api/resources/sessions/client/Client.mjs +12 -11
  72. package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +4 -0
  73. package/dist/esm/api/resources/tasks/client/Client.d.mts +14 -14
  74. package/dist/esm/api/resources/tasks/client/Client.mjs +9 -8
  75. package/dist/esm/api/resources/workflows/client/Client.d.mts +92 -35
  76. package/dist/esm/api/resources/workflows/client/Client.mjs +239 -25
  77. package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.mts +9 -0
  78. package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.mjs +2 -0
  79. package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.mts +9 -0
  80. package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.mjs +2 -0
  81. package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.mts +9 -0
  82. package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.mjs +2 -0
  83. package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +0 -3
  84. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +3 -0
  85. package/dist/esm/api/resources/workflows/index.d.mts +0 -1
  86. package/dist/esm/api/resources/workflows/index.mjs +0 -1
  87. package/dist/esm/api/types/SupportedLlMs.d.mts +2 -0
  88. package/dist/esm/api/types/SupportedLlMs.mjs +2 -0
  89. package/dist/esm/api/types/WorkflowExecutionMediaStepView.d.mts +13 -0
  90. package/dist/esm/api/types/WorkflowExecutionMediaStepView.mjs +2 -0
  91. package/dist/esm/api/types/WorkflowExecutionMediaView.d.mts +8 -0
  92. package/dist/esm/api/types/WorkflowExecutionMediaView.mjs +2 -0
  93. package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +28 -0
  94. package/dist/esm/api/types/WorkflowExecutionStateView.mjs +2 -0
  95. package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +29 -0
  96. package/dist/esm/api/types/WorkflowExecutionStepView.mjs +2 -0
  97. package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +18 -0
  98. package/dist/esm/api/types/WorkflowGenerationStateView.mjs +2 -0
  99. package/dist/esm/api/types/WorkflowGenerationStepView.d.mts +19 -0
  100. package/dist/esm/api/types/WorkflowGenerationStepView.mjs +2 -0
  101. package/dist/esm/api/types/index.d.mts +6 -1
  102. package/dist/esm/api/types/index.mjs +6 -1
  103. package/dist/esm/version.d.mts +1 -1
  104. package/dist/esm/version.mjs +1 -1
  105. package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +7 -7
  106. package/dist/esm/wrapper/api/BrowserUseTasks.mjs +2 -2
  107. package/dist/esm/wrapper/lib/webhooks.d.mts +2 -2
  108. package/dist/esm/wrapper/lib/webhooks.mjs +3 -3
  109. package/package.json +82 -83
  110. 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 Workflows {
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 Workflows {
11
- protected readonly _options: Workflows.Options;
12
- constructor(_options: Workflows.Options);
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowListResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowYamlPresignedUploadResponse>;
122
+ getWorkflowYamlPresignedUrl(request: BrowserUse.WorkflowYamlPresignedUploadRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowYamlPresignedUploadResponse>;
104
123
  private __getWorkflowYamlPresignedUrl;
105
124
  /**
106
- * Execute a workflow either synchronously or asynchronously.
125
+ * Execute a workflow asynchronously.
107
126
  *
108
- * - ASYNC mode: Returns execution ID immediately and processes in background via Lambda
109
- * - SYNC mode: Waits for execution to complete and returns results inline (max 5 min timeout)
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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.executeWorkflow({
136
+ * await client.workflows.runWorkflow({
118
137
  * workflow_id: "workflow_id"
119
138
  * })
120
139
  */
121
- executeWorkflow(request: BrowserUse.WorkflowExecuteRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse>;
122
- private __executeWorkflow;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowGenerateResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionListResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionListResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionResponse>;
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 {Workflows.RequestOptions} requestOptions - Request-specific configuration.
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?: Workflows.RequestOptions): core.HttpResponsePromise<BrowserUse.WorkflowExecutionLogResponse>;
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
  }