browser-use-sdk 2.0.10 → 2.0.11

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 (108) 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 +1 -1
  12. package/dist/cjs/api/resources/skills/client/Client.js +20 -8
  13. package/dist/cjs/api/resources/skills/client/requests/CreateSkillRequest.d.ts +2 -0
  14. package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +4 -0
  15. package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +60 -0
  16. package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +281 -0
  17. package/dist/cjs/api/resources/skillsMarketplace/client/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/skillsMarketplace/client/index.js +17 -0
  19. package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.ts +9 -0
  20. package/dist/cjs/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js +3 -0
  21. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.ts +9 -0
  22. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.js +3 -0
  23. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +11 -0
  24. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.js +3 -0
  25. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +3 -0
  26. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.js +2 -0
  27. package/dist/cjs/api/resources/skillsMarketplace/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/skillsMarketplace/index.js +17 -0
  29. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.ts +11 -0
  30. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.js +3 -0
  31. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.ts +9 -0
  32. package/dist/cjs/api/types/AppApiV2MarketplaceSkillsViewsParameterType.js +12 -0
  33. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.d.ts +11 -0
  34. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterSchema.js +3 -0
  35. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.d.ts +10 -0
  36. package/dist/cjs/api/types/AppApiV2SkillsViewsParameterType.js +13 -0
  37. package/dist/cjs/api/types/BrowserSessionUpdateAction.d.ts +4 -1
  38. package/dist/cjs/api/types/BrowserSessionUpdateAction.js +10 -0
  39. package/dist/cjs/api/types/MarketplaceSkillListResponse.d.ts +14 -0
  40. package/dist/cjs/api/types/MarketplaceSkillListResponse.js +3 -0
  41. package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +24 -0
  42. package/dist/cjs/api/types/MarketplaceSkillResponse.js +3 -0
  43. package/dist/cjs/api/types/SessionUpdateAction.d.ts +4 -1
  44. package/dist/cjs/api/types/SessionUpdateAction.js +10 -0
  45. package/dist/cjs/api/types/SkillResponse.d.ts +3 -1
  46. package/dist/cjs/api/types/UploadFilePresignedUrlResponse.d.ts +8 -1
  47. package/dist/cjs/api/types/UploadFilePresignedUrlResponse.js +8 -0
  48. package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.d.ts +8 -1
  49. package/dist/cjs/api/types/WorkflowYamlPresignedUploadResponse.js +8 -0
  50. package/dist/cjs/api/types/index.d.ts +6 -2
  51. package/dist/cjs/api/types/index.js +6 -2
  52. package/dist/cjs/version.d.ts +1 -1
  53. package/dist/cjs/version.js +1 -1
  54. package/dist/esm/Client.d.mts +3 -0
  55. package/dist/esm/Client.mjs +7 -2
  56. package/dist/esm/api/resources/browsers/client/Client.d.mts +2 -1
  57. package/dist/esm/api/resources/browsers/client/Client.mjs +3 -2
  58. package/dist/esm/api/resources/browsers/client/requests/UpdateBrowserSessionRequest.d.mts +5 -1
  59. package/dist/esm/api/resources/index.d.mts +2 -0
  60. package/dist/esm/api/resources/index.mjs +2 -0
  61. package/dist/esm/api/resources/sessions/client/Client.d.mts +2 -1
  62. package/dist/esm/api/resources/sessions/client/Client.mjs +3 -2
  63. package/dist/esm/api/resources/sessions/client/requests/UpdateSessionRequest.d.mts +5 -1
  64. package/dist/esm/api/resources/skills/client/Client.d.mts +1 -1
  65. package/dist/esm/api/resources/skills/client/Client.mjs +20 -8
  66. package/dist/esm/api/resources/skills/client/requests/CreateSkillRequest.d.mts +2 -0
  67. package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +4 -0
  68. package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +60 -0
  69. package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +244 -0
  70. package/dist/esm/api/resources/skillsMarketplace/client/index.d.mts +1 -0
  71. package/dist/esm/api/resources/skillsMarketplace/client/index.mjs +1 -0
  72. package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.d.mts +9 -0
  73. package/dist/esm/api/resources/skillsMarketplace/client/requests/CloneSkillMarketplaceSkillsSkillIdClonePostRequest.mjs +2 -0
  74. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.d.mts +9 -0
  75. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillIdGetRequest.mjs +2 -0
  76. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +11 -0
  77. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.mjs +2 -0
  78. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +3 -0
  79. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.mjs +1 -0
  80. package/dist/esm/api/resources/skillsMarketplace/index.d.mts +1 -0
  81. package/dist/esm/api/resources/skillsMarketplace/index.mjs +1 -0
  82. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.d.mts +11 -0
  83. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterSchema.mjs +2 -0
  84. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.d.mts +9 -0
  85. package/dist/esm/api/types/AppApiV2MarketplaceSkillsViewsParameterType.mjs +9 -0
  86. package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.d.mts +11 -0
  87. package/dist/esm/api/types/AppApiV2SkillsViewsParameterSchema.mjs +2 -0
  88. package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.d.mts +10 -0
  89. package/dist/esm/api/types/AppApiV2SkillsViewsParameterType.mjs +10 -0
  90. package/dist/esm/api/types/BrowserSessionUpdateAction.d.mts +4 -1
  91. package/dist/esm/api/types/BrowserSessionUpdateAction.mjs +9 -1
  92. package/dist/esm/api/types/MarketplaceSkillListResponse.d.mts +14 -0
  93. package/dist/esm/api/types/MarketplaceSkillListResponse.mjs +2 -0
  94. package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +24 -0
  95. package/dist/esm/api/types/MarketplaceSkillResponse.mjs +2 -0
  96. package/dist/esm/api/types/SessionUpdateAction.d.mts +4 -1
  97. package/dist/esm/api/types/SessionUpdateAction.mjs +9 -1
  98. package/dist/esm/api/types/SkillResponse.d.mts +3 -1
  99. package/dist/esm/api/types/UploadFilePresignedUrlResponse.d.mts +8 -1
  100. package/dist/esm/api/types/UploadFilePresignedUrlResponse.mjs +7 -1
  101. package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.d.mts +8 -1
  102. package/dist/esm/api/types/WorkflowYamlPresignedUploadResponse.mjs +7 -1
  103. package/dist/esm/api/types/index.d.mts +6 -2
  104. package/dist/esm/api/types/index.mjs +6 -2
  105. package/dist/esm/version.d.mts +1 -1
  106. package/dist/esm/version.mjs +1 -1
  107. package/package.json +1 -1
  108. package/reference.md +199 -3
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * skill_id: "skill_id"
5
+ * }
6
+ */
7
+ export interface CloneSkillMarketplaceSkillsSkillIdClonePostRequest {
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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * skill_id: "skill_id"
5
+ * }
6
+ */
7
+ export interface GetSkillMarketplaceSkillsSkillIdGetRequest {
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 });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface ListSkillsMarketplaceSkillsGetRequest {
6
+ pageSize?: number;
7
+ pageNumber?: number;
8
+ query?: string | null;
9
+ fromDate?: string | null;
10
+ toDate?: string | null;
11
+ }
@@ -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 });
@@ -0,0 +1,3 @@
1
+ export type { CloneSkillMarketplaceSkillsSkillIdClonePostRequest } from "./CloneSkillMarketplaceSkillsSkillIdClonePostRequest.js";
2
+ export type { GetSkillMarketplaceSkillsSkillIdGetRequest } from "./GetSkillMarketplaceSkillsSkillIdGetRequest.js";
3
+ export type { ListSkillsMarketplaceSkillsGetRequest } from "./ListSkillsMarketplaceSkillsGetRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,11 @@
1
+ import type * as BrowserUse from "../index.js";
2
+ /**
3
+ * Schema for a skill parameter.
4
+ */
5
+ export interface AppApiV2MarketplaceSkillsViewsParameterSchema {
6
+ name: string;
7
+ type: BrowserUse.AppApiV2MarketplaceSkillsViewsParameterType;
8
+ required?: boolean;
9
+ description?: string | null;
10
+ default?: unknown | null;
11
+ }
@@ -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 });
@@ -0,0 +1,9 @@
1
+ /** Type of a skill parameter. */
2
+ export declare const AppApiV2MarketplaceSkillsViewsParameterType: {
3
+ readonly String: "string";
4
+ readonly Number: "number";
5
+ readonly Boolean: "boolean";
6
+ readonly Object: "object";
7
+ readonly Array: "array";
8
+ };
9
+ export type AppApiV2MarketplaceSkillsViewsParameterType = (typeof AppApiV2MarketplaceSkillsViewsParameterType)[keyof typeof AppApiV2MarketplaceSkillsViewsParameterType];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AppApiV2MarketplaceSkillsViewsParameterType = void 0;
5
+ /** Type of a skill parameter. */
6
+ exports.AppApiV2MarketplaceSkillsViewsParameterType = {
7
+ String: "string",
8
+ Number: "number",
9
+ Boolean: "boolean",
10
+ Object: "object",
11
+ Array: "array",
12
+ };
@@ -0,0 +1,11 @@
1
+ import type * as BrowserUse from "../index.js";
2
+ /**
3
+ * Schema for a skill parameter.
4
+ */
5
+ export interface AppApiV2SkillsViewsParameterSchema {
6
+ name: string;
7
+ type: BrowserUse.AppApiV2SkillsViewsParameterType;
8
+ required?: boolean;
9
+ description?: string | null;
10
+ default?: unknown | null;
11
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ /** Type of a skill parameter. */
2
+ export declare const AppApiV2SkillsViewsParameterType: {
3
+ readonly String: "string";
4
+ readonly Number: "number";
5
+ readonly Boolean: "boolean";
6
+ readonly Object: "object";
7
+ readonly Array: "array";
8
+ readonly Cookie: "cookie";
9
+ };
10
+ export type AppApiV2SkillsViewsParameterType = (typeof AppApiV2SkillsViewsParameterType)[keyof typeof AppApiV2SkillsViewsParameterType];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AppApiV2SkillsViewsParameterType = void 0;
5
+ /** Type of a skill parameter. */
6
+ exports.AppApiV2SkillsViewsParameterType = {
7
+ String: "string",
8
+ Number: "number",
9
+ Boolean: "boolean",
10
+ Object: "object",
11
+ Array: "array",
12
+ Cookie: "cookie",
13
+ };
@@ -4,4 +4,7 @@
4
4
  * Attributes:
5
5
  * STOP: Stop the browser session (cannot be undone)
6
6
  */
7
- export type BrowserSessionUpdateAction = "stop";
7
+ export declare const BrowserSessionUpdateAction: {
8
+ readonly Stop: "stop";
9
+ };
10
+ export type BrowserSessionUpdateAction = (typeof BrowserSessionUpdateAction)[keyof typeof BrowserSessionUpdateAction];
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BrowserSessionUpdateAction = void 0;
5
+ /**
6
+ * Available actions that can be performed on a browser session
7
+ *
8
+ * Attributes:
9
+ * STOP: Stop the browser session (cannot be undone)
10
+ */
11
+ exports.BrowserSessionUpdateAction = {
12
+ Stop: "stop",
13
+ };
@@ -0,0 +1,14 @@
1
+ import type * as BrowserUse from "../index.js";
2
+ /**
3
+ * Response for listing skills.
4
+ */
5
+ export interface MarketplaceSkillListResponse {
6
+ /** List of skills */
7
+ items: BrowserUse.MarketplaceSkillResponse[];
8
+ /** Total number of items in the list */
9
+ totalItems: number;
10
+ /** Page number */
11
+ pageNumber: number;
12
+ /** Number of items per page */
13
+ pageSize: number;
14
+ }
@@ -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 });
@@ -0,0 +1,24 @@
1
+ import type * as BrowserUse from "../index.js";
2
+ /**
3
+ * Skill information returned by the API.
4
+ */
5
+ export interface MarketplaceSkillResponse {
6
+ /** Unique identifier for the skill */
7
+ id: string;
8
+ /** Title of the skill (shows up in the public view) */
9
+ title: string;
10
+ /** Description of the skill (shows up in the public view) */
11
+ description: string;
12
+ /** Input parameters of the skill */
13
+ parameters: BrowserUse.AppApiV2MarketplaceSkillsViewsParameterSchema[];
14
+ /** Output schema of the skill */
15
+ outputSchema: Record<string, unknown>;
16
+ /** Current version of the skill */
17
+ currentVersion: number | null;
18
+ /** Whether the skill is official (verified by Browser Use) */
19
+ isOfficial: boolean;
20
+ /** Creation timestamp */
21
+ createdAt: string;
22
+ /** Last update timestamp */
23
+ updatedAt: string;
24
+ }
@@ -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 });
@@ -4,4 +4,7 @@
4
4
  * Attributes:
5
5
  * STOP: Stop the session and all its associated tasks (cannot be undone)
6
6
  */
7
- export type SessionUpdateAction = "stop";
7
+ export declare const SessionUpdateAction: {
8
+ readonly Stop: "stop";
9
+ };
10
+ export type SessionUpdateAction = (typeof SessionUpdateAction)[keyof typeof SessionUpdateAction];
@@ -1,3 +1,13 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SessionUpdateAction = void 0;
5
+ /**
6
+ * Available actions that can be performed on a session
7
+ *
8
+ * Attributes:
9
+ * STOP: Stop the session and all its associated tasks (cannot be undone)
10
+ */
11
+ exports.SessionUpdateAction = {
12
+ Stop: "stop",
13
+ };
@@ -16,7 +16,7 @@ export interface SkillResponse {
16
16
  /** Status of the skill */
17
17
  status: BrowserUse.SkillsGenerationStatus;
18
18
  /** Input parameters of the skill */
19
- parameters: BrowserUse.ParameterSchema[];
19
+ parameters: BrowserUse.AppApiV2SkillsViewsParameterSchema[];
20
20
  /** Output schema of the skill */
21
21
  outputSchema: Record<string, unknown>;
22
22
  /** Whether the skill is enabled */
@@ -27,6 +27,8 @@ export interface SkillResponse {
27
27
  isOwner: boolean;
28
28
  /** Current version of the skill */
29
29
  currentVersion: number | null;
30
+ /** Base64 encoded generated code (contact support@browser-use.com to get access) - ENTERPRISE ONLY */
31
+ code?: string | null;
30
32
  /** Creation timestamp */
31
33
  createdAt: string;
32
34
  /** Last update timestamp */
@@ -5,7 +5,7 @@ export interface UploadFilePresignedUrlResponse {
5
5
  /** The URL to upload the file to. */
6
6
  url: string;
7
7
  /** The HTTP method to use for the upload. */
8
- method: "POST";
8
+ method: UploadFilePresignedUrlResponse.Method;
9
9
  /** The form fields to include in the upload request. */
10
10
  fields: Record<string, string>;
11
11
  /** The name of the file to upload (should be referenced when user wants to use the file in a task). */
@@ -13,3 +13,10 @@ export interface UploadFilePresignedUrlResponse {
13
13
  /** The number of seconds until the presigned URL expires. */
14
14
  expiresIn: number;
15
15
  }
16
+ export declare namespace UploadFilePresignedUrlResponse {
17
+ /** The HTTP method to use for the upload. */
18
+ const Method: {
19
+ readonly Post: "POST";
20
+ };
21
+ type Method = (typeof Method)[keyof typeof Method];
22
+ }
@@ -1,3 +1,11 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UploadFilePresignedUrlResponse = void 0;
5
+ var UploadFilePresignedUrlResponse;
6
+ (function (UploadFilePresignedUrlResponse) {
7
+ /** The HTTP method to use for the upload. */
8
+ UploadFilePresignedUrlResponse.Method = {
9
+ Post: "POST",
10
+ };
11
+ })(UploadFilePresignedUrlResponse || (exports.UploadFilePresignedUrlResponse = UploadFilePresignedUrlResponse = {}));
@@ -5,7 +5,7 @@ export interface WorkflowYamlPresignedUploadResponse {
5
5
  /** The URL to upload the YAML file to */
6
6
  url: string;
7
7
  /** The HTTP method to use for the upload */
8
- method: "POST";
8
+ method: WorkflowYamlPresignedUploadResponse.Method;
9
9
  /** The form fields to include in the upload request */
10
10
  fields: Record<string, string>;
11
11
  /** The S3 key where the file will be stored */
@@ -13,3 +13,10 @@ export interface WorkflowYamlPresignedUploadResponse {
13
13
  /** Number of seconds until the presigned URL expires */
14
14
  expiresIn: number;
15
15
  }
16
+ export declare namespace WorkflowYamlPresignedUploadResponse {
17
+ /** The HTTP method to use for the upload */
18
+ const Method: {
19
+ readonly Post: "POST";
20
+ };
21
+ type Method = (typeof Method)[keyof typeof Method];
22
+ }
@@ -1,3 +1,11 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WorkflowYamlPresignedUploadResponse = void 0;
5
+ var WorkflowYamlPresignedUploadResponse;
6
+ (function (WorkflowYamlPresignedUploadResponse) {
7
+ /** The HTTP method to use for the upload */
8
+ WorkflowYamlPresignedUploadResponse.Method = {
9
+ Post: "POST",
10
+ };
11
+ })(WorkflowYamlPresignedUploadResponse || (exports.WorkflowYamlPresignedUploadResponse = WorkflowYamlPresignedUploadResponse = {}));
@@ -1,6 +1,10 @@
1
1
  export * from "./AccountNotFoundError.js";
2
2
  export * from "./AccountView.js";
3
+ export * from "./AppApiV2MarketplaceSkillsViewsParameterSchema.js";
4
+ export * from "./AppApiV2MarketplaceSkillsViewsParameterType.js";
3
5
  export * from "./AppApiV2SkillsViewsInsufficientCreditsError.js";
6
+ export * from "./AppApiV2SkillsViewsParameterSchema.js";
7
+ export * from "./AppApiV2SkillsViewsParameterType.js";
4
8
  export * from "./AppViewsV2ErrorViewsInsufficientCreditsError.js";
5
9
  export * from "./BadRequestErrorBody.js";
6
10
  export * from "./BrowserSessionItemView.js";
@@ -17,10 +21,10 @@ export * from "./FileView.js";
17
21
  export * from "./GenerationNotCancellableError.js";
18
22
  export * from "./HttpValidationError.js";
19
23
  export * from "./InternalServerErrorBody.js";
24
+ export * from "./MarketplaceSkillListResponse.js";
25
+ export * from "./MarketplaceSkillResponse.js";
20
26
  export * from "./NotFoundErrorBody.js";
21
27
  export * from "./OutputFileNotFoundError.js";
22
- export * from "./ParameterSchema.js";
23
- export * from "./ParameterType.js";
24
28
  export * from "./PlanInfo.js";
25
29
  export * from "./ProfileListResponse.js";
26
30
  export * from "./ProfileNotFoundError.js";
@@ -16,7 +16,11 @@ 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("./AppApiV2MarketplaceSkillsViewsParameterSchema.js"), exports);
20
+ __exportStar(require("./AppApiV2MarketplaceSkillsViewsParameterType.js"), exports);
19
21
  __exportStar(require("./AppApiV2SkillsViewsInsufficientCreditsError.js"), exports);
22
+ __exportStar(require("./AppApiV2SkillsViewsParameterSchema.js"), exports);
23
+ __exportStar(require("./AppApiV2SkillsViewsParameterType.js"), exports);
20
24
  __exportStar(require("./AppViewsV2ErrorViewsInsufficientCreditsError.js"), exports);
21
25
  __exportStar(require("./BadRequestErrorBody.js"), exports);
22
26
  __exportStar(require("./BrowserSessionItemView.js"), exports);
@@ -33,10 +37,10 @@ __exportStar(require("./FileView.js"), exports);
33
37
  __exportStar(require("./GenerationNotCancellableError.js"), exports);
34
38
  __exportStar(require("./HttpValidationError.js"), exports);
35
39
  __exportStar(require("./InternalServerErrorBody.js"), exports);
40
+ __exportStar(require("./MarketplaceSkillListResponse.js"), exports);
41
+ __exportStar(require("./MarketplaceSkillResponse.js"), exports);
36
42
  __exportStar(require("./NotFoundErrorBody.js"), exports);
37
43
  __exportStar(require("./OutputFileNotFoundError.js"), exports);
38
- __exportStar(require("./ParameterSchema.js"), exports);
39
- __exportStar(require("./ParameterType.js"), exports);
40
44
  __exportStar(require("./PlanInfo.js"), exports);
41
45
  __exportStar(require("./ProfileListResponse.js"), exports);
42
46
  __exportStar(require("./ProfileNotFoundError.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.10";
1
+ export declare const SDK_VERSION = "2.0.11";
@@ -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.10";
4
+ exports.SDK_VERSION = "2.0.11";
@@ -4,6 +4,7 @@ import { Files } from "./api/resources/files/client/Client.mjs";
4
4
  import { Profiles } from "./api/resources/profiles/client/Client.mjs";
5
5
  import { Sessions } from "./api/resources/sessions/client/Client.mjs";
6
6
  import { Skills } from "./api/resources/skills/client/Client.mjs";
7
+ import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.mjs";
7
8
  import { Tasks } from "./api/resources/tasks/client/Client.mjs";
8
9
  import { Workflows } from "./api/resources/workflows/client/Client.mjs";
9
10
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
@@ -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
  }
@@ -5,6 +5,7 @@ import { Files } from "./api/resources/files/client/Client.mjs";
5
5
  import { Profiles } from "./api/resources/profiles/client/Client.mjs";
6
6
  import { Sessions } from "./api/resources/sessions/client/Client.mjs";
7
7
  import { Skills } from "./api/resources/skills/client/Client.mjs";
8
+ import { SkillsMarketplace } from "./api/resources/skillsMarketplace/client/Client.mjs";
8
9
  import { Tasks } from "./api/resources/tasks/client/Client.mjs";
9
10
  import { Workflows } from "./api/resources/workflows/client/Client.mjs";
10
11
  import { mergeHeaders } from "./core/headers.mjs";
@@ -14,8 +15,8 @@ export class BrowserUseClient {
14
15
  this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: mergeHeaders({
15
16
  "X-Fern-Language": "JavaScript",
16
17
  "X-Fern-SDK-Name": "browser-use-sdk",
17
- "X-Fern-SDK-Version": "2.0.10",
18
- "User-Agent": "browser-use-sdk/2.0.10",
18
+ "X-Fern-SDK-Version": "2.0.11",
19
+ "User-Agent": "browser-use-sdk/2.0.11",
19
20
  "X-Fern-Runtime": core.RUNTIME.type,
20
21
  "X-Fern-Runtime-Version": core.RUNTIME.version,
21
22
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -48,6 +49,10 @@ export class BrowserUseClient {
48
49
  var _a;
49
50
  return ((_a = this._skills) !== null && _a !== void 0 ? _a : (this._skills = new Skills(this._options)));
50
51
  }
52
+ get skillsMarketplace() {
53
+ var _a;
54
+ return ((_a = this._skillsMarketplace) !== null && _a !== void 0 ? _a : (this._skillsMarketplace = new SkillsMarketplace(this._options)));
55
+ }
51
56
  get workflows() {
52
57
  var _a;
53
58
  return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Workflows(this._options)));
@@ -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>;
@@ -269,7 +269,8 @@ export class Browsers {
269
269
  *
270
270
  * @example
271
271
  * await client.browsers.updateBrowserSession({
272
- * session_id: "session_id"
272
+ * session_id: "session_id",
273
+ * action: "stop"
273
274
  * })
274
275
  */
275
276
  updateBrowserSession(request, requestOptions) {
@@ -287,7 +288,7 @@ export class Browsers {
287
288
  contentType: "application/json",
288
289
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
289
290
  requestType: "json",
290
- body: Object.assign(Object.assign({}, _body), { action: "stop" }),
291
+ body: _body,
291
292
  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,
292
293
  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,
293
294
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,9 +1,13 @@
1
+ import type * as BrowserUse from "../../../../index.mjs";
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.mjs";
9
9
  export * as sessions from "./sessions/index.mjs";
10
10
  export * from "./skills/client/requests/index.mjs";
11
11
  export * as skills from "./skills/index.mjs";
12
+ export * from "./skillsMarketplace/client/requests/index.mjs";
13
+ export * as skillsMarketplace from "./skillsMarketplace/index.mjs";
12
14
  export * from "./tasks/client/requests/index.mjs";
13
15
  export * as tasks from "./tasks/index.mjs";
14
16
  export * from "./workflows/client/requests/index.mjs";
@@ -9,6 +9,8 @@ export * from "./sessions/client/requests/index.mjs";
9
9
  export * as sessions from "./sessions/index.mjs";
10
10
  export * from "./skills/client/requests/index.mjs";
11
11
  export * as skills from "./skills/index.mjs";
12
+ export * from "./skillsMarketplace/client/requests/index.mjs";
13
+ export * as skillsMarketplace from "./skillsMarketplace/index.mjs";
12
14
  export * from "./tasks/client/requests/index.mjs";
13
15
  export * as tasks from "./tasks/index.mjs";
14
16
  export * from "./workflows/client/requests/index.mjs";
@@ -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>;
@@ -315,7 +315,8 @@ export class Sessions {
315
315
  *
316
316
  * @example
317
317
  * await client.sessions.updateSession({
318
- * session_id: "session_id"
318
+ * session_id: "session_id",
319
+ * action: "stop"
319
320
  * })
320
321
  */
321
322
  updateSession(request, requestOptions) {
@@ -333,7 +334,7 @@ export class Sessions {
333
334
  contentType: "application/json",
334
335
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
335
336
  requestType: "json",
336
- body: Object.assign(Object.assign({}, _body), { action: "stop" }),
337
+ body: _body,
337
338
  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,
338
339
  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,
339
340
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -1,9 +1,13 @@
1
+ import type * as BrowserUse from "../../../../index.mjs";
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.