browser-use-sdk 2.0.10 → 2.0.11
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +11 -6
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/browsers/client/Client.js +3 -2
- package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.ts +5 -1
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +3 -2
- package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +5 -1
- package/dist/cjs/api/resources/skills/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/skills/client/Client.js +20 -8
- package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +4 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +60 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +281 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/index.js +17 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.js +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/skillsMarketplace/index.d.ts +1 -0
- package/dist/cjs/api/resources/skillsMarketplace/index.js +17 -0
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.ts +11 -0
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.js +3 -0
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.ts +9 -0
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.js +12 -0
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.d.ts +11 -0
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.js +3 -0
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.d.ts +10 -0
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.js +13 -0
- package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +4 -1
- package/dist/cjs/api/types/BrowserSessionUpdateAction.js +10 -0
- package/dist/cjs/api/types/MarketplaceSkillListResponse.d.ts +14 -0
- package/dist/cjs/api/types/MarketplaceSkillListResponse.js +3 -0
- package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +24 -0
- package/dist/cjs/api/types/MarketplaceSkillResponse.js +3 -0
- package/dist/cjs/api/types/SessionUpdateAction.d.ts +4 -1
- package/dist/cjs/api/types/SessionUpdateAction.js +10 -0
- package/dist/cjs/api/types/SkillResponse.d.ts +3 -1
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +8 -1
- package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +8 -0
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +8 -1
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +8 -0
- package/dist/cjs/api/types/index.d.ts +6 -2
- package/dist/cjs/api/types/index.js +6 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/browsers/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/browsers/client/Client.mjs +3 -2
- package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +5 -1
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/sessions/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +3 -2
- package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +5 -1
- package/dist/esm/api/resources/skills/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/skills/client/Client.mjs +20 -8
- package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.d.mts +2 -0
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +4 -0
- package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +60 -0
- package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +244 -0
- package/dist/esm/api/resources/skillsMarketplace/client/index.d.mts +1 -0
- package/dist/esm/api/resources/skillsMarketplace/client/index.mjs +1 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.mts +9 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.mjs +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/skillsMarketplace/index.d.mts +1 -0
- package/dist/esm/api/resources/skillsMarketplace/index.mjs +1 -0
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.mts +11 -0
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.mjs +2 -0
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.mts +9 -0
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.mjs +9 -0
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.d.mts +11 -0
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.mjs +2 -0
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.d.mts +10 -0
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.mjs +10 -0
- package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +4 -1
- package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +9 -1
- package/dist/esm/api/types/MarketplaceSkillListResponse.d.mts +14 -0
- package/dist/esm/api/types/MarketplaceSkillListResponse.mjs +2 -0
- package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +24 -0
- package/dist/esm/api/types/MarketplaceSkillResponse.mjs +2 -0
- package/dist/esm/api/types/SessionUpdateAction.d.mts +4 -1
- package/dist/esm/api/types/SessionUpdateAction.mjs +9 -1
- package/dist/esm/api/types/SkillResponse.d.mts +3 -1
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +8 -1
- package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +7 -1
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +8 -1
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +7 -1
- package/dist/esm/api/types/index.d.mts +6 -2
- package/dist/esm/api/types/index.mjs +6 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +199 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { CloneSkillMarketplaceSkillsSkillIdClonePostRequest } from "./CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js";
|
|
2
|
+
export type { GetSkillMarketplaceSkillsSkillIdGetRequest } from "./GetSkillMarketplaceSkillsSkillIdGetRequest.js";
|
|
3
|
+
export type { ListSkillsMarketplaceSkillsGetRequest } from "./ListSkillsMarketplaceSkillsGetRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as BrowserUse from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Schema for a skill parameter.
|
|
4
|
+
*/
|
|
5
|
+
export interface AppApiV2MarketplaceSkillsViewsParameterSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
type: BrowserUse.AppApiV2MarketplaceSkillsViewsParameterType;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
default?: unknown | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Type of a skill parameter. */
|
|
2
|
+
export declare const AppApiV2MarketplaceSkillsViewsParameterType: {
|
|
3
|
+
readonly String: "string";
|
|
4
|
+
readonly Number: "number";
|
|
5
|
+
readonly Boolean: "boolean";
|
|
6
|
+
readonly Object: "object";
|
|
7
|
+
readonly Array: "array";
|
|
8
|
+
};
|
|
9
|
+
export type AppApiV2MarketplaceSkillsViewsParameterType = (typeof AppApiV2MarketplaceSkillsViewsParameterType)[keyof typeof AppApiV2MarketplaceSkillsViewsParameterType];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AppApiV2MarketplaceSkillsViewsParameterType = void 0;
|
|
5
|
+
/** Type of a skill parameter. */
|
|
6
|
+
exports.AppApiV2MarketplaceSkillsViewsParameterType = {
|
|
7
|
+
String: "string",
|
|
8
|
+
Number: "number",
|
|
9
|
+
Boolean: "boolean",
|
|
10
|
+
Object: "object",
|
|
11
|
+
Array: "array",
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as BrowserUse from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Schema for a skill parameter.
|
|
4
|
+
*/
|
|
5
|
+
export interface AppApiV2SkillsViewsParameterSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
type: BrowserUse.AppApiV2SkillsViewsParameterType;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
default?: unknown | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Type of a skill parameter. */
|
|
2
|
+
export declare const AppApiV2SkillsViewsParameterType: {
|
|
3
|
+
readonly String: "string";
|
|
4
|
+
readonly Number: "number";
|
|
5
|
+
readonly Boolean: "boolean";
|
|
6
|
+
readonly Object: "object";
|
|
7
|
+
readonly Array: "array";
|
|
8
|
+
readonly Cookie: "cookie";
|
|
9
|
+
};
|
|
10
|
+
export type AppApiV2SkillsViewsParameterType = (typeof AppApiV2SkillsViewsParameterType)[keyof typeof AppApiV2SkillsViewsParameterType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AppApiV2SkillsViewsParameterType = void 0;
|
|
5
|
+
/** Type of a skill parameter. */
|
|
6
|
+
exports.AppApiV2SkillsViewsParameterType = {
|
|
7
|
+
String: "string",
|
|
8
|
+
Number: "number",
|
|
9
|
+
Boolean: "boolean",
|
|
10
|
+
Object: "object",
|
|
11
|
+
Array: "array",
|
|
12
|
+
Cookie: "cookie",
|
|
13
|
+
};
|
|
@@ -4,4 +4,7 @@
|
|
|
4
4
|
* Attributes:
|
|
5
5
|
* STOP: Stop the browser session (cannot be undone)
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export declare const BrowserSessionUpdateAction: {
|
|
8
|
+
readonly Stop: "stop";
|
|
9
|
+
};
|
|
10
|
+
export type BrowserSessionUpdateAction = (typeof BrowserSessionUpdateAction)[keyof typeof BrowserSessionUpdateAction];
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.BrowserSessionUpdateAction = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Available actions that can be performed on a browser session
|
|
7
|
+
*
|
|
8
|
+
* Attributes:
|
|
9
|
+
* STOP: Stop the browser session (cannot be undone)
|
|
10
|
+
*/
|
|
11
|
+
exports.BrowserSessionUpdateAction = {
|
|
12
|
+
Stop: "stop",
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as BrowserUse from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Response for listing skills.
|
|
4
|
+
*/
|
|
5
|
+
export interface MarketplaceSkillListResponse {
|
|
6
|
+
/** List of skills */
|
|
7
|
+
items: BrowserUse.MarketplaceSkillResponse[];
|
|
8
|
+
/** Total number of items in the list */
|
|
9
|
+
totalItems: number;
|
|
10
|
+
/** Page number */
|
|
11
|
+
pageNumber: number;
|
|
12
|
+
/** Number of items per page */
|
|
13
|
+
pageSize: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as BrowserUse from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Skill information returned by the API.
|
|
4
|
+
*/
|
|
5
|
+
export interface MarketplaceSkillResponse {
|
|
6
|
+
/** Unique identifier for the skill */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Title of the skill (shows up in the public view) */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Description of the skill (shows up in the public view) */
|
|
11
|
+
description: string;
|
|
12
|
+
/** Input parameters of the skill */
|
|
13
|
+
parameters: BrowserUse.AppApiV2MarketplaceSkillsViewsParameterSchema[];
|
|
14
|
+
/** Output schema of the skill */
|
|
15
|
+
outputSchema: Record<string, unknown>;
|
|
16
|
+
/** Current version of the skill */
|
|
17
|
+
currentVersion: number | null;
|
|
18
|
+
/** Whether the skill is official (verified by Browser Use) */
|
|
19
|
+
isOfficial: boolean;
|
|
20
|
+
/** Creation timestamp */
|
|
21
|
+
createdAt: string;
|
|
22
|
+
/** Last update timestamp */
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
}
|
|
@@ -4,4 +4,7 @@
|
|
|
4
4
|
* Attributes:
|
|
5
5
|
* STOP: Stop the session and all its associated tasks (cannot be undone)
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export declare const SessionUpdateAction: {
|
|
8
|
+
readonly Stop: "stop";
|
|
9
|
+
};
|
|
10
|
+
export type SessionUpdateAction = (typeof SessionUpdateAction)[keyof typeof SessionUpdateAction];
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SessionUpdateAction = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Available actions that can be performed on a session
|
|
7
|
+
*
|
|
8
|
+
* Attributes:
|
|
9
|
+
* STOP: Stop the session and all its associated tasks (cannot be undone)
|
|
10
|
+
*/
|
|
11
|
+
exports.SessionUpdateAction = {
|
|
12
|
+
Stop: "stop",
|
|
13
|
+
};
|
|
@@ -16,7 +16,7 @@ export interface SkillResponse {
|
|
|
16
16
|
/** Status of the skill */
|
|
17
17
|
status: BrowserUse.SkillsGenerationStatus;
|
|
18
18
|
/** Input parameters of the skill */
|
|
19
|
-
parameters: BrowserUse.
|
|
19
|
+
parameters: BrowserUse.AppApiV2SkillsViewsParameterSchema[];
|
|
20
20
|
/** Output schema of the skill */
|
|
21
21
|
outputSchema: Record<string, unknown>;
|
|
22
22
|
/** Whether the skill is enabled */
|
|
@@ -27,6 +27,8 @@ export interface SkillResponse {
|
|
|
27
27
|
isOwner: boolean;
|
|
28
28
|
/** Current version of the skill */
|
|
29
29
|
currentVersion: number | null;
|
|
30
|
+
/** Base64 encoded generated code (contact support@browser-use.com to get access) - ENTERPRISE ONLY */
|
|
31
|
+
code?: string | null;
|
|
30
32
|
/** Creation timestamp */
|
|
31
33
|
createdAt: string;
|
|
32
34
|
/** Last update timestamp */
|
|
@@ -5,7 +5,7 @@ export interface UploadFilePresignedUrlResponse {
|
|
|
5
5
|
/** The URL to upload the file to. */
|
|
6
6
|
url: string;
|
|
7
7
|
/** The HTTP method to use for the upload. */
|
|
8
|
-
method:
|
|
8
|
+
method: UploadFilePresignedUrlResponse.Method;
|
|
9
9
|
/** The form fields to include in the upload request. */
|
|
10
10
|
fields: Record<string, string>;
|
|
11
11
|
/** The name of the file to upload (should be referenced when user wants to use the file in a task). */
|
|
@@ -13,3 +13,10 @@ export interface UploadFilePresignedUrlResponse {
|
|
|
13
13
|
/** The number of seconds until the presigned URL expires. */
|
|
14
14
|
expiresIn: number;
|
|
15
15
|
}
|
|
16
|
+
export declare namespace UploadFilePresignedUrlResponse {
|
|
17
|
+
/** The HTTP method to use for the upload. */
|
|
18
|
+
const Method: {
|
|
19
|
+
readonly Post: "POST";
|
|
20
|
+
};
|
|
21
|
+
type Method = (typeof Method)[keyof typeof Method];
|
|
22
|
+
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UploadFilePresignedUrlResponse = void 0;
|
|
5
|
+
var UploadFilePresignedUrlResponse;
|
|
6
|
+
(function (UploadFilePresignedUrlResponse) {
|
|
7
|
+
/** The HTTP method to use for the upload. */
|
|
8
|
+
UploadFilePresignedUrlResponse.Method = {
|
|
9
|
+
Post: "POST",
|
|
10
|
+
};
|
|
11
|
+
})(UploadFilePresignedUrlResponse || (exports.UploadFilePresignedUrlResponse = UploadFilePresignedUrlResponse = {}));
|
|
@@ -5,7 +5,7 @@ export interface WorkflowYamlPresignedUploadResponse {
|
|
|
5
5
|
/** The URL to upload the YAML file to */
|
|
6
6
|
url: string;
|
|
7
7
|
/** The HTTP method to use for the upload */
|
|
8
|
-
method:
|
|
8
|
+
method: WorkflowYamlPresignedUploadResponse.Method;
|
|
9
9
|
/** The form fields to include in the upload request */
|
|
10
10
|
fields: Record<string, string>;
|
|
11
11
|
/** The S3 key where the file will be stored */
|
|
@@ -13,3 +13,10 @@ export interface WorkflowYamlPresignedUploadResponse {
|
|
|
13
13
|
/** Number of seconds until the presigned URL expires */
|
|
14
14
|
expiresIn: number;
|
|
15
15
|
}
|
|
16
|
+
export declare namespace WorkflowYamlPresignedUploadResponse {
|
|
17
|
+
/** The HTTP method to use for the upload */
|
|
18
|
+
const Method: {
|
|
19
|
+
readonly Post: "POST";
|
|
20
|
+
};
|
|
21
|
+
type Method = (typeof Method)[keyof typeof Method];
|
|
22
|
+
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WorkflowYamlPresignedUploadResponse = void 0;
|
|
5
|
+
var WorkflowYamlPresignedUploadResponse;
|
|
6
|
+
(function (WorkflowYamlPresignedUploadResponse) {
|
|
7
|
+
/** The HTTP method to use for the upload */
|
|
8
|
+
WorkflowYamlPresignedUploadResponse.Method = {
|
|
9
|
+
Post: "POST",
|
|
10
|
+
};
|
|
11
|
+
})(WorkflowYamlPresignedUploadResponse || (exports.WorkflowYamlPresignedUploadResponse = WorkflowYamlPresignedUploadResponse = {}));
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./AccountNotFoundError.js";
|
|
2
2
|
export * from "./AccountView.js";
|
|
3
|
+
export * from "./AppApiV2MarketplaceSkillsViewsParameterSchema.js";
|
|
4
|
+
export * from "./AppApiV2MarketplaceSkillsViewsParameterType.js";
|
|
3
5
|
export * from "./AppApiV2SkillsViewsInsufficientCreditsError.js";
|
|
6
|
+
export * from "./AppApiV2SkillsViewsParameterSchema.js";
|
|
7
|
+
export * from "./AppApiV2SkillsViewsParameterType.js";
|
|
4
8
|
export * from "./AppViewsV2ErrorViewsInsufficientCreditsError.js";
|
|
5
9
|
export * from "./BadRequestErrorBody.js";
|
|
6
10
|
export * from "./BrowserSessionItemView.js";
|
|
@@ -17,10 +21,10 @@ export * from "./FileView.js";
|
|
|
17
21
|
export * from "./GenerationNotCancellableError.js";
|
|
18
22
|
export * from "./HttpValidationError.js";
|
|
19
23
|
export * from "./InternalServerErrorBody.js";
|
|
24
|
+
export * from "./MarketplaceSkillListResponse.js";
|
|
25
|
+
export * from "./MarketplaceSkillResponse.js";
|
|
20
26
|
export * from "./NotFoundErrorBody.js";
|
|
21
27
|
export * from "./OutputFileNotFoundError.js";
|
|
22
|
-
export * from "./ParameterSchema.js";
|
|
23
|
-
export * from "./ParameterType.js";
|
|
24
28
|
export * from "./PlanInfo.js";
|
|
25
29
|
export * from "./ProfileListResponse.js";
|
|
26
30
|
export * from "./ProfileNotFoundError.js";
|
|
@@ -16,7 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AccountNotFoundError.js"), exports);
|
|
18
18
|
__exportStar(require("./AccountView.js"), exports);
|
|
19
|
+
__exportStar(require("./AppApiV2MarketplaceSkillsViewsParameterSchema.js"), exports);
|
|
20
|
+
__exportStar(require("./AppApiV2MarketplaceSkillsViewsParameterType.js"), exports);
|
|
19
21
|
__exportStar(require("./AppApiV2SkillsViewsInsufficientCreditsError.js"), exports);
|
|
22
|
+
__exportStar(require("./AppApiV2SkillsViewsParameterSchema.js"), exports);
|
|
23
|
+
__exportStar(require("./AppApiV2SkillsViewsParameterType.js"), exports);
|
|
20
24
|
__exportStar(require("./AppViewsV2ErrorViewsInsufficientCreditsError.js"), exports);
|
|
21
25
|
__exportStar(require("./BadRequestErrorBody.js"), exports);
|
|
22
26
|
__exportStar(require("./BrowserSessionItemView.js"), exports);
|
|
@@ -33,10 +37,10 @@ __exportStar(require("./FileView.js"), exports);
|
|
|
33
37
|
__exportStar(require("./GenerationNotCancellableError.js"), exports);
|
|
34
38
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
35
39
|
__exportStar(require("./InternalServerErrorBody.js"), exports);
|
|
40
|
+
__exportStar(require("./MarketplaceSkillListResponse.js"), exports);
|
|
41
|
+
__exportStar(require("./MarketplaceSkillResponse.js"), exports);
|
|
36
42
|
__exportStar(require("./NotFoundErrorBody.js"), exports);
|
|
37
43
|
__exportStar(require("./OutputFileNotFoundError.js"), exports);
|
|
38
|
-
__exportStar(require("./ParameterSchema.js"), exports);
|
|
39
|
-
__exportStar(require("./ParameterType.js"), exports);
|
|
40
44
|
__exportStar(require("./PlanInfo.js"), exports);
|
|
41
45
|
__exportStar(require("./ProfileListResponse.js"), exports);
|
|
42
46
|
__exportStar(require("./ProfileNotFoundError.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.11";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import { Files } from "./api/resources/files/client/Client.mjs";
|
|
|
4
4
|
import { Profiles } from "./api/resources/profiles/client/Client.mjs";
|
|
5
5
|
import { Sessions } from "./api/resources/sessions/client/Client.mjs";
|
|
6
6
|
import { Skills } from "./api/resources/skills/client/Client.mjs";
|
|
7
|
+
import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.mjs";
|
|
7
8
|
import { Tasks } from "./api/resources/tasks/client/Client.mjs";
|
|
8
9
|
import { Workflows } from "./api/resources/workflows/client/Client.mjs";
|
|
9
10
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
@@ -22,6 +23,7 @@ export declare class BrowserUseClient {
|
|
|
22
23
|
protected _profiles: Profiles | undefined;
|
|
23
24
|
protected _browsers: Browsers | undefined;
|
|
24
25
|
protected _skills: Skills | undefined;
|
|
26
|
+
protected _skillsMarketplace: SkillsMarketplace | undefined;
|
|
25
27
|
protected _workflows: Workflows | undefined;
|
|
26
28
|
constructor(_options: BrowserUseClient.Options);
|
|
27
29
|
get billing(): Billing;
|
|
@@ -31,5 +33,6 @@ export declare class BrowserUseClient {
|
|
|
31
33
|
get profiles(): Profiles;
|
|
32
34
|
get browsers(): Browsers;
|
|
33
35
|
get skills(): Skills;
|
|
36
|
+
get skillsMarketplace(): SkillsMarketplace;
|
|
34
37
|
get workflows(): Workflows;
|
|
35
38
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { Files } from "./api/resources/files/client/Client.mjs";
|
|
|
5
5
|
import { Profiles } from "./api/resources/profiles/client/Client.mjs";
|
|
6
6
|
import { Sessions } from "./api/resources/sessions/client/Client.mjs";
|
|
7
7
|
import { Skills } from "./api/resources/skills/client/Client.mjs";
|
|
8
|
+
import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.mjs";
|
|
8
9
|
import { Tasks } from "./api/resources/tasks/client/Client.mjs";
|
|
9
10
|
import { Workflows } from "./api/resources/workflows/client/Client.mjs";
|
|
10
11
|
import { mergeHeaders } from "./core/headers.mjs";
|
|
@@ -14,8 +15,8 @@ export class BrowserUseClient {
|
|
|
14
15
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
|
|
15
16
|
"X-Fern-Language": "JavaScript",
|
|
16
17
|
"X-Fern-SDK-Name": "browser-use-sdk",
|
|
17
|
-
"X-Fern-SDK-Version": "2.0.
|
|
18
|
-
"User-Agent": "browser-use-sdk/2.0.
|
|
18
|
+
"X-Fern-SDK-Version": "2.0.11",
|
|
19
|
+
"User-Agent": "browser-use-sdk/2.0.11",
|
|
19
20
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
20
21
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
21
22
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -48,6 +49,10 @@ export class BrowserUseClient {
|
|
|
48
49
|
var _a;
|
|
49
50
|
return ((_a = this._skills) !== null && _a !== void 0 ? _a : (this._skills = new Skills(this._options)));
|
|
50
51
|
}
|
|
52
|
+
get skillsMarketplace() {
|
|
53
|
+
var _a;
|
|
54
|
+
return ((_a = this._skillsMarketplace) !== null && _a !== void 0 ? _a : (this._skillsMarketplace = new SkillsMarketplace(this._options)));
|
|
55
|
+
}
|
|
51
56
|
get workflows() {
|
|
52
57
|
var _a;
|
|
53
58
|
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Workflows(this._options)));
|
|
@@ -81,7 +81,8 @@ export declare class Browsers {
|
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* await client.browsers.updateBrowserSession({
|
|
84
|
-
* session_id: "session_id"
|
|
84
|
+
* session_id: "session_id",
|
|
85
|
+
* action: "stop"
|
|
85
86
|
* })
|
|
86
87
|
*/
|
|
87
88
|
updateBrowserSession(request: BrowserUse.UpdateBrowserSessionRequest, requestOptions?: Browsers.RequestOptions): core.HttpResponsePromise<BrowserUse.BrowserSessionView>;
|
|
@@ -269,7 +269,8 @@ export class Browsers {
|
|
|
269
269
|
*
|
|
270
270
|
* @example
|
|
271
271
|
* await client.browsers.updateBrowserSession({
|
|
272
|
-
* session_id: "session_id"
|
|
272
|
+
* session_id: "session_id",
|
|
273
|
+
* action: "stop"
|
|
273
274
|
* })
|
|
274
275
|
*/
|
|
275
276
|
updateBrowserSession(request, requestOptions) {
|
|
@@ -287,7 +288,7 @@ export class Browsers {
|
|
|
287
288
|
contentType: "application/json",
|
|
288
289
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
289
290
|
requestType: "json",
|
|
290
|
-
body:
|
|
291
|
+
body: _body,
|
|
291
292
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
292
293
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
293
294
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type * as BrowserUse from "../../../../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
|
-
* session_id: "session_id"
|
|
5
|
+
* session_id: "session_id",
|
|
6
|
+
* action: "stop"
|
|
5
7
|
* }
|
|
6
8
|
*/
|
|
7
9
|
export interface UpdateBrowserSessionRequest {
|
|
8
10
|
session_id: string;
|
|
11
|
+
/** The action to perform on the session */
|
|
12
|
+
action: BrowserUse.BrowserSessionUpdateAction;
|
|
9
13
|
}
|
|
@@ -9,6 +9,8 @@ export * from "./sessions/client/requests/index.mjs";
|
|
|
9
9
|
export * as sessions from "./sessions/index.mjs";
|
|
10
10
|
export * from "./skills/client/requests/index.mjs";
|
|
11
11
|
export * as skills from "./skills/index.mjs";
|
|
12
|
+
export * from "./skillsMarketplace/client/requests/index.mjs";
|
|
13
|
+
export * as skillsMarketplace from "./skillsMarketplace/index.mjs";
|
|
12
14
|
export * from "./tasks/client/requests/index.mjs";
|
|
13
15
|
export * as tasks from "./tasks/index.mjs";
|
|
14
16
|
export * from "./workflows/client/requests/index.mjs";
|
|
@@ -9,6 +9,8 @@ export * from "./sessions/client/requests/index.mjs";
|
|
|
9
9
|
export * as sessions from "./sessions/index.mjs";
|
|
10
10
|
export * from "./skills/client/requests/index.mjs";
|
|
11
11
|
export * as skills from "./skills/index.mjs";
|
|
12
|
+
export * from "./skillsMarketplace/client/requests/index.mjs";
|
|
13
|
+
export * as skillsMarketplace from "./skillsMarketplace/index.mjs";
|
|
12
14
|
export * from "./tasks/client/requests/index.mjs";
|
|
13
15
|
export * as tasks from "./tasks/index.mjs";
|
|
14
16
|
export * from "./workflows/client/requests/index.mjs";
|
|
@@ -81,7 +81,8 @@ export declare class Sessions {
|
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* await client.sessions.updateSession({
|
|
84
|
-
* session_id: "session_id"
|
|
84
|
+
* session_id: "session_id",
|
|
85
|
+
* action: "stop"
|
|
85
86
|
* })
|
|
86
87
|
*/
|
|
87
88
|
updateSession(request: BrowserUse.UpdateSessionRequest, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<BrowserUse.SessionView>;
|
|
@@ -315,7 +315,8 @@ export class Sessions {
|
|
|
315
315
|
*
|
|
316
316
|
* @example
|
|
317
317
|
* await client.sessions.updateSession({
|
|
318
|
-
* session_id: "session_id"
|
|
318
|
+
* session_id: "session_id",
|
|
319
|
+
* action: "stop"
|
|
319
320
|
* })
|
|
320
321
|
*/
|
|
321
322
|
updateSession(request, requestOptions) {
|
|
@@ -333,7 +334,7 @@ export class Sessions {
|
|
|
333
334
|
contentType: "application/json",
|
|
334
335
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
335
336
|
requestType: "json",
|
|
336
|
-
body:
|
|
337
|
+
body: _body,
|
|
337
338
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
338
339
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
339
340
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type * as BrowserUse from "../../../../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
|
-
* session_id: "session_id"
|
|
5
|
+
* session_id: "session_id",
|
|
6
|
+
* action: "stop"
|
|
5
7
|
* }
|
|
6
8
|
*/
|
|
7
9
|
export interface UpdateSessionRequest {
|
|
8
10
|
session_id: string;
|
|
11
|
+
/** The action to perform on the session */
|
|
12
|
+
action: BrowserUse.SessionUpdateAction;
|
|
9
13
|
}
|
|
@@ -11,7 +11,7 @@ export declare class Skills {
|
|
|
11
11
|
protected readonly _options: Skills.Options;
|
|
12
12
|
constructor(_options: Skills.Options);
|
|
13
13
|
/**
|
|
14
|
-
* List all skills owned by the authenticated project with optional filtering
|
|
14
|
+
* List all skills owned by the authenticated project with optional filtering.
|
|
15
15
|
*
|
|
16
16
|
* @param {BrowserUse.ListSkillsSkillsGetRequest} request
|
|
17
17
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|