browser-use-sdk 0.1.1 → 0.2.0

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/CHANGELOG.md +9 -0
  2. package/README.md +10 -10
  3. package/client.d.mts +9 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +9 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/lib/parse.d.mts +5 -9
  12. package/lib/parse.d.mts.map +1 -1
  13. package/lib/parse.d.ts +5 -9
  14. package/lib/parse.d.ts.map +1 -1
  15. package/lib/parse.js +7 -7
  16. package/lib/parse.js.map +1 -1
  17. package/lib/parse.mjs +7 -7
  18. package/lib/parse.mjs.map +1 -1
  19. package/lib/stream.d.mts +15 -0
  20. package/lib/stream.d.mts.map +1 -0
  21. package/lib/stream.d.ts +15 -0
  22. package/lib/stream.d.ts.map +1 -0
  23. package/lib/stream.js +44 -0
  24. package/lib/stream.js.map +1 -0
  25. package/lib/stream.mjs +41 -0
  26. package/lib/stream.mjs.map +1 -0
  27. package/lib/types.d.mts +75 -0
  28. package/lib/types.d.mts.map +1 -0
  29. package/lib/types.d.ts +75 -0
  30. package/lib/types.d.ts.map +1 -0
  31. package/lib/types.js +14 -0
  32. package/lib/types.js.map +1 -0
  33. package/lib/types.mjs +10 -0
  34. package/lib/types.mjs.map +1 -0
  35. package/package.json +1 -1
  36. package/resources/agent-profiles.d.mts +94 -14
  37. package/resources/agent-profiles.d.mts.map +1 -1
  38. package/resources/agent-profiles.d.ts +94 -14
  39. package/resources/agent-profiles.d.ts.map +1 -1
  40. package/resources/agent-profiles.js +91 -6
  41. package/resources/agent-profiles.js.map +1 -1
  42. package/resources/agent-profiles.mjs +91 -6
  43. package/resources/agent-profiles.mjs.map +1 -1
  44. package/resources/browser-profiles.d.mts +91 -10
  45. package/resources/browser-profiles.d.mts.map +1 -1
  46. package/resources/browser-profiles.d.ts +91 -10
  47. package/resources/browser-profiles.d.ts.map +1 -1
  48. package/resources/browser-profiles.js +92 -6
  49. package/resources/browser-profiles.js.map +1 -1
  50. package/resources/browser-profiles.mjs +92 -6
  51. package/resources/browser-profiles.mjs.map +1 -1
  52. package/resources/index.d.mts +4 -3
  53. package/resources/index.d.mts.map +1 -1
  54. package/resources/index.d.ts +4 -3
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js +3 -1
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs +1 -0
  59. package/resources/index.mjs.map +1 -1
  60. package/resources/sessions/index.d.mts +1 -1
  61. package/resources/sessions/index.d.mts.map +1 -1
  62. package/resources/sessions/index.d.ts +1 -1
  63. package/resources/sessions/index.d.ts.map +1 -1
  64. package/resources/sessions/index.js.map +1 -1
  65. package/resources/sessions/index.mjs.map +1 -1
  66. package/resources/sessions/public-share.d.mts +59 -6
  67. package/resources/sessions/public-share.d.mts.map +1 -1
  68. package/resources/sessions/public-share.d.ts +59 -6
  69. package/resources/sessions/public-share.d.ts.map +1 -1
  70. package/resources/sessions/public-share.js +62 -4
  71. package/resources/sessions/public-share.js.map +1 -1
  72. package/resources/sessions/public-share.mjs +62 -4
  73. package/resources/sessions/public-share.mjs.map +1 -1
  74. package/resources/sessions/sessions.d.mts +117 -22
  75. package/resources/sessions/sessions.d.mts.map +1 -1
  76. package/resources/sessions/sessions.d.ts +117 -22
  77. package/resources/sessions/sessions.d.ts.map +1 -1
  78. package/resources/sessions/sessions.js +80 -3
  79. package/resources/sessions/sessions.js.map +1 -1
  80. package/resources/sessions/sessions.mjs +80 -3
  81. package/resources/sessions/sessions.mjs.map +1 -1
  82. package/resources/tasks.d.mts +332 -108
  83. package/resources/tasks.d.mts.map +1 -1
  84. package/resources/tasks.d.ts +332 -108
  85. package/resources/tasks.d.ts.map +1 -1
  86. package/resources/tasks.js +207 -22
  87. package/resources/tasks.js.map +1 -1
  88. package/resources/tasks.mjs +207 -22
  89. package/resources/tasks.mjs.map +1 -1
  90. package/resources/users/index.d.mts +3 -0
  91. package/resources/users/index.d.mts.map +1 -0
  92. package/resources/users/index.d.ts +3 -0
  93. package/resources/users/index.d.ts.map +1 -0
  94. package/resources/users/index.js +9 -0
  95. package/resources/users/index.js.map +1 -0
  96. package/resources/users/index.mjs +4 -0
  97. package/resources/users/index.mjs.map +1 -0
  98. package/resources/users/me/files.d.mts +64 -0
  99. package/resources/users/me/files.d.mts.map +1 -0
  100. package/resources/users/me/files.d.ts +64 -0
  101. package/resources/users/me/files.d.ts.map +1 -0
  102. package/resources/users/me/files.js +43 -0
  103. package/resources/users/me/files.js.map +1 -0
  104. package/resources/users/me/files.mjs +39 -0
  105. package/resources/users/me/files.mjs.map +1 -0
  106. package/resources/users/me/index.d.mts +3 -0
  107. package/resources/users/me/index.d.mts.map +1 -0
  108. package/resources/users/me/index.d.ts +3 -0
  109. package/resources/users/me/index.d.ts.map +1 -0
  110. package/resources/users/me/index.js +9 -0
  111. package/resources/users/me/index.js.map +1 -0
  112. package/resources/users/me/index.mjs +4 -0
  113. package/resources/users/me/index.mjs.map +1 -0
  114. package/resources/users/me/me.d.mts +50 -0
  115. package/resources/users/me/me.d.mts.map +1 -0
  116. package/resources/users/me/me.d.ts +50 -0
  117. package/resources/users/me/me.d.ts.map +1 -0
  118. package/resources/users/me/me.js +41 -0
  119. package/resources/users/me/me.js.map +1 -0
  120. package/resources/users/me/me.mjs +36 -0
  121. package/resources/users/me/me.mjs.map +1 -0
  122. package/resources/users/me.d.mts +2 -0
  123. package/resources/users/me.d.mts.map +1 -0
  124. package/resources/users/me.d.ts +2 -0
  125. package/resources/users/me.d.ts.map +1 -0
  126. package/resources/users/me.js +6 -0
  127. package/resources/users/me.js.map +1 -0
  128. package/resources/users/me.mjs +3 -0
  129. package/resources/users/me.mjs.map +1 -0
  130. package/resources/users/users.d.mts +10 -0
  131. package/resources/users/users.d.mts.map +1 -0
  132. package/resources/users/users.d.ts +10 -0
  133. package/resources/users/users.d.ts.map +1 -0
  134. package/resources/users/users.js +17 -0
  135. package/resources/users/users.js.map +1 -0
  136. package/resources/users/users.mjs +12 -0
  137. package/resources/users/users.mjs.map +1 -0
  138. package/resources/users.d.mts +2 -0
  139. package/resources/users.d.mts.map +1 -0
  140. package/resources/users.d.ts +2 -0
  141. package/resources/users.d.ts.map +1 -0
  142. package/resources/users.js +6 -0
  143. package/resources/users.js.map +1 -0
  144. package/resources/users.mjs +3 -0
  145. package/resources/users.mjs.map +1 -0
  146. package/src/client.ts +21 -14
  147. package/src/lib/parse.ts +12 -24
  148. package/src/lib/stream.ts +70 -0
  149. package/src/lib/types.ts +73 -0
  150. package/src/resources/agent-profiles.ts +101 -19
  151. package/src/resources/browser-profiles.ts +95 -12
  152. package/src/resources/index.ts +9 -7
  153. package/src/resources/sessions/index.ts +1 -1
  154. package/src/resources/sessions/public-share.ts +64 -8
  155. package/src/resources/sessions/sessions.ts +130 -26
  156. package/src/resources/tasks.ts +479 -146
  157. package/src/resources/users/index.ts +4 -0
  158. package/src/resources/users/me/files.ts +95 -0
  159. package/src/resources/users/me/index.ts +4 -0
  160. package/src/resources/users/me/me.ts +68 -0
  161. package/src/resources/users/me.ts +3 -0
  162. package/src/resources/users/users.ts +15 -0
  163. package/src/resources/users.ts +3 -0
  164. package/src/version.ts +1 -1
  165. package/version.d.mts +1 -1
  166. package/version.d.ts +1 -1
  167. package/version.js +1 -1
  168. package/version.mjs +1 -1
@@ -0,0 +1,15 @@
1
+ import type { TaskView, TaskStepView } from "../resources/tasks.js";
2
+ export type ReducerEvent = TaskView | null;
3
+ export type BrowserState = Readonly<{
4
+ taskId: string;
5
+ sessionId: string;
6
+ liveUrl: string | null;
7
+ steps: ReadonlyArray<TaskStepView>;
8
+ }> | null;
9
+ type BrowserAction = {
10
+ kind: 'status';
11
+ status: TaskView;
12
+ };
13
+ export declare function reducer(state: BrowserState, action: BrowserAction): [BrowserState, ReducerEvent];
14
+ export {};
15
+ //# sourceMappingURL=stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/lib/stream.ts"],"names":[],"mappings":"OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE;AAGtC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,IAAI,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CACpC,CAAC,GAAG,IAAI,CAAC;AAEV,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAkDhG"}
package/lib/stream.js ADDED
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reducer = reducer;
4
+ const types_1 = require("./types.js");
5
+ function reducer(state, action) {
6
+ switch (action.kind) {
7
+ case 'status': {
8
+ // INIT
9
+ if (state == null) {
10
+ const liveUrl = action.status.sessionLiveUrl ?? null;
11
+ const state = {
12
+ taskId: action.status.id,
13
+ sessionId: action.status.sessionId,
14
+ liveUrl: liveUrl,
15
+ steps: action.status.steps,
16
+ };
17
+ return [state, action.status];
18
+ }
19
+ // UPDATE
20
+ const liveUrl = action.status.sessionLiveUrl ?? null;
21
+ const steps = [...state.steps];
22
+ if (action.status.steps != null) {
23
+ const newSteps = action.status.steps.slice(state.steps.length);
24
+ for (const step of newSteps) {
25
+ steps.push(step);
26
+ }
27
+ }
28
+ const newState = { ...state, liveUrl, steps };
29
+ // CHANGES
30
+ if ((state.liveUrl == null && liveUrl != null) || state.steps.length !== steps.length) {
31
+ const update = {
32
+ ...action.status,
33
+ steps: steps,
34
+ sessionLiveUrl: liveUrl,
35
+ };
36
+ return [newState, update];
37
+ }
38
+ return [newState, null];
39
+ }
40
+ default:
41
+ throw new types_1.ExhaustiveSwitchCheck(action.kind);
42
+ }
43
+ }
44
+ //# sourceMappingURL=stream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.js","sourceRoot":"","sources":["../src/lib/stream.ts"],"names":[],"mappings":";;AAmBA,0BAkDC;AApED,sCAAgD;AAkBhD,SAAgB,OAAO,CAAC,KAAmB,EAAE,MAAqB;IAChE,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,OAAO;YAEP,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;gBAClB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,IAAI,IAAI,CAAC;gBAErD,MAAM,KAAK,GAAiB;oBAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;oBACxB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS;oBAClC,OAAO,EAAE,OAAO;oBAChB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;iBAC3B,CAAC;gBAEF,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YAED,SAAS;YAET,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,IAAI,IAAI,CAAC;YACrD,MAAM,KAAK,GAAmB,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;YAE/C,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;gBAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE/D,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;oBAC5B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACnB,CAAC;YACH,CAAC;YAED,MAAM,QAAQ,GAAiB,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YAE5D,UAAU;YAEV,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;gBACtF,MAAM,MAAM,GAAiB;oBAC3B,GAAG,MAAM,CAAC,MAAM;oBAChB,KAAK,EAAE,KAAK;oBACZ,cAAc,EAAE,OAAO;iBACxB,CAAC;gBAEF,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAC5B,CAAC;YAED,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1B,CAAC;QACD;YACE,MAAM,IAAI,6BAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;AACH,CAAC"}
package/lib/stream.mjs ADDED
@@ -0,0 +1,41 @@
1
+ import { ExhaustiveSwitchCheck } from "./types.mjs";
2
+ export function reducer(state, action) {
3
+ switch (action.kind) {
4
+ case 'status': {
5
+ // INIT
6
+ if (state == null) {
7
+ const liveUrl = action.status.sessionLiveUrl ?? null;
8
+ const state = {
9
+ taskId: action.status.id,
10
+ sessionId: action.status.sessionId,
11
+ liveUrl: liveUrl,
12
+ steps: action.status.steps,
13
+ };
14
+ return [state, action.status];
15
+ }
16
+ // UPDATE
17
+ const liveUrl = action.status.sessionLiveUrl ?? null;
18
+ const steps = [...state.steps];
19
+ if (action.status.steps != null) {
20
+ const newSteps = action.status.steps.slice(state.steps.length);
21
+ for (const step of newSteps) {
22
+ steps.push(step);
23
+ }
24
+ }
25
+ const newState = { ...state, liveUrl, steps };
26
+ // CHANGES
27
+ if ((state.liveUrl == null && liveUrl != null) || state.steps.length !== steps.length) {
28
+ const update = {
29
+ ...action.status,
30
+ steps: steps,
31
+ sessionLiveUrl: liveUrl,
32
+ };
33
+ return [newState, update];
34
+ }
35
+ return [newState, null];
36
+ }
37
+ default:
38
+ throw new ExhaustiveSwitchCheck(action.kind);
39
+ }
40
+ }
41
+ //# sourceMappingURL=stream.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.mjs","sourceRoot":"","sources":["../src/lib/stream.ts"],"names":[],"mappings":"OACO,EAAE,qBAAqB,EAAE;AAkBhC,MAAM,UAAU,OAAO,CAAC,KAAmB,EAAE,MAAqB;IAChE,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,QAAQ,CAAC,CAAC,CAAC;YACd,OAAO;YAEP,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;gBAClB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,IAAI,IAAI,CAAC;gBAErD,MAAM,KAAK,GAAiB;oBAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;oBACxB,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS;oBAClC,OAAO,EAAE,OAAO;oBAChB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;iBAC3B,CAAC;gBAEF,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YAED,SAAS;YAET,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,IAAI,IAAI,CAAC;YACrD,MAAM,KAAK,GAAmB,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;YAE/C,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;gBAChC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE/D,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;oBAC5B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACnB,CAAC;YACH,CAAC;YAED,MAAM,QAAQ,GAAiB,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YAE5D,UAAU;YAEV,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;gBACtF,MAAM,MAAM,GAAiB;oBAC3B,GAAG,MAAM,CAAC,MAAM;oBAChB,KAAK,EAAE,KAAK;oBACZ,cAAc,EAAE,OAAO;iBACxB,CAAC;gBAEF,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YAC5B,CAAC;YAED,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC1B,CAAC;QACD;YACE,MAAM,IAAI,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;AACH,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Distributive Pick - does not collapse unions into a "shared type" only to
3
+ * run Pick on it. Instead, it "picks" from each union item separately.
4
+ *
5
+ * See https://github.com/klimashkin/css-modules-theme/pull/8
6
+ *
7
+ * Example:
8
+ * Pick<{ type: "pick" } | { type: "omit" }, "type">
9
+ * produces { type: "pick" | "omit" }
10
+ *
11
+ * UnionPick<{ type: "pick" } | { type: "omit" }, "type">
12
+ * produces { type: "pick" } | { type: "omit" }
13
+ */
14
+ export type UnionPick<T, K extends keyof T> = T extends unknown ? Pick<T, K> : never;
15
+ /**
16
+ * Like UnionPick, but for Omit
17
+ */
18
+ export type UnionOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
19
+ /**
20
+ * Utility type for properties that may be undefined until loaded.
21
+ */
22
+ export type Loadable<T> = ({
23
+ loading: true;
24
+ } & {
25
+ [K in keyof T]?: never;
26
+ }) | ({
27
+ loading: false;
28
+ } & T);
29
+ /**
30
+ * Utility type that removes null fields from a type.
31
+ */
32
+ export type DeepRequired<T> = {
33
+ [P in keyof T]: Exclude<T[P], null>;
34
+ };
35
+ /**
36
+ * Makes a type check that is only valid when all cases of a switch
37
+ * statement have been convered.
38
+ */
39
+ export declare class ExhaustiveSwitchCheck extends Error {
40
+ constructor(val: never);
41
+ }
42
+ /**
43
+ * A utiliy type that lets you extract a union member by its `kind` property.
44
+ *
45
+ * @example
46
+ *
47
+ * type Shape =
48
+ * | { kind: 'circle'; radius: number }
49
+ * | { kind: 'square'; sideLength: number }
50
+ * | { kind: 'rectangle'; width: number; height: number };
51
+ *
52
+ * type Circle = ExtractKind<Shape, 'circle'>; // { kind: 'circle'; radius: number }
53
+ */
54
+ export type ExtractKind<T, K> = T extends {
55
+ kind: K;
56
+ } ? T : never;
57
+ /**
58
+ * A utiliy type that lets you extract a union member by its `ok` property.
59
+ *
60
+ * @example
61
+ *
62
+ * type Result = { ok: true; value: string } | { ok: false; error: string };
63
+ *
64
+ * type Ok = ExtractResult<Result, true>; // { ok: true; value: string }
65
+ */
66
+ export type ExtractResult<T, K extends boolean> = T extends {
67
+ ok: K;
68
+ } ? T : never;
69
+ /**
70
+ * Creates a deep readonly object mutable.
71
+ */
72
+ export type DeepMutable<T> = {
73
+ -readonly [P in keyof T]: T[P] extends object ? DeepMutable<T[P]> : T[P];
74
+ };
75
+ //# sourceMappingURL=types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAErF;;GAEG;AACH,MAAM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- does not collapse unions into a "shared type" only to
3
+ * run Pick on it. Instead, it "picks" from each union item separately.
4
+ *
5
+ * See https://github.com/klimashkin/css-modules-theme/pull/8
6
+ *
7
+ * Example:
8
+ * Pick<{ type: "pick" } | { type: "omit" }, "type">
9
+ * produces { type: "pick" | "omit" }
10
+ *
11
+ * UnionPick<{ type: "pick" } | { type: "omit" }, "type">
12
+ * produces { type: "pick" } | { type: "omit" }
13
+ */
14
+ export type UnionPick<T, K extends keyof T> = T extends unknown ? Pick<T, K> : never;
15
+ /**
16
+ * Like UnionPick, but for Omit
17
+ */
18
+ export type UnionOmit<T, K extends keyof T> = T extends unknown ? Omit<T, K> : never;
19
+ /**
20
+ * Utility type for properties that may be undefined until loaded.
21
+ */
22
+ export type Loadable<T> = ({
23
+ loading: true;
24
+ } & {
25
+ [K in keyof T]?: never;
26
+ }) | ({
27
+ loading: false;
28
+ } & T);
29
+ /**
30
+ * Utility type that removes null fields from a type.
31
+ */
32
+ export type DeepRequired<T> = {
33
+ [P in keyof T]: Exclude<T[P], null>;
34
+ };
35
+ /**
36
+ * Makes a type check that is only valid when all cases of a switch
37
+ * statement have been convered.
38
+ */
39
+ export declare class ExhaustiveSwitchCheck extends Error {
40
+ constructor(val: never);
41
+ }
42
+ /**
43
+ * A utiliy type that lets you extract a union member by its `kind` property.
44
+ *
45
+ * @example
46
+ *
47
+ * type Shape =
48
+ * | { kind: 'circle'; radius: number }
49
+ * | { kind: 'square'; sideLength: number }
50
+ * | { kind: 'rectangle'; width: number; height: number };
51
+ *
52
+ * type Circle = ExtractKind<Shape, 'circle'>; // { kind: 'circle'; radius: number }
53
+ */
54
+ export type ExtractKind<T, K> = T extends {
55
+ kind: K;
56
+ } ? T : never;
57
+ /**
58
+ * A utiliy type that lets you extract a union member by its `ok` property.
59
+ *
60
+ * @example
61
+ *
62
+ * type Result = { ok: true; value: string } | { ok: false; error: string };
63
+ *
64
+ * type Ok = ExtractResult<Result, true>; // { ok: true; value: string }
65
+ */
66
+ export type ExtractResult<T, K extends boolean> = T extends {
67
+ ok: K;
68
+ } ? T : never;
69
+ /**
70
+ * Creates a deep readonly object mutable.
71
+ */
72
+ export type DeepMutable<T> = {
73
+ -readonly [P in keyof T]: T[P] extends object ? DeepMutable<T[P]> : T[P];
74
+ };
75
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CAAE,CAAC,GAAG,CAAC;IAAE,OAAO,EAAE,KAAK,CAAA;CAAE,GAAG,CAAC,CAAC,CAAC;AAEtG;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,GAAG,EAAE,KAAK;CAGvB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,IAAI,CAAC,SAAS;IAAE,EAAE,EAAE,CAAC,CAAA;CAAE,GAAG,CAAC,GAAG,KAAK,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACzE,CAAC"}
package/lib/types.js ADDED
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExhaustiveSwitchCheck = void 0;
4
+ /**
5
+ * Makes a type check that is only valid when all cases of a switch
6
+ * statement have been convered.
7
+ */
8
+ class ExhaustiveSwitchCheck extends Error {
9
+ constructor(val) {
10
+ super(`Unreachable case: ${JSON.stringify(val)}`);
11
+ }
12
+ }
13
+ exports.ExhaustiveSwitchCheck = ExhaustiveSwitchCheck;
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":";;;AAgCA;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,KAAK;IAC9C,YAAY,GAAU;QACpB,KAAK,CAAC,qBAAqB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF;AAJD,sDAIC"}
package/lib/types.mjs ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Makes a type check that is only valid when all cases of a switch
3
+ * statement have been convered.
4
+ */
5
+ export class ExhaustiveSwitchCheck extends Error {
6
+ constructor(val) {
7
+ super(`Unreachable case: ${JSON.stringify(val)}`);
8
+ }
9
+ }
10
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../src/lib/types.ts"],"names":[],"mappings":"AAgCA;;;GAGG;AACH,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,YAAY,GAAU;QACpB,KAAK,CAAC,qBAAqB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-use-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "The official TypeScript library for the Browser Use API",
5
5
  "author": "Browser Use <support@browser-use.com>",
6
6
  "types": "./index.d.ts",
@@ -3,25 +3,106 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class AgentProfiles extends APIResource {
5
5
  /**
6
- * Create Agent Profile
6
+ * Create a new agent profile for the authenticated user.
7
+ *
8
+ * Agent profiles define how your AI agents behave during tasks. You can create
9
+ * multiple profiles for different use cases (e.g., customer support, data
10
+ * analysis, web scraping). Free users can create 1 profile; paid users can create
11
+ * unlimited profiles.
12
+ *
13
+ * Key features you can configure:
14
+ *
15
+ * - System prompt: The core instructions that define the agent's personality and
16
+ * behavior
17
+ * - Allowed domains: Restrict which websites the agent can access
18
+ * - Max steps: Limit how many actions the agent can take in a single task
19
+ * - Vision: Enable/disable the agent's ability to see and analyze screenshots
20
+ * - Thinking: Enable/disable the agent's reasoning process
21
+ *
22
+ * Args:
23
+ *
24
+ * - request: The agent profile configuration including name, description, and
25
+ * behavior settings
26
+ *
27
+ * Returns:
28
+ *
29
+ * - The newly created agent profile with all its details
30
+ *
31
+ * Raises:
32
+ *
33
+ * - 402: If user needs a subscription to create additional profiles
7
34
  */
8
35
  create(body: AgentProfileCreateParams, options?: RequestOptions): APIPromise<AgentProfileView>;
9
36
  /**
10
- * Get Agent Profile
37
+ * Get a specific agent profile by its ID.
38
+ *
39
+ * Retrieves the complete details of an agent profile, including all its
40
+ * configuration settings like system prompts, allowed domains, and behavior flags.
41
+ *
42
+ * Args:
43
+ *
44
+ * - profile_id: The unique identifier of the agent profile
45
+ *
46
+ * Returns:
47
+ *
48
+ * - Complete agent profile information
49
+ *
50
+ * Raises:
51
+ *
52
+ * - 404: If the user agent profile doesn't exist
11
53
  */
12
54
  retrieve(profileID: string, options?: RequestOptions): APIPromise<AgentProfileView>;
13
55
  /**
14
- * Update Agent Profile
56
+ * Update an existing agent profile.
57
+ *
58
+ * Modify any aspect of an agent profile, such as its name, description, system
59
+ * prompt, or behavior settings. Only the fields you provide will be updated; other
60
+ * fields remain unchanged.
61
+ *
62
+ * Args:
63
+ *
64
+ * - profile_id: The unique identifier of the agent profile to update
65
+ * - request: The fields to update (only provided fields will be changed)
66
+ *
67
+ * Returns:
68
+ *
69
+ * - The updated agent profile with all its current details
70
+ *
71
+ * Raises:
72
+ *
73
+ * - 404: If the user agent profile doesn't exist
15
74
  */
16
75
  update(profileID: string, body: AgentProfileUpdateParams, options?: RequestOptions): APIPromise<AgentProfileView>;
17
76
  /**
18
- * List Agent Profiles
77
+ * Get a paginated list of all agent profiles for the authenticated user.
78
+ *
79
+ * Agent profiles define how your AI agents behave, including their personality,
80
+ * capabilities, and limitations. Use this endpoint to see all your configured
81
+ * agent profiles.
82
+ *
83
+ * Returns:
84
+ *
85
+ * - A paginated list of agent profiles
86
+ * - Total count of profiles
87
+ * - Page information for navigation
19
88
  */
20
89
  list(query?: AgentProfileListParams | null | undefined, options?: RequestOptions): APIPromise<AgentProfileListResponse>;
21
90
  /**
22
- * Delete Agent Profile
91
+ * Delete an agent profile.
92
+ *
93
+ * Permanently removes an agent profile and all its configuration. This action
94
+ * cannot be undone. Any tasks that were using this profile will continue to work,
95
+ * but you won't be able to create new tasks with the deleted profile.
96
+ *
97
+ * Args:
98
+ *
99
+ * - profile_id: The unique identifier of the agent profile to delete
100
+ *
101
+ * Returns:
102
+ *
103
+ * - 204 No Content on successful deletion (idempotent)
23
104
  */
24
- delete(profileID: string, options?: RequestOptions): APIPromise<unknown>;
105
+ delete(profileID: string, options?: RequestOptions): APIPromise<void>;
25
106
  }
26
107
  /**
27
108
  * View model for representing an agent profile
@@ -32,20 +113,20 @@ export declare class AgentProfiles extends APIResource {
32
113
  * max_agent_steps: Maximum number of steps the agent can take before stopping
33
114
  * allowed_domains: List of domains the agent is allowed to access flash_mode:
34
115
  * Whether flash mode is enabled thinking: Whether thinking mode is enabled vision:
35
- * Whether vision capabilities are enabled system_prompt: Custom system prompt for
36
- * the agent (optionally set by the user) created_at: Timestamp when the profile
37
- * was created updated_at: Timestamp when the profile was last updated
116
+ * Whether vision capabilities are enabled custom_system_prompt_extension: Optional
117
+ * custom system prompt for the agent created_at: Timestamp when the profile was
118
+ * created updated_at: Timestamp when the profile was last updated
38
119
  */
39
120
  export interface AgentProfileView {
40
121
  id: string;
41
122
  allowedDomains: Array<string>;
42
123
  createdAt: string;
124
+ customSystemPromptExtension: string;
43
125
  description: string;
44
126
  flashMode: boolean;
45
127
  highlightElements: boolean;
46
128
  maxAgentSteps: number;
47
129
  name: string;
48
- systemPrompt: string;
49
130
  thinking: boolean;
50
131
  updatedAt: string;
51
132
  vision: boolean;
@@ -61,26 +142,25 @@ export interface AgentProfileListResponse {
61
142
  pageSize: number;
62
143
  totalItems: number;
63
144
  }
64
- export type AgentProfileDeleteResponse = unknown;
65
145
  export interface AgentProfileCreateParams {
66
146
  name: string;
67
147
  allowedDomains?: Array<string>;
148
+ customSystemPromptExtension?: string;
68
149
  description?: string;
69
150
  flashMode?: boolean;
70
151
  highlightElements?: boolean;
71
152
  maxAgentSteps?: number;
72
- systemPrompt?: string;
73
153
  thinking?: boolean;
74
154
  vision?: boolean;
75
155
  }
76
156
  export interface AgentProfileUpdateParams {
77
157
  allowedDomains?: Array<string> | null;
158
+ customSystemPromptExtension?: string | null;
78
159
  description?: string | null;
79
160
  flashMode?: boolean | null;
80
161
  highlightElements?: boolean | null;
81
162
  maxAgentSteps?: number | null;
82
163
  name?: string | null;
83
- systemPrompt?: string | null;
84
164
  thinking?: boolean | null;
85
165
  vision?: boolean | null;
86
166
  }
@@ -89,6 +169,6 @@ export interface AgentProfileListParams {
89
169
  pageSize?: number;
90
170
  }
91
171
  export declare namespace AgentProfiles {
92
- export { type AgentProfileView as AgentProfileView, type AgentProfileListResponse as AgentProfileListResponse, type AgentProfileDeleteResponse as AgentProfileDeleteResponse, type AgentProfileCreateParams as AgentProfileCreateParams, type AgentProfileUpdateParams as AgentProfileUpdateParams, type AgentProfileListParams as AgentProfileListParams, };
172
+ export { type AgentProfileView as AgentProfileView, type AgentProfileListResponse as AgentProfileListResponse, type AgentProfileCreateParams as AgentProfileCreateParams, type AgentProfileUpdateParams as AgentProfileUpdateParams, type AgentProfileListParams as AgentProfileListParams, };
93
173
  }
94
174
  //# sourceMappingURL=agent-profiles.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-profiles.d.mts","sourceRoot":"","sources":["../src/resources/agent-profiles.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI9F;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,O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