@bctrl/sdk 1.0.1 → 1.0.2

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 (279) hide show
  1. package/README.md +24 -29
  2. package/dist/bctrl.d.ts +22 -36
  3. package/dist/bctrl.js +40 -75
  4. package/dist/browsers.d.ts +24 -0
  5. package/dist/browsers.js +82 -0
  6. package/dist/errors.d.ts +49 -43
  7. package/dist/errors.js +83 -120
  8. package/dist/files.d.ts +31 -0
  9. package/dist/files.js +97 -0
  10. package/dist/http.d.ts +18 -0
  11. package/dist/http.js +135 -0
  12. package/dist/index.d.ts +9 -12
  13. package/dist/index.js +8 -23
  14. package/dist/invocations.d.ts +24 -0
  15. package/dist/invocations.js +66 -0
  16. package/dist/pagination.d.ts +2 -0
  17. package/dist/pagination.js +13 -0
  18. package/dist/runs.d.ts +38 -0
  19. package/dist/runs.js +99 -0
  20. package/dist/runtimes.d.ts +73 -0
  21. package/dist/runtimes.js +205 -0
  22. package/dist/spaces.d.ts +41 -0
  23. package/dist/spaces.js +96 -0
  24. package/dist/types.d.ts +386 -0
  25. package/dist/types.js +1 -0
  26. package/dist/utils.d.ts +4 -0
  27. package/dist/utils.js +27 -0
  28. package/dist/version.js +2 -2
  29. package/package.json +12 -31
  30. package/dist/agents/browser-use/index.d.ts +0 -1
  31. package/dist/agents/browser-use/index.js +0 -9
  32. package/dist/agents/browser-use/namespace.d.ts +0 -39
  33. package/dist/agents/browser-use/namespace.js +0 -93
  34. package/dist/agents/index.d.ts +0 -2
  35. package/dist/agents/index.js +0 -17
  36. package/dist/agents/stagehand/core.d.ts +0 -93
  37. package/dist/agents/stagehand/core.js +0 -144
  38. package/dist/agents/stagehand/index.d.ts +0 -3
  39. package/dist/agents/stagehand/index.js +0 -24
  40. package/dist/agents/stagehand/namespace.d.ts +0 -51
  41. package/dist/agents/stagehand/namespace.js +0 -65
  42. package/dist/ai-credentials/client.d.ts +0 -12
  43. package/dist/ai-credentials/client.js +0 -70
  44. package/dist/ai-credentials/index.d.ts +0 -1
  45. package/dist/ai-credentials/index.js +0 -1
  46. package/dist/base/event-binding.d.ts +0 -7
  47. package/dist/base/event-binding.js +0 -23
  48. package/dist/base/types.d.ts +0 -109
  49. package/dist/base/types.js +0 -4
  50. package/dist/browser-extensions/client.d.ts +0 -15
  51. package/dist/browser-extensions/client.js +0 -72
  52. package/dist/browser-extensions/index.d.ts +0 -2
  53. package/dist/browser-extensions/index.js +0 -1
  54. package/dist/browser-profiles/client.d.ts +0 -11
  55. package/dist/browser-profiles/client.js +0 -63
  56. package/dist/browser-profiles/index.d.ts +0 -1
  57. package/dist/browser-profiles/index.js +0 -1
  58. package/dist/captcha/index.d.ts +0 -1
  59. package/dist/captcha/index.js +0 -1
  60. package/dist/captcha/namespace.d.ts +0 -34
  61. package/dist/captcha/namespace.js +0 -41
  62. package/dist/client/index.d.ts +0 -1
  63. package/dist/client/index.js +0 -1
  64. package/dist/client/rpc.d.ts +0 -83
  65. package/dist/client/rpc.js +0 -354
  66. package/dist/config.d.ts +0 -5
  67. package/dist/config.js +0 -28
  68. package/dist/constants/browser.d.ts +0 -2
  69. package/dist/constants/browser.js +0 -1
  70. package/dist/contracts/agent-tools.d.ts +0 -45
  71. package/dist/contracts/agent-tools.js +0 -31
  72. package/dist/contracts/automation.d.ts +0 -265
  73. package/dist/contracts/automation.js +0 -109
  74. package/dist/contracts/browser-management.d.ts +0 -179
  75. package/dist/contracts/browser-management.js +0 -95
  76. package/dist/contracts/browser-use.d.ts +0 -136
  77. package/dist/contracts/browser-use.js +0 -93
  78. package/dist/contracts/captcha.d.ts +0 -114
  79. package/dist/contracts/captcha.js +0 -40
  80. package/dist/contracts/desktop.d.ts +0 -223
  81. package/dist/contracts/desktop.js +0 -121
  82. package/dist/contracts/drivers/playwright.d.ts +0 -2008
  83. package/dist/contracts/drivers/playwright.js +0 -2033
  84. package/dist/contracts/drivers/puppeteer.d.ts +0 -1221
  85. package/dist/contracts/drivers/puppeteer.js +0 -941
  86. package/dist/contracts/drivers/selenium.d.ts +0 -156
  87. package/dist/contracts/drivers/selenium.js +0 -61
  88. package/dist/contracts/drivers/stagehand.d.ts +0 -155
  89. package/dist/contracts/drivers/stagehand.js +0 -7
  90. package/dist/contracts/extensions.d.ts +0 -13
  91. package/dist/contracts/extensions.js +0 -9
  92. package/dist/contracts/index.d.ts +0 -13
  93. package/dist/contracts/index.js +0 -13
  94. package/dist/contracts/public-api.d.ts +0 -360
  95. package/dist/contracts/public-api.js +0 -17
  96. package/dist/contracts/runtime.d.ts +0 -81
  97. package/dist/contracts/runtime.js +0 -16
  98. package/dist/contracts/stagehand.d.ts +0 -253
  99. package/dist/contracts/stagehand.js +0 -145
  100. package/dist/contracts/storage.d.ts +0 -51
  101. package/dist/contracts/storage.js +0 -56
  102. package/dist/contracts/vault.d.ts +0 -119
  103. package/dist/contracts/vault.js +0 -112
  104. package/dist/contracts/version.d.ts +0 -3
  105. package/dist/contracts/version.js +0 -16
  106. package/dist/desktop.d.ts +0 -2
  107. package/dist/desktop.js +0 -3
  108. package/dist/drivers/desktop/index.d.ts +0 -65
  109. package/dist/drivers/desktop/index.js +0 -68
  110. package/dist/drivers/desktop/session.d.ts +0 -313
  111. package/dist/drivers/desktop/session.js +0 -432
  112. package/dist/drivers/playwright/event-emitter.d.ts +0 -160
  113. package/dist/drivers/playwright/event-emitter.js +0 -297
  114. package/dist/drivers/playwright/generated/api-request-context.d.ts +0 -137
  115. package/dist/drivers/playwright/generated/api-request-context.js +0 -154
  116. package/dist/drivers/playwright/generated/api-response.d.ts +0 -119
  117. package/dist/drivers/playwright/generated/api-response.js +0 -123
  118. package/dist/drivers/playwright/generated/browser-context.d.ts +0 -284
  119. package/dist/drivers/playwright/generated/browser-context.js +0 -458
  120. package/dist/drivers/playwright/generated/browser.d.ts +0 -120
  121. package/dist/drivers/playwright/generated/browser.js +0 -151
  122. package/dist/drivers/playwright/generated/clock.d.ts +0 -80
  123. package/dist/drivers/playwright/generated/clock.js +0 -94
  124. package/dist/drivers/playwright/generated/console-message.d.ts +0 -94
  125. package/dist/drivers/playwright/generated/console-message.js +0 -89
  126. package/dist/drivers/playwright/generated/coverage.d.ts +0 -57
  127. package/dist/drivers/playwright/generated/coverage.js +0 -66
  128. package/dist/drivers/playwright/generated/dialog.d.ts +0 -79
  129. package/dist/drivers/playwright/generated/dialog.js +0 -80
  130. package/dist/drivers/playwright/generated/element-handle.d.ts +0 -399
  131. package/dist/drivers/playwright/generated/element-handle.js +0 -501
  132. package/dist/drivers/playwright/generated/frame-locator.d.ts +0 -34
  133. package/dist/drivers/playwright/generated/frame-locator.js +0 -63
  134. package/dist/drivers/playwright/generated/frame.d.ts +0 -557
  135. package/dist/drivers/playwright/generated/frame.js +0 -634
  136. package/dist/drivers/playwright/generated/js-handle.d.ts +0 -72
  137. package/dist/drivers/playwright/generated/js-handle.js +0 -92
  138. package/dist/drivers/playwright/generated/keyboard.d.ts +0 -103
  139. package/dist/drivers/playwright/generated/keyboard.js +0 -113
  140. package/dist/drivers/playwright/generated/locator.d.ts +0 -795
  141. package/dist/drivers/playwright/generated/locator.js +0 -974
  142. package/dist/drivers/playwright/generated/mouse.d.ts +0 -97
  143. package/dist/drivers/playwright/generated/mouse.js +0 -109
  144. package/dist/drivers/playwright/generated/page.d.ts +0 -762
  145. package/dist/drivers/playwright/generated/page.js +0 -988
  146. package/dist/drivers/playwright/generated/touchscreen.d.ts +0 -34
  147. package/dist/drivers/playwright/generated/touchscreen.js +0 -37
  148. package/dist/drivers/playwright/generated/tracing.d.ts +0 -78
  149. package/dist/drivers/playwright/generated/tracing.js +0 -80
  150. package/dist/drivers/playwright/generated/worker.d.ts +0 -53
  151. package/dist/drivers/playwright/generated/worker.js +0 -59
  152. package/dist/drivers/playwright/index.d.ts +0 -19
  153. package/dist/drivers/playwright/index.js +0 -20
  154. package/dist/drivers/playwright/remote-base.d.ts +0 -62
  155. package/dist/drivers/playwright/remote-base.js +0 -86
  156. package/dist/drivers/playwright/types.d.ts +0 -148
  157. package/dist/drivers/playwright/types.js +0 -8
  158. package/dist/drivers/puppeteer/errors.d.ts +0 -50
  159. package/dist/drivers/puppeteer/errors.js +0 -71
  160. package/dist/drivers/puppeteer/event-emitter.d.ts +0 -145
  161. package/dist/drivers/puppeteer/event-emitter.js +0 -259
  162. package/dist/drivers/puppeteer/generated/accessibility.d.ts +0 -77
  163. package/dist/drivers/puppeteer/generated/accessibility.js +0 -74
  164. package/dist/drivers/puppeteer/generated/browser-context.d.ts +0 -116
  165. package/dist/drivers/puppeteer/generated/browser-context.js +0 -168
  166. package/dist/drivers/puppeteer/generated/browser.d.ts +0 -169
  167. package/dist/drivers/puppeteer/generated/browser.js +0 -246
  168. package/dist/drivers/puppeteer/generated/console-message.d.ts +0 -54
  169. package/dist/drivers/puppeteer/generated/console-message.js +0 -69
  170. package/dist/drivers/puppeteer/generated/coverage.d.ts +0 -49
  171. package/dist/drivers/puppeteer/generated/coverage.js +0 -57
  172. package/dist/drivers/puppeteer/generated/dialog.d.ts +0 -46
  173. package/dist/drivers/puppeteer/generated/dialog.js +0 -60
  174. package/dist/drivers/puppeteer/generated/element-handle.d.ts +0 -261
  175. package/dist/drivers/puppeteer/generated/element-handle.js +0 -341
  176. package/dist/drivers/puppeteer/generated/file-chooser.d.ts +0 -34
  177. package/dist/drivers/puppeteer/generated/file-chooser.js +0 -43
  178. package/dist/drivers/puppeteer/generated/frame.d.ts +0 -221
  179. package/dist/drivers/puppeteer/generated/frame.js +0 -302
  180. package/dist/drivers/puppeteer/generated/http-request.d.ts +0 -195
  181. package/dist/drivers/puppeteer/generated/http-request.js +0 -243
  182. package/dist/drivers/puppeteer/generated/http-response.d.ts +0 -142
  183. package/dist/drivers/puppeteer/generated/http-response.js +0 -169
  184. package/dist/drivers/puppeteer/generated/js-handle.d.ts +0 -104
  185. package/dist/drivers/puppeteer/generated/js-handle.js +0 -125
  186. package/dist/drivers/puppeteer/generated/keyboard.d.ts +0 -79
  187. package/dist/drivers/puppeteer/generated/keyboard.js +0 -89
  188. package/dist/drivers/puppeteer/generated/locator.d.ts +0 -141
  189. package/dist/drivers/puppeteer/generated/locator.js +0 -164
  190. package/dist/drivers/puppeteer/generated/mouse.d.ts +0 -74
  191. package/dist/drivers/puppeteer/generated/mouse.js +0 -94
  192. package/dist/drivers/puppeteer/generated/page.d.ts +0 -604
  193. package/dist/drivers/puppeteer/generated/page.js +0 -776
  194. package/dist/drivers/puppeteer/generated/target.d.ts +0 -105
  195. package/dist/drivers/puppeteer/generated/target.js +0 -123
  196. package/dist/drivers/puppeteer/generated/touchscreen.d.ts +0 -87
  197. package/dist/drivers/puppeteer/generated/touchscreen.js +0 -103
  198. package/dist/drivers/puppeteer/generated/tracing.d.ts +0 -38
  199. package/dist/drivers/puppeteer/generated/tracing.js +0 -43
  200. package/dist/drivers/puppeteer/generated/web-worker.d.ts +0 -63
  201. package/dist/drivers/puppeteer/generated/web-worker.js +0 -73
  202. package/dist/drivers/puppeteer/index.d.ts +0 -21
  203. package/dist/drivers/puppeteer/index.js +0 -23
  204. package/dist/drivers/puppeteer/remote-base.d.ts +0 -57
  205. package/dist/drivers/puppeteer/remote-base.js +0 -79
  206. package/dist/drivers/puppeteer/types.d.ts +0 -178
  207. package/dist/drivers/puppeteer/types.js +0 -8
  208. package/dist/drivers/selenium/driver.d.ts +0 -28
  209. package/dist/drivers/selenium/driver.js +0 -169
  210. package/dist/drivers/selenium/element.d.ts +0 -34
  211. package/dist/drivers/selenium/element.js +0 -73
  212. package/dist/drivers/selenium/index.d.ts +0 -3
  213. package/dist/drivers/selenium/index.js +0 -5
  214. package/dist/drivers/selenium/types.d.ts +0 -2
  215. package/dist/drivers/selenium/types.js +0 -12
  216. package/dist/drivers/stagehand/generated/context.d.ts +0 -127
  217. package/dist/drivers/stagehand/generated/context.js +0 -153
  218. package/dist/drivers/stagehand/generated/locator.d.ts +0 -324
  219. package/dist/drivers/stagehand/generated/locator.js +0 -368
  220. package/dist/drivers/stagehand/generated/page.d.ts +0 -377
  221. package/dist/drivers/stagehand/generated/page.js +0 -439
  222. package/dist/drivers/stagehand/generated/response.d.ts +0 -197
  223. package/dist/drivers/stagehand/generated/response.js +0 -232
  224. package/dist/drivers/stagehand/index.d.ts +0 -5
  225. package/dist/drivers/stagehand/index.js +0 -8
  226. package/dist/drivers/stagehand/types.d.ts +0 -1
  227. package/dist/drivers/stagehand/types.js +0 -7
  228. package/dist/extensions/client.d.ts +0 -47
  229. package/dist/extensions/client.js +0 -154
  230. package/dist/extensions/index.d.ts +0 -1
  231. package/dist/extensions/index.js +0 -1
  232. package/dist/internal/dev-client.d.ts +0 -5
  233. package/dist/internal/dev-client.js +0 -9
  234. package/dist/internal/rpc-targets.d.ts +0 -17
  235. package/dist/internal/rpc-targets.js +0 -58
  236. package/dist/internal/serialization.d.ts +0 -32
  237. package/dist/internal/serialization.js +0 -42
  238. package/dist/internal/transport.d.ts +0 -24
  239. package/dist/internal/transport.js +0 -29
  240. package/dist/playwright.d.ts +0 -1
  241. package/dist/playwright.js +0 -2
  242. package/dist/puppeteer.d.ts +0 -1
  243. package/dist/puppeteer.js +0 -2
  244. package/dist/selenium.d.ts +0 -1
  245. package/dist/selenium.js +0 -2
  246. package/dist/stagehand.d.ts +0 -1
  247. package/dist/stagehand.js +0 -2
  248. package/dist/storage/client.d.ts +0 -151
  249. package/dist/storage/client.js +0 -329
  250. package/dist/storage/index.d.ts +0 -2
  251. package/dist/storage/index.js +0 -4
  252. package/dist/telemetry.d.ts +0 -18
  253. package/dist/telemetry.js +0 -93
  254. package/dist/updates/client.d.ts +0 -8
  255. package/dist/updates/client.js +0 -128
  256. package/dist/updates/index.d.ts +0 -1
  257. package/dist/updates/index.js +0 -1
  258. package/dist/utils/http.d.ts +0 -39
  259. package/dist/utils/http.js +0 -88
  260. package/dist/utils/index.d.ts +0 -4
  261. package/dist/utils/index.js +0 -4
  262. package/dist/utils/logger.d.ts +0 -27
  263. package/dist/utils/logger.js +0 -74
  264. package/dist/utils/schema.d.ts +0 -17
  265. package/dist/utils/schema.js +0 -31
  266. package/dist/utils/url.d.ts +0 -5
  267. package/dist/utils/url.js +0 -7
  268. package/dist/vault/client.d.ts +0 -43
  269. package/dist/vault/client.js +0 -123
  270. package/dist/vault/index.d.ts +0 -1
  271. package/dist/vault/index.js +0 -1
  272. package/dist/workspaces/browser-runtime.d.ts +0 -251
  273. package/dist/workspaces/browser-runtime.js +0 -1025
  274. package/dist/workspaces/client.d.ts +0 -48
  275. package/dist/workspaces/client.js +0 -222
  276. package/dist/workspaces/index.d.ts +0 -2
  277. package/dist/workspaces/index.js +0 -2
  278. package/dist/workspaces/runtime-event-pump.d.ts +0 -65
  279. package/dist/workspaces/runtime-event-pump.js +0 -716
package/dist/config.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare const BCTRL_PRODUCTION_ORIGIN = "https://api.bctrl.ai";
2
- export declare const BCTRL_DEVELOPMENT_ORIGIN = "http://localhost:8787";
3
- export declare function resolveProductionApiBaseUrl(): string;
4
- export declare function resolveInternalApiBaseUrl(originOrApiBase?: string): string;
5
- export declare function resolveApiKey(apiKey: string): string;
package/dist/config.js DELETED
@@ -1,28 +0,0 @@
1
- import { PUBLIC_API_PREFIX } from './contracts/version.js';
2
- import { stripTrailingSlash } from './utils/url.js';
3
- export const BCTRL_PRODUCTION_ORIGIN = 'https://api.bctrl.ai';
4
- export const BCTRL_DEVELOPMENT_ORIGIN = 'http://localhost:8787';
5
- function toApiBaseUrl(originOrApiBase) {
6
- const normalized = stripTrailingSlash(originOrApiBase);
7
- return normalized.endsWith(PUBLIC_API_PREFIX)
8
- ? normalized
9
- : `${normalized}${PUBLIC_API_PREFIX}`;
10
- }
11
- export function resolveProductionApiBaseUrl() {
12
- return toApiBaseUrl(BCTRL_PRODUCTION_ORIGIN);
13
- }
14
- export function resolveInternalApiBaseUrl(originOrApiBase) {
15
- if (originOrApiBase === undefined) {
16
- return toApiBaseUrl(BCTRL_DEVELOPMENT_ORIGIN);
17
- }
18
- if (typeof originOrApiBase !== 'string' || originOrApiBase.trim() === '') {
19
- throw new Error('Internal Bctrl apiOrigin must be a non-empty string when provided');
20
- }
21
- return toApiBaseUrl(originOrApiBase.trim());
22
- }
23
- export function resolveApiKey(apiKey) {
24
- if (typeof apiKey !== 'string' || apiKey.trim() === '') {
25
- throw new Error('Bctrl apiKey is required');
26
- }
27
- return apiKey.trim();
28
- }
@@ -1,2 +0,0 @@
1
- import type { BrowserDriver } from '../contracts/runtime.js';
2
- export declare const DEFAULT_BROWSER_DRIVER: BrowserDriver;
@@ -1 +0,0 @@
1
- export const DEFAULT_BROWSER_DRIVER = 'playwright';
@@ -1,45 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const AgentStorageToolConfigSchema: z.ZodObject<{
3
- enabled: z.ZodOptional<z.ZodBoolean>;
4
- prefix: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
5
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
- }, z.core.$strict>;
7
- export type AgentStorageToolConfig = z.infer<typeof AgentStorageToolConfigSchema>;
8
- export declare const AgentVaultToolConfigSchema: z.ZodObject<{
9
- toolPrefix: z.ZodOptional<z.ZodString>;
10
- defaultListFilter: z.ZodOptional<z.ZodObject<{
11
- prefix: z.ZodOptional<z.ZodString>;
12
- origin: z.ZodOptional<z.ZodString>;
13
- limit: z.ZodOptional<z.ZodNumber>;
14
- }, z.core.$strip>>;
15
- allowRawReads: z.ZodOptional<z.ZodBoolean>;
16
- enabled: z.ZodOptional<z.ZodBoolean>;
17
- }, z.core.$strict>;
18
- export type AgentVaultToolConfig = z.infer<typeof AgentVaultToolConfigSchema>;
19
- export declare const AgentCaptchaToolConfigSchema: z.ZodObject<{
20
- enabled: z.ZodOptional<z.ZodBoolean>;
21
- pageId: z.ZodOptional<z.ZodUUID>;
22
- }, z.core.$strict>;
23
- export type AgentCaptchaToolConfig = z.infer<typeof AgentCaptchaToolConfigSchema>;
24
- export declare const AgentInvocationToolsSchema: z.ZodObject<{
25
- storage: z.ZodOptional<z.ZodObject<{
26
- enabled: z.ZodOptional<z.ZodBoolean>;
27
- prefix: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
28
- inputFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
- }, z.core.$strict>>;
30
- vault: z.ZodOptional<z.ZodObject<{
31
- toolPrefix: z.ZodOptional<z.ZodString>;
32
- defaultListFilter: z.ZodOptional<z.ZodObject<{
33
- prefix: z.ZodOptional<z.ZodString>;
34
- origin: z.ZodOptional<z.ZodString>;
35
- limit: z.ZodOptional<z.ZodNumber>;
36
- }, z.core.$strip>>;
37
- allowRawReads: z.ZodOptional<z.ZodBoolean>;
38
- enabled: z.ZodOptional<z.ZodBoolean>;
39
- }, z.core.$strict>>;
40
- captcha: z.ZodOptional<z.ZodObject<{
41
- enabled: z.ZodOptional<z.ZodBoolean>;
42
- pageId: z.ZodOptional<z.ZodUUID>;
43
- }, z.core.$strict>>;
44
- }, z.core.$strict>;
45
- export type AgentInvocationTools = z.infer<typeof AgentInvocationToolsSchema>;
@@ -1,31 +0,0 @@
1
- import { z } from 'zod';
2
- import { VaultAgentAdapterConfigSchema } from './vault.js';
3
- const OptionalTrimmedStringSchema = z.preprocess((value) => {
4
- if (typeof value !== 'string')
5
- return value;
6
- const trimmed = value.trim();
7
- return trimmed.length > 0 ? trimmed : undefined;
8
- }, z.string().optional());
9
- export const AgentStorageToolConfigSchema = z
10
- .object({
11
- enabled: z.boolean().optional(),
12
- prefix: OptionalTrimmedStringSchema.optional(),
13
- inputFiles: z.array(z.string().min(1)).optional(),
14
- })
15
- .strict();
16
- export const AgentVaultToolConfigSchema = VaultAgentAdapterConfigSchema.extend({
17
- enabled: z.boolean().optional(),
18
- }).strict();
19
- export const AgentCaptchaToolConfigSchema = z
20
- .object({
21
- enabled: z.boolean().optional(),
22
- pageId: z.uuid().optional(),
23
- })
24
- .strict();
25
- export const AgentInvocationToolsSchema = z
26
- .object({
27
- storage: AgentStorageToolConfigSchema.optional(),
28
- vault: AgentVaultToolConfigSchema.optional(),
29
- captcha: AgentCaptchaToolConfigSchema.optional(),
30
- })
31
- .strict();
@@ -1,265 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const AUTOMATION_ALIAS_REGEX: RegExp;
3
- export declare const AutomationCallOptionsSchema: z.ZodObject<{
4
- timeoutMs: z.ZodOptional<z.ZodNumber>;
5
- dryRun: z.ZodOptional<z.ZodBoolean>;
6
- logs: z.ZodOptional<z.ZodEnum<{
7
- off: "off";
8
- capture: "capture";
9
- }>>;
10
- scriptId: z.ZodOptional<z.ZodString>;
11
- scriptName: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strict>;
13
- export declare const AutomationCallRequestSchema: z.ZodObject<{
14
- call: z.ZodString;
15
- ref: z.ZodOptional<z.ZodString>;
16
- args: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
17
- as: z.ZodOptional<z.ZodString>;
18
- options: z.ZodOptional<z.ZodObject<{
19
- timeoutMs: z.ZodOptional<z.ZodNumber>;
20
- dryRun: z.ZodOptional<z.ZodBoolean>;
21
- logs: z.ZodOptional<z.ZodEnum<{
22
- off: "off";
23
- capture: "capture";
24
- }>>;
25
- scriptId: z.ZodOptional<z.ZodString>;
26
- scriptName: z.ZodOptional<z.ZodString>;
27
- }, z.core.$strict>>;
28
- }, z.core.$strict>;
29
- export type AutomationCallRequest = z.infer<typeof AutomationCallRequestSchema>;
30
- export declare const AutomationBindingTypeSchema: z.ZodEnum<{
31
- page: "page";
32
- context: "context";
33
- handle: "handle";
34
- subscription: "subscription";
35
- }>;
36
- export type AutomationBindingType = z.infer<typeof AutomationBindingTypeSchema>;
37
- export declare const AutomationResolvedSchema: z.ZodObject<{
38
- sessionId: z.ZodString;
39
- call: z.ZodString;
40
- target: z.ZodString;
41
- method: z.ZodString;
42
- ref: z.ZodNullable<z.ZodString>;
43
- pageId: z.ZodNullable<z.ZodString>;
44
- contextId: z.ZodNullable<z.ZodString>;
45
- handleId: z.ZodNullable<z.ZodString>;
46
- }, z.core.$strict>;
47
- export type AutomationResolved = z.infer<typeof AutomationResolvedSchema>;
48
- export declare const AutomationBindingSchema: z.ZodObject<{
49
- alias: z.ZodString;
50
- id: z.ZodString;
51
- type: z.ZodEnum<{
52
- page: "page";
53
- context: "context";
54
- handle: "handle";
55
- subscription: "subscription";
56
- }>;
57
- }, z.core.$strict>;
58
- export type AutomationBinding = z.infer<typeof AutomationBindingSchema>;
59
- export declare const AutomationErrorCodeSchema: z.ZodEnum<{
60
- UNKNOWN_CALL: "UNKNOWN_CALL";
61
- UNKNOWN_REF: "UNKNOWN_REF";
62
- INVALID_ARGS: "INVALID_ARGS";
63
- CAPABILITY_NOT_AVAILABLE: "CAPABILITY_NOT_AVAILABLE";
64
- TIMEOUT: "TIMEOUT";
65
- SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
66
- DRIVER_NOT_CONNECTED: "DRIVER_NOT_CONNECTED";
67
- SUBSCRIPTION_CURSOR_CONFLICT: "SUBSCRIPTION_CURSOR_CONFLICT";
68
- SUBSCRIPTION_GONE: "SUBSCRIPTION_GONE";
69
- }>;
70
- export type AutomationErrorCode = z.infer<typeof AutomationErrorCodeSchema>;
71
- export declare const AutomationFixSchema: z.ZodObject<{
72
- title: z.ZodString;
73
- command: z.ZodOptional<z.ZodString>;
74
- example: z.ZodOptional<z.ZodString>;
75
- }, z.core.$strict>;
76
- export type AutomationFix = z.infer<typeof AutomationFixSchema>;
77
- export declare const AutomationDiagnosticSchema: z.ZodObject<{
78
- id: z.ZodString;
79
- code: z.ZodOptional<z.ZodString>;
80
- category: z.ZodOptional<z.ZodEnum<{
81
- "arg-shape": "arg-shape";
82
- semantic: "semantic";
83
- runtime: "runtime";
84
- }>>;
85
- call: z.ZodOptional<z.ZodString>;
86
- driver: z.ZodOptional<z.ZodString>;
87
- closest: z.ZodOptional<z.ZodArray<z.ZodString>>;
88
- expected: z.ZodOptional<z.ZodString>;
89
- received: z.ZodOptional<z.ZodString>;
90
- docsUrl: z.ZodOptional<z.ZodString>;
91
- fixes: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
- title: z.ZodString;
93
- command: z.ZodOptional<z.ZodString>;
94
- example: z.ZodOptional<z.ZodString>;
95
- }, z.core.$strict>>>;
96
- }, z.core.$strict>;
97
- export type AutomationDiagnostic = z.infer<typeof AutomationDiagnosticSchema>;
98
- export declare const AutomationErrorSchema: z.ZodObject<{
99
- code: z.ZodEnum<{
100
- UNKNOWN_CALL: "UNKNOWN_CALL";
101
- UNKNOWN_REF: "UNKNOWN_REF";
102
- INVALID_ARGS: "INVALID_ARGS";
103
- CAPABILITY_NOT_AVAILABLE: "CAPABILITY_NOT_AVAILABLE";
104
- TIMEOUT: "TIMEOUT";
105
- SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
106
- DRIVER_NOT_CONNECTED: "DRIVER_NOT_CONNECTED";
107
- SUBSCRIPTION_CURSOR_CONFLICT: "SUBSCRIPTION_CURSOR_CONFLICT";
108
- SUBSCRIPTION_GONE: "SUBSCRIPTION_GONE";
109
- }>;
110
- message: z.ZodString;
111
- hint: z.ZodOptional<z.ZodString>;
112
- diagnostic: z.ZodOptional<z.ZodObject<{
113
- id: z.ZodString;
114
- code: z.ZodOptional<z.ZodString>;
115
- category: z.ZodOptional<z.ZodEnum<{
116
- "arg-shape": "arg-shape";
117
- semantic: "semantic";
118
- runtime: "runtime";
119
- }>>;
120
- call: z.ZodOptional<z.ZodString>;
121
- driver: z.ZodOptional<z.ZodString>;
122
- closest: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
- expected: z.ZodOptional<z.ZodString>;
124
- received: z.ZodOptional<z.ZodString>;
125
- docsUrl: z.ZodOptional<z.ZodString>;
126
- fixes: z.ZodOptional<z.ZodArray<z.ZodObject<{
127
- title: z.ZodString;
128
- command: z.ZodOptional<z.ZodString>;
129
- example: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strict>>>;
131
- }, z.core.$strict>>;
132
- }, z.core.$strict>;
133
- export type AutomationError = z.infer<typeof AutomationErrorSchema>;
134
- export declare const AutomationSuccessResponseSchema: z.ZodObject<{
135
- ok: z.ZodLiteral<true>;
136
- result: z.ZodUnknown;
137
- resolved: z.ZodObject<{
138
- sessionId: z.ZodString;
139
- call: z.ZodString;
140
- target: z.ZodString;
141
- method: z.ZodString;
142
- ref: z.ZodNullable<z.ZodString>;
143
- pageId: z.ZodNullable<z.ZodString>;
144
- contextId: z.ZodNullable<z.ZodString>;
145
- handleId: z.ZodNullable<z.ZodString>;
146
- }, z.core.$strict>;
147
- binding: z.ZodOptional<z.ZodObject<{
148
- alias: z.ZodString;
149
- id: z.ZodString;
150
- type: z.ZodEnum<{
151
- page: "page";
152
- context: "context";
153
- handle: "handle";
154
- subscription: "subscription";
155
- }>;
156
- }, z.core.$strict>>;
157
- meta: z.ZodOptional<z.ZodObject<{
158
- deprecatedAlias: z.ZodOptional<z.ZodString>;
159
- }, z.core.$strict>>;
160
- }, z.core.$strict>;
161
- export type AutomationSuccessResponse = z.infer<typeof AutomationSuccessResponseSchema>;
162
- export declare const AutomationErrorResponseSchema: z.ZodObject<{
163
- ok: z.ZodLiteral<false>;
164
- error: z.ZodObject<{
165
- code: z.ZodEnum<{
166
- UNKNOWN_CALL: "UNKNOWN_CALL";
167
- UNKNOWN_REF: "UNKNOWN_REF";
168
- INVALID_ARGS: "INVALID_ARGS";
169
- CAPABILITY_NOT_AVAILABLE: "CAPABILITY_NOT_AVAILABLE";
170
- TIMEOUT: "TIMEOUT";
171
- SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
172
- DRIVER_NOT_CONNECTED: "DRIVER_NOT_CONNECTED";
173
- SUBSCRIPTION_CURSOR_CONFLICT: "SUBSCRIPTION_CURSOR_CONFLICT";
174
- SUBSCRIPTION_GONE: "SUBSCRIPTION_GONE";
175
- }>;
176
- message: z.ZodString;
177
- hint: z.ZodOptional<z.ZodString>;
178
- diagnostic: z.ZodOptional<z.ZodObject<{
179
- id: z.ZodString;
180
- code: z.ZodOptional<z.ZodString>;
181
- category: z.ZodOptional<z.ZodEnum<{
182
- "arg-shape": "arg-shape";
183
- semantic: "semantic";
184
- runtime: "runtime";
185
- }>>;
186
- call: z.ZodOptional<z.ZodString>;
187
- driver: z.ZodOptional<z.ZodString>;
188
- closest: z.ZodOptional<z.ZodArray<z.ZodString>>;
189
- expected: z.ZodOptional<z.ZodString>;
190
- received: z.ZodOptional<z.ZodString>;
191
- docsUrl: z.ZodOptional<z.ZodString>;
192
- fixes: z.ZodOptional<z.ZodArray<z.ZodObject<{
193
- title: z.ZodString;
194
- command: z.ZodOptional<z.ZodString>;
195
- example: z.ZodOptional<z.ZodString>;
196
- }, z.core.$strict>>>;
197
- }, z.core.$strict>>;
198
- }, z.core.$strict>;
199
- }, z.core.$strict>;
200
- export type AutomationErrorResponse = z.infer<typeof AutomationErrorResponseSchema>;
201
- export declare const AutomationResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
202
- ok: z.ZodLiteral<true>;
203
- result: z.ZodUnknown;
204
- resolved: z.ZodObject<{
205
- sessionId: z.ZodString;
206
- call: z.ZodString;
207
- target: z.ZodString;
208
- method: z.ZodString;
209
- ref: z.ZodNullable<z.ZodString>;
210
- pageId: z.ZodNullable<z.ZodString>;
211
- contextId: z.ZodNullable<z.ZodString>;
212
- handleId: z.ZodNullable<z.ZodString>;
213
- }, z.core.$strict>;
214
- binding: z.ZodOptional<z.ZodObject<{
215
- alias: z.ZodString;
216
- id: z.ZodString;
217
- type: z.ZodEnum<{
218
- page: "page";
219
- context: "context";
220
- handle: "handle";
221
- subscription: "subscription";
222
- }>;
223
- }, z.core.$strict>>;
224
- meta: z.ZodOptional<z.ZodObject<{
225
- deprecatedAlias: z.ZodOptional<z.ZodString>;
226
- }, z.core.$strict>>;
227
- }, z.core.$strict>, z.ZodObject<{
228
- ok: z.ZodLiteral<false>;
229
- error: z.ZodObject<{
230
- code: z.ZodEnum<{
231
- UNKNOWN_CALL: "UNKNOWN_CALL";
232
- UNKNOWN_REF: "UNKNOWN_REF";
233
- INVALID_ARGS: "INVALID_ARGS";
234
- CAPABILITY_NOT_AVAILABLE: "CAPABILITY_NOT_AVAILABLE";
235
- TIMEOUT: "TIMEOUT";
236
- SESSION_NOT_FOUND: "SESSION_NOT_FOUND";
237
- DRIVER_NOT_CONNECTED: "DRIVER_NOT_CONNECTED";
238
- SUBSCRIPTION_CURSOR_CONFLICT: "SUBSCRIPTION_CURSOR_CONFLICT";
239
- SUBSCRIPTION_GONE: "SUBSCRIPTION_GONE";
240
- }>;
241
- message: z.ZodString;
242
- hint: z.ZodOptional<z.ZodString>;
243
- diagnostic: z.ZodOptional<z.ZodObject<{
244
- id: z.ZodString;
245
- code: z.ZodOptional<z.ZodString>;
246
- category: z.ZodOptional<z.ZodEnum<{
247
- "arg-shape": "arg-shape";
248
- semantic: "semantic";
249
- runtime: "runtime";
250
- }>>;
251
- call: z.ZodOptional<z.ZodString>;
252
- driver: z.ZodOptional<z.ZodString>;
253
- closest: z.ZodOptional<z.ZodArray<z.ZodString>>;
254
- expected: z.ZodOptional<z.ZodString>;
255
- received: z.ZodOptional<z.ZodString>;
256
- docsUrl: z.ZodOptional<z.ZodString>;
257
- fixes: z.ZodOptional<z.ZodArray<z.ZodObject<{
258
- title: z.ZodString;
259
- command: z.ZodOptional<z.ZodString>;
260
- example: z.ZodOptional<z.ZodString>;
261
- }, z.core.$strict>>>;
262
- }, z.core.$strict>>;
263
- }, z.core.$strict>;
264
- }, z.core.$strict>]>;
265
- export type AutomationResponse = z.infer<typeof AutomationResponseSchema>;
@@ -1,109 +0,0 @@
1
- import { z } from 'zod';
2
- export const AUTOMATION_ALIAS_REGEX = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/;
3
- export const AutomationCallOptionsSchema = z
4
- .object({
5
- timeoutMs: z.number().int().positive().max(10 * 60 * 1000).optional(),
6
- dryRun: z.boolean().optional(),
7
- logs: z.enum(['off', 'capture']).optional(),
8
- scriptId: z.string().min(1).optional(),
9
- scriptName: z.string().min(1).optional(),
10
- })
11
- .strict();
12
- export const AutomationCallRequestSchema = z
13
- .object({
14
- call: z.string().min(1),
15
- ref: z.string().min(1).optional(),
16
- args: z.array(z.unknown()).optional(),
17
- as: z.string().regex(AUTOMATION_ALIAS_REGEX).optional(),
18
- options: AutomationCallOptionsSchema.optional(),
19
- })
20
- .strict();
21
- export const AutomationBindingTypeSchema = z.enum([
22
- 'page',
23
- 'context',
24
- 'handle',
25
- 'subscription',
26
- ]);
27
- export const AutomationResolvedSchema = z
28
- .object({
29
- sessionId: z.string(),
30
- call: z.string(),
31
- target: z.string(),
32
- method: z.string(),
33
- ref: z.string().nullable(),
34
- pageId: z.string().nullable(),
35
- contextId: z.string().nullable(),
36
- handleId: z.string().nullable(),
37
- })
38
- .strict();
39
- export const AutomationBindingSchema = z
40
- .object({
41
- alias: z.string().regex(AUTOMATION_ALIAS_REGEX),
42
- id: z.string(),
43
- type: AutomationBindingTypeSchema,
44
- })
45
- .strict();
46
- export const AutomationErrorCodeSchema = z.enum([
47
- 'UNKNOWN_CALL',
48
- 'UNKNOWN_REF',
49
- 'INVALID_ARGS',
50
- 'CAPABILITY_NOT_AVAILABLE',
51
- 'TIMEOUT',
52
- 'SESSION_NOT_FOUND',
53
- 'DRIVER_NOT_CONNECTED',
54
- 'SUBSCRIPTION_CURSOR_CONFLICT',
55
- 'SUBSCRIPTION_GONE',
56
- ]);
57
- export const AutomationFixSchema = z
58
- .object({
59
- title: z.string(),
60
- command: z.string().optional(),
61
- example: z.string().optional(),
62
- })
63
- .strict();
64
- export const AutomationDiagnosticSchema = z
65
- .object({
66
- id: z.string(),
67
- code: z.string().optional(),
68
- category: z.enum(['arg-shape', 'semantic', 'runtime']).optional(),
69
- call: z.string().optional(),
70
- driver: z.string().optional(),
71
- closest: z.array(z.string()).max(5).optional(),
72
- expected: z.string().optional(),
73
- received: z.string().optional(),
74
- docsUrl: z.string().url().optional(),
75
- fixes: z.array(AutomationFixSchema).optional(),
76
- })
77
- .strict();
78
- export const AutomationErrorSchema = z
79
- .object({
80
- code: AutomationErrorCodeSchema,
81
- message: z.string(),
82
- hint: z.string().optional(),
83
- diagnostic: AutomationDiagnosticSchema.optional(),
84
- })
85
- .strict();
86
- export const AutomationSuccessResponseSchema = z
87
- .object({
88
- ok: z.literal(true),
89
- result: z.unknown(),
90
- resolved: AutomationResolvedSchema,
91
- binding: AutomationBindingSchema.optional(),
92
- meta: z
93
- .object({
94
- deprecatedAlias: z.string().optional(),
95
- })
96
- .strict()
97
- .optional(),
98
- })
99
- .strict();
100
- export const AutomationErrorResponseSchema = z
101
- .object({
102
- ok: z.literal(false),
103
- error: AutomationErrorSchema,
104
- })
105
- .strict();
106
- export const AutomationResponseSchema = z.union([
107
- AutomationSuccessResponseSchema,
108
- AutomationErrorResponseSchema,
109
- ]);
@@ -1,179 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const BrowserProxySchema: z.ZodObject<{
3
- type: z.ZodEnum<{
4
- http: "http";
5
- socks5: "socks5";
6
- }>;
7
- host: z.ZodString;
8
- port: z.ZodNumber;
9
- username: z.ZodOptional<z.ZodString>;
10
- password: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strict>;
12
- export type BrowserProxy = z.infer<typeof BrowserProxySchema>;
13
- export declare const SessionProxySchema: z.ZodObject<{
14
- type: z.ZodEnum<{
15
- http: "http";
16
- socks5: "socks5";
17
- }>;
18
- host: z.ZodString;
19
- port: z.ZodNumber;
20
- username: z.ZodOptional<z.ZodString>;
21
- password: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strict>;
23
- export type SessionProxy = BrowserProxy;
24
- export declare const SessionStartOptionsSchema: z.ZodObject<{
25
- humanize: z.ZodOptional<z.ZodBoolean>;
26
- humanizePersonaId: z.ZodOptional<z.ZodNumber>;
27
- proxy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
- type: z.ZodEnum<{
29
- http: "http";
30
- socks5: "socks5";
31
- }>;
32
- host: z.ZodString;
33
- port: z.ZodNumber;
34
- username: z.ZodOptional<z.ZodString>;
35
- password: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strict>>>;
37
- storage: z.ZodOptional<z.ZodObject<{
38
- defaultWorkspace: z.ZodOptional<z.ZodString>;
39
- allowedWorkspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
- }, z.core.$strict>>;
41
- solveCaptchas: z.ZodOptional<z.ZodBoolean>;
42
- vault: z.ZodOptional<z.ZodObject<{
43
- allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
- deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
- allowRawReads: z.ZodOptional<z.ZodBoolean>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
48
- export type SessionStartOptions = z.infer<typeof SessionStartOptionsSchema>;
49
- export declare const ProfileSchema: z.ZodObject<{
50
- id: z.ZodUUID;
51
- name: z.ZodOptional<z.ZodString>;
52
- createdAt: z.ZodString;
53
- }, z.core.$strip>;
54
- export declare const ProfileCreateOptionsSchema: z.ZodObject<{
55
- name: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strip>;
57
- export declare const ProfileListOptionsSchema: z.ZodObject<{
58
- page: z.ZodOptional<z.ZodNumber>;
59
- name: z.ZodOptional<z.ZodString>;
60
- }, z.core.$strip>;
61
- export declare const ProfileListResultSchema: z.ZodObject<{
62
- profiles: z.ZodArray<z.ZodObject<{
63
- id: z.ZodUUID;
64
- name: z.ZodOptional<z.ZodString>;
65
- createdAt: z.ZodString;
66
- }, z.core.$strip>>;
67
- totalCount: z.ZodNumber;
68
- }, z.core.$strip>;
69
- export type Profile = z.infer<typeof ProfileSchema>;
70
- export type ProfileCreateOptions = z.infer<typeof ProfileCreateOptionsSchema>;
71
- export type ProfileListOptions = z.infer<typeof ProfileListOptionsSchema>;
72
- export type ProfileListResult = z.infer<typeof ProfileListResultSchema>;
73
- export declare const ProfileStartRequestSchema: z.ZodObject<{
74
- humanize: z.ZodOptional<z.ZodBoolean>;
75
- proxy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
- type: z.ZodEnum<{
77
- http: "http";
78
- socks5: "socks5";
79
- }>;
80
- host: z.ZodString;
81
- port: z.ZodNumber;
82
- username: z.ZodOptional<z.ZodString>;
83
- password: z.ZodOptional<z.ZodString>;
84
- }, z.core.$strict>>>;
85
- storage: z.ZodOptional<z.ZodObject<{
86
- defaultWorkspace: z.ZodOptional<z.ZodString>;
87
- allowedWorkspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
88
- }, z.core.$strict>>;
89
- }, z.core.$strict>;
90
- export type ProfileStartRequest = z.infer<typeof ProfileStartRequestSchema>;
91
- export declare const ProfileConnectRequestSchema: z.ZodObject<{
92
- driver: z.ZodOptional<z.ZodEnum<{
93
- selenium: "selenium";
94
- stagehand: "stagehand";
95
- puppeteer: "puppeteer";
96
- playwright: "playwright";
97
- }>>;
98
- }, z.core.$strict>;
99
- export type ProfileConnectRequest = z.infer<typeof ProfileConnectRequestSchema>;
100
- export declare const ProfileStopResponseSchema: z.ZodObject<{
101
- profileId: z.ZodString;
102
- stopped: z.ZodBoolean;
103
- sessionId: z.ZodOptional<z.ZodString>;
104
- }, z.core.$strict>;
105
- export type ProfileStopResponse = z.infer<typeof ProfileStopResponseSchema>;
106
- export declare const ProfileLifecycleStatusSchema: z.ZodObject<{
107
- profileId: z.ZodString;
108
- name: z.ZodString;
109
- status: z.ZodEnum<{
110
- stopped: "stopped";
111
- running: "running";
112
- }>;
113
- browserRunning: z.ZodBoolean;
114
- hostStatus: z.ZodNullable<z.ZodString>;
115
- currentDriver: z.ZodNullable<z.ZodString>;
116
- activeSessionId: z.ZodNullable<z.ZodString>;
117
- defaultContextId: z.ZodNullable<z.ZodString>;
118
- defaultPageId: z.ZodNullable<z.ZodString>;
119
- createdAt: z.ZodString;
120
- updatedAt: z.ZodNullable<z.ZodString>;
121
- lastUsedAt: z.ZodNullable<z.ZodString>;
122
- }, z.core.$strict>;
123
- export type ProfileLifecycleStatus = z.infer<typeof ProfileLifecycleStatusSchema>;
124
- export declare const SessionStartRequestSchema: z.ZodObject<{
125
- humanize: z.ZodOptional<z.ZodBoolean>;
126
- humanizePersonaId: z.ZodOptional<z.ZodNumber>;
127
- proxy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
128
- type: z.ZodEnum<{
129
- http: "http";
130
- socks5: "socks5";
131
- }>;
132
- host: z.ZodString;
133
- port: z.ZodNumber;
134
- username: z.ZodOptional<z.ZodString>;
135
- password: z.ZodOptional<z.ZodString>;
136
- }, z.core.$strict>>>;
137
- storage: z.ZodOptional<z.ZodObject<{
138
- defaultWorkspace: z.ZodOptional<z.ZodString>;
139
- allowedWorkspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
- }, z.core.$strict>>;
141
- solveCaptchas: z.ZodOptional<z.ZodBoolean>;
142
- vault: z.ZodOptional<z.ZodObject<{
143
- allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
- deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
- allowRawReads: z.ZodOptional<z.ZodBoolean>;
146
- }, z.core.$strip>>;
147
- }, z.core.$strip>;
148
- export type SessionStartRequest = z.infer<typeof SessionStartRequestSchema>;
149
- export declare const SessionStartResponseSchema: z.ZodObject<{
150
- id: z.ZodUUID;
151
- status: z.ZodEnum<{
152
- stopped: "stopped";
153
- active: "active";
154
- }>;
155
- storageWorkspace: z.ZodOptional<z.ZodString>;
156
- }, z.core.$strict>;
157
- export type SessionStartResponse = z.infer<typeof SessionStartResponseSchema>;
158
- export declare const SessionConnectRequestSchema: z.ZodObject<{
159
- driver: z.ZodOptional<z.ZodEnum<{
160
- selenium: "selenium";
161
- stagehand: "stagehand";
162
- puppeteer: "puppeteer";
163
- playwright: "playwright";
164
- }>>;
165
- }, z.core.$strict>;
166
- export type SessionConnectRequest = z.infer<typeof SessionConnectRequestSchema>;
167
- export declare const SessionConnectResponseSchema: z.ZodObject<{
168
- id: z.ZodUUID;
169
- currentDriver: z.ZodEnum<{
170
- selenium: "selenium";
171
- stagehand: "stagehand";
172
- puppeteer: "puppeteer";
173
- playwright: "playwright";
174
- }>;
175
- defaultContextId: z.ZodOptional<z.ZodUUID>;
176
- defaultPageId: z.ZodOptional<z.ZodUUID>;
177
- storageWorkspace: z.ZodOptional<z.ZodString>;
178
- }, z.core.$strict>;
179
- export type SessionConnectResponse = z.infer<typeof SessionConnectResponseSchema>;