browser-use-sdk 2.0.11 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/cjs/BaseClient.d.ts +1 -1
  2. package/dist/cjs/Client.d.ts +1 -1
  3. package/dist/cjs/Client.js +3 -3
  4. package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -2
  5. package/dist/cjs/api/resources/billing/client/Client.d.ts +2 -2
  6. package/dist/cjs/api/resources/billing/client/Client.js +2 -2
  7. package/dist/cjs/api/resources/browsers/client/Client.d.ts +9 -7
  8. package/dist/cjs/api/resources/browsers/client/Client.js +9 -7
  9. package/dist/cjs/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.ts +1 -1
  10. package/dist/cjs/api/resources/files/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  12. package/dist/cjs/api/resources/profiles/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/profiles/client/Client.js +1 -1
  14. package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/sessions/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/sessions/client/requests/CreateSessionRequest.d.ts +2 -0
  17. package/dist/cjs/api/resources/skills/client/Client.d.ts +25 -6
  18. package/dist/cjs/api/resources/skills/client/Client.js +85 -8
  19. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.ts +9 -0
  20. package/dist/cjs/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.js +3 -0
  21. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.ts +12 -0
  22. package/dist/cjs/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.js +3 -0
  23. package/dist/cjs/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.ts +2 -0
  24. package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.ts +9 -0
  25. package/dist/cjs/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.js +3 -0
  26. package/dist/cjs/api/resources/skills/client/requests/UpdateSkillRequest.d.ts +5 -2
  27. package/dist/cjs/api/resources/skills/client/requests/index.d.ts +3 -2
  28. package/dist/cjs/api/resources/skillsMarketplace/client/Client.d.ts +24 -5
  29. package/dist/cjs/api/resources/skillsMarketplace/client/Client.js +87 -7
  30. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.ts +12 -0
  31. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.js +3 -0
  32. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.ts +9 -0
  33. package/dist/cjs/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.js +3 -0
  34. package/dist/cjs/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.ts +2 -0
  35. package/dist/cjs/api/resources/skillsMarketplace/client/requests/index.d.ts +2 -1
  36. package/dist/cjs/api/resources/tasks/client/Client.d.ts +9 -3
  37. package/dist/cjs/api/resources/tasks/client/Client.js +9 -3
  38. package/dist/cjs/api/resources/tasks/client/requests/CreateTaskRequest.d.ts +2 -0
  39. package/dist/cjs/api/resources/workflows/client/Client.d.ts +29 -1
  40. package/dist/cjs/api/resources/workflows/client/Client.js +85 -1
  41. package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.ts +18 -0
  42. package/dist/cjs/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.js +3 -0
  43. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +1 -0
  44. package/dist/cjs/api/types/AccountNotFoundError.d.ts +1 -1
  45. package/dist/cjs/api/types/AccountView.d.ts +5 -5
  46. package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.ts +6 -0
  47. package/dist/cjs/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.js +3 -0
  48. package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.ts +6 -0
  49. package/dist/cjs/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.js +3 -0
  50. package/dist/cjs/api/types/CannotRollbackPublicSkillError.d.ts +6 -0
  51. package/dist/cjs/api/types/CannotRollbackPublicSkillError.js +3 -0
  52. package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.d.ts +6 -0
  53. package/dist/cjs/api/types/CommonUtilsErrorsInsufficientCreditsError.js +3 -0
  54. package/dist/cjs/api/types/EnabledSkillsLimitExceededError.d.ts +6 -0
  55. package/dist/cjs/api/types/EnabledSkillsLimitExceededError.js +3 -0
  56. package/dist/cjs/api/types/ExecuteSkillRequest.d.ts +7 -0
  57. package/dist/cjs/api/types/ExecuteSkillRequest.js +3 -0
  58. package/dist/cjs/api/types/MarketplaceSkillResponse.d.ts +15 -1
  59. package/dist/cjs/api/types/ParameterSchema.d.ts +1 -0
  60. package/dist/cjs/api/types/ParameterType.d.ts +1 -0
  61. package/dist/cjs/api/types/ParameterType.js +1 -0
  62. package/dist/cjs/api/types/SessionItemView.d.ts +2 -0
  63. package/dist/cjs/api/types/SessionStatus.d.ts +3 -3
  64. package/dist/cjs/api/types/SessionStatus.js +3 -3
  65. package/dist/cjs/api/types/SessionTimeoutLimitExceededError.d.ts +1 -1
  66. package/dist/cjs/api/types/SessionView.d.ts +2 -0
  67. package/dist/cjs/api/types/SkillCategory.d.ts +20 -0
  68. package/dist/cjs/api/types/SkillCategory.js +23 -0
  69. package/dist/cjs/api/types/SkillResponse.d.ts +19 -3
  70. package/dist/cjs/api/types/SkillsGenerationStatus.d.ts +1 -0
  71. package/dist/cjs/api/types/SkillsGenerationStatus.js +1 -0
  72. package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.d.ts +11 -0
  73. package/dist/cjs/api/types/WorkflowCreateFromTaskResponse.js +3 -0
  74. package/dist/cjs/api/types/WorkflowExecutionResponse.d.ts +4 -0
  75. package/dist/cjs/api/types/WorkflowExecutionStateView.d.ts +4 -0
  76. package/dist/cjs/api/types/WorkflowExecutionStepView.d.ts +4 -4
  77. package/dist/cjs/api/types/WorkflowGenerationStateView.d.ts +6 -0
  78. package/dist/cjs/api/types/WorkflowItemView.d.ts +7 -0
  79. package/dist/cjs/api/types/WorkflowResponse.d.ts +2 -0
  80. package/dist/cjs/api/types/index.d.ts +10 -6
  81. package/dist/cjs/api/types/index.js +10 -6
  82. package/dist/cjs/version.d.ts +1 -1
  83. package/dist/cjs/version.js +1 -1
  84. package/dist/esm/BaseClient.d.mts +1 -1
  85. package/dist/esm/Client.d.mts +1 -1
  86. package/dist/esm/Client.mjs +3 -3
  87. package/dist/esm/api/errors/ForbiddenError.d.mts +1 -2
  88. package/dist/esm/api/resources/billing/client/Client.d.mts +2 -2
  89. package/dist/esm/api/resources/billing/client/Client.mjs +2 -2
  90. package/dist/esm/api/resources/browsers/client/Client.d.mts +9 -7
  91. package/dist/esm/api/resources/browsers/client/Client.mjs +9 -7
  92. package/dist/esm/api/resources/browsers/client/requests/CreateBrowserSessionRequest.d.mts +1 -1
  93. package/dist/esm/api/resources/files/client/Client.d.mts +1 -1
  94. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  95. package/dist/esm/api/resources/profiles/client/Client.d.mts +1 -1
  96. package/dist/esm/api/resources/profiles/client/Client.mjs +1 -1
  97. package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
  98. package/dist/esm/api/resources/sessions/client/Client.mjs +1 -1
  99. package/dist/esm/api/resources/sessions/client/requests/CreateSessionRequest.d.mts +2 -0
  100. package/dist/esm/api/resources/skills/client/Client.d.mts +25 -6
  101. package/dist/esm/api/resources/skills/client/Client.mjs +85 -8
  102. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.d.mts +9 -0
  103. package/dist/esm/api/resources/skills/client/requests/CancelGenerationSkillsSkillIdCancelPostRequest.mjs +2 -0
  104. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.d.mts +12 -0
  105. package/dist/esm/api/resources/skills/client/requests/ExecuteSkillSkillsSkillIdExecutePostRequest.mjs +2 -0
  106. package/dist/esm/api/resources/skills/client/requests/ListSkillsSkillsGetRequest.d.mts +2 -0
  107. package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.d.mts +9 -0
  108. package/dist/esm/api/resources/skills/client/requests/RollbackSkillSkillsSkillIdRollbackPostRequest.mjs +2 -0
  109. package/dist/esm/api/resources/skills/client/requests/UpdateSkillRequest.d.mts +5 -2
  110. package/dist/esm/api/resources/skills/client/requests/index.d.mts +3 -2
  111. package/dist/esm/api/resources/skillsMarketplace/client/Client.d.mts +24 -5
  112. package/dist/esm/api/resources/skillsMarketplace/client/Client.mjs +87 -7
  113. package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.d.mts +12 -0
  114. package/dist/esm/api/resources/skillsMarketplace/client/requests/ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest.mjs +2 -0
  115. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.d.mts +9 -0
  116. package/dist/esm/api/resources/skillsMarketplace/client/requests/GetSkillMarketplaceSkillsSkillSlugGetRequest.mjs +2 -0
  117. package/dist/esm/api/resources/skillsMarketplace/client/requests/ListSkillsMarketplaceSkillsGetRequest.d.mts +2 -0
  118. package/dist/esm/api/resources/skillsMarketplace/client/requests/index.d.mts +2 -1
  119. package/dist/esm/api/resources/tasks/client/Client.d.mts +9 -3
  120. package/dist/esm/api/resources/tasks/client/Client.mjs +9 -3
  121. package/dist/esm/api/resources/tasks/client/requests/CreateTaskRequest.d.mts +2 -0
  122. package/dist/esm/api/resources/workflows/client/Client.d.mts +29 -1
  123. package/dist/esm/api/resources/workflows/client/Client.mjs +85 -1
  124. package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.d.mts +18 -0
  125. package/dist/esm/api/resources/workflows/client/requests/WorkflowCreateFromTaskRequest.mjs +2 -0
  126. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +1 -0
  127. package/dist/esm/api/types/AccountNotFoundError.d.mts +1 -1
  128. package/dist/esm/api/types/AccountView.d.mts +5 -5
  129. package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.d.mts +6 -0
  130. package/dist/esm/api/types/AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs +2 -0
  131. package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.d.mts +6 -0
  132. package/dist/esm/api/types/AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs +2 -0
  133. package/dist/esm/api/types/CannotRollbackPublicSkillError.d.mts +6 -0
  134. package/dist/esm/api/types/CannotRollbackPublicSkillError.mjs +2 -0
  135. package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.d.mts +6 -0
  136. package/dist/esm/api/types/CommonUtilsErrorsInsufficientCreditsError.mjs +2 -0
  137. package/dist/esm/api/types/EnabledSkillsLimitExceededError.d.mts +6 -0
  138. package/dist/esm/api/types/EnabledSkillsLimitExceededError.mjs +2 -0
  139. package/dist/esm/api/types/ExecuteSkillRequest.d.mts +7 -0
  140. package/dist/esm/api/types/ExecuteSkillRequest.mjs +2 -0
  141. package/dist/esm/api/types/MarketplaceSkillResponse.d.mts +15 -1
  142. package/dist/esm/api/types/ParameterSchema.d.mts +1 -0
  143. package/dist/esm/api/types/ParameterType.d.mts +1 -0
  144. package/dist/esm/api/types/ParameterType.mjs +1 -0
  145. package/dist/esm/api/types/SessionItemView.d.mts +2 -0
  146. package/dist/esm/api/types/SessionStatus.d.mts +3 -3
  147. package/dist/esm/api/types/SessionStatus.mjs +3 -3
  148. package/dist/esm/api/types/SessionTimeoutLimitExceededError.d.mts +1 -1
  149. package/dist/esm/api/types/SessionView.d.mts +2 -0
  150. package/dist/esm/api/types/SkillCategory.d.mts +20 -0
  151. package/dist/esm/api/types/SkillCategory.mjs +20 -0
  152. package/dist/esm/api/types/SkillResponse.d.mts +19 -3
  153. package/dist/esm/api/types/SkillsGenerationStatus.d.mts +1 -0
  154. package/dist/esm/api/types/SkillsGenerationStatus.mjs +1 -0
  155. package/dist/esm/api/types/WorkflowCreateFromTaskResponse.d.mts +11 -0
  156. package/dist/esm/api/types/WorkflowCreateFromTaskResponse.mjs +2 -0
  157. package/dist/esm/api/types/WorkflowExecutionResponse.d.mts +4 -0
  158. package/dist/esm/api/types/WorkflowExecutionStateView.d.mts +4 -0
  159. package/dist/esm/api/types/WorkflowExecutionStepView.d.mts +4 -4
  160. package/dist/esm/api/types/WorkflowGenerationStateView.d.mts +6 -0
  161. package/dist/esm/api/types/WorkflowItemView.d.mts +7 -0
  162. package/dist/esm/api/types/WorkflowResponse.d.mts +2 -0
  163. package/dist/esm/api/types/index.d.mts +10 -6
  164. package/dist/esm/api/types/index.mjs +10 -6
  165. package/dist/esm/version.d.mts +1 -1
  166. package/dist/esm/version.mjs +1 -1
  167. package/package.json +83 -82
  168. package/reference.md +232 -15
@@ -1,11 +1,7 @@
1
1
  export * from "./AccountNotFoundError.mjs";
2
2
  export * from "./AccountView.mjs";
3
- export * from "./AppApiV2MarketplaceSkillsViewsParameterSchema.mjs";
4
- export * from "./AppApiV2MarketplaceSkillsViewsParameterType.mjs";
5
- export * from "./AppApiV2SkillsViewsInsufficientCreditsError.mjs";
6
- export * from "./AppApiV2SkillsViewsParameterSchema.mjs";
7
- export * from "./AppApiV2SkillsViewsParameterType.mjs";
8
- export * from "./AppViewsV2ErrorViewsInsufficientCreditsError.mjs";
3
+ export * from "./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs";
4
+ export * from "./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs";
9
5
  export * from "./BadRequestErrorBody.mjs";
10
6
  export * from "./BrowserSessionItemView.mjs";
11
7
  export * from "./BrowserSessionListResponse.mjs";
@@ -13,9 +9,13 @@ export * from "./BrowserSessionStatus.mjs";
13
9
  export * from "./BrowserSessionUpdateAction.mjs";
14
10
  export * from "./BrowserSessionView.mjs";
15
11
  export * from "./CannotDeleteSkillWhileGeneratingError.mjs";
12
+ export * from "./CannotRollbackPublicSkillError.mjs";
13
+ export * from "./CommonUtilsErrorsInsufficientCreditsError.mjs";
16
14
  export * from "./ConcurrentSkillCreationsError.mjs";
17
15
  export * from "./CreateSkillResponse.mjs";
18
16
  export * from "./DownloadUrlGenerationError.mjs";
17
+ export * from "./EnabledSkillsLimitExceededError.mjs";
18
+ export * from "./ExecuteSkillRequest.mjs";
19
19
  export * from "./ExecuteSkillResponse.mjs";
20
20
  export * from "./FileView.mjs";
21
21
  export * from "./GenerationNotCancellableError.mjs";
@@ -25,6 +25,8 @@ export * from "./MarketplaceSkillListResponse.mjs";
25
25
  export * from "./MarketplaceSkillResponse.mjs";
26
26
  export * from "./NotFoundErrorBody.mjs";
27
27
  export * from "./OutputFileNotFoundError.mjs";
28
+ export * from "./ParameterSchema.mjs";
29
+ export * from "./ParameterType.mjs";
28
30
  export * from "./PlanInfo.mjs";
29
31
  export * from "./ProfileListResponse.mjs";
30
32
  export * from "./ProfileNotFoundError.mjs";
@@ -42,6 +44,7 @@ export * from "./SessionUpdateAction.mjs";
42
44
  export * from "./SessionView.mjs";
43
45
  export * from "./ShareNotFoundError.mjs";
44
46
  export * from "./ShareView.mjs";
47
+ export * from "./SkillCategory.mjs";
45
48
  export * from "./SkillListResponse.mjs";
46
49
  export * from "./SkillNotFinishedError.mjs";
47
50
  export * from "./SkillNotFoundError.mjs";
@@ -63,6 +66,7 @@ export * from "./UnsupportedContentTypeError.mjs";
63
66
  export * from "./UploadFilePresignedUrlResponse.mjs";
64
67
  export * from "./UploadFileRequest.mjs";
65
68
  export * from "./ValidationError.mjs";
69
+ export * from "./WorkflowCreateFromTaskResponse.mjs";
66
70
  export * from "./WorkflowExecutionCreatedResponse.mjs";
67
71
  export * from "./WorkflowExecutionItemView.mjs";
68
72
  export * from "./WorkflowExecutionListResponse.mjs";
@@ -1,11 +1,7 @@
1
1
  export * from "./AccountNotFoundError.mjs";
2
2
  export * from "./AccountView.mjs";
3
- export * from "./AppApiV2MarketplaceSkillsViewsParameterSchema.mjs";
4
- export * from "./AppApiV2MarketplaceSkillsViewsParameterType.mjs";
5
- export * from "./AppApiV2SkillsViewsInsufficientCreditsError.mjs";
6
- export * from "./AppApiV2SkillsViewsParameterSchema.mjs";
7
- export * from "./AppApiV2SkillsViewsParameterType.mjs";
8
- export * from "./AppViewsV2ErrorViewsInsufficientCreditsError.mjs";
3
+ export * from "./AppEndpointsApiV2MarketplaceSkillsViewsInsufficientCreditsError.mjs";
4
+ export * from "./AppEndpointsApiV2SkillsViewsInsufficientCreditsError.mjs";
9
5
  export * from "./BadRequestErrorBody.mjs";
10
6
  export * from "./BrowserSessionItemView.mjs";
11
7
  export * from "./BrowserSessionListResponse.mjs";
@@ -13,9 +9,13 @@ export * from "./BrowserSessionStatus.mjs";
13
9
  export * from "./BrowserSessionUpdateAction.mjs";
14
10
  export * from "./BrowserSessionView.mjs";
15
11
  export * from "./CannotDeleteSkillWhileGeneratingError.mjs";
12
+ export * from "./CannotRollbackPublicSkillError.mjs";
13
+ export * from "./CommonUtilsErrorsInsufficientCreditsError.mjs";
16
14
  export * from "./ConcurrentSkillCreationsError.mjs";
17
15
  export * from "./CreateSkillResponse.mjs";
18
16
  export * from "./DownloadUrlGenerationError.mjs";
17
+ export * from "./EnabledSkillsLimitExceededError.mjs";
18
+ export * from "./ExecuteSkillRequest.mjs";
19
19
  export * from "./ExecuteSkillResponse.mjs";
20
20
  export * from "./FileView.mjs";
21
21
  export * from "./GenerationNotCancellableError.mjs";
@@ -25,6 +25,8 @@ export * from "./MarketplaceSkillListResponse.mjs";
25
25
  export * from "./MarketplaceSkillResponse.mjs";
26
26
  export * from "./NotFoundErrorBody.mjs";
27
27
  export * from "./OutputFileNotFoundError.mjs";
28
+ export * from "./ParameterSchema.mjs";
29
+ export * from "./ParameterType.mjs";
28
30
  export * from "./PlanInfo.mjs";
29
31
  export * from "./ProfileListResponse.mjs";
30
32
  export * from "./ProfileNotFoundError.mjs";
@@ -42,6 +44,7 @@ export * from "./SessionUpdateAction.mjs";
42
44
  export * from "./SessionView.mjs";
43
45
  export * from "./ShareNotFoundError.mjs";
44
46
  export * from "./ShareView.mjs";
47
+ export * from "./SkillCategory.mjs";
45
48
  export * from "./SkillListResponse.mjs";
46
49
  export * from "./SkillNotFinishedError.mjs";
47
50
  export * from "./SkillNotFoundError.mjs";
@@ -63,6 +66,7 @@ export * from "./UnsupportedContentTypeError.mjs";
63
66
  export * from "./UploadFilePresignedUrlResponse.mjs";
64
67
  export * from "./UploadFileRequest.mjs";
65
68
  export * from "./ValidationError.mjs";
69
+ export * from "./WorkflowCreateFromTaskResponse.mjs";
66
70
  export * from "./WorkflowExecutionCreatedResponse.mjs";
67
71
  export * from "./WorkflowExecutionItemView.mjs";
68
72
  export * from "./WorkflowExecutionListResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.11";
1
+ export declare const SDK_VERSION = "2.0.13";
@@ -1 +1 @@
1
- export const SDK_VERSION = "2.0.11";
1
+ export const SDK_VERSION = "2.0.13";
package/package.json CHANGED
@@ -1,84 +1,85 @@
1
1
  {
2
- "name": "browser-use-sdk",
3
- "version": "2.0.11",
4
- "private": false,
5
- "repository": "github:browser-use/browser-use-node",
6
- "type": "commonjs",
7
- "main": "./dist/cjs/index.js",
8
- "module": "./dist/esm/index.mjs",
9
- "types": "./dist/cjs/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/cjs/index.d.ts",
13
- "import": {
14
- "types": "./dist/esm/index.d.mts",
15
- "default": "./dist/esm/index.mjs"
16
- },
17
- "require": {
18
- "types": "./dist/cjs/index.d.ts",
19
- "default": "./dist/cjs/index.js"
20
- },
21
- "default": "./dist/cjs/index.js"
2
+ "name": "browser-use-sdk",
3
+ "version": "2.0.13",
4
+ "private": false,
5
+ "repository": "github:browser-use/browser-use-node",
6
+ "type": "commonjs",
7
+ "main": "./dist/cjs/index.js",
8
+ "module": "./dist/esm/index.mjs",
9
+ "types": "./dist/cjs/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/cjs/index.d.ts",
13
+ "import": {
14
+ "types": "./dist/esm/index.d.mts",
15
+ "default": "./dist/esm/index.mjs"
16
+ },
17
+ "require": {
18
+ "types": "./dist/cjs/index.d.ts",
19
+ "default": "./dist/cjs/index.js"
20
+ },
21
+ "default": "./dist/cjs/index.js"
22
+ },
23
+ "./package.json": "./package.json"
22
24
  },
23
- "./package.json": "./package.json"
24
- },
25
- "files": [
26
- "dist",
27
- "reference.md",
28
- "README.md",
29
- "LICENSE"
30
- ],
31
- "dependencies": {
32
- "fast-json-stable-stringify": "^2.1.0"
33
- },
34
- "peerDependencies": {
35
- "react": "^18 || ^19",
36
- "zod": "^4"
37
- },
38
- "devDependencies": {
39
- "webpack": "^5.97.1",
40
- "ts-loader": "^9.5.1",
41
- "vitest": "^3.2.4",
42
- "msw": "2.11.2",
43
- "@types/node": "^18.19.70",
44
- "typescript": "~5.7.2",
45
- "@biomejs/biome": "2.3.1",
46
- "@dotenvx/dotenvx": "^1.49.0",
47
- "react": "^19.1.1",
48
- "react-dom": "^19.1.1",
49
- "tsconfig-paths": "^4.2.0",
50
- "ts-node": "^10.5.0",
51
- "zod": "^4"
52
- },
53
- "browser": {
54
- "fs": false,
55
- "os": false,
56
- "path": false,
57
- "stream": false
58
- },
59
- "engines": {
60
- "node": ">=18.0.0"
61
- },
62
- "sideEffects": false,
63
- "description": "The official TypeScript library for the Browser Use API",
64
- "author": {
65
- "name": "Browser Use",
66
- "url": "https://browser-use.com",
67
- "email": "support@browser-use.com"
68
- },
69
- "scripts": {
70
- "format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
71
- "format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
72
- "lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
73
- "lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
74
- "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
75
- "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
76
- "build": "pnpm build:cjs && pnpm build:esm",
77
- "build:cjs": "tsc --project ./tsconfig.cjs.json",
78
- "build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
79
- "test": "vitest",
80
- "test:unit": "vitest --project unit",
81
- "test:wire": "vitest --project wire",
82
- "tsn": "ts-node -r tsconfig-paths/register"
83
- }
84
- }
25
+ "files": [
26
+ "dist",
27
+ "reference.md",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "scripts": {
32
+ "format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
33
+ "format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
34
+ "lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
35
+ "lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
36
+ "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
37
+ "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
38
+ "build": "pnpm build:cjs && pnpm build:esm",
39
+ "build:cjs": "tsc --project ./tsconfig.cjs.json",
40
+ "build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
41
+ "test": "vitest",
42
+ "test:unit": "vitest --project unit",
43
+ "test:wire": "vitest --project wire",
44
+ "tsn": "ts-node -r tsconfig-paths/register"
45
+ },
46
+ "dependencies": {
47
+ "fast-json-stable-stringify": "^2.1.0"
48
+ },
49
+ "peerDependencies": {
50
+ "react": "^18 || ^19",
51
+ "zod": "^4"
52
+ },
53
+ "devDependencies": {
54
+ "webpack": "^5.97.1",
55
+ "ts-loader": "^9.5.1",
56
+ "vitest": "^3.2.4",
57
+ "msw": "2.11.2",
58
+ "@types/node": "^18.19.70",
59
+ "typescript": "~5.7.2",
60
+ "@biomejs/biome": "2.3.1",
61
+ "@dotenvx/dotenvx": "^1.49.0",
62
+ "react": "^19.1.1",
63
+ "react-dom": "^19.1.1",
64
+ "tsconfig-paths": "^4.2.0",
65
+ "ts-node": "^10.5.0",
66
+ "zod": "^4"
67
+ },
68
+ "browser": {
69
+ "fs": false,
70
+ "os": false,
71
+ "path": false,
72
+ "stream": false
73
+ },
74
+ "packageManager": "pnpm@10.20.0",
75
+ "engines": {
76
+ "node": ">=18.0.0"
77
+ },
78
+ "sideEffects": false,
79
+ "description": "The official TypeScript library for the Browser Use API",
80
+ "author": {
81
+ "name": "Browser Use",
82
+ "url": "https://browser-use.com",
83
+ "email": "support@browser-use.com"
84
+ }
85
+ }
package/reference.md CHANGED
@@ -12,7 +12,7 @@
12
12
  <dl>
13
13
  <dd>
14
14
 
15
- Get authenticated account information including credit balances and account details.
15
+ Get authenticated account information including credit balance and account details.
16
16
  </dd>
17
17
  </dl>
18
18
  </dd>
@@ -131,9 +131,15 @@ await client.tasks.listTasks();
131
131
  <dl>
132
132
  <dd>
133
133
 
134
+ Create and start a new task.
135
+
134
136
  You can either:
135
- 1. Start a new task (auto creates a new simple session)
136
- 2. Start a new task in an existing session (you can create a custom session before starting the task and reuse it for follow-up tasks)
137
+ 1. Start a new task without a sessionId (auto-creates a session with US proxy by default)
138
+ 2. Start a new task in an existing session (reuse for follow-up tasks or custom configuration)
139
+
140
+ Important: Proxy configuration (proxyCountryCode) is a session-level setting, not a task-level setting.
141
+ To use a custom proxy location, create a session first via POST /sessions with your desired proxyCountryCode,
142
+ then pass that sessionId when creating tasks.
137
143
  </dd>
138
144
  </dl>
139
145
  </dd>
@@ -1512,16 +1518,18 @@ await client.browsers.listBrowserSessions();
1512
1518
 
1513
1519
  Create a new browser session.
1514
1520
 
1515
- **Pricing:** Browser sessions are charged at $0.05 per hour.
1516
- The full hourly rate is charged upfront when the session starts.
1521
+ **Pricing:** Browser sessions are charged per hour with tiered pricing:
1522
+ - Pay As You Go users: $0.06/hour
1523
+ - Business/Scaleup subscribers: $0.03/hour (50% discount)
1524
+
1525
+ The full rate is charged upfront when the session starts.
1517
1526
  When you stop the session, any unused time is automatically refunded proportionally.
1518
1527
 
1519
- Billing is rounded to the nearest minute (minimum 1 minute).
1520
- For example, if you stop a session after 30 minutes, you'll be refunded $0.025.
1528
+ Billing is rounded up to the minute (minimum 1 minute).
1529
+ For example, if you stop a session after 30 minutes, you'll be refunded half the charged amount.
1521
1530
 
1522
1531
  **Session Limits:**
1523
- - Free users (without active subscription): Maximum 15 minutes per session
1524
- - Paid subscribers: Up to 4 hours per session
1532
+ - All users: Up to 4 hours per session
1525
1533
  </dd>
1526
1534
  </dl>
1527
1535
  </dd>
@@ -2077,7 +2085,72 @@ await client.skills.cancelGeneration({
2077
2085
  <dl>
2078
2086
  <dd>
2079
2087
 
2080
- **request:** `BrowserUse.CancelGenerationSkillsSkillIdCancelGenerationPostRequest`
2088
+ **request:** `BrowserUse.CancelGenerationSkillsSkillIdCancelPostRequest`
2089
+
2090
+ </dd>
2091
+ </dl>
2092
+
2093
+ <dl>
2094
+ <dd>
2095
+
2096
+ **requestOptions:** `Skills.RequestOptions`
2097
+
2098
+ </dd>
2099
+ </dl>
2100
+ </dd>
2101
+ </dl>
2102
+
2103
+
2104
+ </dd>
2105
+ </dl>
2106
+ </details>
2107
+
2108
+ <details><summary><code>client.skills.<a href="/src/api/resources/skills/client/Client.ts">rollbackSkill</a>({ ...params }) -> BrowserUse.SkillResponse</code></summary>
2109
+ <dl>
2110
+ <dd>
2111
+
2112
+ #### 📝 Description
2113
+
2114
+ <dl>
2115
+ <dd>
2116
+
2117
+ <dl>
2118
+ <dd>
2119
+
2120
+ Rollback to the previous version (cannot be undone).
2121
+ </dd>
2122
+ </dl>
2123
+ </dd>
2124
+ </dl>
2125
+
2126
+ #### 🔌 Usage
2127
+
2128
+ <dl>
2129
+ <dd>
2130
+
2131
+ <dl>
2132
+ <dd>
2133
+
2134
+ ```typescript
2135
+ await client.skills.rollbackSkill({
2136
+ skill_id: "skill_id"
2137
+ });
2138
+
2139
+ ```
2140
+ </dd>
2141
+ </dl>
2142
+ </dd>
2143
+ </dl>
2144
+
2145
+ #### ⚙️ Parameters
2146
+
2147
+ <dl>
2148
+ <dd>
2149
+
2150
+ <dl>
2151
+ <dd>
2152
+
2153
+ **request:** `BrowserUse.RollbackSkillSkillsSkillIdRollbackPostRequest`
2081
2154
 
2082
2155
  </dd>
2083
2156
  </dl>
@@ -2125,7 +2198,8 @@ Execute a skill with the provided parameters.
2125
2198
 
2126
2199
  ```typescript
2127
2200
  await client.skills.executeSkill({
2128
- skill_id: "skill_id"
2201
+ skill_id: "skill_id",
2202
+ body: {}
2129
2203
  });
2130
2204
 
2131
2205
  ```
@@ -2142,7 +2216,7 @@ await client.skills.executeSkill({
2142
2216
  <dl>
2143
2217
  <dd>
2144
2218
 
2145
- **request:** `BrowserUse.ExecuteSkillRequest`
2219
+ **request:** `BrowserUse.ExecuteSkillSkillsSkillIdExecutePostRequest`
2146
2220
 
2147
2221
  </dd>
2148
2222
  </dl>
@@ -2320,7 +2394,7 @@ Get details of a specific public skill from the marketplace.
2320
2394
 
2321
2395
  ```typescript
2322
2396
  await client.skillsMarketplace.getSkill({
2323
- skill_id: "skill_id"
2397
+ skill_slug: "skill_slug"
2324
2398
  });
2325
2399
 
2326
2400
  ```
@@ -2337,7 +2411,7 @@ await client.skillsMarketplace.getSkill({
2337
2411
  <dl>
2338
2412
  <dd>
2339
2413
 
2340
- **request:** `BrowserUse.GetSkillMarketplaceSkillsSkillIdGetRequest`
2414
+ **request:** `BrowserUse.GetSkillMarketplaceSkillsSkillSlugGetRequest`
2341
2415
 
2342
2416
  </dd>
2343
2417
  </dl>
@@ -2357,7 +2431,7 @@ await client.skillsMarketplace.getSkill({
2357
2431
  </dl>
2358
2432
  </details>
2359
2433
 
2360
- <details><summary><code>client.skillsMarketplace.<a href="/src/api/resources/skillsMarketplace/client/Client.ts">cloneSkill</a>({ ...params }) -> BrowserUse.MarketplaceSkillResponse</code></summary>
2434
+ <details><summary><code>client.skillsMarketplace.<a href="/src/api/resources/skillsMarketplace/client/Client.ts">cloneSkill</a>({ ...params }) -> BrowserUse.SkillResponse</code></summary>
2361
2435
  <dl>
2362
2436
  <dd>
2363
2437
 
@@ -2418,6 +2492,72 @@ await client.skillsMarketplace.cloneSkill({
2418
2492
  </dl>
2419
2493
 
2420
2494
 
2495
+ </dd>
2496
+ </dl>
2497
+ </details>
2498
+
2499
+ <details><summary><code>client.skillsMarketplace.<a href="/src/api/resources/skillsMarketplace/client/Client.ts">executeSkill</a>({ ...params }) -> BrowserUse.ExecuteSkillResponse</code></summary>
2500
+ <dl>
2501
+ <dd>
2502
+
2503
+ #### 📝 Description
2504
+
2505
+ <dl>
2506
+ <dd>
2507
+
2508
+ <dl>
2509
+ <dd>
2510
+
2511
+ Execute a skill with the provided parameters.
2512
+ </dd>
2513
+ </dl>
2514
+ </dd>
2515
+ </dl>
2516
+
2517
+ #### 🔌 Usage
2518
+
2519
+ <dl>
2520
+ <dd>
2521
+
2522
+ <dl>
2523
+ <dd>
2524
+
2525
+ ```typescript
2526
+ await client.skillsMarketplace.executeSkill({
2527
+ skill_id: "skill_id",
2528
+ body: {}
2529
+ });
2530
+
2531
+ ```
2532
+ </dd>
2533
+ </dl>
2534
+ </dd>
2535
+ </dl>
2536
+
2537
+ #### ⚙️ Parameters
2538
+
2539
+ <dl>
2540
+ <dd>
2541
+
2542
+ <dl>
2543
+ <dd>
2544
+
2545
+ **request:** `BrowserUse.ExecuteSkillMarketplaceSkillsSkillIdExecutePostRequest`
2546
+
2547
+ </dd>
2548
+ </dl>
2549
+
2550
+ <dl>
2551
+ <dd>
2552
+
2553
+ **requestOptions:** `SkillsMarketplace.RequestOptions`
2554
+
2555
+ </dd>
2556
+ </dl>
2557
+ </dd>
2558
+ </dl>
2559
+
2560
+
2421
2561
  </dd>
2422
2562
  </dl>
2423
2563
  </details>
@@ -2811,6 +2951,83 @@ await client.workflows.getWorkflowGenerationState({
2811
2951
  </dl>
2812
2952
 
2813
2953
 
2954
+ </dd>
2955
+ </dl>
2956
+ </details>
2957
+
2958
+ <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">createWorkflowFromTask</a>({ ...params }) -> BrowserUse.WorkflowCreateFromTaskResponse</code></summary>
2959
+ <dl>
2960
+ <dd>
2961
+
2962
+ #### 📝 Description
2963
+
2964
+ <dl>
2965
+ <dd>
2966
+
2967
+ <dl>
2968
+ <dd>
2969
+
2970
+ Create a workflow from an existing agent task's recorded history.
2971
+
2972
+ This endpoint creates a workflow by using the browser-use rerun history
2973
+ feature. The task must have completed with history stored in S3.
2974
+
2975
+ The workflow creation process:
2976
+ 1. Creates a new workflow record in pending state
2977
+ 2. Triggers an Inngest event to process the task history
2978
+ 3. The Inngest handler downloads history, detects variables, and updates the workflow
2979
+
2980
+ Use GET /workflows/{workflow_id} to poll for creation completion.
2981
+ </dd>
2982
+ </dl>
2983
+ </dd>
2984
+ </dl>
2985
+
2986
+ #### 🔌 Usage
2987
+
2988
+ <dl>
2989
+ <dd>
2990
+
2991
+ <dl>
2992
+ <dd>
2993
+
2994
+ ```typescript
2995
+ await client.workflows.createWorkflowFromTask({
2996
+ name: "name",
2997
+ taskId: "taskId",
2998
+ sessionId: "sessionId"
2999
+ });
3000
+
3001
+ ```
3002
+ </dd>
3003
+ </dl>
3004
+ </dd>
3005
+ </dl>
3006
+
3007
+ #### ⚙️ Parameters
3008
+
3009
+ <dl>
3010
+ <dd>
3011
+
3012
+ <dl>
3013
+ <dd>
3014
+
3015
+ **request:** `BrowserUse.WorkflowCreateFromTaskRequest`
3016
+
3017
+ </dd>
3018
+ </dl>
3019
+
3020
+ <dl>
3021
+ <dd>
3022
+
3023
+ **requestOptions:** `Workflows.RequestOptions`
3024
+
3025
+ </dd>
3026
+ </dl>
3027
+ </dd>
3028
+ </dl>
3029
+
3030
+
2814
3031
  </dd>
2815
3032
  </dl>
2816
3033
  </details>