browser-use-sdk 2.0.11 → 2.0.13
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 -1
- package/dist/cjs/Client.js +3 -3
- 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 +1 -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/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 +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +1 -1
- package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skills/client/Client.d.ts +25 -6
- package/dist/cjs/api/resources/skills/client/Client.js +85 -8
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +3 -0
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +12 -0
- package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +3 -0
- package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +2 -0
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +3 -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 -2
- 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/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +3 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +3 -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 +9 -3
- package/dist/cjs/api/resources/tasks/client/Client.js +9 -3
- package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +2 -0
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +29 -1
- package/dist/cjs/api/resources/workflows/client/Client.js +85 -1
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.ts +18 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +1 -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/CannotRollbackPublicSkillError.d.ts +6 -0
- package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +3 -0
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +6 -0
- package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.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 +15 -1
- package/dist/cjs/api/types/ParameterSchema.d.ts +1 -0
- package/dist/cjs/api/types/ParameterType.d.ts +1 -0
- package/dist/cjs/api/types/ParameterType.js +1 -0
- package/dist/cjs/api/types/SessionItemView.d.ts +2 -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 +2 -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/SkillResponse.d.ts +19 -3
- package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +1 -0
- package/dist/cjs/api/types/SkillsGenerationStatus.js +1 -0
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.d.ts +11 -0
- package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.js +3 -0
- package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +4 -0
- package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +4 -0
- package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +4 -4
- package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +6 -0
- package/dist/cjs/api/types/WorkflowItemView.d.ts +7 -0
- package/dist/cjs/api/types/WorkflowResponse.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +10 -6
- package/dist/cjs/api/types/index.js +10 -6
- 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 -1
- package/dist/esm/Client.mjs +3 -3
- 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 +1 -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/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 +1 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +2 -0
- package/dist/esm/api/resources/skills/client/Client.d.mts +25 -6
- package/dist/esm/api/resources/skills/client/Client.mjs +85 -8
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +9 -0
- package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +2 -0
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +12 -0
- package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +2 -0
- package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +2 -0
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +9 -0
- package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +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 -2
- 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/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +2 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +2 -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 +9 -3
- package/dist/esm/api/resources/tasks/client/Client.mjs +9 -3
- package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +2 -0
- package/dist/esm/api/resources/workflows/client/Client.d.mts +29 -1
- package/dist/esm/api/resources/workflows/client/Client.mjs +85 -1
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.mts +18 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +1 -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/CannotRollbackPublicSkillError.d.mts +6 -0
- package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +2 -0
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +6 -0
- package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.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 +15 -1
- package/dist/esm/api/types/ParameterSchema.d.mts +1 -0
- package/dist/esm/api/types/ParameterType.d.mts +1 -0
- package/dist/esm/api/types/ParameterType.mjs +1 -0
- package/dist/esm/api/types/SessionItemView.d.mts +2 -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 +2 -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/SkillResponse.d.mts +19 -3
- package/dist/esm/api/types/SkillsGenerationStatus.d.mts +1 -0
- package/dist/esm/api/types/SkillsGenerationStatus.mjs +1 -0
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.d.mts +11 -0
- package/dist/esm/api/types/WorkflowCreateFromTaskResponse.mjs +2 -0
- package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +4 -0
- package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +4 -0
- package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +4 -4
- package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +6 -0
- package/dist/esm/api/types/WorkflowItemView.d.mts +7 -0
- package/dist/esm/api/types/WorkflowResponse.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +10 -6
- package/dist/esm/api/types/index.mjs +10 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +83 -82
- package/reference.md +232 -15
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
|
@@ -25,7 +25,7 @@ export declare class BrowserUseClient {
|
|
|
25
25
|
protected _skills: Skills | undefined;
|
|
26
26
|
protected _skillsMarketplace: SkillsMarketplace | undefined;
|
|
27
27
|
protected _workflows: Workflows | undefined;
|
|
28
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: BrowserUseClient.Options);
|
|
29
29
|
get billing(): Billing;
|
|
30
30
|
get tasks(): Tasks;
|
|
31
31
|
get sessions(): Sessions;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -47,12 +47,12 @@ const Client_js_9 = require("./api/resources/workflows/client/Client.js");
|
|
|
47
47
|
const headers_js_1 = require("./core/headers.js");
|
|
48
48
|
const core = __importStar(require("./core/index.js"));
|
|
49
49
|
class BrowserUseClient {
|
|
50
|
-
constructor(_options) {
|
|
50
|
+
constructor(_options = {}) {
|
|
51
51
|
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
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "browser-use-sdk",
|
|
54
|
-
"X-Fern-SDK-Version": "2.0.
|
|
55
|
-
"User-Agent": "browser-use-sdk/2.0.
|
|
54
|
+
"X-Fern-SDK-Version": "2.0.13",
|
|
55
|
+
"User-Agent": "browser-use-sdk/2.0.13",
|
|
56
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
58
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -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;
|
|
@@ -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
|
/**
|
|
@@ -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
|
*
|
|
@@ -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
|
/**
|
|
@@ -14,4 +14,6 @@ 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;
|
|
17
19
|
}
|
|
@@ -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
|
*
|
|
@@ -79,6 +79,7 @@ export declare class Skills {
|
|
|
79
79
|
* @param {BrowserUse.UpdateSkillRequest} request
|
|
80
80
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
81
|
*
|
|
82
|
+
* @throws {@link BrowserUse.ForbiddenError}
|
|
82
83
|
* @throws {@link BrowserUse.NotFoundError}
|
|
83
84
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
84
85
|
*
|
|
@@ -92,7 +93,7 @@ export declare class Skills {
|
|
|
92
93
|
/**
|
|
93
94
|
* Cancel the current in-progress generation for a skill.
|
|
94
95
|
*
|
|
95
|
-
* @param {BrowserUse.
|
|
96
|
+
* @param {BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest} request
|
|
96
97
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
98
|
*
|
|
98
99
|
* @throws {@link BrowserUse.BadRequestError}
|
|
@@ -104,12 +105,29 @@ export declare class Skills {
|
|
|
104
105
|
* skill_id: "skill_id"
|
|
105
106
|
* })
|
|
106
107
|
*/
|
|
107
|
-
cancelGeneration(request: BrowserUse.
|
|
108
|
+
cancelGeneration(request: BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillResponse>;
|
|
108
109
|
private __cancelGeneration;
|
|
110
|
+
/**
|
|
111
|
+
* Rollback to the previous version (cannot be undone).
|
|
112
|
+
*
|
|
113
|
+
* @param {BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest} request
|
|
114
|
+
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link BrowserUse.BadRequestError}
|
|
117
|
+
* @throws {@link BrowserUse.NotFoundError}
|
|
118
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* await client.skills.rollbackSkill({
|
|
122
|
+
* skill_id: "skill_id"
|
|
123
|
+
* })
|
|
124
|
+
*/
|
|
125
|
+
rollbackSkill(request: BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillResponse>;
|
|
126
|
+
private __rollbackSkill;
|
|
109
127
|
/**
|
|
110
128
|
* Execute a skill with the provided parameters.
|
|
111
129
|
*
|
|
112
|
-
* @param {BrowserUse.
|
|
130
|
+
* @param {BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest} request
|
|
113
131
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
132
|
*
|
|
115
133
|
* @throws {@link BrowserUse.BadRequestError}
|
|
@@ -119,10 +137,11 @@ export declare class Skills {
|
|
|
119
137
|
*
|
|
120
138
|
* @example
|
|
121
139
|
* await client.skills.executeSkill({
|
|
122
|
-
* skill_id: "skill_id"
|
|
140
|
+
* skill_id: "skill_id",
|
|
141
|
+
* body: {}
|
|
123
142
|
* })
|
|
124
143
|
*/
|
|
125
|
-
executeSkill(request: BrowserUse.
|
|
144
|
+
executeSkill(request: BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteSkillResponse>;
|
|
126
145
|
private __executeSkill;
|
|
127
146
|
/**
|
|
128
147
|
* Refine a skill based on feedback.
|
|
@@ -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 Skills {
|
|
64
|
-
constructor(_options) {
|
|
64
|
+
constructor(_options = {}) {
|
|
65
65
|
this._options = _options;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
@@ -81,7 +81,7 @@ class Skills {
|
|
|
81
81
|
__listSkills() {
|
|
82
82
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
83
83
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
84
|
-
const { pageSize, pageNumber, isPublic, isEnabled, query, fromDate, toDate } = request;
|
|
84
|
+
const { pageSize, pageNumber, isPublic, isEnabled, category, query, fromDate, toDate } = request;
|
|
85
85
|
const _queryParams = {};
|
|
86
86
|
if (pageSize != null) {
|
|
87
87
|
_queryParams.pageSize = pageSize.toString();
|
|
@@ -95,6 +95,9 @@ class Skills {
|
|
|
95
95
|
if (isEnabled !== undefined) {
|
|
96
96
|
_queryParams.isEnabled = (_b = isEnabled === null || isEnabled === void 0 ? void 0 : isEnabled.toString()) !== null && _b !== void 0 ? _b : null;
|
|
97
97
|
}
|
|
98
|
+
if (category !== undefined) {
|
|
99
|
+
_queryParams.category = category;
|
|
100
|
+
}
|
|
98
101
|
if (query !== undefined) {
|
|
99
102
|
_queryParams.query = query;
|
|
100
103
|
}
|
|
@@ -361,6 +364,7 @@ class Skills {
|
|
|
361
364
|
* @param {BrowserUse.UpdateSkillRequest} request
|
|
362
365
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
363
366
|
*
|
|
367
|
+
* @throws {@link BrowserUse.ForbiddenError}
|
|
364
368
|
* @throws {@link BrowserUse.NotFoundError}
|
|
365
369
|
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
366
370
|
*
|
|
@@ -396,6 +400,8 @@ class Skills {
|
|
|
396
400
|
}
|
|
397
401
|
if (_response.error.reason === "status-code") {
|
|
398
402
|
switch (_response.error.statusCode) {
|
|
403
|
+
case 403:
|
|
404
|
+
throw new BrowserUse.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
399
405
|
case 404:
|
|
400
406
|
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
401
407
|
case 422:
|
|
@@ -428,7 +434,7 @@ class Skills {
|
|
|
428
434
|
/**
|
|
429
435
|
* Cancel the current in-progress generation for a skill.
|
|
430
436
|
*
|
|
431
|
-
* @param {BrowserUse.
|
|
437
|
+
* @param {BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest} request
|
|
432
438
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
439
|
*
|
|
434
440
|
* @throws {@link BrowserUse.BadRequestError}
|
|
@@ -449,7 +455,77 @@ class Skills {
|
|
|
449
455
|
const { skill_id: skillId } = request;
|
|
450
456
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
451
457
|
const _response = yield core.fetcher({
|
|
452
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/cancel
|
|
458
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/cancel`),
|
|
459
|
+
method: "POST",
|
|
460
|
+
headers: _headers,
|
|
461
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
462
|
+
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,
|
|
463
|
+
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,
|
|
464
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
465
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
466
|
+
logging: this._options.logging,
|
|
467
|
+
});
|
|
468
|
+
if (_response.ok) {
|
|
469
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
470
|
+
}
|
|
471
|
+
if (_response.error.reason === "status-code") {
|
|
472
|
+
switch (_response.error.statusCode) {
|
|
473
|
+
case 400:
|
|
474
|
+
throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
|
|
475
|
+
case 404:
|
|
476
|
+
throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
|
|
477
|
+
case 422:
|
|
478
|
+
throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
479
|
+
default:
|
|
480
|
+
throw new errors.BrowserUseError({
|
|
481
|
+
statusCode: _response.error.statusCode,
|
|
482
|
+
body: _response.error.body,
|
|
483
|
+
rawResponse: _response.rawResponse,
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
switch (_response.error.reason) {
|
|
488
|
+
case "non-json":
|
|
489
|
+
throw new errors.BrowserUseError({
|
|
490
|
+
statusCode: _response.error.statusCode,
|
|
491
|
+
body: _response.error.rawBody,
|
|
492
|
+
rawResponse: _response.rawResponse,
|
|
493
|
+
});
|
|
494
|
+
case "timeout":
|
|
495
|
+
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/cancel.");
|
|
496
|
+
case "unknown":
|
|
497
|
+
throw new errors.BrowserUseError({
|
|
498
|
+
message: _response.error.errorMessage,
|
|
499
|
+
rawResponse: _response.rawResponse,
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Rollback to the previous version (cannot be undone).
|
|
506
|
+
*
|
|
507
|
+
* @param {BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest} request
|
|
508
|
+
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
509
|
+
*
|
|
510
|
+
* @throws {@link BrowserUse.BadRequestError}
|
|
511
|
+
* @throws {@link BrowserUse.NotFoundError}
|
|
512
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* await client.skills.rollbackSkill({
|
|
516
|
+
* skill_id: "skill_id"
|
|
517
|
+
* })
|
|
518
|
+
*/
|
|
519
|
+
rollbackSkill(request, requestOptions) {
|
|
520
|
+
return core.HttpResponsePromise.fromPromise(this.__rollbackSkill(request, requestOptions));
|
|
521
|
+
}
|
|
522
|
+
__rollbackSkill(request, requestOptions) {
|
|
523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
524
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
525
|
+
const { skill_id: skillId } = request;
|
|
526
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
527
|
+
const _response = yield core.fetcher({
|
|
528
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/rollback`),
|
|
453
529
|
method: "POST",
|
|
454
530
|
headers: _headers,
|
|
455
531
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -486,7 +562,7 @@ class Skills {
|
|
|
486
562
|
rawResponse: _response.rawResponse,
|
|
487
563
|
});
|
|
488
564
|
case "timeout":
|
|
489
|
-
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/
|
|
565
|
+
throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/rollback.");
|
|
490
566
|
case "unknown":
|
|
491
567
|
throw new errors.BrowserUseError({
|
|
492
568
|
message: _response.error.errorMessage,
|
|
@@ -498,7 +574,7 @@ class Skills {
|
|
|
498
574
|
/**
|
|
499
575
|
* Execute a skill with the provided parameters.
|
|
500
576
|
*
|
|
501
|
-
* @param {BrowserUse.
|
|
577
|
+
* @param {BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest} request
|
|
502
578
|
* @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
|
|
503
579
|
*
|
|
504
580
|
* @throws {@link BrowserUse.BadRequestError}
|
|
@@ -508,7 +584,8 @@ class Skills {
|
|
|
508
584
|
*
|
|
509
585
|
* @example
|
|
510
586
|
* await client.skills.executeSkill({
|
|
511
|
-
* skill_id: "skill_id"
|
|
587
|
+
* skill_id: "skill_id",
|
|
588
|
+
* body: {}
|
|
512
589
|
* })
|
|
513
590
|
*/
|
|
514
591
|
executeSkill(request, requestOptions) {
|
|
@@ -517,7 +594,7 @@ class Skills {
|
|
|
517
594
|
__executeSkill(request, requestOptions) {
|
|
518
595
|
return __awaiter(this, void 0, void 0, function* () {
|
|
519
596
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
520
|
-
const { skill_id: skillId
|
|
597
|
+
const { skill_id: skillId, body: _body } = request;
|
|
521
598
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
522
599
|
const _response = yield core.fetcher({
|
|
523
600
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BrowserUseEnvironment.Production, `skills/${core.url.encodePathParam(skillId)}/execute`),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as BrowserUse from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* skill_id: "skill_id",
|
|
6
|
+
* body: {}
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ExecuteSkillSkillsSkillIdExecutePostRequest {
|
|
10
|
+
skill_id: string;
|
|
11
|
+
body: BrowserUse.ExecuteSkillRequest;
|
|
12
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as BrowserUse from "../../../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {}
|
|
@@ -7,6 +8,7 @@ export interface ListSkillsSkillsGetRequest {
|
|
|
7
8
|
pageNumber?: number;
|
|
8
9
|
isPublic?: boolean | null;
|
|
9
10
|
isEnabled?: boolean | null;
|
|
11
|
+
category?: BrowserUse.SkillCategory | null;
|
|
10
12
|
query?: string | null;
|
|
11
13
|
fromDate?: string | null;
|
|
12
14
|
toDate?: string | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as BrowserUse from "../../../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -10,8 +11,10 @@ export interface UpdateSkillRequest {
|
|
|
10
11
|
title?: string | null;
|
|
11
12
|
/** Description of what the skill does (shows up in the public view) */
|
|
12
13
|
description?: string | null;
|
|
14
|
+
/** Categories to assign to the skill */
|
|
15
|
+
categories?: BrowserUse.SkillCategory[] | null;
|
|
16
|
+
/** Domains/websites this skill interacts with */
|
|
17
|
+
domains?: string[] | null;
|
|
13
18
|
/** Whether the skill is enabled for execution */
|
|
14
19
|
isEnabled?: boolean | null;
|
|
15
|
-
/** Whether the skill is publicly available */
|
|
16
|
-
isPublic?: boolean | null;
|
|
17
20
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { CancelGenerationSkillsSkillIdCancelPostRequest } from "./CancelGenerationSkillsSkillIdCancelPostRequest.js";
|
|
2
2
|
export type { CreateSkillRequest } from "./CreateSkillRequest.js";
|
|
3
3
|
export type { DeleteSkillSkillsSkillIdDeleteRequest } from "./DeleteSkillSkillsSkillIdDeleteRequest.js";
|
|
4
|
-
export type {
|
|
4
|
+
export type { ExecuteSkillSkillsSkillIdExecutePostRequest } from "./ExecuteSkillSkillsSkillIdExecutePostRequest.js";
|
|
5
5
|
export type { GetSkillSkillsSkillIdGetRequest } from "./GetSkillSkillsSkillIdGetRequest.js";
|
|
6
6
|
export type { ListSkillsSkillsGetRequest } from "./ListSkillsSkillsGetRequest.js";
|
|
7
7
|
export type { RefineSkillRequest } from "./RefineSkillRequest.js";
|
|
8
|
+
export type { RollbackSkillSkillsSkillIdRollbackPostRequest } from "./RollbackSkillSkillsSkillIdRollbackPostRequest.js";
|
|
8
9
|
export type { UpdateSkillRequest } from "./UpdateSkillRequest.js";
|
|
@@ -9,7 +9,7 @@ export declare namespace SkillsMarketplace {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class SkillsMarketplace {
|
|
11
11
|
protected readonly _options: SkillsMarketplace.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options?: SkillsMarketplace.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List all public skills available in the marketplace with optional filtering.
|
|
15
15
|
*
|
|
@@ -26,7 +26,7 @@ export declare class SkillsMarketplace {
|
|
|
26
26
|
/**
|
|
27
27
|
* Get details of a specific public skill from the marketplace.
|
|
28
28
|
*
|
|
29
|
-
* @param {BrowserUse.
|
|
29
|
+
* @param {BrowserUse.GetSkillMarketplaceSkillsSkillSlugGetRequest} request
|
|
30
30
|
* @param {SkillsMarketplace.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
32
32
|
* @throws {@link BrowserUse.NotFoundError}
|
|
@@ -34,10 +34,10 @@ export declare class SkillsMarketplace {
|
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* await client.skillsMarketplace.getSkill({
|
|
37
|
-
*
|
|
37
|
+
* skill_slug: "skill_slug"
|
|
38
38
|
* })
|
|
39
39
|
*/
|
|
40
|
-
getSkill(request: BrowserUse.
|
|
40
|
+
getSkill(request: BrowserUse.GetSkillMarketplaceSkillsSkillSlugGetRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.MarketplaceSkillResponse>;
|
|
41
41
|
private __getSkill;
|
|
42
42
|
/**
|
|
43
43
|
* Clone a public marketplace skill to the user's project.
|
|
@@ -54,7 +54,26 @@ export declare class SkillsMarketplace {
|
|
|
54
54
|
* skill_id: "skill_id"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
cloneSkill(request: BrowserUse.CloneSkillMarketplaceSkillsSkillIdClonePostRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.
|
|
57
|
+
cloneSkill(request: BrowserUse.CloneSkillMarketplaceSkillsSkillIdClonePostRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillResponse>;
|
|
58
58
|
private __cloneSkill;
|
|
59
|
+
/**
|
|
60
|
+
* Execute a skill with the provided parameters.
|
|
61
|
+
*
|
|
62
|
+
* @param {BrowserUse.ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest} request
|
|
63
|
+
* @param {SkillsMarketplace.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link BrowserUse.BadRequestError}
|
|
66
|
+
* @throws {@link BrowserUse.PaymentRequiredError}
|
|
67
|
+
* @throws {@link BrowserUse.NotFoundError}
|
|
68
|
+
* @throws {@link BrowserUse.UnprocessableEntityError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.skillsMarketplace.executeSkill({
|
|
72
|
+
* skill_id: "skill_id",
|
|
73
|
+
* body: {}
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
executeSkill(request: BrowserUse.ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteSkillResponse>;
|
|
77
|
+
private __executeSkill;
|
|
59
78
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
60
79
|
}
|