browser-use-sdk 2.0.12 → 2.0.14

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