browser-use-sdk 2.0.7 → 2.0.9
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 +2 -1
- package/dist/cjs/BaseClient.js +47 -0
- package/dist/cjs/Client.d.ts +22 -22
- package/dist/cjs/Client.js +10 -51
- package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billing/client/Client.js +7 -6
- package/dist/cjs/api/resources/browsers/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/browsers/client/Client.js +10 -9
- package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +4 -0
- package/dist/cjs/api/resources/files/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/files/client/Client.js +9 -8
- package/dist/cjs/api/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/index.js +0 -1
- package/dist/cjs/api/resources/profiles/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/profiles/client/Client.js +11 -10
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/sessions/client/Client.js +14 -13
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +4 -0
- package/dist/cjs/api/resources/tasks/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/tasks/client/Client.js +11 -10
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +92 -35
- package/dist/cjs/api/resources/workflows/client/Client.js +241 -27
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.ts +0 -3
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/index.js +0 -1
- package/dist/cjs/api/types/SupportedLlMs.d.ts +2 -0
- package/dist/cjs/api/types/SupportedLlMs.js +2 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.d.ts +13 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaStepView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaView.d.ts +8 -0
- package/dist/cjs/api/types/WorkflowExecutionMediaView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +28 -0
- package/dist/cjs/api/types/WorkflowExecutionStateView.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +29 -0
- package/dist/cjs/api/types/WorkflowExecutionStepView.js +3 -0
- package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +18 -0
- package/dist/cjs/api/types/WorkflowGenerationStateView.js +3 -0
- package/dist/cjs/api/types/WorkflowGenerationStepView.d.ts +19 -0
- package/dist/cjs/api/types/WorkflowGenerationStepView.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -1
- package/dist/cjs/api/types/index.js +6 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/api/BrowserUseTasks.d.ts +7 -7
- package/dist/cjs/wrapper/api/BrowserUseTasks.js +1 -1
- package/dist/cjs/wrapper/lib/webhooks.d.ts +2 -2
- package/dist/cjs/wrapper/lib/webhooks.js +3 -3
- package/dist/esm/BaseClient.d.mts +2 -1
- package/dist/esm/BaseClient.mjs +13 -1
- package/dist/esm/Client.d.mts +22 -22
- package/dist/esm/Client.mjs +17 -25
- package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billing/client/Client.mjs +5 -4
- package/dist/esm/api/resources/browsers/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/browsers/client/Client.mjs +8 -7
- package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +4 -0
- package/dist/esm/api/resources/files/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/files/client/Client.mjs +7 -6
- package/dist/esm/api/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/index.mjs +0 -1
- package/dist/esm/api/resources/profiles/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/profiles/client/Client.mjs +9 -8
- package/dist/esm/api/resources/sessions/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/sessions/client/Client.mjs +12 -11
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +4 -0
- package/dist/esm/api/resources/tasks/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/tasks/client/Client.mjs +9 -8
- package/dist/esm/api/resources/workflows/client/Client.d.mts +92 -35
- package/dist/esm/api/resources/workflows/client/Client.mjs +239 -25
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionMediaWorkflowsExecutionsExecutionIdMediaGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetExecutionStateWorkflowsExecutionsExecutionIdStateGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/workflows/client/requests/GetWorkflowGenerationStateWorkflowsWorkflowIdGenerationStateGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowExecuteRequest.d.mts +0 -3
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/workflows/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/index.mjs +0 -1
- package/dist/esm/api/types/SupportedLlMs.d.mts +2 -0
- package/dist/esm/api/types/SupportedLlMs.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.d.mts +13 -0
- package/dist/esm/api/types/WorkflowExecutionMediaStepView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionMediaView.d.mts +8 -0
- package/dist/esm/api/types/WorkflowExecutionMediaView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +28 -0
- package/dist/esm/api/types/WorkflowExecutionStateView.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +29 -0
- package/dist/esm/api/types/WorkflowExecutionStepView.mjs +2 -0
- package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +18 -0
- package/dist/esm/api/types/WorkflowGenerationStateView.mjs +2 -0
- package/dist/esm/api/types/WorkflowGenerationStepView.d.mts +19 -0
- package/dist/esm/api/types/WorkflowGenerationStepView.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -1
- package/dist/esm/api/types/index.mjs +6 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/api/BrowserUseTasks.d.mts +7 -7
- package/dist/esm/wrapper/api/BrowserUseTasks.mjs +2 -2
- package/dist/esm/wrapper/lib/webhooks.d.mts +2 -2
- package/dist/esm/wrapper/lib/webhooks.mjs +3 -3
- package/package.json +82 -83
- package/reference.md +251 -44
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as core from "./core/index.js";
|
|
2
2
|
import type * as environments from "./environments.js";
|
|
3
3
|
export interface BaseClientOptions {
|
|
4
4
|
environment?: core.Supplier<environments.BrowserUseEnvironment | string>;
|
|
@@ -28,3 +28,4 @@ export interface BaseRequestOptions {
|
|
|
28
28
|
/** Additional headers to include in the request. */
|
|
29
29
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
30
30
|
}
|
|
31
|
+
export declare function normalizeClientOptions<T extends BaseClientOptions>(options: T): T;
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
3
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.normalizeClientOptions = normalizeClientOptions;
|
|
38
|
+
const headers_js_1 = require("./core/headers.js");
|
|
39
|
+
const core = __importStar(require("./core/index.js"));
|
|
40
|
+
function normalizeClientOptions(options) {
|
|
41
|
+
const headers = (0, headers_js_1.mergeHeaders)({
|
|
42
|
+
"X-Fern-Language": "JavaScript",
|
|
43
|
+
"X-Fern-SDK-Name": "browser-use-sdk",
|
|
44
|
+
"X-Fern-SDK-Version": "2.0.9",
|
|
45
|
+
"User-Agent": "browser-use-sdk/2.0.9",
|
|
46
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
|
+
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
49
|
+
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
50
|
+
}
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { BillingClient } from "./api/resources/billing/client/Client.js";
|
|
2
|
+
import { BrowsersClient } from "./api/resources/browsers/client/Client.js";
|
|
3
|
+
import { FilesClient } from "./api/resources/files/client/Client.js";
|
|
4
|
+
import { ProfilesClient } from "./api/resources/profiles/client/Client.js";
|
|
5
|
+
import { SessionsClient } from "./api/resources/sessions/client/Client.js";
|
|
6
|
+
import { TasksClient } from "./api/resources/tasks/client/Client.js";
|
|
7
|
+
import { WorkflowsClient } from "./api/resources/workflows/client/Client.js";
|
|
8
8
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
9
9
|
export declare namespace BrowserUseClient {
|
|
10
10
|
interface Options extends BaseClientOptions {
|
|
@@ -14,19 +14,19 @@ export declare namespace BrowserUseClient {
|
|
|
14
14
|
}
|
|
15
15
|
export declare class BrowserUseClient {
|
|
16
16
|
protected readonly _options: BrowserUseClient.Options;
|
|
17
|
-
protected _billing:
|
|
18
|
-
protected _tasks:
|
|
19
|
-
protected _sessions:
|
|
20
|
-
protected _files:
|
|
21
|
-
protected _profiles:
|
|
22
|
-
protected _browsers:
|
|
23
|
-
protected _workflows:
|
|
24
|
-
constructor(
|
|
25
|
-
get billing():
|
|
26
|
-
get tasks():
|
|
27
|
-
get sessions():
|
|
28
|
-
get files():
|
|
29
|
-
get profiles():
|
|
30
|
-
get browsers():
|
|
31
|
-
get workflows():
|
|
17
|
+
protected _billing: BillingClient | undefined;
|
|
18
|
+
protected _tasks: TasksClient | undefined;
|
|
19
|
+
protected _sessions: SessionsClient | undefined;
|
|
20
|
+
protected _files: FilesClient | undefined;
|
|
21
|
+
protected _profiles: ProfilesClient | undefined;
|
|
22
|
+
protected _browsers: BrowsersClient | undefined;
|
|
23
|
+
protected _workflows: WorkflowsClient | undefined;
|
|
24
|
+
constructor(options: BrowserUseClient.Options);
|
|
25
|
+
get billing(): BillingClient;
|
|
26
|
+
get tasks(): TasksClient;
|
|
27
|
+
get sessions(): SessionsClient;
|
|
28
|
+
get files(): FilesClient;
|
|
29
|
+
get profiles(): ProfilesClient;
|
|
30
|
+
get browsers(): BrowsersClient;
|
|
31
|
+
get workflows(): WorkflowsClient;
|
|
32
32
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
4
|
exports.BrowserUseClient = void 0;
|
|
38
5
|
const Client_js_1 = require("./api/resources/billing/client/Client.js");
|
|
@@ -42,46 +9,38 @@ const Client_js_4 = require("./api/resources/profiles/client/Client.js");
|
|
|
42
9
|
const Client_js_5 = require("./api/resources/sessions/client/Client.js");
|
|
43
10
|
const Client_js_6 = require("./api/resources/tasks/client/Client.js");
|
|
44
11
|
const Client_js_7 = require("./api/resources/workflows/client/Client.js");
|
|
45
|
-
const
|
|
46
|
-
const core = __importStar(require("./core/index.js"));
|
|
12
|
+
const BaseClient_js_1 = require("./BaseClient.js");
|
|
47
13
|
class BrowserUseClient {
|
|
48
|
-
constructor(
|
|
49
|
-
this._options =
|
|
50
|
-
"X-Fern-Language": "JavaScript",
|
|
51
|
-
"X-Fern-SDK-Name": "browser-use-sdk",
|
|
52
|
-
"X-Fern-SDK-Version": "2.0.7",
|
|
53
|
-
"User-Agent": "browser-use-sdk/2.0.7",
|
|
54
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
55
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
56
|
-
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
14
|
+
constructor(options) {
|
|
15
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
57
16
|
}
|
|
58
17
|
get billing() {
|
|
59
18
|
var _a;
|
|
60
|
-
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_1.
|
|
19
|
+
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_1.BillingClient(this._options)));
|
|
61
20
|
}
|
|
62
21
|
get tasks() {
|
|
63
22
|
var _a;
|
|
64
|
-
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_6.
|
|
23
|
+
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_6.TasksClient(this._options)));
|
|
65
24
|
}
|
|
66
25
|
get sessions() {
|
|
67
26
|
var _a;
|
|
68
|
-
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_5.
|
|
27
|
+
return ((_a = this._sessions) !== null && _a !== void 0 ? _a : (this._sessions = new Client_js_5.SessionsClient(this._options)));
|
|
69
28
|
}
|
|
70
29
|
get files() {
|
|
71
30
|
var _a;
|
|
72
|
-
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_js_3.
|
|
31
|
+
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_js_3.FilesClient(this._options)));
|
|
73
32
|
}
|
|
74
33
|
get profiles() {
|
|
75
34
|
var _a;
|
|
76
|
-
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_js_4.
|
|
35
|
+
return ((_a = this._profiles) !== null && _a !== void 0 ? _a : (this._profiles = new Client_js_4.ProfilesClient(this._options)));
|
|
77
36
|
}
|
|
78
37
|
get browsers() {
|
|
79
38
|
var _a;
|
|
80
|
-
return ((_a = this._browsers) !== null && _a !== void 0 ? _a : (this._browsers = new Client_js_2.
|
|
39
|
+
return ((_a = this._browsers) !== null && _a !== void 0 ? _a : (this._browsers = new Client_js_2.BrowsersClient(this._options)));
|
|
81
40
|
}
|
|
82
41
|
get workflows() {
|
|
83
42
|
var _a;
|
|
84
|
-
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_7.
|
|
43
|
+
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_7.WorkflowsClient(this._options)));
|
|
85
44
|
}
|
|
86
45
|
}
|
|
87
46
|
exports.BrowserUseClient = BrowserUseClient;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import * as BrowserUse from "../../../index.js";
|
|
4
|
-
export declare namespace
|
|
4
|
+
export declare namespace BillingClient {
|
|
5
5
|
interface Options extends BaseClientOptions {
|
|
6
6
|
}
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class BillingClient {
|
|
11
|
+
protected readonly _options: BillingClient.Options;
|
|
12
|
+
constructor(options: BillingClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get authenticated account information including credit balances and account details.
|
|
15
15
|
*
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
18
18
|
* @throws {@link BrowserUse.NotFoundError}
|
|
19
19
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -21,7 +21,7 @@ export declare class Billing {
|
|
|
21
21
|
* @example
|
|
22
22
|
* await client.billing.getAccountBilling()
|
|
23
23
|
*/
|
|
24
|
-
getAccountBilling(requestOptions?:
|
|
24
|
+
getAccountBilling(requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<BrowserUse.AccountView>;
|
|
25
25
|
private __getAccountBilling;
|
|
26
26
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
27
27
|
}
|
|
@@ -43,20 +43,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.BillingClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
47
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
49
50
|
const environments = __importStar(require("../../../../environments.js"));
|
|
50
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
52
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
this._options =
|
|
53
|
+
class BillingClient {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Get authenticated account information including credit balances and account details.
|
|
58
59
|
*
|
|
59
|
-
* @param {
|
|
60
|
+
* @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
61
|
*
|
|
61
62
|
* @throws {@link BrowserUse.NotFoundError}
|
|
62
63
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -123,4 +124,4 @@ class Billing {
|
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
|
-
exports.
|
|
127
|
+
exports.BillingClient = BillingClient;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import * as BrowserUse from "../../../index.js";
|
|
4
|
-
export declare namespace
|
|
4
|
+
export declare namespace BrowsersClient {
|
|
5
5
|
interface Options extends BaseClientOptions {
|
|
6
6
|
}
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class BrowsersClient {
|
|
11
|
+
protected readonly _options: BrowsersClient.Options;
|
|
12
|
+
constructor(options: BrowsersClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get paginated list of browser sessions with optional status filtering.
|
|
15
15
|
*
|
|
16
16
|
* @param {BrowserUse.ListBrowserSessionsBrowsersGetRequest} request
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* await client.browsers.listBrowserSessions()
|
|
23
23
|
*/
|
|
24
|
-
listBrowserSessions(request?: BrowserUse.ListBrowserSessionsBrowsersGetRequest, requestOptions?:
|
|
24
|
+
listBrowserSessions(request?: BrowserUse.ListBrowserSessionsBrowsersGetRequest, requestOptions?: BrowsersClient.RequestOptions): core.HttpResponsePromise<BrowserUse.BrowserSessionListResponse>;
|
|
25
25
|
private __listBrowserSessions;
|
|
26
26
|
/**
|
|
27
27
|
* Create a new browser session.
|
|
@@ -38,7 +38,7 @@ export declare class Browsers {
|
|
|
38
38
|
* - Paid subscribers: Up to 4 hours per session
|
|
39
39
|
*
|
|
40
40
|
* @param {BrowserUse.CreateBrowserSessionRequest} request
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
42
|
*
|
|
43
43
|
* @throws {@link BrowserUse.ForbiddenError}
|
|
44
44
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -48,13 +48,13 @@ export declare class Browsers {
|
|
|
48
48
|
* @example
|
|
49
49
|
* await client.browsers.createBrowserSession()
|
|
50
50
|
*/
|
|
51
|
-
createBrowserSession(request?: BrowserUse.CreateBrowserSessionRequest, requestOptions?:
|
|
51
|
+
createBrowserSession(request?: BrowserUse.CreateBrowserSessionRequest, requestOptions?: BrowsersClient.RequestOptions): core.HttpResponsePromise<BrowserUse.BrowserSessionItemView>;
|
|
52
52
|
private __createBrowserSession;
|
|
53
53
|
/**
|
|
54
54
|
* Get detailed browser session information including status and URLs.
|
|
55
55
|
*
|
|
56
56
|
* @param {BrowserUse.GetBrowserSessionBrowsersSessionIdGetRequest} request
|
|
57
|
-
* @param {
|
|
57
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
58
|
*
|
|
59
59
|
* @throws {@link BrowserUse.NotFoundError}
|
|
60
60
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -64,7 +64,7 @@ export declare class Browsers {
|
|
|
64
64
|
* session_id: "session_id"
|
|
65
65
|
* })
|
|
66
66
|
*/
|
|
67
|
-
getBrowserSession(request: BrowserUse.GetBrowserSessionBrowsersSessionIdGetRequest, requestOptions?:
|
|
67
|
+
getBrowserSession(request: BrowserUse.GetBrowserSessionBrowsersSessionIdGetRequest, requestOptions?: BrowsersClient.RequestOptions): core.HttpResponsePromise<BrowserUse.BrowserSessionView>;
|
|
68
68
|
private __getBrowserSession;
|
|
69
69
|
/**
|
|
70
70
|
* Stop a browser session.
|
|
@@ -74,7 +74,7 @@ export declare class Browsers {
|
|
|
74
74
|
* Billing is ceil to the nearest minute (minimum 1 minute).
|
|
75
75
|
*
|
|
76
76
|
* @param {BrowserUse.UpdateBrowserSessionRequest} request
|
|
77
|
-
* @param {
|
|
77
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
78
|
*
|
|
79
79
|
* @throws {@link BrowserUse.NotFoundError}
|
|
80
80
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -84,7 +84,7 @@ export declare class Browsers {
|
|
|
84
84
|
* session_id: "session_id"
|
|
85
85
|
* })
|
|
86
86
|
*/
|
|
87
|
-
updateBrowserSession(request: BrowserUse.UpdateBrowserSessionRequest, requestOptions?:
|
|
87
|
+
updateBrowserSession(request: BrowserUse.UpdateBrowserSessionRequest, requestOptions?: BrowsersClient.RequestOptions): core.HttpResponsePromise<BrowserUse.BrowserSessionView>;
|
|
88
88
|
private __updateBrowserSession;
|
|
89
89
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
90
90
|
}
|
|
@@ -54,21 +54,22 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
54
54
|
return t;
|
|
55
55
|
};
|
|
56
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
-
exports.
|
|
57
|
+
exports.BrowsersClient = void 0;
|
|
58
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
58
59
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
59
60
|
const core = __importStar(require("../../../../core/index.js"));
|
|
60
61
|
const environments = __importStar(require("../../../../environments.js"));
|
|
61
62
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
62
63
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
63
|
-
class
|
|
64
|
-
constructor(
|
|
65
|
-
this._options =
|
|
64
|
+
class BrowsersClient {
|
|
65
|
+
constructor(options) {
|
|
66
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
69
|
* Get paginated list of browser sessions with optional status filtering.
|
|
69
70
|
*
|
|
70
71
|
* @param {BrowserUse.ListBrowserSessionsBrowsersGetRequest} request
|
|
71
|
-
* @param {
|
|
72
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
73
|
*
|
|
73
74
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
74
75
|
*
|
|
@@ -154,7 +155,7 @@ class Browsers {
|
|
|
154
155
|
* - Paid subscribers: Up to 4 hours per session
|
|
155
156
|
*
|
|
156
157
|
* @param {BrowserUse.CreateBrowserSessionRequest} request
|
|
157
|
-
* @param {
|
|
158
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
159
|
*
|
|
159
160
|
* @throws {@link BrowserUse.ForbiddenError}
|
|
160
161
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -227,7 +228,7 @@ class Browsers {
|
|
|
227
228
|
* Get detailed browser session information including status and URLs.
|
|
228
229
|
*
|
|
229
230
|
* @param {BrowserUse.GetBrowserSessionBrowsersSessionIdGetRequest} request
|
|
230
|
-
* @param {
|
|
231
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
231
232
|
*
|
|
232
233
|
* @throws {@link BrowserUse.NotFoundError}
|
|
233
234
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -298,7 +299,7 @@ class Browsers {
|
|
|
298
299
|
* Billing is ceil to the nearest minute (minimum 1 minute).
|
|
299
300
|
*
|
|
300
301
|
* @param {BrowserUse.UpdateBrowserSessionRequest} request
|
|
301
|
-
* @param {
|
|
302
|
+
* @param {BrowsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
302
303
|
*
|
|
303
304
|
* @throws {@link BrowserUse.NotFoundError}
|
|
304
305
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -371,4 +372,4 @@ class Browsers {
|
|
|
371
372
|
});
|
|
372
373
|
}
|
|
373
374
|
}
|
|
374
|
-
exports.
|
|
375
|
+
exports.BrowsersClient = BrowsersClient;
|
|
@@ -10,4 +10,8 @@ export interface CreateBrowserSessionRequest {
|
|
|
10
10
|
proxyCountryCode?: BrowserUse.ProxyCountryCode | null;
|
|
11
11
|
/** The timeout for the session in minutes. Free users are limited to 15 minutes, paid users can use up to 240 minutes (4 hours). */
|
|
12
12
|
timeout?: number;
|
|
13
|
+
/** Custom screen width in pixels for the browser. */
|
|
14
|
+
browserScreenWidth?: number | null;
|
|
15
|
+
/** Custom screen height in pixels for the browser. */
|
|
16
|
+
browserScreenHeight?: number | null;
|
|
13
17
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import * as BrowserUse from "../../../index.js";
|
|
4
|
-
export declare namespace
|
|
4
|
+
export declare namespace FilesClient {
|
|
5
5
|
interface Options extends BaseClientOptions {
|
|
6
6
|
}
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class FilesClient {
|
|
11
|
+
protected readonly _options: FilesClient.Options;
|
|
12
|
+
constructor(options: FilesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Generate a secure presigned URL for uploading files to an agent session.
|
|
15
15
|
*
|
|
16
16
|
* @param {BrowserUse.AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest} request
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link BrowserUse.BadRequestError}
|
|
20
20
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -31,13 +31,13 @@ export declare class Files {
|
|
|
31
31
|
* }
|
|
32
32
|
* })
|
|
33
33
|
*/
|
|
34
|
-
agentSessionUploadFilePresignedUrl(request: BrowserUse.AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest, requestOptions?:
|
|
34
|
+
agentSessionUploadFilePresignedUrl(request: BrowserUse.AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<BrowserUse.UploadFilePresignedUrlResponse>;
|
|
35
35
|
private __agentSessionUploadFilePresignedUrl;
|
|
36
36
|
/**
|
|
37
37
|
* Generate a secure presigned URL for uploading files to a browser session.
|
|
38
38
|
*
|
|
39
39
|
* @param {BrowserUse.BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest} request
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link BrowserUse.BadRequestError}
|
|
43
43
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -54,13 +54,13 @@ export declare class Files {
|
|
|
54
54
|
* }
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
browserSessionUploadFilePresignedUrl(request: BrowserUse.BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest, requestOptions?:
|
|
57
|
+
browserSessionUploadFilePresignedUrl(request: BrowserUse.BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<BrowserUse.UploadFilePresignedUrlResponse>;
|
|
58
58
|
private __browserSessionUploadFilePresignedUrl;
|
|
59
59
|
/**
|
|
60
60
|
* Get secure download URL for an output file generated by the AI agent.
|
|
61
61
|
*
|
|
62
62
|
* @param {BrowserUse.GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest} request
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link BrowserUse.NotFoundError}
|
|
66
66
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -72,7 +72,7 @@ export declare class Files {
|
|
|
72
72
|
* file_id: "file_id"
|
|
73
73
|
* })
|
|
74
74
|
*/
|
|
75
|
-
getTaskOutputFilePresignedUrl(request: BrowserUse.GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest, requestOptions?:
|
|
75
|
+
getTaskOutputFilePresignedUrl(request: BrowserUse.GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<BrowserUse.TaskOutputFileResponse>;
|
|
76
76
|
private __getTaskOutputFilePresignedUrl;
|
|
77
77
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
78
78
|
}
|
|
@@ -43,21 +43,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.FilesClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
47
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
49
50
|
const environments = __importStar(require("../../../../environments.js"));
|
|
50
51
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
52
|
const BrowserUse = __importStar(require("../../../index.js"));
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
this._options =
|
|
53
|
+
class FilesClient {
|
|
54
|
+
constructor(options) {
|
|
55
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptions)(options);
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Generate a secure presigned URL for uploading files to an agent session.
|
|
58
59
|
*
|
|
59
60
|
* @param {BrowserUse.AgentSessionUploadFilePresignedUrlFilesSessionsSessionIdPresignedUrlPostRequest} request
|
|
60
|
-
* @param {
|
|
61
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
62
|
*
|
|
62
63
|
* @throws {@link BrowserUse.BadRequestError}
|
|
63
64
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -141,7 +142,7 @@ class Files {
|
|
|
141
142
|
* Generate a secure presigned URL for uploading files to a browser session.
|
|
142
143
|
*
|
|
143
144
|
* @param {BrowserUse.BrowserSessionUploadFilePresignedUrlFilesBrowsersSessionIdPresignedUrlPostRequest} request
|
|
144
|
-
* @param {
|
|
145
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
146
|
*
|
|
146
147
|
* @throws {@link BrowserUse.BadRequestError}
|
|
147
148
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -225,7 +226,7 @@ class Files {
|
|
|
225
226
|
* Get secure download URL for an output file generated by the AI agent.
|
|
226
227
|
*
|
|
227
228
|
* @param {BrowserUse.GetTaskOutputFilePresignedUrlFilesTasksTaskIdOutputFilesFileIdGetRequest} request
|
|
228
|
-
* @param {
|
|
229
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
229
230
|
*
|
|
230
231
|
* @throws {@link BrowserUse.NotFoundError}
|
|
231
232
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
@@ -299,4 +300,4 @@ class Files {
|
|
|
299
300
|
});
|
|
300
301
|
}
|
|
301
302
|
}
|
|
302
|
-
exports.
|
|
303
|
+
exports.FilesClient = FilesClient;
|
|
@@ -50,4 +50,3 @@ __exportStar(require("./tasks/client/requests/index.js"), exports);
|
|
|
50
50
|
exports.tasks = __importStar(require("./tasks/index.js"));
|
|
51
51
|
__exportStar(require("./workflows/client/requests/index.js"), exports);
|
|
52
52
|
exports.workflows = __importStar(require("./workflows/index.js"));
|
|
53
|
-
__exportStar(require("./workflows/types/index.js"), exports);
|