browser-use-sdk 2.0.12 → 2.0.14
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/BaseClient.d.ts +1 -1
- package/dist/cjs/Client.d.ts +1 -4
- package/dist/cjs/Client.js +3 -8
- package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -2
- package/dist/cjs/api/resources/billing/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/billing/client/Client.js +2 -2
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +9 -7
- package/dist/cjs/api/resources/browsers/client/Client.js +9 -7
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +3 -1
- package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/files/client/Client.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/index.js +1 -3
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/profiles/client/Client.js +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +4 -1
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +6 -0
- package/dist/cjs/api/resources/skills/client/Client.d.ts +43 -4
- package/dist/cjs/api/resources/skills/client/Client.js +172 -5
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +12 -0
- package/dist/cjs/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +5 -2
- package/dist/cjs/api/resources/skills/client/requests/index.d.ts +3 -1
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +24 -5
- package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +87 -7
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +12 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +12 -3
- package/dist/cjs/api/resources/tasks/client/Client.js +12 -3
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +2 -0
- package/dist/cjs/api/types/AccountNotFoundError.d.ts +1 -1
- package/dist/cjs/api/types/AccountView.d.ts +5 -5
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +6 -0
- package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +3 -0
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +6 -0
- package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +3 -0
- package/dist/cjs/api/types/BrowserSessionItemView.d.ts +6 -0
- package/dist/cjs/api/types/BrowserSessionView.d.ts +6 -0
- package/dist/cjs/api/types/{InsufficientCreditsError.d.ts → CommonUtilsErrorsInsufficientCreditsError.d.ts} +1 -1
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +3 -0
- package/dist/cjs/api/types/CustomProxy.d.ts +13 -0
- package/dist/cjs/api/types/CustomProxy.js +3 -0
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +6 -0
- package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +3 -0
- package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +7 -0
- package/dist/cjs/api/types/ExecuteSkillRequest.js +3 -0
- package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +14 -0
- package/dist/cjs/api/types/SessionItemView.d.ts +8 -0
- package/dist/cjs/api/types/SessionStatus.d.ts +3 -3
- package/dist/cjs/api/types/SessionStatus.js +3 -3
- package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +1 -1
- package/dist/cjs/api/types/SessionView.d.ts +8 -0
- package/dist/cjs/api/types/SkillCategory.d.ts +20 -0
- package/dist/cjs/api/types/SkillCategory.js +23 -0
- package/dist/cjs/api/types/SkillExecutionListResponse.d.ts +14 -0
- package/dist/cjs/api/types/SkillExecutionListResponse.js +3 -0
- package/dist/cjs/api/types/SkillExecutionOutputResponse.d.ts +7 -0
- package/dist/cjs/api/types/SkillExecutionOutputResponse.js +3 -0
- package/dist/cjs/api/types/SkillExecutionView.d.ts +21 -0
- package/dist/cjs/api/types/SkillExecutionView.js +3 -0
- package/dist/cjs/api/types/SkillResponse.d.ts +14 -2
- package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +1 -0
- package/dist/cjs/api/types/SkillsGenerationStatus.js +1 -0
- package/dist/cjs/api/types/SupportedLlMs.d.ts +2 -0
- package/dist/cjs/api/types/SupportedLlMs.js +2 -0
- package/dist/cjs/api/types/TaskItemView.d.ts +2 -0
- package/dist/cjs/api/types/TaskView.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +1 -8
- package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +0 -8
- package/dist/cjs/api/types/index.d.ts +10 -20
- package/dist/cjs/api/types/index.js +10 -20
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +1 -1
- package/dist/esm/Client.d.mts +1 -4
- package/dist/esm/Client.mjs +3 -8
- package/dist/esm/api/errors/ForbiddenError.d.mts +1 -2
- package/dist/esm/api/resources/billing/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
- package/dist/esm/api/resources/browsers/client/Client.d.mts +9 -7
- package/dist/esm/api/resources/browsers/client/Client.mjs +9 -7
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +3 -1
- package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/files/client/Client.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/index.mjs +0 -2
- package/dist/esm/api/resources/profiles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/profiles/client/Client.mjs +1 -1
- package/dist/esm/api/resources/sessions/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +4 -1
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +6 -0
- package/dist/esm/api/resources/skills/client/Client.d.mts +43 -4
- package/dist/esm/api/resources/skills/client/Client.mjs +172 -5
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +12 -0
- package/dist/esm/api/resources/skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +2 -0
- package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +5 -2
- package/dist/esm/api/resources/skills/client/requests/index.d.mts +3 -1
- package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +24 -5
- package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +87 -7
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +12 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/tasks/client/Client.d.mts +12 -3
- package/dist/esm/api/resources/tasks/client/Client.mjs +12 -3
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +2 -0
- package/dist/esm/api/types/AccountNotFoundError.d.mts +1 -1
- package/dist/esm/api/types/AccountView.d.mts +5 -5
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +6 -0
- package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +2 -0
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +6 -0
- package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +2 -0
- package/dist/esm/api/types/BrowserSessionItemView.d.mts +6 -0
- package/dist/esm/api/types/BrowserSessionView.d.mts +6 -0
- package/dist/esm/api/types/{InsufficientCreditsError.d.mts → CommonUtilsErrorsInsufficientCreditsError.d.mts} +1 -1
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +2 -0
- package/dist/esm/api/types/CustomProxy.d.mts +13 -0
- package/dist/esm/api/types/CustomProxy.mjs +2 -0
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +6 -0
- package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +2 -0
- package/dist/esm/api/types/ExecuteSkillRequest.d.mts +7 -0
- package/dist/esm/api/types/ExecuteSkillRequest.mjs +2 -0
- package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +14 -0
- package/dist/esm/api/types/SessionItemView.d.mts +8 -0
- package/dist/esm/api/types/SessionStatus.d.mts +3 -3
- package/dist/esm/api/types/SessionStatus.mjs +3 -3
- package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +1 -1
- package/dist/esm/api/types/SessionView.d.mts +8 -0
- package/dist/esm/api/types/SkillCategory.d.mts +20 -0
- package/dist/esm/api/types/SkillCategory.mjs +20 -0
- package/dist/esm/api/types/SkillExecutionListResponse.d.mts +14 -0
- package/dist/esm/api/types/SkillExecutionListResponse.mjs +2 -0
- package/dist/esm/api/types/SkillExecutionOutputResponse.d.mts +7 -0
- package/dist/esm/api/types/SkillExecutionOutputResponse.mjs +2 -0
- package/dist/esm/api/types/SkillExecutionView.d.mts +21 -0
- package/dist/esm/api/types/SkillExecutionView.mjs +2 -0
- package/dist/esm/api/types/SkillResponse.d.mts +14 -2
- package/dist/esm/api/types/SkillsGenerationStatus.d.mts +1 -0
- package/dist/esm/api/types/SkillsGenerationStatus.mjs +1 -0
- package/dist/esm/api/types/SupportedLlMs.d.mts +2 -0
- package/dist/esm/api/types/SupportedLlMs.mjs +2 -0
- package/dist/esm/api/types/TaskItemView.d.mts +2 -0
- package/dist/esm/api/types/TaskView.d.mts +2 -0
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +1 -8
- package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +1 -7
- package/dist/esm/api/types/index.d.mts +10 -20
- package/dist/esm/api/types/index.mjs +10 -20
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +60 -916
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.ts +0 -9
- package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/types/index.js +0 -17
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.ts +0 -11
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.ts +0 -9
- package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.js +0 -12
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.d.ts +0 -11
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.d.ts +0 -10
- package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.js +0 -13
- package/dist/cjs/api/types/ExecutionMode.d.ts +0 -12
- package/dist/cjs/api/types/ExecutionMode.js +0 -15
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.mts +0 -9
- package/dist/esm/api/resources/workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.d.mts +0 -2
- package/dist/esm/api/resources/workflows/types/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/types/index.mjs +0 -1
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.mts +0 -11
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.mts +0 -9
- package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.mjs +0 -9
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.d.mts +0 -11
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.d.mts +0 -10
- package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.mjs +0 -10
- package/dist/esm/api/types/ExecutionMode.d.mts +0 -12
- package/dist/esm/api/types/ExecutionMode.mjs +0 -12
- /package/dist/cjs/api/resources/{skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.js → skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.js → skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/AppApiV2MarketplaceSkillsViewsParameterSchema.js → resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/AppApiV2SkillsViewsParameterSchema.js → resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js} +0 -0
- /package/dist/cjs/api/{types/InsufficientCreditsError.js → resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js} +0 -0
- /package/dist/esm/api/resources/{skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.mjs → skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{workflows/types/ExecuteWorkflowWorkflowsWorkflowIdExecutePostResponse.mjs → skills/client/requests/GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/AppApiV2MarketplaceSkillsViewsParameterSchema.mjs → resources/skills/client/requests/ListSkillExecutionsSkillsSkillIdExecutionsGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/AppApiV2SkillsViewsParameterSchema.mjs → resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs} +0 -0
- /package/dist/esm/api/{types/InsufficientCreditsError.mjs → resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs} +0 -0
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.BrowserUseEnvironment | string>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
apiKey
|
|
7
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { Sessions } from "./api/resources/sessions/client/Client.js";
|
|
|
6
6
|
import { Skills } from "./api/resources/skills/client/Client.js";
|
|
7
7
|
import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.js";
|
|
8
8
|
import { Tasks } from "./api/resources/tasks/client/Client.js";
|
|
9
|
-
import { Workflows } from "./api/resources/workflows/client/Client.js";
|
|
10
9
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
11
10
|
export declare namespace BrowserUseClient {
|
|
12
11
|
interface Options extends BaseClientOptions {
|
|
@@ -24,8 +23,7 @@ export declare class BrowserUseClient {
|
|
|
24
23
|
protected _browsers: Browsers | undefined;
|
|
25
24
|
protected _skills: Skills | undefined;
|
|
26
25
|
protected _skillsMarketplace: SkillsMarketplace | undefined;
|
|
27
|
-
|
|
28
|
-
constructor(_options: BrowserUseClient.Options);
|
|
26
|
+
constructor(_options?: BrowserUseClient.Options);
|
|
29
27
|
get billing(): Billing;
|
|
30
28
|
get tasks(): Tasks;
|
|
31
29
|
get sessions(): Sessions;
|
|
@@ -34,5 +32,4 @@ export declare class BrowserUseClient {
|
|
|
34
32
|
get browsers(): Browsers;
|
|
35
33
|
get skills(): Skills;
|
|
36
34
|
get skillsMarketplace(): SkillsMarketplace;
|
|
37
|
-
get workflows(): Workflows;
|
|
38
35
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -43,16 +43,15 @@ const Client_js_5 = require("./api/resources/sessions/client/Client.js");
|
|
|
43
43
|
const Client_js_6 = require("./api/resources/skills/client/Client.js");
|
|
44
44
|
const Client_js_7 = require("./api/resources/skillsMarketplace/client/Client.js");
|
|
45
45
|
const Client_js_8 = require("./api/resources/tasks/client/Client.js");
|
|
46
|
-
const Client_js_9 = require("./api/resources/workflows/client/Client.js");
|
|
47
46
|
const headers_js_1 = require("./core/headers.js");
|
|
48
47
|
const core = __importStar(require("./core/index.js"));
|
|
49
48
|
class BrowserUseClient {
|
|
50
|
-
constructor(_options) {
|
|
49
|
+
constructor(_options = {}) {
|
|
51
50
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
|
|
52
51
|
"X-Fern-Language": "JavaScript",
|
|
53
52
|
"X-Fern-SDK-Name": "browser-use-sdk",
|
|
54
|
-
"X-Fern-SDK-Version": "2.0.
|
|
55
|
-
"User-Agent": "browser-use-sdk/2.0.
|
|
53
|
+
"X-Fern-SDK-Version": "2.0.14",
|
|
54
|
+
"User-Agent": "browser-use-sdk/2.0.14",
|
|
56
55
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
56
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
57
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -89,9 +88,5 @@ class BrowserUseClient {
|
|
|
89
88
|
var _a;
|
|
90
89
|
return ((_a = this._skillsMarketplace) !== null && _a !== void 0 ? _a : (this._skillsMarketplace = new Client_js_7.SkillsMarketplace(this._options)));
|
|
91
90
|
}
|
|
92
|
-
get workflows() {
|
|
93
|
-
var _a;
|
|
94
|
-
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_9.Workflows(this._options)));
|
|
95
|
-
}
|
|
96
91
|
}
|
|
97
92
|
exports.BrowserUseClient = BrowserUseClient;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type * as core from "../../core/index.js";
|
|
2
2
|
import * as errors from "../../errors/index.js";
|
|
3
|
-
import type * as BrowserUse from "../index.js";
|
|
4
3
|
export declare class ForbiddenError extends errors.BrowserUseError {
|
|
5
|
-
constructor(body
|
|
4
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
6
5
|
}
|
|
@@ -9,9 +9,9 @@ export declare namespace Billing {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Billing {
|
|
11
11
|
protected readonly _options: Billing.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Billing.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Get authenticated account information including credit
|
|
14
|
+
* Get authenticated account information including credit balance and account details.
|
|
15
15
|
*
|
|
16
16
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
@@ -50,11 +50,11 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
50
50
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
51
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
52
52
|
class Billing {
|
|
53
|
-
constructor(_options) {
|
|
53
|
+
constructor(_options = {}) {
|
|
54
54
|
this._options = _options;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
* Get authenticated account information including credit
|
|
57
|
+
* Get authenticated account information including credit balance and account details.
|
|
58
58
|
*
|
|
59
59
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
60
|
*
|
|
@@ -9,7 +9,7 @@ export declare namespace Browsers {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Browsers {
|
|
11
11
|
protected readonly _options: Browsers.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Browsers.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get paginated list of browser sessions with optional status filtering.
|
|
15
15
|
*
|
|
@@ -26,16 +26,18 @@ export declare class Browsers {
|
|
|
26
26
|
/**
|
|
27
27
|
* Create a new browser session.
|
|
28
28
|
*
|
|
29
|
-
* **Pricing:** Browser sessions are charged
|
|
30
|
-
*
|
|
29
|
+
* **Pricing:** Browser sessions are charged per hour with tiered pricing:
|
|
30
|
+
* - Pay As You Go users: $0.06/hour
|
|
31
|
+
* - Business/Scaleup subscribers: $0.03/hour (50% discount)
|
|
32
|
+
*
|
|
33
|
+
* The full rate is charged upfront when the session starts.
|
|
31
34
|
* When you stop the session, any unused time is automatically refunded proportionally.
|
|
32
35
|
*
|
|
33
|
-
* Billing is rounded to the
|
|
34
|
-
* For example, if you stop a session after 30 minutes, you'll be refunded
|
|
36
|
+
* Billing is rounded up to the minute (minimum 1 minute).
|
|
37
|
+
* For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.
|
|
35
38
|
*
|
|
36
39
|
* **Session Limits:**
|
|
37
|
-
* -
|
|
38
|
-
* - Paid subscribers: Up to 4 hours per session
|
|
40
|
+
* - All users: Up to 4 hours per session
|
|
39
41
|
*
|
|
40
42
|
* @param {BrowserUse.CreateBrowserSessionRequest} request
|
|
41
43
|
* @param {Browsers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -61,7 +61,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
61
61
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
62
62
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
63
63
|
class Browsers {
|
|
64
|
-
constructor(_options) {
|
|
64
|
+
constructor(_options = {}) {
|
|
65
65
|
this._options = _options;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
@@ -142,16 +142,18 @@ class Browsers {
|
|
|
142
142
|
/**
|
|
143
143
|
* Create a new browser session.
|
|
144
144
|
*
|
|
145
|
-
* **Pricing:** Browser sessions are charged
|
|
146
|
-
*
|
|
145
|
+
* **Pricing:** Browser sessions are charged per hour with tiered pricing:
|
|
146
|
+
* - Pay As You Go users: $0.06/hour
|
|
147
|
+
* - Business/Scaleup subscribers: $0.03/hour (50% discount)
|
|
148
|
+
*
|
|
149
|
+
* The full rate is charged upfront when the session starts.
|
|
147
150
|
* When you stop the session, any unused time is automatically refunded proportionally.
|
|
148
151
|
*
|
|
149
|
-
* Billing is rounded to the
|
|
150
|
-
* For example, if you stop a session after 30 minutes, you'll be refunded
|
|
152
|
+
* Billing is rounded up to the minute (minimum 1 minute).
|
|
153
|
+
* For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.
|
|
151
154
|
*
|
|
152
155
|
* **Session Limits:**
|
|
153
|
-
* -
|
|
154
|
-
* - Paid subscribers: Up to 4 hours per session
|
|
156
|
+
* - All users: Up to 4 hours per session
|
|
155
157
|
*
|
|
156
158
|
* @param {BrowserUse.CreateBrowserSessionRequest} request
|
|
157
159
|
* @param {Browsers.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8,7 +8,7 @@ export interface CreateBrowserSessionRequest {
|
|
|
8
8
|
profileId?: string | null;
|
|
9
9
|
/** Country code for proxy location. */
|
|
10
10
|
proxyCountryCode?: BrowserUse.ProxyCountryCode | null;
|
|
11
|
-
/** The timeout for the session in minutes.
|
|
11
|
+
/** The timeout for the session in minutes. All users can use up to 240 minutes (4 hours). Pay As You Go users are charged $0.06/hour, subscribers get 50% off. */
|
|
12
12
|
timeout?: number;
|
|
13
13
|
/** Custom screen width in pixels for the browser. */
|
|
14
14
|
browserScreenWidth?: number | null;
|
|
@@ -16,4 +16,6 @@ export interface CreateBrowserSessionRequest {
|
|
|
16
16
|
browserScreenHeight?: number | null;
|
|
17
17
|
/** Whether to allow the browser to be resized during the session (not recommended since it reduces stealthiness). */
|
|
18
18
|
allowResizing?: boolean;
|
|
19
|
+
/** Custom proxy settings to use for the session. If not provided, our proxies will be used. Custom proxies are only available for Business and Scaleup subscribers. */
|
|
20
|
+
customProxy?: BrowserUse.CustomProxy | null;
|
|
19
21
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Files {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Files {
|
|
11
11
|
protected readonly _options: Files.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Files.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Generate a secure presigned URL for uploading files to an agent session.
|
|
15
15
|
*
|
|
@@ -50,7 +50,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
50
50
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
51
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
52
52
|
class Files {
|
|
53
|
-
constructor(_options) {
|
|
53
|
+
constructor(_options = {}) {
|
|
54
54
|
this._options = _options;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -13,5 +13,3 @@ export * from "./skillsMarketplace/client/requests/index.js";
|
|
|
13
13
|
export * as skillsMarketplace from "./skillsMarketplace/index.js";
|
|
14
14
|
export * from "./tasks/client/requests/index.js";
|
|
15
15
|
export * as tasks from "./tasks/index.js";
|
|
16
|
-
export * from "./workflows/client/requests/index.js";
|
|
17
|
-
export * as workflows from "./workflows/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.tasks = exports.skillsMarketplace = exports.skills = exports.sessions = exports.profiles = exports.files = exports.browsers = exports.billing = void 0;
|
|
40
40
|
exports.billing = __importStar(require("./billing/index.js"));
|
|
41
41
|
__exportStar(require("./browsers/client/requests/index.js"), exports);
|
|
42
42
|
exports.browsers = __importStar(require("./browsers/index.js"));
|
|
@@ -52,5 +52,3 @@ __exportStar(require("./skillsMarketplace/client/requests/index.js"), exports);
|
|
|
52
52
|
exports.skillsMarketplace = __importStar(require("./skillsMarketplace/index.js"));
|
|
53
53
|
__exportStar(require("./tasks/client/requests/index.js"), exports);
|
|
54
54
|
exports.tasks = __importStar(require("./tasks/index.js"));
|
|
55
|
-
__exportStar(require("./workflows/client/requests/index.js"), exports);
|
|
56
|
-
exports.workflows = __importStar(require("./workflows/index.js"));
|
|
@@ -61,7 +61,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
61
61
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
62
62
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
63
63
|
class Profiles {
|
|
64
|
-
constructor(_options) {
|
|
64
|
+
constructor(_options = {}) {
|
|
65
65
|
this._options = _options;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
@@ -9,7 +9,7 @@ export declare namespace Sessions {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Sessions {
|
|
11
11
|
protected readonly _options: Sessions.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Sessions.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get paginated list of AI agent sessions with optional status filtering.
|
|
15
15
|
*
|
|
@@ -29,6 +29,7 @@ export declare class Sessions {
|
|
|
29
29
|
* @param {BrowserUse.CreateSessionRequest} request
|
|
30
30
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
32
33
|
* @throws {@link BrowserUse.NotFoundError}
|
|
33
34
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
34
35
|
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
@@ -61,7 +61,7 @@ const environments = __importStar(require("../../../../environments.js"));
|
|
|
61
61
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
62
62
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
63
63
|
class Sessions {
|
|
64
|
-
constructor(_options) {
|
|
64
|
+
constructor(_options = {}) {
|
|
65
65
|
this._options = _options;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
@@ -142,6 +142,7 @@ class Sessions {
|
|
|
142
142
|
* @param {BrowserUse.CreateSessionRequest} request
|
|
143
143
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
144
144
|
*
|
|
145
|
+
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
145
146
|
* @throws {@link BrowserUse.NotFoundError}
|
|
146
147
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
147
148
|
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
@@ -175,6 +176,8 @@ class Sessions {
|
|
|
175
176
|
}
|
|
176
177
|
if (_response.error.reason === "status-code") {
|
|
177
178
|
switch (_response.error.statusCode) {
|
|
179
|
+
case 402:
|
|
180
|
+
throw new BrowserUse.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
178
181
|
case 404:
|
|
179
182
|
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
180
183
|
case 422:
|
|
@@ -14,4 +14,10 @@ export interface CreateSessionRequest {
|
|
|
14
14
|
browserScreenWidth?: number | null;
|
|
15
15
|
/** Custom screen height in pixels for the browser. */
|
|
16
16
|
browserScreenHeight?: number | null;
|
|
17
|
+
/** If True (default), tasks in this session share memory and history with each other, allowing follow-up tasks to continue from previous context. If False, each task runs as a standalone task without any previous task context. */
|
|
18
|
+
persistMemory?: boolean;
|
|
19
|
+
/** If True (default), the browser session stays alive after tasks complete, allowing follow-up tasks. If False, the session is closed immediately after task completion. Set to False for simple one-off tasks to reduce session idle time. */
|
|
20
|
+
keepAlive?: boolean;
|
|
21
|
+
/** Custom proxy settings to use for the session. If not provided, our proxies will be used. Custom proxies are only available for Business and Scaleup subscribers. */
|
|
22
|
+
customProxy?: BrowserUse.CustomProxy | null;
|
|
17
23
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Skills {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Skills {
|
|
11
11
|
protected readonly _options: Skills.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: Skills.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List all skills owned by the authenticated project with optional filtering.
|
|
15
15
|
*
|
|
@@ -30,7 +30,9 @@ export declare class Skills {
|
|
|
30
30
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link BrowserUse.BadRequestError}
|
|
33
|
+
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
33
34
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
35
|
+
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
34
36
|
*
|
|
35
37
|
* @example
|
|
36
38
|
* await client.skills.createSkill({
|
|
@@ -79,6 +81,7 @@ export declare class Skills {
|
|
|
79
81
|
* @param {BrowserUse.UpdateSkillRequest} request
|
|
80
82
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
83
|
*
|
|
84
|
+
* @throws {@link BrowserUse.ForbiddenError}
|
|
82
85
|
* @throws {@link BrowserUse.NotFoundError}
|
|
83
86
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
84
87
|
*
|
|
@@ -126,20 +129,22 @@ export declare class Skills {
|
|
|
126
129
|
/**
|
|
127
130
|
* Execute a skill with the provided parameters.
|
|
128
131
|
*
|
|
129
|
-
* @param {BrowserUse.
|
|
132
|
+
* @param {BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest} request
|
|
130
133
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
134
|
*
|
|
132
135
|
* @throws {@link BrowserUse.BadRequestError}
|
|
133
136
|
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
134
137
|
* @throws {@link BrowserUse.NotFoundError}
|
|
135
138
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
139
|
+
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
136
140
|
*
|
|
137
141
|
* @example
|
|
138
142
|
* await client.skills.executeSkill({
|
|
139
|
-
* skill_id: "skill_id"
|
|
143
|
+
* skill_id: "skill_id",
|
|
144
|
+
* body: {}
|
|
140
145
|
* })
|
|
141
146
|
*/
|
|
142
|
-
executeSkill(request: BrowserUse.
|
|
147
|
+
executeSkill(request: BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteSkillResponse>;
|
|
143
148
|
private __executeSkill;
|
|
144
149
|
/**
|
|
145
150
|
* Refine a skill based on feedback.
|
|
@@ -150,6 +155,7 @@ export declare class Skills {
|
|
|
150
155
|
* @throws {@link BrowserUse.BadRequestError}
|
|
151
156
|
* @throws {@link BrowserUse.NotFoundError}
|
|
152
157
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
158
|
+
* @throws {@link BrowserUse.TooManyRequestsError}
|
|
153
159
|
*
|
|
154
160
|
* @example
|
|
155
161
|
* await client.skills.refineSkill({
|
|
@@ -159,5 +165,38 @@ export declare class Skills {
|
|
|
159
165
|
*/
|
|
160
166
|
refineSkill(request: BrowserUse.RefineSkillRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.RefineSkillResponse>;
|
|
161
167
|
private __refineSkill;
|
|
168
|
+
/**
|
|
169
|
+
* List executions for a specific skill.
|
|
170
|
+
*
|
|
171
|
+
* @param {BrowserUse.ListSkillExecutionsSkillsSkillIdExecutionsGetRequest} request
|
|
172
|
+
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
|
+
*
|
|
174
|
+
* @throws {@link BrowserUse.NotFoundError}
|
|
175
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.skills.listSkillExecutions({
|
|
179
|
+
* skill_id: "skill_id"
|
|
180
|
+
* })
|
|
181
|
+
*/
|
|
182
|
+
listSkillExecutions(request: BrowserUse.ListSkillExecutionsSkillsSkillIdExecutionsGetRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillExecutionListResponse>;
|
|
183
|
+
private __listSkillExecutions;
|
|
184
|
+
/**
|
|
185
|
+
* Get presigned URL for downloading skill execution output.
|
|
186
|
+
*
|
|
187
|
+
* @param {BrowserUse.GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest} request
|
|
188
|
+
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
189
|
+
*
|
|
190
|
+
* @throws {@link BrowserUse.NotFoundError}
|
|
191
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* await client.skills.getSkillExecutionOutput({
|
|
195
|
+
* skill_id: "skill_id",
|
|
196
|
+
* execution_id: "execution_id"
|
|
197
|
+
* })
|
|
198
|
+
*/
|
|
199
|
+
getSkillExecutionOutput(request: BrowserUse.GetSkillExecutionOutputSkillsSkillIdExecutionsExecutionIdOutputGetRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillExecutionOutputResponse>;
|
|
200
|
+
private __getSkillExecutionOutput;
|
|
162
201
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
163
202
|
}
|