Skip to content

Commit 9b037be

Browse files
committed
SDK regeneration
1 parent cf3a604 commit 9b037be

File tree

8 files changed

+8
-28
lines changed

8 files changed

+8
-28
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-use-sdk",
3-
"version": "2.0.0-rc1",
3+
"version": "1.2.1",
44
"private": false,
55
"repository": "github:browser-use/browser-use-node",
66
"type": "commonjs",

src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export class BrowserUseClient {
5050
{
5151
"X-Fern-Language": "JavaScript",
5252
"X-Fern-SDK-Name": "browser-use-sdk",
53-
"X-Fern-SDK-Version": "2.0.0-rc1",
54-
"User-Agent": "browser-use-sdk/2.0.0-rc1",
53+
"X-Fern-SDK-Version": "1.2.1",
54+
"User-Agent": "browser-use-sdk/1.2.1",
5555
"X-Fern-Runtime": core.RUNTIME.type,
5656
"X-Fern-Runtime-Version": core.RUNTIME.version,
5757
},

src/api/errors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export * from "./NotFoundError.js";
22
export * from "./UnprocessableEntityError.js";
33
export * from "./BadRequestError.js";
4-
export * from "./PaymentRequiredError.js";
54
export * from "./InternalServerError.js";
5+
export * from "./PaymentRequiredError.js";

src/api/resources/tasks/client/Client.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,8 @@ export class Tasks {
152152
* @param {Tasks.RequestOptions} requestOptions - Request-specific configuration.
153153
*
154154
* @throws {@link BrowserUse.BadRequestError}
155-
* @throws {@link BrowserUse.PaymentRequiredError}
156155
* @throws {@link BrowserUse.NotFoundError}
157156
* @throws {@link BrowserUse.UnprocessableEntityError}
158-
* @throws {@link BrowserUse.InternalServerError}
159157
*
160158
* @example
161159
* await client.tasks.createTask({
@@ -203,20 +201,13 @@ export class Tasks {
203201
switch (_response.error.statusCode) {
204202
case 400:
205203
throw new BrowserUse.BadRequestError(_response.error.body as unknown, _response.rawResponse);
206-
case 402:
207-
throw new BrowserUse.PaymentRequiredError(
208-
_response.error.body as BrowserUse.InsufficientCreditsError,
209-
_response.rawResponse,
210-
);
211204
case 404:
212205
throw new BrowserUse.NotFoundError(_response.error.body as unknown, _response.rawResponse);
213206
case 422:
214207
throw new BrowserUse.UnprocessableEntityError(
215208
_response.error.body as unknown,
216209
_response.rawResponse,
217210
);
218-
case 500:
219-
throw new BrowserUse.InternalServerError(_response.error.body as unknown, _response.rawResponse);
220211
default:
221212
throw new errors.BrowserUseError({
222213
statusCode: _response.error.statusCode,

src/api/types/CreditsDeductionError.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/api/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ export * from "./BadRequestErrorBody.js";
22
export * from "./NotFoundErrorBody.js";
33
export * from "./AccountNotFoundError.js";
44
export * from "./AccountView.js";
5-
export * from "./CreditsDeductionError.js";
65
export * from "./DownloadUrlGenerationError.js";
76
export * from "./FileView.js";
87
export * from "./HttpValidationError.js";

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "2.0.0-rc1";
1+
export const SDK_VERSION = "1.2.1";

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,9 +1444,9 @@ eciesjs@^0.4.10:
14441444
"@noble/hashes" "^1.8.0"
14451445

14461446
electron-to-chromium@^1.5.211:
1447-
version "1.5.211"
1448-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.211.tgz#749317bf9cf894c06f67980940cf8074e5eb08ca"
1449-
integrity sha512-IGBvimJkotaLzFnwIVgW9/UD/AOJ2tByUmeOrtqBfACSbAw5b1G0XpvdaieKyc7ULmbwXVx+4e4Be8pOPBrYkw==
1447+
version "1.5.212"
1448+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.212.tgz#9b541f90d7d8415ccea94d4be4bb86e73e3f9547"
1449+
integrity sha512-gE7ErIzSW+d8jALWMcOIgf+IB6lpfsg6NwOhPVwKzDtN2qcBix47vlin4yzSregYDxTCXOUqAZjVY/Z3naS7ww==
14501450

14511451
emittery@^0.13.1:
14521452
version "0.13.1"

0 commit comments

Comments
 (0)