browser-use-sdk 2.0.12 → 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.
Files changed (150) hide show
  1. package/dist/cjs/BaseClient.d.ts +1 -1
  2. package/dist/cjs/Client.d.ts +1 -1
  3. package/dist/cjs/Client.js +3 -3
  4. package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -2
  5. package/dist/cjs/api/resources/billing/client/Client.d.ts +2 -2
  6. package/dist/cjs/api/resources/billing/client/Client.js +2 -2
  7. package/dist/cjs/api/resources/browsers/client/Client.d.ts +9 -7
  8. package/dist/cjs/api/resources/browsers/client/Client.js +9 -7
  9. package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +1 -1
  10. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  12. package/dist/cjs/api/resources/profiles/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/profiles/client/Client.js +1 -1
  14. package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/sessions/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +2 -0
  17. package/dist/cjs/api/resources/skills/client/Client.d.ts +6 -4
  18. package/dist/cjs/api/resources/skills/client/Client.js +12 -5
  19. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +12 -0
  20. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +3 -0
  21. package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +2 -0
  22. package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +5 -2
  23. package/dist/cjs/api/resources/skills/client/requests/index.d.ts +1 -1
  24. package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +24 -5
  25. package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +87 -7
  26. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +12 -0
  27. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +3 -0
  28. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +9 -0
  29. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +3 -0
  30. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +2 -0
  31. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +2 -1
  32. package/dist/cjs/api/resources/tasks/client/Client.d.ts +9 -3
  33. package/dist/cjs/api/resources/tasks/client/Client.js +9 -3
  34. package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +2 -0
  35. package/dist/cjs/api/resources/workflows/client/Client.d.ts +29 -1
  36. package/dist/cjs/api/resources/workflows/client/Client.js +85 -1
  37. package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.ts +18 -0
  38. package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.js +3 -0
  39. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +1 -0
  40. package/dist/cjs/api/types/AccountNotFoundError.d.ts +1 -1
  41. package/dist/cjs/api/types/AccountView.d.ts +5 -5
  42. package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +6 -0
  43. package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +3 -0
  44. package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +6 -0
  45. package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +3 -0
  46. package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +6 -0
  47. package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +3 -0
  48. package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +6 -0
  49. package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +3 -0
  50. package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +7 -0
  51. package/dist/cjs/api/types/ExecuteSkillRequest.js +3 -0
  52. package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +14 -0
  53. package/dist/cjs/api/types/SessionItemView.d.ts +2 -0
  54. package/dist/cjs/api/types/SessionStatus.d.ts +3 -3
  55. package/dist/cjs/api/types/SessionStatus.js +3 -3
  56. package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +1 -1
  57. package/dist/cjs/api/types/SessionView.d.ts +2 -0
  58. package/dist/cjs/api/types/SkillCategory.d.ts +20 -0
  59. package/dist/cjs/api/types/SkillCategory.js +23 -0
  60. package/dist/cjs/api/types/SkillResponse.d.ts +14 -2
  61. package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +1 -0
  62. package/dist/cjs/api/types/SkillsGenerationStatus.js +1 -0
  63. package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.d.ts +11 -0
  64. package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.js +3 -0
  65. package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +4 -0
  66. package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +4 -0
  67. package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +4 -4
  68. package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +6 -0
  69. package/dist/cjs/api/types/WorkflowItemView.d.ts +7 -0
  70. package/dist/cjs/api/types/WorkflowResponse.d.ts +2 -0
  71. package/dist/cjs/api/types/index.d.ts +7 -2
  72. package/dist/cjs/api/types/index.js +7 -2
  73. package/dist/cjs/version.d.ts +1 -1
  74. package/dist/cjs/version.js +1 -1
  75. package/dist/esm/BaseClient.d.mts +1 -1
  76. package/dist/esm/Client.d.mts +1 -1
  77. package/dist/esm/Client.mjs +3 -3
  78. package/dist/esm/api/errors/ForbiddenError.d.mts +1 -2
  79. package/dist/esm/api/resources/billing/client/Client.d.mts +2 -2
  80. package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
  81. package/dist/esm/api/resources/browsers/client/Client.d.mts +9 -7
  82. package/dist/esm/api/resources/browsers/client/Client.mjs +9 -7
  83. package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +1 -1
  84. package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
  85. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  86. package/dist/esm/api/resources/profiles/client/Client.d.mts +1 -1
  87. package/dist/esm/api/resources/profiles/client/Client.mjs +1 -1
  88. package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
  89. package/dist/esm/api/resources/sessions/client/Client.mjs +1 -1
  90. package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +2 -0
  91. package/dist/esm/api/resources/skills/client/Client.d.mts +6 -4
  92. package/dist/esm/api/resources/skills/client/Client.mjs +12 -5
  93. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +12 -0
  94. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +2 -0
  95. package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +2 -0
  96. package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +5 -2
  97. package/dist/esm/api/resources/skills/client/requests/index.d.mts +1 -1
  98. package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +24 -5
  99. package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +87 -7
  100. package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +12 -0
  101. package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +2 -0
  102. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +9 -0
  103. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +2 -0
  104. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +2 -0
  105. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +2 -1
  106. package/dist/esm/api/resources/tasks/client/Client.d.mts +9 -3
  107. package/dist/esm/api/resources/tasks/client/Client.mjs +9 -3
  108. package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +2 -0
  109. package/dist/esm/api/resources/workflows/client/Client.d.mts +29 -1
  110. package/dist/esm/api/resources/workflows/client/Client.mjs +85 -1
  111. package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.mts +18 -0
  112. package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.mjs +2 -0
  113. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +1 -0
  114. package/dist/esm/api/types/AccountNotFoundError.d.mts +1 -1
  115. package/dist/esm/api/types/AccountView.d.mts +5 -5
  116. package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +6 -0
  117. package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +2 -0
  118. package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +6 -0
  119. package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +2 -0
  120. package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +6 -0
  121. package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +2 -0
  122. package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +6 -0
  123. package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +2 -0
  124. package/dist/esm/api/types/ExecuteSkillRequest.d.mts +7 -0
  125. package/dist/esm/api/types/ExecuteSkillRequest.mjs +2 -0
  126. package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +14 -0
  127. package/dist/esm/api/types/SessionItemView.d.mts +2 -0
  128. package/dist/esm/api/types/SessionStatus.d.mts +3 -3
  129. package/dist/esm/api/types/SessionStatus.mjs +3 -3
  130. package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +1 -1
  131. package/dist/esm/api/types/SessionView.d.mts +2 -0
  132. package/dist/esm/api/types/SkillCategory.d.mts +20 -0
  133. package/dist/esm/api/types/SkillCategory.mjs +20 -0
  134. package/dist/esm/api/types/SkillResponse.d.mts +14 -2
  135. package/dist/esm/api/types/SkillsGenerationStatus.d.mts +1 -0
  136. package/dist/esm/api/types/SkillsGenerationStatus.mjs +1 -0
  137. package/dist/esm/api/types/WorkflowCreateFromTaskResponse.d.mts +11 -0
  138. package/dist/esm/api/types/WorkflowCreateFromTaskResponse.mjs +2 -0
  139. package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +4 -0
  140. package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +4 -0
  141. package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +4 -4
  142. package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +6 -0
  143. package/dist/esm/api/types/WorkflowItemView.d.mts +7 -0
  144. package/dist/esm/api/types/WorkflowResponse.d.mts +2 -0
  145. package/dist/esm/api/types/index.d.mts +7 -2
  146. package/dist/esm/api/types/index.mjs +7 -2
  147. package/dist/esm/version.d.mts +1 -1
  148. package/dist/esm/version.mjs +1 -1
  149. package/package.json +83 -82
  150. package/reference.md +166 -14
@@ -1,3 +1,4 @@
1
+ import type * as BrowserUse from "../index.js";
1
2
  /**
2
3
  * Minimal view model for listing workflows.
3
4
  */
@@ -14,6 +15,12 @@ export interface WorkflowItemView {
14
15
  cost?: string;
15
16
  /** Whether the workflow is archived */
16
17
  isArchived?: boolean;
18
+ /** Status of workflow generation */
19
+ generationStatus?: BrowserUse.WorkflowGenerationStatus;
20
+ /** Error message if generation failed */
21
+ generationError?: string | null;
22
+ /** Generation metadata including progress_step */
23
+ generationMetadata?: Record<string, unknown> | null;
17
24
  /** Naive UTC timestamp when the workflow was created */
18
25
  createdAt: string;
19
26
  }
@@ -27,6 +27,8 @@ export interface WorkflowResponse {
27
27
  generationStatus?: BrowserUse.WorkflowGenerationStatus;
28
28
  /** Error message if generation failed */
29
29
  generationError?: string | null;
30
+ /** Generation metadata including progress_step */
31
+ generationMetadata?: Record<string, unknown> | null;
30
32
  /** Input schema from workflow YAML defining required/optional variables */
31
33
  inputSchema?: Record<string, unknown>[] | null;
32
34
  /** Pre-filled input template based on input_schema for easy execution */
@@ -1,7 +1,7 @@
1
1
  export * from "./AccountNotFoundError.js";
2
2
  export * from "./AccountView.js";
3
- export * from "./AppApiV2SkillsViewsInsufficientCreditsError.js";
4
- export * from "./AppViewsV2ErrorViewsInsufficientCreditsError.js";
3
+ export * from "./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js";
4
+ export * from "./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js";
5
5
  export * from "./BadRequestErrorBody.js";
6
6
  export * from "./BrowserSessionItemView.js";
7
7
  export * from "./BrowserSessionListResponse.js";
@@ -10,9 +10,12 @@ export * from "./BrowserSessionUpdateAction.js";
10
10
  export * from "./BrowserSessionView.js";
11
11
  export * from "./CannotDeleteSkillWhileGeneratingError.js";
12
12
  export * from "./CannotRollbackPublicSkillError.js";
13
+ export * from "./CommonUtilsErrorsInsufficientCreditsError.js";
13
14
  export * from "./ConcurrentSkillCreationsError.js";
14
15
  export * from "./CreateSkillResponse.js";
15
16
  export * from "./DownloadUrlGenerationError.js";
17
+ export * from "./EnabledSkillsLimitExceededError.js";
18
+ export * from "./ExecuteSkillRequest.js";
16
19
  export * from "./ExecuteSkillResponse.js";
17
20
  export * from "./FileView.js";
18
21
  export * from "./GenerationNotCancellableError.js";
@@ -41,6 +44,7 @@ export * from "./SessionUpdateAction.js";
41
44
  export * from "./SessionView.js";
42
45
  export * from "./ShareNotFoundError.js";
43
46
  export * from "./ShareView.js";
47
+ export * from "./SkillCategory.js";
44
48
  export * from "./SkillListResponse.js";
45
49
  export * from "./SkillNotFinishedError.js";
46
50
  export * from "./SkillNotFoundError.js";
@@ -62,6 +66,7 @@ export * from "./UnsupportedContentTypeError.js";
62
66
  export * from "./UploadFilePresignedUrlResponse.js";
63
67
  export * from "./UploadFileRequest.js";
64
68
  export * from "./ValidationError.js";
69
+ export * from "./WorkflowCreateFromTaskResponse.js";
65
70
  export * from "./WorkflowExecutionCreatedResponse.js";
66
71
  export * from "./WorkflowExecutionItemView.js";
67
72
  export * from "./WorkflowExecutionListResponse.js";
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AccountNotFoundError.js"), exports);
18
18
  __exportStar(require("./AccountView.js"), exports);
19
- __exportStar(require("./AppApiV2SkillsViewsInsufficientCreditsError.js"), exports);
20
- __exportStar(require("./AppViewsV2ErrorViewsInsufficientCreditsError.js"), exports);
19
+ __exportStar(require("./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js"), exports);
20
+ __exportStar(require("./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js"), exports);
21
21
  __exportStar(require("./BadRequestErrorBody.js"), exports);
22
22
  __exportStar(require("./BrowserSessionItemView.js"), exports);
23
23
  __exportStar(require("./BrowserSessionListResponse.js"), exports);
@@ -26,9 +26,12 @@ __exportStar(require("./BrowserSessionUpdateAction.js"), exports);
26
26
  __exportStar(require("./BrowserSessionView.js"), exports);
27
27
  __exportStar(require("./CannotDeleteSkillWhileGeneratingError.js"), exports);
28
28
  __exportStar(require("./CannotRollbackPublicSkillError.js"), exports);
29
+ __exportStar(require("./CommonUtilsErrorsInsufficientCreditsError.js"), exports);
29
30
  __exportStar(require("./ConcurrentSkillCreationsError.js"), exports);
30
31
  __exportStar(require("./CreateSkillResponse.js"), exports);
31
32
  __exportStar(require("./DownloadUrlGenerationError.js"), exports);
33
+ __exportStar(require("./EnabledSkillsLimitExceededError.js"), exports);
34
+ __exportStar(require("./ExecuteSkillRequest.js"), exports);
32
35
  __exportStar(require("./ExecuteSkillResponse.js"), exports);
33
36
  __exportStar(require("./FileView.js"), exports);
34
37
  __exportStar(require("./GenerationNotCancellableError.js"), exports);
@@ -57,6 +60,7 @@ __exportStar(require("./SessionUpdateAction.js"), exports);
57
60
  __exportStar(require("./SessionView.js"), exports);
58
61
  __exportStar(require("./ShareNotFoundError.js"), exports);
59
62
  __exportStar(require("./ShareView.js"), exports);
63
+ __exportStar(require("./SkillCategory.js"), exports);
60
64
  __exportStar(require("./SkillListResponse.js"), exports);
61
65
  __exportStar(require("./SkillNotFinishedError.js"), exports);
62
66
  __exportStar(require("./SkillNotFoundError.js"), exports);
@@ -78,6 +82,7 @@ __exportStar(require("./UnsupportedContentTypeError.js"), exports);
78
82
  __exportStar(require("./UploadFilePresignedUrlResponse.js"), exports);
79
83
  __exportStar(require("./UploadFileRequest.js"), exports);
80
84
  __exportStar(require("./ValidationError.js"), exports);
85
+ __exportStar(require("./WorkflowCreateFromTaskResponse.js"), exports);
81
86
  __exportStar(require("./WorkflowExecutionCreatedResponse.js"), exports);
82
87
  __exportStar(require("./WorkflowExecutionItemView.js"), exports);
83
88
  __exportStar(require("./WorkflowExecutionListResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.12";
1
+ export declare const SDK_VERSION = "2.0.13";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.0.12";
4
+ exports.SDK_VERSION = "2.0.13";
@@ -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: core.Supplier<string>;
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. */
@@ -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: BrowserUseClient.Options);
28
+ constructor(_options?: BrowserUseClient.Options);
29
29
  get billing(): Billing;
30
30
  get tasks(): Tasks;
31
31
  get sessions(): Sessions;
@@ -11,12 +11,12 @@ import { Workflows } from "./api/resources/workflows/client/Client.mjs";
11
11
  import { mergeHeaders } from "./core/headers.mjs";
12
12
  import * as core from "./core/index.mjs";
13
13
  export class BrowserUseClient {
14
- constructor(_options) {
14
+ constructor(_options = {}) {
15
15
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
16
16
  "X-Fern-Language": "JavaScript",
17
17
  "X-Fern-SDK-Name": "browser-use-sdk",
18
- "X-Fern-SDK-Version": "2.0.12",
19
- "User-Agent": "browser-use-sdk/2.0.12",
18
+ "X-Fern-SDK-Version": "2.0.13",
19
+ "User-Agent": "browser-use-sdk/2.0.13",
20
20
  "X-Fern-Runtime": core.RUNTIME.type,
21
21
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
22
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1,6 +1,5 @@
1
1
  import type * as core from "../../core/index.mjs";
2
2
  import * as errors from "../../errors/index.mjs";
3
- import type * as BrowserUse from "../index.mjs";
4
3
  export declare class ForbiddenError extends errors.BrowserUseError {
5
- constructor(body: BrowserUse.SessionTimeoutLimitExceededError, rawResponse?: core.RawResponse);
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: Billing.Options);
12
+ constructor(_options?: Billing.Options);
13
13
  /**
14
- * Get authenticated account information including credit balances and account details.
14
+ * Get authenticated account information including credit balance and account details.
15
15
  *
16
16
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
@@ -14,11 +14,11 @@ import * as environments from "../../../../environments.mjs";
14
14
  import * as errors from "../../../../errors/index.mjs";
15
15
  import * as BrowserUse from "../../../index.mjs";
16
16
  export class Billing {
17
- constructor(_options) {
17
+ constructor(_options = {}) {
18
18
  this._options = _options;
19
19
  }
20
20
  /**
21
- * Get authenticated account information including credit balances and account details.
21
+ * Get authenticated account information including credit balance and account details.
22
22
  *
23
23
  * @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
24
24
  *
@@ -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: Browsers.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 at $0.05 per hour.
30
- * The full hourly rate is charged upfront when the session starts.
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 nearest minute (minimum 1 minute).
34
- * For example, if you stop a session after 30 minutes, you'll be refunded $0.025.
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
- * - Free users (without active subscription): Maximum 15 minutes per session
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.
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
25
25
  import * as errors from "../../../../errors/index.mjs";
26
26
  import * as BrowserUse from "../../../index.mjs";
27
27
  export class Browsers {
28
- constructor(_options) {
28
+ constructor(_options = {}) {
29
29
  this._options = _options;
30
30
  }
31
31
  /**
@@ -106,16 +106,18 @@ export class Browsers {
106
106
  /**
107
107
  * Create a new browser session.
108
108
  *
109
- * **Pricing:** Browser sessions are charged at $0.05 per hour.
110
- * The full hourly rate is charged upfront when the session starts.
109
+ * **Pricing:** Browser sessions are charged per hour with tiered pricing:
110
+ * - Pay As You Go users: $0.06/hour
111
+ * - Business/Scaleup subscribers: $0.03/hour (50% discount)
112
+ *
113
+ * The full rate is charged upfront when the session starts.
111
114
  * When you stop the session, any unused time is automatically refunded proportionally.
112
115
  *
113
- * Billing is rounded to the nearest minute (minimum 1 minute).
114
- * For example, if you stop a session after 30 minutes, you'll be refunded $0.025.
116
+ * Billing is rounded up to the minute (minimum 1 minute).
117
+ * For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.
115
118
  *
116
119
  * **Session Limits:**
117
- * - Free users (without active subscription): Maximum 15 minutes per session
118
- * - Paid subscribers: Up to 4 hours per session
120
+ * - All users: Up to 4 hours per session
119
121
  *
120
122
  * @param {BrowserUse.CreateBrowserSessionRequest} request
121
123
  * @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. Free users are limited to 15 minutes, paid users can use up to 240 minutes (4 hours). */
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: Files.Options);
12
+ constructor(_options?: Files.Options);
13
13
  /**
14
14
  * Generate a secure presigned URL for uploading files to an agent session.
15
15
  *
@@ -14,7 +14,7 @@ import * as environments from "../../../../environments.mjs";
14
14
  import * as errors from "../../../../errors/index.mjs";
15
15
  import * as BrowserUse from "../../../index.mjs";
16
16
  export class Files {
17
- constructor(_options) {
17
+ constructor(_options = {}) {
18
18
  this._options = _options;
19
19
  }
20
20
  /**
@@ -9,7 +9,7 @@ export declare namespace Profiles {
9
9
  }
10
10
  export declare class Profiles {
11
11
  protected readonly _options: Profiles.Options;
12
- constructor(_options: Profiles.Options);
12
+ constructor(_options?: Profiles.Options);
13
13
  /**
14
14
  * Get paginated list of profiles.
15
15
  *
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
25
25
  import * as errors from "../../../../errors/index.mjs";
26
26
  import * as BrowserUse from "../../../index.mjs";
27
27
  export class Profiles {
28
- constructor(_options) {
28
+ constructor(_options = {}) {
29
29
  this._options = _options;
30
30
  }
31
31
  /**
@@ -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: Sessions.Options);
12
+ constructor(_options?: Sessions.Options);
13
13
  /**
14
14
  * Get paginated list of AI agent sessions with optional status filtering.
15
15
  *
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
25
25
  import * as errors from "../../../../errors/index.mjs";
26
26
  import * as BrowserUse from "../../../index.mjs";
27
27
  export class Sessions {
28
- constructor(_options) {
28
+ constructor(_options = {}) {
29
29
  this._options = _options;
30
30
  }
31
31
  /**
@@ -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: Skills.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
  *
@@ -126,7 +127,7 @@ export declare class Skills {
126
127
  /**
127
128
  * Execute a skill with the provided parameters.
128
129
  *
129
- * @param {BrowserUse.ExecuteSkillRequest} request
130
+ * @param {BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest} request
130
131
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
131
132
  *
132
133
  * @throws {@link BrowserUse.BadRequestError}
@@ -136,10 +137,11 @@ export declare class Skills {
136
137
  *
137
138
  * @example
138
139
  * await client.skills.executeSkill({
139
- * skill_id: "skill_id"
140
+ * skill_id: "skill_id",
141
+ * body: {}
140
142
  * })
141
143
  */
142
- executeSkill(request: BrowserUse.ExecuteSkillRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteSkillResponse>;
144
+ executeSkill(request: BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.ExecuteSkillResponse>;
143
145
  private __executeSkill;
144
146
  /**
145
147
  * Refine a skill based on feedback.
@@ -25,7 +25,7 @@ import * as environments from "../../../../environments.mjs";
25
25
  import * as errors from "../../../../errors/index.mjs";
26
26
  import * as BrowserUse from "../../../index.mjs";
27
27
  export class Skills {
28
- constructor(_options) {
28
+ constructor(_options = {}) {
29
29
  this._options = _options;
30
30
  }
31
31
  /**
@@ -45,7 +45,7 @@ export class Skills {
45
45
  __listSkills() {
46
46
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
47
47
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
48
- const { pageSize, pageNumber, isPublic, isEnabled, query, fromDate, toDate } = request;
48
+ const { pageSize, pageNumber, isPublic, isEnabled, category, query, fromDate, toDate } = request;
49
49
  const _queryParams = {};
50
50
  if (pageSize != null) {
51
51
  _queryParams.pageSize = pageSize.toString();
@@ -59,6 +59,9 @@ export class Skills {
59
59
  if (isEnabled !== undefined) {
60
60
  _queryParams.isEnabled = (_b = isEnabled === null || isEnabled === void 0 ? void 0 : isEnabled.toString()) !== null && _b !== void 0 ? _b : null;
61
61
  }
62
+ if (category !== undefined) {
63
+ _queryParams.category = category;
64
+ }
62
65
  if (query !== undefined) {
63
66
  _queryParams.query = query;
64
67
  }
@@ -325,6 +328,7 @@ export class Skills {
325
328
  * @param {BrowserUse.UpdateSkillRequest} request
326
329
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
327
330
  *
331
+ * @throws {@link BrowserUse.ForbiddenError}
328
332
  * @throws {@link BrowserUse.NotFoundError}
329
333
  * @throws {@link BrowserUse.UnprocessableEntityError}
330
334
  *
@@ -360,6 +364,8 @@ export class Skills {
360
364
  }
361
365
  if (_response.error.reason === "status-code") {
362
366
  switch (_response.error.statusCode) {
367
+ case 403:
368
+ throw new BrowserUse.ForbiddenError(_response.error.body, _response.rawResponse);
363
369
  case 404:
364
370
  throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
365
371
  case 422:
@@ -532,7 +538,7 @@ export class Skills {
532
538
  /**
533
539
  * Execute a skill with the provided parameters.
534
540
  *
535
- * @param {BrowserUse.ExecuteSkillRequest} request
541
+ * @param {BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest} request
536
542
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
537
543
  *
538
544
  * @throws {@link BrowserUse.BadRequestError}
@@ -542,7 +548,8 @@ export class Skills {
542
548
  *
543
549
  * @example
544
550
  * await client.skills.executeSkill({
545
- * skill_id: "skill_id"
551
+ * skill_id: "skill_id",
552
+ * body: {}
546
553
  * })
547
554
  */
548
555
  executeSkill(request, requestOptions) {
@@ -551,7 +558,7 @@ export class Skills {
551
558
  __executeSkill(request, requestOptions) {
552
559
  return __awaiter(this, void 0, void 0, function* () {
553
560
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
554
- const { skill_id: skillId } = request, _body = __rest(request, ["skill_id"]);
561
+ const { skill_id: skillId, body: _body } = request;
555
562
  const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
556
563
  const _response = yield core.fetcher({
557
564
  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.mjs";
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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,3 +1,4 @@
1
+ import type * as BrowserUse from "../../../../index.mjs";
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.mjs";
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,7 +1,7 @@
1
1
  export type { CancelGenerationSkillsSkillIdCancelPostRequest } from "./CancelGenerationSkillsSkillIdCancelPostRequest.mjs";
2
2
  export type { CreateSkillRequest } from "./CreateSkillRequest.mjs";
3
3
  export type { DeleteSkillSkillsSkillIdDeleteRequest } from "./DeleteSkillSkillsSkillIdDeleteRequest.mjs";
4
- export type { ExecuteSkillRequest } from "./ExecuteSkillRequest.mjs";
4
+ export type { ExecuteSkillSkillsSkillIdExecutePostRequest } from "./ExecuteSkillSkillsSkillIdExecutePostRequest.mjs";
5
5
  export type { GetSkillSkillsSkillIdGetRequest } from "./GetSkillSkillsSkillIdGetRequest.mjs";
6
6
  export type { ListSkillsSkillsGetRequest } from "./ListSkillsSkillsGetRequest.mjs";
7
7
  export type { RefineSkillRequest } from "./RefineSkillRequest.mjs";
@@ -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: SkillsMarketplace.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.GetSkillMarketplaceSkillsSkillIdGetRequest} request
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
- * skill_id: "skill_id"
37
+ * skill_slug: "skill_slug"
38
38
  * })
39
39
  */
40
- getSkill(request: BrowserUse.GetSkillMarketplaceSkillsSkillIdGetRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.MarketplaceSkillResponse>;
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.MarketplaceSkillResponse>;
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
  }