browser-use-sdk 2.0.10 → 2.0.12

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 (128) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +11 -6
  3. package/dist/cjs/api/resources/browsers/client/Client.d.ts +2 -1
  4. package/dist/cjs/api/resources/browsers/client/Client.js +3 -2
  5. package/dist/cjs/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.ts +5 -1
  6. package/dist/cjs/api/resources/index.d.ts +2 -0
  7. package/dist/cjs/api/resources/index.js +3 -1
  8. package/dist/cjs/api/resources/sessions/client/Client.d.ts +2 -1
  9. package/dist/cjs/api/resources/sessions/client/Client.js +3 -2
  10. package/dist/cjs/api/resources/sessions/client/requests/UpdateSessionRequest.d.ts +5 -1
  11. package/dist/cjs/api/resources/skills/client/Client.d.ts +20 -3
  12. package/dist/cjs/api/resources/skills/client/Client.js +93 -11
  13. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +9 -0
  14. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +3 -0
  15. package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.d.ts +2 -0
  16. package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +4 -0
  17. package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +9 -0
  18. package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +3 -0
  19. package/dist/cjs/api/resources/skills/client/requests/index.d.ts +2 -1
  20. package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +60 -0
  21. package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +281 -0
  22. package/dist/cjs/api/resources/skillsMarketplace/client/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/skillsMarketplace/client/index.js +17 -0
  24. package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.ts +9 -0
  25. package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js +3 -0
  26. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.ts +9 -0
  27. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.js +3 -0
  28. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +11 -0
  29. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.js +3 -0
  30. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +3 -0
  31. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.js +2 -0
  32. package/dist/cjs/api/resources/skillsMarketplace/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/skillsMarketplace/index.js +17 -0
  34. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.ts +11 -0
  35. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.js +3 -0
  36. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.ts +9 -0
  37. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.js +12 -0
  38. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.d.ts +11 -0
  39. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.js +3 -0
  40. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.d.ts +10 -0
  41. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.js +13 -0
  42. package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +4 -1
  43. package/dist/cjs/api/types/BrowserSessionUpdateAction.js +10 -0
  44. package/dist/cjs/api/types/CannotRollbackPublicSkillError.d.ts +6 -0
  45. package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +3 -0
  46. package/dist/cjs/api/types/MarketplaceSkillListResponse.d.ts +14 -0
  47. package/dist/cjs/api/types/MarketplaceSkillListResponse.js +3 -0
  48. package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +24 -0
  49. package/dist/cjs/api/types/MarketplaceSkillResponse.js +3 -0
  50. package/dist/cjs/api/types/ParameterSchema.d.ts +1 -0
  51. package/dist/cjs/api/types/ParameterType.d.ts +1 -0
  52. package/dist/cjs/api/types/ParameterType.js +1 -0
  53. package/dist/cjs/api/types/SessionUpdateAction.d.ts +4 -1
  54. package/dist/cjs/api/types/SessionUpdateAction.js +10 -0
  55. package/dist/cjs/api/types/SkillResponse.d.ts +6 -0
  56. package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +8 -1
  57. package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +8 -0
  58. package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +8 -1
  59. package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +8 -0
  60. package/dist/cjs/api/types/index.d.ts +3 -0
  61. package/dist/cjs/api/types/index.js +3 -0
  62. package/dist/cjs/version.d.ts +1 -1
  63. package/dist/cjs/version.js +1 -1
  64. package/dist/esm/Client.d.mts +3 -0
  65. package/dist/esm/Client.mjs +7 -2
  66. package/dist/esm/api/resources/browsers/client/Client.d.mts +2 -1
  67. package/dist/esm/api/resources/browsers/client/Client.mjs +3 -2
  68. package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +5 -1
  69. package/dist/esm/api/resources/index.d.mts +2 -0
  70. package/dist/esm/api/resources/index.mjs +2 -0
  71. package/dist/esm/api/resources/sessions/client/Client.d.mts +2 -1
  72. package/dist/esm/api/resources/sessions/client/Client.mjs +3 -2
  73. package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +5 -1
  74. package/dist/esm/api/resources/skills/client/Client.d.mts +20 -3
  75. package/dist/esm/api/resources/skills/client/Client.mjs +93 -11
  76. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +9 -0
  77. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +2 -0
  78. package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.d.mts +2 -0
  79. package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +4 -0
  80. package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +9 -0
  81. package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +2 -0
  82. package/dist/esm/api/resources/skills/client/requests/index.d.mts +2 -1
  83. package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +60 -0
  84. package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +244 -0
  85. package/dist/esm/api/resources/skillsMarketplace/client/index.d.mts +1 -0
  86. package/dist/esm/api/resources/skillsMarketplace/client/index.mjs +1 -0
  87. package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.mts +9 -0
  88. package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.mjs +2 -0
  89. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.mts +9 -0
  90. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.mjs +2 -0
  91. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +11 -0
  92. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.mjs +2 -0
  93. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +3 -0
  94. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.mjs +1 -0
  95. package/dist/esm/api/resources/skillsMarketplace/index.d.mts +1 -0
  96. package/dist/esm/api/resources/skillsMarketplace/index.mjs +1 -0
  97. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.mts +11 -0
  98. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.mjs +2 -0
  99. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.mts +9 -0
  100. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.mjs +9 -0
  101. package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.d.mts +11 -0
  102. package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.mjs +2 -0
  103. package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.d.mts +10 -0
  104. package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.mjs +10 -0
  105. package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +4 -1
  106. package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +9 -1
  107. package/dist/esm/api/types/CannotRollbackPublicSkillError.d.mts +6 -0
  108. package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +2 -0
  109. package/dist/esm/api/types/MarketplaceSkillListResponse.d.mts +14 -0
  110. package/dist/esm/api/types/MarketplaceSkillListResponse.mjs +2 -0
  111. package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +24 -0
  112. package/dist/esm/api/types/MarketplaceSkillResponse.mjs +2 -0
  113. package/dist/esm/api/types/ParameterSchema.d.mts +1 -0
  114. package/dist/esm/api/types/ParameterType.d.mts +1 -0
  115. package/dist/esm/api/types/ParameterType.mjs +1 -0
  116. package/dist/esm/api/types/SessionUpdateAction.d.mts +4 -1
  117. package/dist/esm/api/types/SessionUpdateAction.mjs +9 -1
  118. package/dist/esm/api/types/SkillResponse.d.mts +6 -0
  119. package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +8 -1
  120. package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +7 -1
  121. package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +8 -1
  122. package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +7 -1
  123. package/dist/esm/api/types/index.d.mts +3 -0
  124. package/dist/esm/api/types/index.mjs +3 -0
  125. package/dist/esm/version.d.mts +1 -1
  126. package/dist/esm/version.mjs +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +265 -4
@@ -4,6 +4,7 @@ import { Files } from "./api/resources/files/client/Client.js";
4
4
  import { Profiles } from "./api/resources/profiles/client/Client.js";
5
5
  import { Sessions } from "./api/resources/sessions/client/Client.js";
6
6
  import { Skills } from "./api/resources/skills/client/Client.js";
7
+ import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.js";
7
8
  import { Tasks } from "./api/resources/tasks/client/Client.js";
8
9
  import { Workflows } from "./api/resources/workflows/client/Client.js";
9
10
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -22,6 +23,7 @@ export declare class BrowserUseClient {
22
23
  protected _profiles: Profiles | undefined;
23
24
  protected _browsers: Browsers | undefined;
24
25
  protected _skills: Skills | undefined;
26
+ protected _skillsMarketplace: SkillsMarketplace | undefined;
25
27
  protected _workflows: Workflows | undefined;
26
28
  constructor(_options: BrowserUseClient.Options);
27
29
  get billing(): Billing;
@@ -31,5 +33,6 @@ export declare class BrowserUseClient {
31
33
  get profiles(): Profiles;
32
34
  get browsers(): Browsers;
33
35
  get skills(): Skills;
36
+ get skillsMarketplace(): SkillsMarketplace;
34
37
  get workflows(): Workflows;
35
38
  }
@@ -41,8 +41,9 @@ const Client_js_3 = require("./api/resources/files/client/Client.js");
41
41
  const Client_js_4 = require("./api/resources/profiles/client/Client.js");
42
42
  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
- const Client_js_7 = require("./api/resources/tasks/client/Client.js");
45
- const Client_js_8 = require("./api/resources/workflows/client/Client.js");
44
+ const Client_js_7 = require("./api/resources/skillsMarketplace/client/Client.js");
45
+ const Client_js_8 = require("./api/resources/tasks/client/Client.js");
46
+ const Client_js_9 = require("./api/resources/workflows/client/Client.js");
46
47
  const headers_js_1 = require("./core/headers.js");
47
48
  const core = __importStar(require("./core/index.js"));
48
49
  class BrowserUseClient {
@@ -50,8 +51,8 @@ class BrowserUseClient {
50
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)({
51
52
  "X-Fern-Language": "JavaScript",
52
53
  "X-Fern-SDK-Name": "browser-use-sdk",
53
- "X-Fern-SDK-Version": "2.0.10",
54
- "User-Agent": "browser-use-sdk/2.0.10",
54
+ "X-Fern-SDK-Version": "2.0.12",
55
+ "User-Agent": "browser-use-sdk/2.0.12",
55
56
  "X-Fern-Runtime": core.RUNTIME.type,
56
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
57
58
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -62,7 +63,7 @@ class BrowserUseClient {
62
63
  }
63
64
  get tasks() {
64
65
  var _a;
65
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_7.Tasks(this._options)));
66
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_js_8.Tasks(this._options)));
66
67
  }
67
68
  get sessions() {
68
69
  var _a;
@@ -84,9 +85,13 @@ class BrowserUseClient {
84
85
  var _a;
85
86
  return ((_a = this._skills) !== null && _a !== void 0 ? _a : (this._skills = new Client_js_6.Skills(this._options)));
86
87
  }
88
+ get skillsMarketplace() {
89
+ var _a;
90
+ return ((_a = this._skillsMarketplace) !== null && _a !== void 0 ? _a : (this._skillsMarketplace = new Client_js_7.SkillsMarketplace(this._options)));
91
+ }
87
92
  get workflows() {
88
93
  var _a;
89
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_8.Workflows(this._options)));
94
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_9.Workflows(this._options)));
90
95
  }
91
96
  }
92
97
  exports.BrowserUseClient = BrowserUseClient;
@@ -81,7 +81,8 @@ export declare class Browsers {
81
81
  *
82
82
  * @example
83
83
  * await client.browsers.updateBrowserSession({
84
- * session_id: "session_id"
84
+ * session_id: "session_id",
85
+ * action: "stop"
85
86
  * })
86
87
  */
87
88
  updateBrowserSession(request: BrowserUse.UpdateBrowserSessionRequest, requestOptions?: Browsers.RequestOptions): core.HttpResponsePromise<BrowserUse.BrowserSessionView>;
@@ -305,7 +305,8 @@ class Browsers {
305
305
  *
306
306
  * @example
307
307
  * await client.browsers.updateBrowserSession({
308
- * session_id: "session_id"
308
+ * session_id: "session_id",
309
+ * action: "stop"
309
310
  * })
310
311
  */
311
312
  updateBrowserSession(request, requestOptions) {
@@ -323,7 +324,7 @@ class Browsers {
323
324
  contentType: "application/json",
324
325
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
325
326
  requestType: "json",
326
- body: Object.assign(Object.assign({}, _body), { action: "stop" }),
327
+ body: _body,
327
328
  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,
328
329
  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,
329
330
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,9 +1,13 @@
1
+ import type * as BrowserUse from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
4
- * session_id: "session_id"
5
+ * session_id: "session_id",
6
+ * action: "stop"
5
7
  * }
6
8
  */
7
9
  export interface UpdateBrowserSessionRequest {
8
10
  session_id: string;
11
+ /** The action to perform on the session */
12
+ action: BrowserUse.BrowserSessionUpdateAction;
9
13
  }
@@ -9,6 +9,8 @@ export * from "./sessions/client/requests/index.js";
9
9
  export * as sessions from "./sessions/index.js";
10
10
  export * from "./skills/client/requests/index.js";
11
11
  export * as skills from "./skills/index.js";
12
+ export * from "./skillsMarketplace/client/requests/index.js";
13
+ export * as skillsMarketplace from "./skillsMarketplace/index.js";
12
14
  export * from "./tasks/client/requests/index.js";
13
15
  export * as tasks from "./tasks/index.js";
14
16
  export * from "./workflows/client/requests/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.skills = exports.sessions = exports.profiles = exports.files = exports.browsers = exports.billing = void 0;
39
+ exports.workflows = 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"));
@@ -48,6 +48,8 @@ __exportStar(require("./sessions/client/requests/index.js"), exports);
48
48
  exports.sessions = __importStar(require("./sessions/index.js"));
49
49
  __exportStar(require("./skills/client/requests/index.js"), exports);
50
50
  exports.skills = __importStar(require("./skills/index.js"));
51
+ __exportStar(require("./skillsMarketplace/client/requests/index.js"), exports);
52
+ exports.skillsMarketplace = __importStar(require("./skillsMarketplace/index.js"));
51
53
  __exportStar(require("./tasks/client/requests/index.js"), exports);
52
54
  exports.tasks = __importStar(require("./tasks/index.js"));
53
55
  __exportStar(require("./workflows/client/requests/index.js"), exports);
@@ -81,7 +81,8 @@ export declare class Sessions {
81
81
  *
82
82
  * @example
83
83
  * await client.sessions.updateSession({
84
- * session_id: "session_id"
84
+ * session_id: "session_id",
85
+ * action: "stop"
85
86
  * })
86
87
  */
87
88
  updateSession(request: BrowserUse.UpdateSessionRequest, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<BrowserUse.SessionView>;
@@ -351,7 +351,8 @@ class Sessions {
351
351
  *
352
352
  * @example
353
353
  * await client.sessions.updateSession({
354
- * session_id: "session_id"
354
+ * session_id: "session_id",
355
+ * action: "stop"
355
356
  * })
356
357
  */
357
358
  updateSession(request, requestOptions) {
@@ -369,7 +370,7 @@ class Sessions {
369
370
  contentType: "application/json",
370
371
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
371
372
  requestType: "json",
372
- body: Object.assign(Object.assign({}, _body), { action: "stop" }),
373
+ body: _body,
373
374
  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,
374
375
  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,
375
376
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,9 +1,13 @@
1
+ import type * as BrowserUse from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
4
- * session_id: "session_id"
5
+ * session_id: "session_id",
6
+ * action: "stop"
5
7
  * }
6
8
  */
7
9
  export interface UpdateSessionRequest {
8
10
  session_id: string;
11
+ /** The action to perform on the session */
12
+ action: BrowserUse.SessionUpdateAction;
9
13
  }
@@ -11,7 +11,7 @@ export declare class Skills {
11
11
  protected readonly _options: Skills.Options;
12
12
  constructor(_options: Skills.Options);
13
13
  /**
14
- * List all skills owned by the authenticated project with optional filtering by public status.
14
+ * List all skills owned by the authenticated project with optional filtering.
15
15
  *
16
16
  * @param {BrowserUse.ListSkillsSkillsGetRequest} request
17
17
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
@@ -92,7 +92,7 @@ export declare class Skills {
92
92
  /**
93
93
  * Cancel the current in-progress generation for a skill.
94
94
  *
95
- * @param {BrowserUse.CancelGenerationSkillsSkillIdCancelGenerationPostRequest} request
95
+ * @param {BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest} request
96
96
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
97
97
  *
98
98
  * @throws {@link BrowserUse.BadRequestError}
@@ -104,8 +104,25 @@ export declare class Skills {
104
104
  * skill_id: "skill_id"
105
105
  * })
106
106
  */
107
- cancelGeneration(request: BrowserUse.CancelGenerationSkillsSkillIdCancelGenerationPostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillResponse>;
107
+ cancelGeneration(request: BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillResponse>;
108
108
  private __cancelGeneration;
109
+ /**
110
+ * Rollback to the previous version (cannot be undone).
111
+ *
112
+ * @param {BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest} request
113
+ * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
114
+ *
115
+ * @throws {@link BrowserUse.BadRequestError}
116
+ * @throws {@link BrowserUse.NotFoundError}
117
+ * @throws {@link BrowserUse.UnprocessableEntityError}
118
+ *
119
+ * @example
120
+ * await client.skills.rollbackSkill({
121
+ * skill_id: "skill_id"
122
+ * })
123
+ */
124
+ rollbackSkill(request: BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest, requestOptions?: Skills.RequestOptions): core.HttpResponsePromise<BrowserUse.SkillResponse>;
125
+ private __rollbackSkill;
109
126
  /**
110
127
  * Execute a skill with the provided parameters.
111
128
  *
@@ -65,7 +65,7 @@ class Skills {
65
65
  this._options = _options;
66
66
  }
67
67
  /**
68
- * List all skills owned by the authenticated project with optional filtering by public status.
68
+ * List all skills owned by the authenticated project with optional filtering.
69
69
  *
70
70
  * @param {BrowserUse.ListSkillsSkillsGetRequest} request
71
71
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
@@ -80,8 +80,8 @@ class Skills {
80
80
  }
81
81
  __listSkills() {
82
82
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
83
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
84
- const { pageSize, pageNumber, isPublic } = request;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
84
+ const { pageSize, pageNumber, isPublic, isEnabled, query, fromDate, toDate } = request;
85
85
  const _queryParams = {};
86
86
  if (pageSize != null) {
87
87
  _queryParams.pageSize = pageSize.toString();
@@ -92,16 +92,28 @@ class Skills {
92
92
  if (isPublic !== undefined) {
93
93
  _queryParams.isPublic = (_a = isPublic === null || isPublic === void 0 ? void 0 : isPublic.toString()) !== null && _a !== void 0 ? _a : null;
94
94
  }
95
- const _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
95
+ if (isEnabled !== undefined) {
96
+ _queryParams.isEnabled = (_b = isEnabled === null || isEnabled === void 0 ? void 0 : isEnabled.toString()) !== null && _b !== void 0 ? _b : null;
97
+ }
98
+ if (query !== undefined) {
99
+ _queryParams.query = query;
100
+ }
101
+ if (fromDate !== undefined) {
102
+ _queryParams.fromDate = fromDate;
103
+ }
104
+ if (toDate !== undefined) {
105
+ _queryParams.toDate = toDate;
106
+ }
107
+ const _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
96
108
  const _response = yield core.fetcher({
97
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.BrowserUseEnvironment.Production, "skills"),
109
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.BrowserUseEnvironment.Production, "skills"),
98
110
  method: "GET",
99
111
  headers: _headers,
100
112
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
101
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
102
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
113
+ timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
114
+ maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
103
115
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
104
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
116
+ fetchFn: (_l = this._options) === null || _l === void 0 ? void 0 : _l.fetch,
105
117
  logging: this._options.logging,
106
118
  });
107
119
  if (_response.ok) {
@@ -416,7 +428,7 @@ class Skills {
416
428
  /**
417
429
  * Cancel the current in-progress generation for a skill.
418
430
  *
419
- * @param {BrowserUse.CancelGenerationSkillsSkillIdCancelGenerationPostRequest} request
431
+ * @param {BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest} request
420
432
  * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
421
433
  *
422
434
  * @throws {@link BrowserUse.BadRequestError}
@@ -437,7 +449,77 @@ class Skills {
437
449
  const { skill_id: skillId } = request;
438
450
  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);
439
451
  const _response = yield core.fetcher({
440
- 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-generation`),
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`),
453
+ method: "POST",
454
+ headers: _headers,
455
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
456
+ 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,
457
+ 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,
458
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
459
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
460
+ logging: this._options.logging,
461
+ });
462
+ if (_response.ok) {
463
+ return { data: _response.body, rawResponse: _response.rawResponse };
464
+ }
465
+ if (_response.error.reason === "status-code") {
466
+ switch (_response.error.statusCode) {
467
+ case 400:
468
+ throw new BrowserUse.BadRequestError(_response.error.body, _response.rawResponse);
469
+ case 404:
470
+ throw new BrowserUse.NotFoundError(_response.error.body, _response.rawResponse);
471
+ case 422:
472
+ throw new BrowserUse.UnprocessableEntityError(_response.error.body, _response.rawResponse);
473
+ default:
474
+ throw new errors.BrowserUseError({
475
+ statusCode: _response.error.statusCode,
476
+ body: _response.error.body,
477
+ rawResponse: _response.rawResponse,
478
+ });
479
+ }
480
+ }
481
+ switch (_response.error.reason) {
482
+ case "non-json":
483
+ throw new errors.BrowserUseError({
484
+ statusCode: _response.error.statusCode,
485
+ body: _response.error.rawBody,
486
+ rawResponse: _response.rawResponse,
487
+ });
488
+ case "timeout":
489
+ throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/cancel.");
490
+ case "unknown":
491
+ throw new errors.BrowserUseError({
492
+ message: _response.error.errorMessage,
493
+ rawResponse: _response.rawResponse,
494
+ });
495
+ }
496
+ });
497
+ }
498
+ /**
499
+ * Rollback to the previous version (cannot be undone).
500
+ *
501
+ * @param {BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest} request
502
+ * @param {Skills.RequestOptions} requestOptions - Request-specific configuration.
503
+ *
504
+ * @throws {@link BrowserUse.BadRequestError}
505
+ * @throws {@link BrowserUse.NotFoundError}
506
+ * @throws {@link BrowserUse.UnprocessableEntityError}
507
+ *
508
+ * @example
509
+ * await client.skills.rollbackSkill({
510
+ * skill_id: "skill_id"
511
+ * })
512
+ */
513
+ rollbackSkill(request, requestOptions) {
514
+ return core.HttpResponsePromise.fromPromise(this.__rollbackSkill(request, requestOptions));
515
+ }
516
+ __rollbackSkill(request, requestOptions) {
517
+ return __awaiter(this, void 0, void 0, function* () {
518
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
519
+ const { skill_id: skillId } = request;
520
+ 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);
521
+ const _response = yield core.fetcher({
522
+ 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`),
441
523
  method: "POST",
442
524
  headers: _headers,
443
525
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -474,7 +556,7 @@ class Skills {
474
556
  rawResponse: _response.rawResponse,
475
557
  });
476
558
  case "timeout":
477
- throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/cancel-generation.");
559
+ throw new errors.BrowserUseTimeoutError("Timeout exceeded when calling POST /skills/{skill_id}/rollback.");
478
560
  case "unknown":
479
561
  throw new errors.BrowserUseError({
480
562
  message: _response.error.errorMessage,
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * skill_id: "skill_id"
5
+ * }
6
+ */
7
+ export interface CancelGenerationSkillsSkillIdCancelPostRequest {
8
+ skill_id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,8 @@
8
8
  export interface CreateSkillRequest {
9
9
  /** Optional title for the skill (will be generated if not provided) */
10
10
  title?: string | null;
11
+ /** Optional description for the skill (will be generated if not provided) */
12
+ description?: string | null;
11
13
  /** Goal of the skill (description of what the skill does and what the user should expect from it) */
12
14
  goal: string;
13
15
  /** Prompt for the agent to use when generating the skill automatically */
@@ -6,4 +6,8 @@ export interface ListSkillsSkillsGetRequest {
6
6
  pageSize?: number;
7
7
  pageNumber?: number;
8
8
  isPublic?: boolean | null;
9
+ isEnabled?: boolean | null;
10
+ query?: string | null;
11
+ fromDate?: string | null;
12
+ toDate?: string | null;
9
13
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * skill_id: "skill_id"
5
+ * }
6
+ */
7
+ export interface RollbackSkillSkillsSkillIdRollbackPostRequest {
8
+ skill_id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,9 @@
1
- export type { CancelGenerationSkillsSkillIdCancelGenerationPostRequest } from "./CancelGenerationSkillsSkillIdCancelGenerationPostRequest.js";
1
+ export type { CancelGenerationSkillsSkillIdCancelPostRequest } from "./CancelGenerationSkillsSkillIdCancelPostRequest.js";
2
2
  export type { CreateSkillRequest } from "./CreateSkillRequest.js";
3
3
  export type { DeleteSkillSkillsSkillIdDeleteRequest } from "./DeleteSkillSkillsSkillIdDeleteRequest.js";
4
4
  export type { ExecuteSkillRequest } from "./ExecuteSkillRequest.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";
@@ -0,0 +1,60 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import * as BrowserUse from "../../../index.js";
4
+ export declare namespace SkillsMarketplace {
5
+ interface Options extends BaseClientOptions {
6
+ }
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class SkillsMarketplace {
11
+ protected readonly _options: SkillsMarketplace.Options;
12
+ constructor(_options: SkillsMarketplace.Options);
13
+ /**
14
+ * List all public skills available in the marketplace with optional filtering.
15
+ *
16
+ * @param {BrowserUse.ListSkillsMarketplaceSkillsGetRequest} request
17
+ * @param {SkillsMarketplace.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link BrowserUse.UnprocessableEntityError}
20
+ *
21
+ * @example
22
+ * await client.skillsMarketplace.listSkills()
23
+ */
24
+ listSkills(request?: BrowserUse.ListSkillsMarketplaceSkillsGetRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.MarketplaceSkillListResponse>;
25
+ private __listSkills;
26
+ /**
27
+ * Get details of a specific public skill from the marketplace.
28
+ *
29
+ * @param {BrowserUse.GetSkillMarketplaceSkillsSkillIdGetRequest} request
30
+ * @param {SkillsMarketplace.RequestOptions} requestOptions - Request-specific configuration.
31
+ *
32
+ * @throws {@link BrowserUse.NotFoundError}
33
+ * @throws {@link BrowserUse.UnprocessableEntityError}
34
+ *
35
+ * @example
36
+ * await client.skillsMarketplace.getSkill({
37
+ * skill_id: "skill_id"
38
+ * })
39
+ */
40
+ getSkill(request: BrowserUse.GetSkillMarketplaceSkillsSkillIdGetRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.MarketplaceSkillResponse>;
41
+ private __getSkill;
42
+ /**
43
+ * Clone a public marketplace skill to the user's project.
44
+ *
45
+ * @param {BrowserUse.CloneSkillMarketplaceSkillsSkillIdClonePostRequest} request
46
+ * @param {SkillsMarketplace.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link BrowserUse.BadRequestError}
49
+ * @throws {@link BrowserUse.NotFoundError}
50
+ * @throws {@link BrowserUse.UnprocessableEntityError}
51
+ *
52
+ * @example
53
+ * await client.skillsMarketplace.cloneSkill({
54
+ * skill_id: "skill_id"
55
+ * })
56
+ */
57
+ cloneSkill(request: BrowserUse.CloneSkillMarketplaceSkillsSkillIdClonePostRequest, requestOptions?: SkillsMarketplace.RequestOptions): core.HttpResponsePromise<BrowserUse.MarketplaceSkillResponse>;
58
+ private __cloneSkill;
59
+ protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
60
+ }