Skip to content

Commit 49b416d

Browse files
Release 2.0.11
1 parent da88db9 commit 49b416d

35 files changed

+1018
-26
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.10",
3+
"version": "2.0.11",
44
"private": false,
55
"repository": "github:browser-use/browser-use-node",
66
"type": "commonjs",

reference.md

Lines changed: 199 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,8 @@ Stop a session and all its running tasks.
667667

668668
```typescript
669669
await client.sessions.updateSession({
670-
session_id: "session_id"
670+
session_id: "session_id",
671+
action: "stop"
671672
});
672673

673674
```
@@ -1668,7 +1669,8 @@ Billing is ceil to the nearest minute (minimum 1 minute).
16681669

16691670
```typescript
16701671
await client.browsers.updateBrowserSession({
1671-
session_id: "session_id"
1672+
session_id: "session_id",
1673+
action: "stop"
16721674
});
16731675

16741676
```
@@ -1718,7 +1720,7 @@ await client.browsers.updateBrowserSession({
17181720
<dl>
17191721
<dd>
17201722

1721-
List all skills owned by the authenticated project with optional filtering by public status.
1723+
List all skills owned by the authenticated project with optional filtering.
17221724
</dd>
17231725
</dl>
17241726
</dd>
@@ -2222,6 +2224,200 @@ await client.skills.refineSkill({
22222224
</dl>
22232225

22242226

2227+
</dd>
2228+
</dl>
2229+
</details>
2230+
2231+
## SkillsMarketplace
2232+
<details><summary><code>client.skillsMarketplace.<a href="/src/api/resources/skillsMarketplace/client/Client.ts">listSkills</a>({ ...params }) -> BrowserUse.MarketplaceSkillListResponse</code></summary>
2233+
<dl>
2234+
<dd>
2235+
2236+
#### 📝 Description
2237+
2238+
<dl>
2239+
<dd>
2240+
2241+
<dl>
2242+
<dd>
2243+
2244+
List all public skills available in the marketplace with optional filtering.
2245+
</dd>
2246+
</dl>
2247+
</dd>
2248+
</dl>
2249+
2250+
#### 🔌 Usage
2251+
2252+
<dl>
2253+
<dd>
2254+
2255+
<dl>
2256+
<dd>
2257+
2258+
```typescript
2259+
await client.skillsMarketplace.listSkills();
2260+
2261+
```
2262+
</dd>
2263+
</dl>
2264+
</dd>
2265+
</dl>
2266+
2267+
#### ⚙️ Parameters
2268+
2269+
<dl>
2270+
<dd>
2271+
2272+
<dl>
2273+
<dd>
2274+
2275+
**request:** `BrowserUse.ListSkillsMarketplaceSkillsGetRequest`
2276+
2277+
</dd>
2278+
</dl>
2279+
2280+
<dl>
2281+
<dd>
2282+
2283+
**requestOptions:** `SkillsMarketplace.RequestOptions`
2284+
2285+
</dd>
2286+
</dl>
2287+
</dd>
2288+
</dl>
2289+
2290+
2291+
</dd>
2292+
</dl>
2293+
</details>
2294+
2295+
<details><summary><code>client.skillsMarketplace.<a href="/src/api/resources/skillsMarketplace/client/Client.ts">getSkill</a>({ ...params }) -> BrowserUse.MarketplaceSkillResponse</code></summary>
2296+
<dl>
2297+
<dd>
2298+
2299+
#### 📝 Description
2300+
2301+
<dl>
2302+
<dd>
2303+
2304+
<dl>
2305+
<dd>
2306+
2307+
Get details of a specific public skill from the marketplace.
2308+
</dd>
2309+
</dl>
2310+
</dd>
2311+
</dl>
2312+
2313+
#### 🔌 Usage
2314+
2315+
<dl>
2316+
<dd>
2317+
2318+
<dl>
2319+
<dd>
2320+
2321+
```typescript
2322+
await client.skillsMarketplace.getSkill({
2323+
skill_id: "skill_id"
2324+
});
2325+
2326+
```
2327+
</dd>
2328+
</dl>
2329+
</dd>
2330+
</dl>
2331+
2332+
#### ⚙️ Parameters
2333+
2334+
<dl>
2335+
<dd>
2336+
2337+
<dl>
2338+
<dd>
2339+
2340+
**request:** `BrowserUse.GetSkillMarketplaceSkillsSkillIdGetRequest`
2341+
2342+
</dd>
2343+
</dl>
2344+
2345+
<dl>
2346+
<dd>
2347+
2348+
**requestOptions:** `SkillsMarketplace.RequestOptions`
2349+
2350+
</dd>
2351+
</dl>
2352+
</dd>
2353+
</dl>
2354+
2355+
2356+
</dd>
2357+
</dl>
2358+
</details>
2359+
2360+
<details><summary><code>client.skillsMarketplace.<a href="/src/api/resources/skillsMarketplace/client/Client.ts">cloneSkill</a>({ ...params }) -> BrowserUse.MarketplaceSkillResponse</code></summary>
2361+
<dl>
2362+
<dd>
2363+
2364+
#### 📝 Description
2365+
2366+
<dl>
2367+
<dd>
2368+
2369+
<dl>
2370+
<dd>
2371+
2372+
Clone a public marketplace skill to the user's project.
2373+
</dd>
2374+
</dl>
2375+
</dd>
2376+
</dl>
2377+
2378+
#### 🔌 Usage
2379+
2380+
<dl>
2381+
<dd>
2382+
2383+
<dl>
2384+
<dd>
2385+
2386+
```typescript
2387+
await client.skillsMarketplace.cloneSkill({
2388+
skill_id: "skill_id"
2389+
});
2390+
2391+
```
2392+
</dd>
2393+
</dl>
2394+
</dd>
2395+
</dl>
2396+
2397+
#### ⚙️ Parameters
2398+
2399+
<dl>
2400+
<dd>
2401+
2402+
<dl>
2403+
<dd>
2404+
2405+
**request:** `BrowserUse.CloneSkillMarketplaceSkillsSkillIdClonePostRequest`
2406+
2407+
</dd>
2408+
</dl>
2409+
2410+
<dl>
2411+
<dd>
2412+
2413+
**requestOptions:** `SkillsMarketplace.RequestOptions`
2414+
2415+
</dd>
2416+
</dl>
2417+
</dd>
2418+
</dl>
2419+
2420+
22252421
</dd>
22262422
</dl>
22272423
</details>

src/Client.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Files } from "./api/resources/files/client/Client.js";
66
import { Profiles } from "./api/resources/profiles/client/Client.js";
77
import { Sessions } from "./api/resources/sessions/client/Client.js";
88
import { Skills } from "./api/resources/skills/client/Client.js";
9+
import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.js";
910
import { Tasks } from "./api/resources/tasks/client/Client.js";
1011
import { Workflows } from "./api/resources/workflows/client/Client.js";
1112
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -27,6 +28,7 @@ export class BrowserUseClient {
2728
protected _profiles: Profiles | undefined;
2829
protected _browsers: Browsers | undefined;
2930
protected _skills: Skills | undefined;
31+
protected _skillsMarketplace: SkillsMarketplace | undefined;
3032
protected _workflows: Workflows | undefined;
3133

3234
constructor(_options: BrowserUseClient.Options) {
@@ -37,8 +39,8 @@ export class BrowserUseClient {
3739
{
3840
"X-Fern-Language": "JavaScript",
3941
"X-Fern-SDK-Name": "browser-use-sdk",
40-
"X-Fern-SDK-Version": "2.0.10",
41-
"User-Agent": "browser-use-sdk/2.0.10",
42+
"X-Fern-SDK-Version": "2.0.11",
43+
"User-Agent": "browser-use-sdk/2.0.11",
4244
"X-Fern-Runtime": core.RUNTIME.type,
4345
"X-Fern-Runtime-Version": core.RUNTIME.version,
4446
},
@@ -75,6 +77,10 @@ export class BrowserUseClient {
7577
return (this._skills ??= new Skills(this._options));
7678
}
7779

80+
public get skillsMarketplace(): SkillsMarketplace {
81+
return (this._skillsMarketplace ??= new SkillsMarketplace(this._options));
82+
}
83+
7884
public get workflows(): Workflows {
7985
return (this._workflows ??= new Workflows(this._options));
8086
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ export class Browsers {
327327
*
328328
* @example
329329
* await client.browsers.updateBrowserSession({
330-
* session_id: "session_id"
330+
* session_id: "session_id",
331+
* action: "stop"
331332
* })
332333
*/
333334
public updateBrowserSession(
@@ -359,7 +360,7 @@ export class Browsers {
359360
contentType: "application/json",
360361
queryParameters: requestOptions?.queryParams,
361362
requestType: "json",
362-
body: { ..._body, action: "stop" },
363+
body: _body,
363364
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
364365
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
365366
abortSignal: requestOptions?.abortSignal,
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3+
import type * as BrowserUse from "../../../../index.js";
4+
35
/**
46
* @example
57
* {
6-
* session_id: "session_id"
8+
* session_id: "session_id",
9+
* action: "stop"
710
* }
811
*/
912
export interface UpdateBrowserSessionRequest {
1013
session_id: string;
14+
/** The action to perform on the session */
15+
action: BrowserUse.BrowserSessionUpdateAction;
1116
}

src/api/resources/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export * from "./sessions/client/requests/index.js";
99
export * as sessions from "./sessions/index.js";
1010
export * from "./skills/client/requests/index.js";
1111
export * as skills from "./skills/index.js";
12+
export * from "./skillsMarketplace/client/requests/index.js";
13+
export * as skillsMarketplace from "./skillsMarketplace/index.js";
1214
export * from "./tasks/client/requests/index.js";
1315
export * as tasks from "./tasks/index.js";
1416
export * from "./workflows/client/requests/index.js";

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ export class Sessions {
389389
*
390390
* @example
391391
* await client.sessions.updateSession({
392-
* session_id: "session_id"
392+
* session_id: "session_id",
393+
* action: "stop"
393394
* })
394395
*/
395396
public updateSession(
@@ -421,7 +422,7 @@ export class Sessions {
421422
contentType: "application/json",
422423
queryParameters: requestOptions?.queryParams,
423424
requestType: "json",
424-
body: { ..._body, action: "stop" },
425+
body: _body,
425426
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
426427
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
427428
abortSignal: requestOptions?.abortSignal,
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
// This file was auto-generated by Fern from our API Definition.
22

3+
import type * as BrowserUse from "../../../../index.js";
4+
35
/**
46
* @example
57
* {
6-
* session_id: "session_id"
8+
* session_id: "session_id",
9+
* action: "stop"
710
* }
811
*/
912
export interface UpdateSessionRequest {
1013
session_id: string;
14+
/** The action to perform on the session */
15+
action: BrowserUse.SessionUpdateAction;
1116
}

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Skills {
2121
}
2222

2323
/**
24-
* List all skills owned by the authenticated project with optional filtering by public status.
24+
* List all skills owned by the authenticated project with optional filtering.
2525
*
2626
* @param {BrowserUse.ListSkillsSkillsGetRequest} request
2727
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
@@ -42,7 +42,7 @@ export class Skills {
4242
request: BrowserUse.ListSkillsSkillsGetRequest = {},
4343
requestOptions?: Skills.RequestOptions,
4444
): Promise<core.WithRawResponse<BrowserUse.SkillListResponse>> {
45-
const { pageSize, pageNumber, isPublic } = request;
45+
const { pageSize, pageNumber, isPublic, isEnabled, query, fromDate, toDate } = request;
4646
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
4747
if (pageSize != null) {
4848
_queryParams.pageSize = pageSize.toString();
@@ -56,6 +56,22 @@ export class Skills {
5656
_queryParams.isPublic = isPublic?.toString() ?? null;
5757
}
5858

59+
if (isEnabled !== undefined) {
60+
_queryParams.isEnabled = isEnabled?.toString() ?? null;
61+
}
62+
63+
if (query !== undefined) {
64+
_queryParams.query = query;
65+
}
66+
67+
if (fromDate !== undefined) {
68+
_queryParams.fromDate = fromDate;
69+
}
70+
71+
if (toDate !== undefined) {
72+
_queryParams.toDate = toDate;
73+
}
74+
5975
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
6076
this._options?.headers,
6177
mergeOnlyDefinedHeaders({ ...(await this._getCustomAuthorizationHeaders()) }),

0 commit comments

Comments
 (0)