Skip to content

Commit bdf34e4

Browse files
committed
SDK regeneration
1 parent cf3a604 commit bdf34e4

File tree

8 files changed

+13
-33
lines changed

8 files changed

+13
-33
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": "2.0.0-rc2",
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": "2.0.0-rc2",
54+
"User-Agent": "browser-use-sdk/2.0.0-rc2",
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 = "2.0.0-rc2";

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ acorn-walk@^8.0.2, acorn-walk@^8.1.1:
996996
dependencies:
997997
acorn "^8.11.0"
998998

999-
acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.15.0, acorn@^8.4.1, acorn@^8.8.1:
999+
acorn@^8.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.4.1, acorn@^8.8.1:
10001000
version "8.15.0"
10011001
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816"
10021002
integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==
@@ -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"
@@ -3028,12 +3028,12 @@ terser-webpack-plugin@^5.3.11:
30283028
terser "^5.31.1"
30293029

30303030
terser@^5.31.1:
3031-
version "5.43.1"
3032-
resolved "https://registry.yarnpkg.com/terser/-/terser-5.43.1.tgz#88387f4f9794ff1a29e7ad61fb2932e25b4fdb6d"
3033-
integrity sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==
3031+
version "5.44.0"
3032+
resolved "https://registry.yarnpkg.com/terser/-/terser-5.44.0.tgz#ebefb8e5b8579d93111bfdfc39d2cf63879f4a82"
3033+
integrity sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==
30343034
dependencies:
30353035
"@jridgewell/source-map" "^0.3.3"
3036-
acorn "^8.14.0"
3036+
acorn "^8.15.0"
30373037
commander "^2.20.0"
30383038
source-map-support "~0.5.20"
30393039

0 commit comments

Comments
 (0)