@browserbasehq/orca 3.7.1-preview.0 → 3.7.2-preview.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 (61) hide show
  1. package/dist/cjs/lib/v3/agent/tools/click.js +15 -4
  2. package/dist/cjs/lib/v3/agent/tools/click.js.map +1 -1
  3. package/dist/cjs/lib/v3/agent/tools/fillFormVision.js +12 -4
  4. package/dist/cjs/lib/v3/agent/tools/fillFormVision.js.map +1 -1
  5. package/dist/cjs/lib/v3/agent/tools/type.js +12 -3
  6. package/dist/cjs/lib/v3/agent/tools/type.js.map +1 -1
  7. package/dist/cjs/lib/v3/api.d.ts +1 -1
  8. package/dist/cjs/lib/v3/api.js +2 -1
  9. package/dist/cjs/lib/v3/api.js.map +1 -1
  10. package/dist/cjs/lib/v3/handlers/handlerUtils/actHandlerUtils.js +20 -0
  11. package/dist/cjs/lib/v3/handlers/handlerUtils/actHandlerUtils.js.map +1 -1
  12. package/dist/cjs/lib/v3/handlers/v3CuaAgentHandler.js +32 -0
  13. package/dist/cjs/lib/v3/handlers/v3CuaAgentHandler.js.map +1 -1
  14. package/dist/cjs/lib/v3/types/public/api.d.ts +53 -0
  15. package/dist/cjs/lib/v3/types/public/api.js +8 -0
  16. package/dist/cjs/lib/v3/types/public/api.js.map +1 -1
  17. package/dist/cjs/lib/v3/types/public/options.d.ts +13 -0
  18. package/dist/cjs/lib/v3/types/public/options.js.map +1 -1
  19. package/dist/cjs/lib/v3/understudy/locator.d.ts +12 -0
  20. package/dist/cjs/lib/v3/understudy/locator.js +44 -0
  21. package/dist/cjs/lib/v3/understudy/locator.js.map +1 -1
  22. package/dist/cjs/lib/v3/understudy/page.d.ts +15 -0
  23. package/dist/cjs/lib/v3/understudy/page.js +50 -0
  24. package/dist/cjs/lib/v3/understudy/page.js.map +1 -1
  25. package/dist/cjs/lib/v3/v3.d.ts +8 -0
  26. package/dist/cjs/lib/v3/v3.js +11 -0
  27. package/dist/cjs/lib/v3/v3.js.map +1 -1
  28. package/dist/cjs/lib/version.d.ts +1 -1
  29. package/dist/cjs/lib/version.js +1 -1
  30. package/dist/cjs/lib/version.js.map +1 -1
  31. package/dist/esm/lib/v3/agent/tools/click.js +15 -4
  32. package/dist/esm/lib/v3/agent/tools/click.js.map +1 -1
  33. package/dist/esm/lib/v3/agent/tools/fillFormVision.js +12 -4
  34. package/dist/esm/lib/v3/agent/tools/fillFormVision.js.map +1 -1
  35. package/dist/esm/lib/v3/agent/tools/type.js +12 -3
  36. package/dist/esm/lib/v3/agent/tools/type.js.map +1 -1
  37. package/dist/esm/lib/v3/api.d.ts +1 -1
  38. package/dist/esm/lib/v3/api.js +2 -1
  39. package/dist/esm/lib/v3/api.js.map +1 -1
  40. package/dist/esm/lib/v3/handlers/handlerUtils/actHandlerUtils.js +20 -0
  41. package/dist/esm/lib/v3/handlers/handlerUtils/actHandlerUtils.js.map +1 -1
  42. package/dist/esm/lib/v3/handlers/v3CuaAgentHandler.js +32 -0
  43. package/dist/esm/lib/v3/handlers/v3CuaAgentHandler.js.map +1 -1
  44. package/dist/esm/lib/v3/types/public/api.d.ts +53 -0
  45. package/dist/esm/lib/v3/types/public/api.js +8 -0
  46. package/dist/esm/lib/v3/types/public/api.js.map +1 -1
  47. package/dist/esm/lib/v3/types/public/options.d.ts +13 -0
  48. package/dist/esm/lib/v3/types/public/options.js.map +1 -1
  49. package/dist/esm/lib/v3/understudy/locator.d.ts +12 -0
  50. package/dist/esm/lib/v3/understudy/locator.js +44 -0
  51. package/dist/esm/lib/v3/understudy/locator.js.map +1 -1
  52. package/dist/esm/lib/v3/understudy/page.d.ts +15 -0
  53. package/dist/esm/lib/v3/understudy/page.js +50 -0
  54. package/dist/esm/lib/v3/understudy/page.js.map +1 -1
  55. package/dist/esm/lib/v3/v3.d.ts +8 -0
  56. package/dist/esm/lib/v3/v3.js +11 -0
  57. package/dist/esm/lib/v3/v3.js.map +1 -1
  58. package/dist/esm/lib/version.d.ts +1 -1
  59. package/dist/esm/lib/version.js +1 -1
  60. package/dist/esm/lib/version.js.map +1 -1
  61. package/package.json +1 -1
@@ -151,6 +151,10 @@ export declare const GenericModelConfigObjectSchema: z.ZodObject<{
151
151
  apiKey: z.ZodOptional<z.ZodString>;
152
152
  baseURL: z.ZodOptional<z.ZodString>;
153
153
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
154
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
155
+ responses: "responses";
156
+ chat: "chat";
157
+ }>>;
154
158
  provider: z.ZodOptional<z.ZodEnum<{
155
159
  openai: "openai";
156
160
  anthropic: "anthropic";
@@ -333,6 +337,10 @@ export declare const ModelConfigObjectSchema: z.ZodUnion<readonly [z.ZodObject<{
333
337
  apiKey: z.ZodOptional<z.ZodString>;
334
338
  baseURL: z.ZodOptional<z.ZodString>;
335
339
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
340
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
341
+ responses: "responses";
342
+ chat: "chat";
343
+ }>>;
336
344
  provider: z.ZodOptional<z.ZodEnum<{
337
345
  openai: "openai";
338
346
  anthropic: "anthropic";
@@ -413,6 +421,10 @@ export declare const ModelConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
413
421
  apiKey: z.ZodOptional<z.ZodString>;
414
422
  baseURL: z.ZodOptional<z.ZodString>;
415
423
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
424
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
425
+ responses: "responses";
426
+ chat: "chat";
427
+ }>>;
416
428
  provider: z.ZodOptional<z.ZodEnum<{
417
429
  openai: "openai";
418
430
  anthropic: "anthropic";
@@ -852,6 +864,7 @@ export declare const SessionStartRequestSchema: z.ZodObject<{
852
864
  experimental: z.ZodOptional<z.ZodBoolean>;
853
865
  waitForCaptchaSolves: z.ZodOptional<z.ZodBoolean>;
854
866
  actTimeoutMs: z.ZodOptional<z.ZodNumber>;
867
+ useTouch: z.ZodOptional<z.ZodBoolean>;
855
868
  }, z.core.$strip>;
856
869
  export declare const SessionStartResultSchema: z.ZodObject<{
857
870
  sessionId: z.ZodString;
@@ -945,6 +958,10 @@ export declare const ActOptionsSchema: z.ZodOptional<z.ZodObject<{
945
958
  apiKey: z.ZodOptional<z.ZodString>;
946
959
  baseURL: z.ZodOptional<z.ZodString>;
947
960
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
961
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
962
+ responses: "responses";
963
+ chat: "chat";
964
+ }>>;
948
965
  provider: z.ZodOptional<z.ZodEnum<{
949
966
  openai: "openai";
950
967
  anthropic: "anthropic";
@@ -1036,6 +1053,10 @@ export declare const ActRequestSchema: z.ZodObject<{
1036
1053
  apiKey: z.ZodOptional<z.ZodString>;
1037
1054
  baseURL: z.ZodOptional<z.ZodString>;
1038
1055
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1056
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1057
+ responses: "responses";
1058
+ chat: "chat";
1059
+ }>>;
1039
1060
  provider: z.ZodOptional<z.ZodEnum<{
1040
1061
  openai: "openai";
1041
1062
  anthropic: "anthropic";
@@ -1168,6 +1189,10 @@ export declare const ExtractOptionsSchema: z.ZodOptional<z.ZodObject<{
1168
1189
  apiKey: z.ZodOptional<z.ZodString>;
1169
1190
  baseURL: z.ZodOptional<z.ZodString>;
1170
1191
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1192
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1193
+ responses: "responses";
1194
+ chat: "chat";
1195
+ }>>;
1171
1196
  provider: z.ZodOptional<z.ZodEnum<{
1172
1197
  openai: "openai";
1173
1198
  anthropic: "anthropic";
@@ -1256,6 +1281,10 @@ export declare const ExtractRequestSchema: z.ZodObject<{
1256
1281
  apiKey: z.ZodOptional<z.ZodString>;
1257
1282
  baseURL: z.ZodOptional<z.ZodString>;
1258
1283
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1284
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1285
+ responses: "responses";
1286
+ chat: "chat";
1287
+ }>>;
1259
1288
  provider: z.ZodOptional<z.ZodEnum<{
1260
1289
  openai: "openai";
1261
1290
  anthropic: "anthropic";
@@ -1355,6 +1384,10 @@ export declare const ObserveOptionsSchema: z.ZodOptional<z.ZodObject<{
1355
1384
  apiKey: z.ZodOptional<z.ZodString>;
1356
1385
  baseURL: z.ZodOptional<z.ZodString>;
1357
1386
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1387
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1388
+ responses: "responses";
1389
+ chat: "chat";
1390
+ }>>;
1358
1391
  provider: z.ZodOptional<z.ZodEnum<{
1359
1392
  openai: "openai";
1360
1393
  anthropic: "anthropic";
@@ -1442,6 +1475,10 @@ export declare const ObserveRequestSchema: z.ZodObject<{
1442
1475
  apiKey: z.ZodOptional<z.ZodString>;
1443
1476
  baseURL: z.ZodOptional<z.ZodString>;
1444
1477
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1478
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1479
+ responses: "responses";
1480
+ chat: "chat";
1481
+ }>>;
1445
1482
  provider: z.ZodOptional<z.ZodEnum<{
1446
1483
  openai: "openai";
1447
1484
  anthropic: "anthropic";
@@ -1560,6 +1597,10 @@ export declare const AgentConfigSchema: z.ZodObject<{
1560
1597
  apiKey: z.ZodOptional<z.ZodString>;
1561
1598
  baseURL: z.ZodOptional<z.ZodString>;
1562
1599
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1600
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1601
+ responses: "responses";
1602
+ chat: "chat";
1603
+ }>>;
1563
1604
  provider: z.ZodOptional<z.ZodEnum<{
1564
1605
  openai: "openai";
1565
1606
  anthropic: "anthropic";
@@ -1646,6 +1687,10 @@ export declare const AgentConfigSchema: z.ZodObject<{
1646
1687
  apiKey: z.ZodOptional<z.ZodString>;
1647
1688
  baseURL: z.ZodOptional<z.ZodString>;
1648
1689
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1690
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1691
+ responses: "responses";
1692
+ chat: "chat";
1693
+ }>>;
1649
1694
  provider: z.ZodOptional<z.ZodEnum<{
1650
1695
  openai: "openai";
1651
1696
  anthropic: "anthropic";
@@ -1790,6 +1835,10 @@ export declare const AgentExecuteRequestSchema: z.ZodObject<{
1790
1835
  apiKey: z.ZodOptional<z.ZodString>;
1791
1836
  baseURL: z.ZodOptional<z.ZodString>;
1792
1837
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1838
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1839
+ responses: "responses";
1840
+ chat: "chat";
1841
+ }>>;
1793
1842
  provider: z.ZodOptional<z.ZodEnum<{
1794
1843
  openai: "openai";
1795
1844
  anthropic: "anthropic";
@@ -1876,6 +1925,10 @@ export declare const AgentExecuteRequestSchema: z.ZodObject<{
1876
1925
  apiKey: z.ZodOptional<z.ZodString>;
1877
1926
  baseURL: z.ZodOptional<z.ZodString>;
1878
1927
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1928
+ openaiEndpointFormat: z.ZodOptional<z.ZodEnum<{
1929
+ responses: "responses";
1930
+ chat: "chat";
1931
+ }>>;
1879
1932
  provider: z.ZodOptional<z.ZodEnum<{
1880
1933
  openai: "openai";
1881
1934
  anthropic: "anthropic";
@@ -191,6 +191,10 @@ const ModelConfigBaseSchema = v4_1.z
191
191
  })
192
192
  .strict();
193
193
  exports.GenericModelConfigObjectSchema = ModelConfigBaseSchema.extend({
194
+ openaiEndpointFormat: v4_1.z.enum(["responses", "chat"]).optional().meta({
195
+ description: "Wire format used by an OpenAI-compatible endpoint. Defaults to the Responses API; use chat for Chat Completions-only endpoints.",
196
+ example: "chat",
197
+ }),
194
198
  provider: v4_1.z
195
199
  .enum(["openai", "anthropic", "google", "microsoft", "bedrock"])
196
200
  .optional()
@@ -498,6 +502,10 @@ exports.SessionStartRequestSchema = v4_1.z
498
502
  actTimeoutMs: v4_1.z.number().optional().meta({
499
503
  description: "Timeout in ms for act operations (deprecated, v2 only)",
500
504
  }),
505
+ useTouch: v4_1.z.boolean().optional().meta({
506
+ description: "Actuate coordinate pointer actions as trusted touch taps instead of mouse input (for sessions rendering a mobile layout)",
507
+ example: false,
508
+ }),
501
509
  })
502
510
  .meta({ id: "SessionStartRequest" });
503
511
  exports.SessionStartResultSchema = v4_1.z
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../../lib/v3/types/public/api.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;GASG;AACH,+BAA2B;AAE3B,iDAAiD;AACjD,+CAIwB;AAHtB,uHAAA,uBAAuB,OAAA;AACvB,mHAAA,mBAAmB,OAAA;AACnB,+GAAA,eAAe,OAAA;AAGjB,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF,gDAAgD;AACnC,QAAA,+BAA+B,GAAG,MAAC;KAC7C,MAAM,CAAC;IACN,IAAI,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,mBAAmB,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,MAAC,CAAC,OAA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\n *\n * Naming conventions:\n * - `*RequestSchema` - Request body schemas (zod4), `*Request` is the inferred type\n * - `*ResultSchema` - Inner response data (unwrapped), `*Result` is the inferred type\n * - `*ResponseSchema` - Full response with success wrapper: { success: true, data: *Result }, `*Response` is the inferred type\n *\n * All TypeScript types are inferred from the Zod4 *Schemas using z.infer<>\n */\nimport { z } from \"zod/v4\";\nimport type Browserbase from \"@browserbasehq/sdk\";\nimport { VariablesSchema } from \"./variables.js\";\nexport {\n VariablePrimitiveSchema,\n VariableValueSchema,\n VariablesSchema,\n} from \"./variables.js\";\n\n// =============================================================================\n// Shared Components\n// =============================================================================\n\n/** Browser launch options for local browsers */\nexport const LocalBrowserLaunchOptionsSchema = z\n .object({\n args: z.array(z.string()).optional(),\n executablePath: z.string().optional(),\n port: z.number().optional(),\n userDataDir: z.string().optional(),\n preserveUserDataDir: z.boolean().optional(),\n headless: z.boolean().optional(),\n devtools: z.boolean().optional(),\n chromiumSandbox: z.boolean().optional(),\n ignoreDefaultArgs: z.union([z.boolean(), z.array(z.string())]).optional(),\n proxy: z\n .object({\n server: z.string(),\n bypass: z.string().optional(),\n username: z.string().optional(),\n password: z.string().optional(),\n })\n .optional(),\n locale: z.string().optional(),\n viewport: z.object({ width: z.number(), height: z.number() }).optional(),\n deviceScaleFactor: z.number().optional(),\n hasTouch: z.boolean().optional(),\n ignoreHTTPSErrors: z.boolean().optional(),\n cdpUrl: z.string().optional(),\n cdpHeaders: z.record(z.string(), z.string()).optional(),\n connectTimeoutMs: z.number().optional(),\n downloadsPath: z.string().optional(),\n acceptDownloads: z.boolean().optional(),\n })\n .strict()\n .meta({ id: \"LocalBrowserLaunchOptions\" });\n\n/** Detailed model configuration object */\nexport const GoogleServiceAccountCredentialsSchema = z\n .object({\n type: z.literal(\"service_account\").optional(),\n project_id: z.string().optional(),\n private_key_id: z.string().optional(),\n private_key: z.string(),\n client_email: z.string(),\n client_id: z.string().optional(),\n auth_uri: z.url().optional(),\n token_uri: z.url().optional(),\n auth_provider_x509_cert_url: z.url().optional(),\n client_x509_cert_url: z.url().optional(),\n universe_domain: z.string().optional(),\n })\n .strict()\n .meta({ id: \"GoogleServiceAccountCredentials\" });\n\nexport const GoogleServiceAccountAuthSchema = z\n .object({\n type: z.literal(\"googleServiceAccount\").meta({\n description:\n \"Use inline Google Cloud service account credentials for provider authentication\",\n }),\n credentials: GoogleServiceAccountCredentialsSchema.meta({\n description: \"Google Cloud service account credentials\",\n }),\n scopes: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .meta({\n description: \"Google auth scopes for the desired API request\",\n }),\n projectId: z.string().optional().meta({\n description: \"Google Cloud project ID used by google-auth-library\",\n }),\n universeDomain: z.string().optional().meta({\n description: \"Google Cloud universe domain\",\n }),\n })\n .strict()\n .meta({ id: \"GoogleServiceAccountAuth\" });\n\nexport const AzureEntraIdAuthSchema = z\n .object({\n type: z.literal(\"azureEntraId\").meta({\n description: \"Use a Microsoft Entra ID bearer token for authentication\",\n }),\n token: z.string().min(1).meta({\n description: \"Microsoft Entra ID bearer token for Azure OpenAI\",\n }),\n })\n .strict()\n .meta({ id: \"AzureEntraIdAuth\" });\n\nexport const ModelAuthSchema = z\n .discriminatedUnion(\"type\", [\n GoogleServiceAccountAuthSchema,\n AzureEntraIdAuthSchema,\n ])\n .meta({ id: \"ModelAuth\" });\n\nexport const VertexProviderOptionsSchema = z\n .object({\n project: z.string().meta({\n description: \"Google Cloud project ID for Vertex AI models\",\n example: \"my-gcp-project\",\n }),\n location: z.string().meta({\n description: \"Google Cloud location for Vertex AI models\",\n example: \"us-central1\",\n }),\n baseURL: z.string().url().optional().meta({\n description: \"Base URL for the Vertex AI provider\",\n }),\n headers: z.record(z.string(), z.string()).optional().meta({\n description:\n \"Custom headers sent with every request to the Vertex AI provider\",\n }),\n })\n .strict()\n .meta({ id: \"VertexProviderOptions\" });\n\nexport const AzureProviderOptionsSchema = z\n .object({\n resourceName: z.string().optional().meta({\n description: \"Azure OpenAI resource name\",\n example: \"my-azure-openai-resource\",\n }),\n baseURL: z.string().url().optional().meta({\n description: \"Base URL for the Azure OpenAI provider\",\n }),\n apiVersion: z.string().optional().meta({\n description: \"Azure OpenAI API version\",\n example: \"2024-10-01-preview\",\n }),\n useDeploymentBasedUrls: z.boolean().optional().meta({\n description: \"Whether to use deployment-based Azure OpenAI URLs\",\n }),\n headers: z.record(z.string(), z.string()).optional().meta({\n description:\n \"Custom headers sent with every request to the Azure OpenAI provider\",\n }),\n })\n .strict()\n .meta({ id: \"AzureProviderOptions\" });\n\nexport const VertexModelProviderOptionsSchema = z\n .object({\n vertex: VertexProviderOptionsSchema.meta({\n description: \"Vertex AI provider-specific settings\",\n }),\n })\n .strict()\n .meta({ id: \"VertexModelProviderOptions\" });\n\nexport const AzureModelProviderOptionsSchema = z\n .object({\n azure: AzureProviderOptionsSchema.meta({\n description: \"Azure OpenAI provider-specific settings\",\n }),\n })\n .strict()\n .meta({ id: \"AzureModelProviderOptions\" });\n\nexport const ModelProviderOptionsSchema = z\n .union([VertexModelProviderOptionsSchema, AzureModelProviderOptionsSchema])\n .meta({ id: \"ModelProviderOptions\" });\n\nconst ModelConfigBaseSchema = z\n .object({\n modelName: z.string().meta({\n description:\n \"Model name string with provider prefix (e.g., 'openai/gpt-5-nano')\",\n example: \"openai/gpt-5.4-mini\",\n }),\n apiKey: z.string().optional().meta({\n description: \"API key for the model provider\",\n example: \"sk-some-openai-api-key\",\n }),\n baseURL: z.string().url().optional().meta({\n description: \"Base URL for the model provider\",\n example: \"https://api.openai.com/v1\",\n }),\n headers: z.record(z.string(), z.string()).optional().meta({\n description:\n \"Custom headers sent with every request to the model provider\",\n }),\n })\n .strict();\n\nexport const GenericModelConfigObjectSchema = ModelConfigBaseSchema.extend({\n provider: z\n .enum([\"openai\", \"anthropic\", \"google\", \"microsoft\", \"bedrock\"])\n .optional()\n .meta({\n description:\n \"AI provider for the model (or provide a baseURL endpoint instead)\",\n example: \"openai\",\n }),\n})\n .strict()\n .meta({ id: \"GenericModelConfigObject\" });\n\nexport const VertexModelConfigObjectSchema = ModelConfigBaseSchema.extend({\n provider: z.literal(\"vertex\").meta({\n description: \"Vertex AI model provider\",\n }),\n auth: GoogleServiceAccountAuthSchema.meta({\n description: \"Vertex provider authentication configuration\",\n }),\n providerOptions: VertexModelProviderOptionsSchema.meta({\n description: \"Vertex provider-specific model configuration\",\n }),\n})\n .strict()\n .meta({ id: \"VertexModelConfigObject\" });\n\nconst AzureModelConfigBaseSchema = ModelConfigBaseSchema.extend({\n provider: z.literal(\"azure\").meta({\n description: \"Azure OpenAI model provider\",\n }),\n providerOptions: AzureModelProviderOptionsSchema.meta({\n description: \"Azure provider-specific model configuration\",\n }),\n}).strict();\n\nexport const AzureEntraModelConfigObjectSchema =\n AzureModelConfigBaseSchema.omit({ apiKey: true })\n .extend({\n auth: AzureEntraIdAuthSchema.meta({\n description: \"Azure provider authentication configuration\",\n }),\n })\n .strict()\n .meta({ id: \"AzureEntraModelConfigObject\" });\n\nexport const AzureApiKeyModelConfigObjectSchema =\n AzureModelConfigBaseSchema.strict().meta({\n id: \"AzureApiKeyModelConfigObject\",\n });\n\nexport const AzureModelConfigObjectSchema = z\n .union([\n AzureEntraModelConfigObjectSchema,\n AzureApiKeyModelConfigObjectSchema,\n ])\n .meta({ id: \"AzureModelConfigObject\" });\n\nexport const ModelConfigObjectSchema = z\n .union([\n VertexModelConfigObjectSchema,\n AzureModelConfigObjectSchema,\n GenericModelConfigObjectSchema,\n ])\n .meta({ id: \"ModelConfigObject\" });\n\n/** Model configuration */\nexport const ModelConfigSchema = ModelConfigObjectSchema.meta({\n id: \"ModelConfig\",\n});\n\n/** Action object returned by observe and used by act */\nexport const ActionSchema = z\n .object({\n selector: z.string().meta({\n description: \"CSS selector or XPath for the element\",\n example: \"[data-testid='submit-button']\",\n }),\n description: z.string().meta({\n description: \"Human-readable description of the action\",\n example: \"Click the submit button\",\n }),\n backendNodeId: z.number().optional().meta({\n description: \"Backend node ID for the element\",\n }),\n method: z.string().optional().meta({\n description: \"The method to execute (click, fill, etc.)\",\n example: \"click\",\n }),\n arguments: z\n .array(z.string())\n .optional()\n .meta({\n description: \"Arguments to pass to the method\",\n example: [\"Hello World\"],\n }),\n })\n .meta({\n id: \"Action\",\n description: \"Action object returned by observe and used by act\",\n });\n\n/** Session ID path parameter */\nexport const SessionIdParamsSchema = z\n .object({\n id: z.string().meta({\n description: \"Unique session identifier\",\n example: \"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123\",\n }),\n })\n .strict()\n .meta({ id: \"SessionIdParams\" });\n\n/** Browser configuration for session start */\nexport const BrowserConfigSchema = z\n .object({\n type: z.enum([\"local\", \"browserbase\"]).optional().meta({\n description: \"Browser type to use\",\n example: \"local\",\n }),\n cdpUrl: z.string().optional().meta({\n description:\n \"Chrome DevTools Protocol URL for connecting to existing browser\",\n example: \"ws://localhost:9222\",\n }),\n launchOptions: LocalBrowserLaunchOptionsSchema.optional(),\n })\n .meta({ id: \"BrowserConfig\" });\n\n// =============================================================================\n// Request Headers (operational only - auth headers are in security schemes)\n// =============================================================================\n\n/** Operational headers for all session requests (auth handled via security schemes) */\nexport const SessionHeadersSchema = z\n .object({\n \"x-stream-response\": z.enum([\"true\", \"false\"]).optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: \"true\",\n }),\n })\n .meta({ id: \"SessionHeaders\" });\n\n// =============================================================================\n// Response Wrapper Helper\n// =============================================================================\n\n/** Wraps a result schema in standard success response format */\nconst wrapResponse = <T extends z.ZodTypeAny>(resultSchema: T, name: string) =>\n z\n .object({\n success: z.boolean().meta({\n description: \"Indicates whether the request was successful\",\n }),\n data: resultSchema,\n })\n .meta({ id: name });\n\n/** Standard error response */\nexport const ErrorResponseSchema = z\n .object({\n success: z.literal(false),\n error: z.string(),\n code: z.string().optional(),\n })\n .strict()\n .meta({ id: \"ErrorResponse\" });\n\n// =============================================================================\n// Browserbase Session Create Params (zod+hints duplicated version of Browserbase.Sessions.SessionCreateParams)\n// =============================================================================\n\n/** Browserbase viewport configuration */\nexport const BrowserbaseViewportSchema = z\n .object({\n width: z.number().optional(),\n height: z.number().optional(),\n })\n .meta({ id: \"BrowserbaseViewport\" });\n\n/** Browserbase fingerprint screen configuration */\nexport const BrowserbaseFingerprintScreenSchema = z\n .object({\n maxHeight: z.number().optional(),\n maxWidth: z.number().optional(),\n minHeight: z.number().optional(),\n minWidth: z.number().optional(),\n })\n .meta({ id: \"BrowserbaseFingerprintScreen\" });\n\n/** Browserbase fingerprint configuration for stealth mode */\nexport const BrowserbaseFingerprintSchema = z\n .object({\n browsers: z\n .array(z.enum([\"chrome\", \"edge\", \"firefox\", \"safari\"]))\n .optional(),\n devices: z.array(z.enum([\"desktop\", \"mobile\"])).optional(),\n httpVersion: z.enum([\"1\", \"2\"]).optional(),\n locales: z.array(z.string()).optional(),\n operatingSystems: z\n .array(z.enum([\"android\", \"ios\", \"linux\", \"macos\", \"windows\"]))\n .optional(),\n screen: BrowserbaseFingerprintScreenSchema.optional(),\n })\n .meta({ id: \"BrowserbaseFingerprint\" });\n\n/** Browserbase context configuration for session persistence */\nexport const BrowserbaseContextSchema = z\n .object({\n id: z.string(),\n persist: z.boolean().optional(),\n })\n .meta({ id: \"BrowserbaseContext\" });\n\n/** Browserbase browser settings for session creation */\nexport const BrowserbaseBrowserSettingsSchema = z\n .object({\n advancedStealth: z.boolean().optional(),\n blockAds: z.boolean().optional(),\n captchaImageSelector: z.string().optional(),\n captchaInputSelector: z.string().optional(),\n context: BrowserbaseContextSchema.optional(),\n extensionId: z.string().optional(),\n fingerprint: BrowserbaseFingerprintSchema.optional(),\n logSession: z.boolean().optional(),\n os: z.enum([\"windows\", \"mac\", \"linux\", \"mobile\", \"tablet\"]).optional(),\n recordSession: z.boolean().optional(),\n solveCaptchas: z.boolean().optional(),\n verified: z.boolean().optional(),\n viewport: BrowserbaseViewportSchema.optional(),\n })\n .meta({ id: \"BrowserbaseBrowserSettings\" });\n\n/** Browserbase managed proxy geolocation configuration */\nexport const BrowserbaseProxyGeolocationSchema = z\n .object({\n country: z.string(),\n city: z.string().optional(),\n state: z.string().optional(),\n })\n .meta({ id: \"BrowserbaseProxyGeolocation\" });\n\n/** Browserbase managed proxy configuration */\nexport const BrowserbaseProxyConfigSchema = z\n .object({\n type: z.literal(\"browserbase\"),\n domainPattern: z.string().optional(),\n geolocation: BrowserbaseProxyGeolocationSchema.optional(),\n })\n .meta({ id: \"BrowserbaseProxyConfig\" });\n\n/** External proxy configuration */\nexport const ExternalProxyConfigSchema = z\n .object({\n type: z.literal(\"external\"),\n server: z.string(),\n domainPattern: z.string().optional(),\n username: z.string().optional(),\n password: z.string().optional(),\n })\n .meta({ id: \"ExternalProxyConfig\" });\n\n/** Union of proxy configuration types */\nexport const ProxyConfigSchema = z\n .discriminatedUnion(\"type\", [\n BrowserbaseProxyConfigSchema,\n ExternalProxyConfigSchema,\n ])\n .meta({ id: \"ProxyConfig\" });\n\n/** Browserbase region identifier for multi-region support */\nexport const BrowserbaseRegionSchema = z\n .enum([\"us-west-2\", \"us-east-1\", \"eu-central-1\", \"ap-southeast-1\"])\n .meta({ id: \"BrowserbaseRegion\" });\n\n/** Browserbase session creation parameters */\nexport const BrowserbaseSessionCreateParamsSchema = z\n .object({\n projectId: z.string().optional().meta({\n deprecated: true,\n description:\n \"Deprecated. Browserbase API keys are now project-scoped, so this field is no longer required.\",\n }),\n browserSettings: BrowserbaseBrowserSettingsSchema.optional(),\n extensionId: z.string().optional(),\n keepAlive: z.boolean().optional(),\n proxies: z.union([z.boolean(), z.array(ProxyConfigSchema)]).optional(),\n region: BrowserbaseRegionSchema.optional(),\n timeout: z.number().optional(),\n userMetadata: z.record(z.string(), z.unknown()).optional(),\n })\n .meta({ id: \"BrowserbaseSessionCreateParams\" });\n\n// =============================================================================\n// Session Start\n// =============================================================================\n\nexport const SessionStartRequestSchema = z\n .object({\n modelName: z.string().meta({\n description: \"Model name to use for AI operations\",\n example: \"openai/gpt-5.4-mini\",\n }),\n domSettleTimeoutMs: z.number().optional().meta({\n description: \"Timeout in ms to wait for DOM to settle\",\n example: 5000,\n }),\n verbose: z\n .union([z.literal(0), z.literal(1), z.literal(2)])\n .optional()\n .meta({\n description: \"Logging verbosity level (0=quiet, 1=normal, 2=debug)\",\n example: 1,\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n delete jsonSchema.anyOf;\n delete jsonSchema.allOf;\n delete jsonSchema.oneOf;\n jsonSchema.type = \"number\";\n jsonSchema.enum = [0, 1, 2];\n },\n }),\n systemPrompt: z.string().optional().meta({\n description: \"Custom system prompt for AI operations\",\n }),\n browserbaseSessionCreateParams:\n BrowserbaseSessionCreateParamsSchema.optional(),\n browser: BrowserConfigSchema.optional(),\n selfHeal: z.boolean().optional().meta({\n description: \"Enable self-healing for failed actions\",\n example: true,\n }),\n browserbaseSessionID: z.string().optional().meta({\n description: \"Existing Browserbase session ID to resume\",\n }),\n // experimental is a V3 field but doesn't need to go over the wire - included because wire type imports options type\n experimental: z.boolean().optional(),\n // V2 compatibility fields - only included because the server imports this type and supports V2\n // should never be used in v3 clients or v3-only server implementations\n waitForCaptchaSolves: z.boolean().optional().meta({\n description: \"Wait for captcha solves (deprecated, v2 only)\",\n }),\n actTimeoutMs: z.number().optional().meta({\n description: \"Timeout in ms for act operations (deprecated, v2 only)\",\n }),\n })\n .meta({ id: \"SessionStartRequest\" });\n\nexport const SessionStartResultSchema = z\n .object({\n sessionId: z.string().meta({\n description: \"Unique Browserbase session identifier\",\n example: \"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123\",\n }),\n cdpUrl: z.string().nullish().meta({\n description:\n \"CDP WebSocket URL for connecting to the Browserbase cloud browser (present when available)\",\n example: \"wss://connect.browserbase.com/?signingKey=abc123\",\n }),\n available: z.boolean(),\n })\n .meta({ id: \"SessionStartResult\" });\n\nexport const SessionStartResponseSchema = wrapResponse(\n SessionStartResultSchema,\n \"SessionStartResponse\",\n);\n\n// =============================================================================\n// Session End\n// =============================================================================\n\n/** Session end request - no request body. */\nexport const SessionEndRequestSchema = z\n .object({})\n .strict()\n .optional()\n .meta({ id: \"SessionEndRequest\" });\n\nexport const SessionEndResultSchema = z\n .object({})\n .strict()\n .meta({ id: \"SessionEndResult\" });\n\n/** Session end response - just success flag, no data wrapper */\nexport const SessionEndResponseSchema = z\n .object({\n success: z.boolean().meta({\n description: \"Indicates whether the request was successful\",\n }),\n })\n .strict()\n .meta({ id: \"SessionEndResponse\" });\n\n// =============================================================================\n// Act\n// =============================================================================\n\nexport const ActOptionsSchema = z\n .object({\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n variables: VariablesSchema.optional().meta({\n description:\n \"Variables to substitute in the action instruction. Accepts flat primitives or { value, description? } objects.\",\n example: {\n username: \"john_doe\",\n password: {\n value: \"secret123\",\n description: \"The login password\",\n },\n },\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the action\",\n example: 30000,\n }),\n })\n .optional()\n .meta({ id: \"ActOptions\" });\n\nexport const ActRequestSchema = z\n .object({\n input: z.string().or(ActionSchema).meta({\n description: \"Natural language instruction or Action object\",\n example: \"Click the login button\",\n }),\n options: ActOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the action\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"ActRequest\" });\n\n/** Inner act result data */\nexport const ActResultDataSchema = z\n .object({\n success: z.boolean().meta({\n description: \"Whether the action completed successfully\",\n example: true,\n }),\n message: z.string().meta({\n description: \"Human-readable result message\",\n example: \"Successfully clicked the login button\",\n }),\n actionDescription: z.string().meta({\n description: \"Description of the action that was performed\",\n example: \"Clicked button with text 'Login'\",\n }),\n actions: z.array(ActionSchema).meta({\n description: \"List of actions that were executed\",\n }),\n })\n .meta({ id: \"ActResultData\" });\n\nexport const ActResultSchema = z\n .object({\n result: ActResultDataSchema,\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"ActResult\" });\n\nexport const ActResponseSchema = wrapResponse(ActResultSchema, \"ActResponse\");\n\n// =============================================================================\n// Extract\n// =============================================================================\n\nexport const ExtractOptionsSchema = z\n .object({\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the extraction\",\n example: 30000,\n }),\n selector: z.string().optional().meta({\n description: \"CSS selector to scope extraction to a specific element\",\n example: \"#main-content\",\n }),\n ignoreSelectors: z\n .array(z.string())\n .optional()\n .meta({\n description:\n \"Selectors for elements and subtrees that should be excluded from extraction\",\n example: [\"nav\", \".cookie-banner\", \"#sidebar-ads\"],\n }),\n screenshot: z.boolean().optional().meta({\n description:\n \"When true, include a screenshot of the current viewport in the extraction LLM call. Defaults to false.\",\n example: false,\n }),\n })\n .optional()\n .meta({ id: \"ExtractOptions\" });\n\nexport const ExtractRequestSchema = z\n .object({\n instruction: z.string().optional().meta({\n description: \"Natural language instruction for what to extract\",\n example: \"Extract all product names and prices from the page\",\n }),\n schema: z.record(z.string(), z.unknown()).optional().meta({\n description: \"JSON Schema defining the structure of data to extract\",\n }),\n options: ExtractOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the extraction\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"ExtractRequest\" });\n\nexport const ExtractResultSchema = z\n .object({\n result: z.unknown().meta({\n description: \"Extracted data matching the requested schema\",\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n jsonSchema[\"x-stainless-any\"] = true;\n },\n }),\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"ExtractResult\" });\n\nexport const ExtractResponseSchema = wrapResponse(\n ExtractResultSchema,\n \"ExtractResponse\",\n);\n\n// =============================================================================\n// Observe\n// =============================================================================\n\nexport const ObserveOptionsSchema = z\n .object({\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n variables: VariablesSchema.optional().meta({\n description:\n \"Variables whose names are exposed to the model so observe() returns %variableName% placeholders in suggested action arguments instead of literal values. Accepts flat primitives or { value, description? } objects.\",\n example: {\n username: {\n value: \"john@example.com\",\n description: \"The login email\",\n },\n rememberMe: true,\n },\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the observation\",\n example: 30000,\n }),\n selector: z.string().optional().meta({\n description: \"CSS selector to scope observation to a specific element\",\n example: \"nav\",\n }),\n ignoreSelectors: z\n .array(z.string())\n .optional()\n .meta({\n description:\n \"Selectors for elements and subtrees that should be excluded from observation\",\n example: [\"nav\", \".cookie-banner\", \"#sidebar-ads\"],\n }),\n })\n .optional()\n .meta({ id: \"ObserveOptions\" });\n\nexport const ObserveRequestSchema = z\n .object({\n instruction: z.string().optional().meta({\n description: \"Natural language instruction for what actions to find\",\n example: \"Find all clickable navigation links\",\n }),\n options: ObserveOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the observation\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"ObserveRequest\" });\n\nexport const ObserveResultSchema = z\n .object({\n result: z.array(ActionSchema),\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"ObserveResult\" });\n\nexport const ObserveResponseSchema = wrapResponse(\n ObserveResultSchema,\n \"ObserveResponse\",\n);\n\n// =============================================================================\n// Agent Execute\n// =============================================================================\n\nexport const AgentConfigSchema = z\n .object({\n provider: z // cloud accepts provider: at the top level for legacy reasons, in the future we should remove it\n .enum([\"openai\", \"anthropic\", \"google\", \"microsoft\", \"bedrock\"])\n .optional()\n .meta({\n description:\n \"AI provider for the agent (legacy, use model: openai/gpt-5-nano instead)\",\n example: \"openai\",\n }),\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n systemPrompt: z.string().optional().meta({\n description: \"Custom system prompt for the agent\",\n }),\n cua: z.boolean().optional().meta({\n description:\n \"Deprecated. Use mode: 'cua' instead. If both are provided, mode takes precedence.\",\n example: true,\n }),\n mode: z.enum([\"dom\", \"hybrid\", \"cua\"]).optional().meta({\n description:\n \"Tool mode for the agent (dom, hybrid, cua). If set, overrides cua.\",\n example: \"cua\",\n }),\n executionModel: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano') for tool execution (observe/act calls within agent tools). If not specified, inherits from the main model configuration.\",\n }),\n })\n .meta({ id: \"AgentConfig\" });\n\n/** Action taken by the agent during execution */\nexport const AgentActionSchema = z\n .object({\n type: z.string().meta({\n description: \"Type of action taken\",\n example: \"click\",\n }),\n reasoning: z.string().optional().meta({\n description: \"Agent's reasoning for taking this action\",\n }),\n taskCompleted: z.boolean().optional(),\n action: z.string().optional(),\n timeMs: z.number().optional().meta({\n description: \"Time taken for this action in ms\",\n }),\n pageText: z.string().optional(),\n pageUrl: z.string().optional(),\n instruction: z.string().optional(),\n })\n .passthrough()\n .meta({ id: \"AgentAction\" });\n\n/** Token usage statistics for agent execution */\nexport const AgentUsageSchema = z\n .object({\n input_tokens: z.number().meta({ example: 1500 }),\n output_tokens: z.number().meta({ example: 250 }),\n reasoning_tokens: z.number().optional(),\n cached_input_tokens: z.number().optional(),\n inference_time_ms: z.number().meta({ example: 2500 }),\n })\n .meta({ id: \"AgentUsage\" });\n\n/** Result data from agent execution */\nexport const AgentResultDataSchema = z\n .object({\n success: z.boolean().meta({\n description: \"Whether the agent completed successfully\",\n example: true,\n }),\n message: z.string().meta({\n description: \"Summary of what the agent accomplished\",\n example: \"Successfully logged in and navigated to dashboard\",\n }),\n actions: z.array(AgentActionSchema),\n completed: z.boolean().meta({\n description: \"Whether the agent finished its task\",\n example: true,\n }),\n metadata: z.record(z.string(), z.unknown()).optional(),\n usage: AgentUsageSchema.optional(),\n })\n .meta({ id: \"AgentResultData\" });\n\nexport const AgentCacheEntrySchema = z\n .object({\n cacheKey: z.string().meta({\n description:\n \"Opaque cache identifier computed from instruction, URL, options, and config\",\n }),\n entry: z.unknown().meta({\n description: \"Serialized cache entry that can be written to disk\",\n }),\n })\n .meta({ id: \"AgentCacheEntry\" });\n\nexport const AgentExecuteOptionsSchema = z\n .object({\n instruction: z.string().meta({\n description: \"Natural language instruction for the agent\",\n example:\n \"Log in with username 'demo' and password 'test123', then navigate to settings\",\n }),\n maxSteps: z.number().optional().meta({\n description: \"Maximum number of steps the agent can take\",\n example: 20,\n }),\n highlightCursor: z.boolean().optional().meta({\n description: \"Whether to visually highlight the cursor during execution\",\n example: true,\n }),\n useSearch: z.boolean().optional().meta({\n description:\n \"Whether to enable the web search tool powered by Browserbase Search API\",\n example: true,\n }),\n toolTimeout: z.number().optional().meta({\n description: \"Timeout in milliseconds for each agent tool call\",\n example: 30000,\n }),\n variables: VariablesSchema.optional().meta({\n description:\n \"Variables available to the agent via %variableName% syntax in supported tools\",\n }),\n })\n .meta({ id: \"AgentExecuteOptions\" });\n\nexport const AgentExecuteRequestSchema = z\n .object({\n agentConfig: AgentConfigSchema,\n executeOptions: AgentExecuteOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the agent\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n shouldCache: z.boolean().optional().meta({\n description:\n \"If true, the server captures a cache entry and returns it to the client\",\n }),\n })\n .meta({ id: \"AgentExecuteRequest\" });\n\nexport const AgentExecuteResultSchema = z\n .object({\n result: AgentResultDataSchema,\n cacheEntry: AgentCacheEntrySchema.optional(),\n })\n .meta({ id: \"AgentExecuteResult\" });\n\nexport const AgentExecuteResponseSchema = wrapResponse(\n AgentExecuteResultSchema,\n \"AgentExecuteResponse\",\n);\n\n// =============================================================================\n// Navigate\n// =============================================================================\n\nexport const NavigateOptionsSchema = z\n .object({\n referer: z.string().optional().meta({\n description: \"Referer header to send with the request\",\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the navigation\",\n example: 30000,\n }),\n waitUntil: z\n .enum([\"load\", \"domcontentloaded\", \"networkidle\"])\n .optional()\n .meta({\n description: \"When to consider navigation complete\",\n example: \"networkidle\",\n }),\n })\n .optional()\n .meta({ id: \"NavigateOptions\" });\n\nexport const NavigateRequestSchema = z\n .object({\n url: z.string().meta({\n description: \"URL to navigate to\",\n example: \"https://example.com\",\n }),\n options: NavigateOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the navigation\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"NavigateRequest\" });\n\nexport const NavigateResultSchema = z\n .object({\n // SerializableResponse from types/private/api.ts - no Zod schema available\n // as it wraps complex devtools-protocol types (Protocol.Network.Response)\n result: z\n .unknown()\n .nullable()\n .meta({\n description: \"Navigation response (Playwright Response object or null)\",\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n jsonSchema[\"x-stainless-any\"] = true;\n },\n }),\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"NavigateResult\" });\n\nexport const NavigateResponseSchema = wrapResponse(\n NavigateResultSchema,\n \"NavigateResponse\",\n);\n\n// =============================================================================\n// Replay Metrics\n// =============================================================================\n\n/** Token usage for a single action */\nexport const TokenUsageSchema = z\n .object({\n inputTokens: z.number().optional(),\n outputTokens: z.number().optional(),\n timeMs: z.number().optional(),\n cost: z.number().optional(),\n })\n .meta({ id: \"TokenUsage\" });\n\n/** Action entry in replay metrics */\nexport const ReplayActionSchema = z\n .object({\n method: z.string(),\n parameters: z.record(z.string(), z.unknown()),\n result: z.record(z.string(), z.unknown()),\n timestamp: z.number(),\n endTime: z.number().optional(),\n tokenUsage: TokenUsageSchema.optional(),\n })\n .meta({ id: \"ReplayAction\" });\n\n/** Page entry in replay metrics */\nexport const ReplayPageSchema = z\n .object({\n url: z.string(),\n timestamp: z.number(),\n duration: z.number(),\n actions: z.array(ReplayActionSchema),\n })\n .meta({ id: \"ReplayPage\" });\n\n/** Inner result data for replay */\nexport const ReplayResultSchema = z\n .object({\n pages: z.array(ReplayPageSchema),\n clientLanguage: z.string().optional(),\n })\n .meta({ id: \"ReplayResult\" });\n\nexport const ReplayResponseSchema = wrapResponse(\n ReplayResultSchema,\n \"ReplayResponse\",\n);\n\n// =============================================================================\n// SSE Stream Events\n// =============================================================================\n// These schemas define the Server-Sent Events format for streaming responses.\n// Streaming is enabled by setting the `x-stream-response: true` header.\n\n/** Status values for SSE stream events */\nexport const StreamEventStatusSchema = z\n .enum([\"starting\", \"connected\", \"running\", \"finished\", \"error\"])\n .meta({\n id: \"StreamEventStatus\",\n description: \"Current status of the streaming operation\",\n });\n\n/** Type discriminator for SSE stream events */\nexport const StreamEventTypeSchema = z.enum([\"system\", \"log\"]).meta({\n id: \"StreamEventType\",\n description: \"Type of stream event - system events or log messages\",\n});\n\n/** Data payload for system stream events */\nexport const StreamEventSystemDataSchema = z\n .object({\n status: StreamEventStatusSchema,\n result: z\n .unknown()\n .optional()\n .meta({\n description: \"Operation result (present when status is 'finished')\",\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n jsonSchema[\"x-stainless-any\"] = true;\n },\n }),\n error: z.string().optional().meta({\n description: \"Error message (present when status is 'error')\",\n }),\n })\n .meta({ id: \"StreamEventSystemData\" });\n\n/** Data payload for log stream events */\nexport const StreamEventLogDataSchema = z\n .object({\n status: z.literal(\"running\"),\n message: z.string().meta({\n description: \"Log message from the operation\",\n }),\n })\n .meta({ id: \"StreamEventLogData\" });\n\n/**\n * SSE stream event sent during streaming responses.\n *\n * The SSE wire format includes an `event:` line that mirrors the stream status\n * (`starting`, `connected`, `running`, `finished`, or `error`) followed by a\n * JSON `data:` line containing the typed payload below.\n */\nexport const StreamEventSchema = z\n .object({\n data: z.union([StreamEventSystemDataSchema, StreamEventLogDataSchema]),\n type: StreamEventTypeSchema,\n id: z.string().uuid().meta({\n description: \"Unique identifier for this event\",\n example: \"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123\",\n }),\n })\n .meta({\n id: \"StreamEvent\",\n description:\n \"Server-Sent Event emitted during streaming responses. Events are sent as `event: <status>\\\\ndata: <JSON>\\\\n\\\\n`, where the JSON payload has the shape `{ data, type, id }`.\",\n });\n\n// =============================================================================\n// OpenAPI Components\n// =============================================================================\n// These objects are exported for use in gen-openapi.ts to configure the spec.\n\n/** OpenAPI security schemes for authentication */\nexport const openApiSecuritySchemes = {\n BrowserbaseApiKey: {\n type: \"apiKey\",\n in: \"header\",\n name: \"x-bb-api-key\",\n description: \"Browserbase API key for authentication\",\n },\n BrowserbaseProjectId: {\n type: \"apiKey\",\n in: \"header\",\n name: \"x-bb-project-id\",\n description:\n \"Deprecated. Browserbase API keys are now project-scoped, so this header is no longer required.\",\n },\n ModelApiKey: {\n type: \"apiKey\",\n in: \"header\",\n name: \"x-model-api-key\",\n description: \"API key for the AI model provider (OpenAI, Anthropic, etc.)\",\n },\n} as const;\n\n/** OpenAPI links for session operations (used in SessionStart response) */\nexport const openApiLinks = {\n SessionAct: {\n operationId: \"SessionAct\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Perform an action on the session\",\n },\n SessionExtract: {\n operationId: \"SessionExtract\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Extract data from the session\",\n },\n SessionObserve: {\n operationId: \"SessionObserve\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Observe available actions on the session\",\n },\n SessionNavigate: {\n operationId: \"SessionNavigate\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Navigate to a URL in the session\",\n },\n SessionAgentExecute: {\n operationId: \"SessionAgentExecute\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Execute an agent on the session\",\n },\n SessionReplay: {\n operationId: \"SessionReplay\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Replay session metrics\",\n },\n SessionEnd: {\n operationId: \"SessionEnd\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"End the session and release resources\",\n },\n} as const;\n\n/** OpenAPI operation metadata for each endpoint */\nexport const Operations = {\n SessionStart: {\n operationId: \"SessionStart\",\n summary: \"Start a new browser session\",\n description:\n \"Creates a new browser session with the specified configuration. Returns a session ID used for all subsequent operations.\",\n },\n SessionEnd: {\n operationId: \"SessionEnd\",\n summary: \"End a browser session\",\n description:\n \"Terminates the browser session and releases all associated resources.\",\n },\n SessionAct: {\n operationId: \"SessionAct\",\n summary: \"Perform an action\",\n description:\n \"Executes a browser action using natural language instructions or a predefined Action object.\",\n },\n SessionExtract: {\n operationId: \"SessionExtract\",\n summary: \"Extract data from the page\",\n description:\n \"Extracts structured data from the current page using AI-powered analysis.\",\n },\n SessionObserve: {\n operationId: \"SessionObserve\",\n summary: \"Observe available actions\",\n description:\n \"Identifies and returns available actions on the current page that match the given instruction.\",\n },\n SessionNavigate: {\n operationId: \"SessionNavigate\",\n summary: \"Navigate to a URL\",\n description: \"Navigates the browser to the specified URL.\",\n },\n SessionAgentExecute: {\n operationId: \"SessionAgentExecute\",\n summary: \"Execute an AI agent\",\n description:\n \"Runs an autonomous AI agent that can perform complex multi-step browser tasks.\",\n },\n SessionReplay: {\n operationId: \"SessionReplay\",\n summary: \"Replay session metrics\",\n description: \"Retrieves replay metrics for a session.\",\n },\n} as const;\n\n// =============================================================================\n// Type Exports (inferred from schemas)\n// =============================================================================\n\n// Shared types\nexport type Action = z.infer<typeof ActionSchema>;\nexport type ModelConfig = z.infer<typeof ModelConfigSchema>;\nexport type GenericModelConfigObject = z.infer<\n typeof GenericModelConfigObjectSchema\n>;\nexport type VertexModelConfigObject = z.infer<\n typeof VertexModelConfigObjectSchema\n>;\nexport type AzureModelConfigObject = z.infer<\n typeof AzureModelConfigObjectSchema\n>;\nexport type AzureEntraModelConfigObject = z.infer<\n typeof AzureEntraModelConfigObjectSchema\n>;\nexport type AzureApiKeyModelConfigObject = z.infer<\n typeof AzureApiKeyModelConfigObjectSchema\n>;\nexport type GoogleServiceAccountCredentials = z.infer<\n typeof GoogleServiceAccountCredentialsSchema\n>;\nexport type GoogleServiceAccountAuth = z.infer<\n typeof GoogleServiceAccountAuthSchema\n>;\nexport type AzureEntraIdAuth = z.infer<typeof AzureEntraIdAuthSchema>;\nexport type ModelAuth = z.infer<typeof ModelAuthSchema>;\nexport type VertexProviderOptions = z.infer<typeof VertexProviderOptionsSchema>;\nexport type AzureProviderOptions = z.infer<typeof AzureProviderOptionsSchema>;\nexport type VertexModelProviderOptions = z.infer<\n typeof VertexModelProviderOptionsSchema\n>;\nexport type AzureModelProviderOptions = z.infer<\n typeof AzureModelProviderOptionsSchema\n>;\nexport type ModelProviderOptions = z.infer<typeof ModelProviderOptionsSchema>;\nexport type BrowserConfig = z.infer<typeof BrowserConfigSchema>;\nexport type SessionIdParams = z.infer<typeof SessionIdParamsSchema>;\n\n// Header types\nexport type SessionHeaders = z.infer<typeof SessionHeadersSchema>;\n\n// Browserbase types\nexport type BrowserbaseViewport = z.infer<typeof BrowserbaseViewportSchema>;\nexport type BrowserbaseFingerprintScreen = z.infer<\n typeof BrowserbaseFingerprintScreenSchema\n>;\nexport type BrowserbaseFingerprint = z.infer<\n typeof BrowserbaseFingerprintSchema\n>;\nexport type BrowserbaseContext = z.infer<typeof BrowserbaseContextSchema>;\nexport type BrowserbaseBrowserSettings = z.infer<\n typeof BrowserbaseBrowserSettingsSchema\n>;\nexport type BrowserbaseProxyGeolocation = z.infer<\n typeof BrowserbaseProxyGeolocationSchema\n>;\nexport type BrowserbaseProxyConfig = z.infer<\n typeof BrowserbaseProxyConfigSchema\n>;\nexport type ExternalProxyConfig = z.infer<typeof ExternalProxyConfigSchema>;\nexport type BrowserbaseRegion = z.infer<typeof BrowserbaseRegionSchema>;\nexport type BrowserbaseSessionCreateParams = z.infer<\n typeof BrowserbaseSessionCreateParamsSchema\n>;\n\n// Type check: ensure our schema-derived type is assignable to the SDK type\n// This will cause a compile error if our schema drifts from the SDK\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ntype _BrowserbaseSessionCreateParamsCheck =\n BrowserbaseSessionCreateParams extends Browserbase.Sessions.SessionCreateParams\n ? true\n : never;\n\n// /sessions/start\nexport type SessionStartRequest = z.infer<typeof SessionStartRequestSchema>;\nexport type SessionStartResult = z.infer<typeof SessionStartResultSchema>;\nexport type SessionStartResponse = z.infer<typeof SessionStartResponseSchema>;\n\n// /sessions/{id}/end\nexport type SessionEndResult = z.infer<typeof SessionEndResultSchema>;\nexport type SessionEndResponse = z.infer<typeof SessionEndResponseSchema>;\n\n// /sessions/{id}/act\nexport type ActRequest = z.infer<typeof ActRequestSchema>;\nexport type ActResultData = z.infer<typeof ActResultDataSchema>;\nexport type ActResult = z.infer<typeof ActResultSchema>;\nexport type ActResponse = z.infer<typeof ActResponseSchema>;\n\n// /sessions/{id}/extract\nexport type ExtractRequest = z.infer<typeof ExtractRequestSchema>;\nexport type ExtractResult = z.infer<typeof ExtractResultSchema>;\nexport type ExtractResponse = z.infer<typeof ExtractResponseSchema>;\n\n// /sessions/{id}/observe\nexport type ObserveRequest = z.infer<typeof ObserveRequestSchema>;\nexport type ObserveResult = z.infer<typeof ObserveResultSchema>;\nexport type ObserveResponse = z.infer<typeof ObserveResponseSchema>;\n\n// /sessions/{id}/agentExecute\nexport type AgentAction = z.infer<typeof AgentActionSchema>;\nexport type AgentUsage = z.infer<typeof AgentUsageSchema>;\nexport type AgentResultData = z.infer<typeof AgentResultDataSchema>;\nexport type AgentExecuteRequest = z.infer<typeof AgentExecuteRequestSchema>;\nexport type AgentExecuteResult = z.infer<typeof AgentExecuteResultSchema>;\nexport type AgentExecuteResponse = z.infer<typeof AgentExecuteResponseSchema>;\n\n// /sessions/{id}/navigate\nexport type NavigateRequest = z.infer<typeof NavigateRequestSchema>;\nexport type NavigateResult = z.infer<typeof NavigateResultSchema>;\nexport type NavigateResponse = z.infer<typeof NavigateResponseSchema>;\n\n// /sessions/{id}/replay\nexport type TokenUsage = z.infer<typeof TokenUsageSchema>;\nexport type ReplayAction = z.infer<typeof ReplayActionSchema>;\nexport type ReplayPage = z.infer<typeof ReplayPageSchema>;\nexport type ReplayResult = z.infer<typeof ReplayResultSchema>;\nexport type ReplayResponse = z.infer<typeof ReplayResponseSchema>;\n\n// SSE Stream Events\nexport type StreamEventStatus = z.infer<typeof StreamEventStatusSchema>;\nexport type StreamEventType = z.infer<typeof StreamEventTypeSchema>;\nexport type StreamEventSystemData = z.infer<typeof StreamEventSystemDataSchema>;\nexport type StreamEventLogData = z.infer<typeof StreamEventLogDataSchema>;\nexport type StreamEvent = z.infer<typeof StreamEventSchema>;\n"]}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../../lib/v3/types/public/api.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;GASG;AACH,+BAA2B;AAE3B,iDAAiD;AACjD,+CAIwB;AAHtB,uHAAA,uBAAuB,OAAA;AACvB,mHAAA,mBAAmB,OAAA;AACnB,+GAAA,eAAe,OAAA;AAGjB,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF,gDAAgD;AACnC,QAAA,+BAA+B,GAAG,MAAC;KAC7C,MAAM,CAAC;IACN,IAAI,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,mBAAmB,EAAE,MAAC,CAAC,OAAO,EA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EACT,gGAAgG;KACnG;IACD,eAAe,EAAE;QACf,WAAW,EAAE,iBAAiB;QAC9B,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE,6CAA6C;KAC3D;IACD,mBAAmB,EAAE;QACnB,WAAW,EAAE,qBAAqB;QAClC,OAAO,EAAE,qBAAqB;QAC9B,WAAW,EACT,gFAAgF;KACnF;IACD,aAAa,EAAE;QACb,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE,wBAAwB;QACjC,WAAW,EAAE,yCAAyC;KACvD;CACO,CAAC","sourcesContent":["/**\n * Centralized Zod schemas for Stagehand Server API\n *\n * Naming conventions:\n * - `*RequestSchema` - Request body schemas (zod4), `*Request` is the inferred type\n * - `*ResultSchema` - Inner response data (unwrapped), `*Result` is the inferred type\n * - `*ResponseSchema` - Full response with success wrapper: { success: true, data: *Result }, `*Response` is the inferred type\n *\n * All TypeScript types are inferred from the Zod4 *Schemas using z.infer<>\n */\nimport { z } from \"zod/v4\";\nimport type Browserbase from \"@browserbasehq/sdk\";\nimport { VariablesSchema } from \"./variables.js\";\nexport {\n VariablePrimitiveSchema,\n VariableValueSchema,\n VariablesSchema,\n} from \"./variables.js\";\n\n// =============================================================================\n// Shared Components\n// =============================================================================\n\n/** Browser launch options for local browsers */\nexport const LocalBrowserLaunchOptionsSchema = z\n .object({\n args: z.array(z.string()).optional(),\n executablePath: z.string().optional(),\n port: z.number().optional(),\n userDataDir: z.string().optional(),\n preserveUserDataDir: z.boolean().optional(),\n headless: z.boolean().optional(),\n devtools: z.boolean().optional(),\n chromiumSandbox: z.boolean().optional(),\n ignoreDefaultArgs: z.union([z.boolean(), z.array(z.string())]).optional(),\n proxy: z\n .object({\n server: z.string(),\n bypass: z.string().optional(),\n username: z.string().optional(),\n password: z.string().optional(),\n })\n .optional(),\n locale: z.string().optional(),\n viewport: z.object({ width: z.number(), height: z.number() }).optional(),\n deviceScaleFactor: z.number().optional(),\n hasTouch: z.boolean().optional(),\n ignoreHTTPSErrors: z.boolean().optional(),\n cdpUrl: z.string().optional(),\n cdpHeaders: z.record(z.string(), z.string()).optional(),\n connectTimeoutMs: z.number().optional(),\n downloadsPath: z.string().optional(),\n acceptDownloads: z.boolean().optional(),\n })\n .strict()\n .meta({ id: \"LocalBrowserLaunchOptions\" });\n\n/** Detailed model configuration object */\nexport const GoogleServiceAccountCredentialsSchema = z\n .object({\n type: z.literal(\"service_account\").optional(),\n project_id: z.string().optional(),\n private_key_id: z.string().optional(),\n private_key: z.string(),\n client_email: z.string(),\n client_id: z.string().optional(),\n auth_uri: z.url().optional(),\n token_uri: z.url().optional(),\n auth_provider_x509_cert_url: z.url().optional(),\n client_x509_cert_url: z.url().optional(),\n universe_domain: z.string().optional(),\n })\n .strict()\n .meta({ id: \"GoogleServiceAccountCredentials\" });\n\nexport const GoogleServiceAccountAuthSchema = z\n .object({\n type: z.literal(\"googleServiceAccount\").meta({\n description:\n \"Use inline Google Cloud service account credentials for provider authentication\",\n }),\n credentials: GoogleServiceAccountCredentialsSchema.meta({\n description: \"Google Cloud service account credentials\",\n }),\n scopes: z\n .union([z.string(), z.array(z.string())])\n .optional()\n .meta({\n description: \"Google auth scopes for the desired API request\",\n }),\n projectId: z.string().optional().meta({\n description: \"Google Cloud project ID used by google-auth-library\",\n }),\n universeDomain: z.string().optional().meta({\n description: \"Google Cloud universe domain\",\n }),\n })\n .strict()\n .meta({ id: \"GoogleServiceAccountAuth\" });\n\nexport const AzureEntraIdAuthSchema = z\n .object({\n type: z.literal(\"azureEntraId\").meta({\n description: \"Use a Microsoft Entra ID bearer token for authentication\",\n }),\n token: z.string().min(1).meta({\n description: \"Microsoft Entra ID bearer token for Azure OpenAI\",\n }),\n })\n .strict()\n .meta({ id: \"AzureEntraIdAuth\" });\n\nexport const ModelAuthSchema = z\n .discriminatedUnion(\"type\", [\n GoogleServiceAccountAuthSchema,\n AzureEntraIdAuthSchema,\n ])\n .meta({ id: \"ModelAuth\" });\n\nexport const VertexProviderOptionsSchema = z\n .object({\n project: z.string().meta({\n description: \"Google Cloud project ID for Vertex AI models\",\n example: \"my-gcp-project\",\n }),\n location: z.string().meta({\n description: \"Google Cloud location for Vertex AI models\",\n example: \"us-central1\",\n }),\n baseURL: z.string().url().optional().meta({\n description: \"Base URL for the Vertex AI provider\",\n }),\n headers: z.record(z.string(), z.string()).optional().meta({\n description:\n \"Custom headers sent with every request to the Vertex AI provider\",\n }),\n })\n .strict()\n .meta({ id: \"VertexProviderOptions\" });\n\nexport const AzureProviderOptionsSchema = z\n .object({\n resourceName: z.string().optional().meta({\n description: \"Azure OpenAI resource name\",\n example: \"my-azure-openai-resource\",\n }),\n baseURL: z.string().url().optional().meta({\n description: \"Base URL for the Azure OpenAI provider\",\n }),\n apiVersion: z.string().optional().meta({\n description: \"Azure OpenAI API version\",\n example: \"2024-10-01-preview\",\n }),\n useDeploymentBasedUrls: z.boolean().optional().meta({\n description: \"Whether to use deployment-based Azure OpenAI URLs\",\n }),\n headers: z.record(z.string(), z.string()).optional().meta({\n description:\n \"Custom headers sent with every request to the Azure OpenAI provider\",\n }),\n })\n .strict()\n .meta({ id: \"AzureProviderOptions\" });\n\nexport const VertexModelProviderOptionsSchema = z\n .object({\n vertex: VertexProviderOptionsSchema.meta({\n description: \"Vertex AI provider-specific settings\",\n }),\n })\n .strict()\n .meta({ id: \"VertexModelProviderOptions\" });\n\nexport const AzureModelProviderOptionsSchema = z\n .object({\n azure: AzureProviderOptionsSchema.meta({\n description: \"Azure OpenAI provider-specific settings\",\n }),\n })\n .strict()\n .meta({ id: \"AzureModelProviderOptions\" });\n\nexport const ModelProviderOptionsSchema = z\n .union([VertexModelProviderOptionsSchema, AzureModelProviderOptionsSchema])\n .meta({ id: \"ModelProviderOptions\" });\n\nconst ModelConfigBaseSchema = z\n .object({\n modelName: z.string().meta({\n description:\n \"Model name string with provider prefix (e.g., 'openai/gpt-5-nano')\",\n example: \"openai/gpt-5.4-mini\",\n }),\n apiKey: z.string().optional().meta({\n description: \"API key for the model provider\",\n example: \"sk-some-openai-api-key\",\n }),\n baseURL: z.string().url().optional().meta({\n description: \"Base URL for the model provider\",\n example: \"https://api.openai.com/v1\",\n }),\n headers: z.record(z.string(), z.string()).optional().meta({\n description:\n \"Custom headers sent with every request to the model provider\",\n }),\n })\n .strict();\n\nexport const GenericModelConfigObjectSchema = ModelConfigBaseSchema.extend({\n openaiEndpointFormat: z.enum([\"responses\", \"chat\"]).optional().meta({\n description:\n \"Wire format used by an OpenAI-compatible endpoint. Defaults to the Responses API; use chat for Chat Completions-only endpoints.\",\n example: \"chat\",\n }),\n provider: z\n .enum([\"openai\", \"anthropic\", \"google\", \"microsoft\", \"bedrock\"])\n .optional()\n .meta({\n description:\n \"AI provider for the model (or provide a baseURL endpoint instead)\",\n example: \"openai\",\n }),\n})\n .strict()\n .meta({ id: \"GenericModelConfigObject\" });\n\nexport const VertexModelConfigObjectSchema = ModelConfigBaseSchema.extend({\n provider: z.literal(\"vertex\").meta({\n description: \"Vertex AI model provider\",\n }),\n auth: GoogleServiceAccountAuthSchema.meta({\n description: \"Vertex provider authentication configuration\",\n }),\n providerOptions: VertexModelProviderOptionsSchema.meta({\n description: \"Vertex provider-specific model configuration\",\n }),\n})\n .strict()\n .meta({ id: \"VertexModelConfigObject\" });\n\nconst AzureModelConfigBaseSchema = ModelConfigBaseSchema.extend({\n provider: z.literal(\"azure\").meta({\n description: \"Azure OpenAI model provider\",\n }),\n providerOptions: AzureModelProviderOptionsSchema.meta({\n description: \"Azure provider-specific model configuration\",\n }),\n}).strict();\n\nexport const AzureEntraModelConfigObjectSchema =\n AzureModelConfigBaseSchema.omit({ apiKey: true })\n .extend({\n auth: AzureEntraIdAuthSchema.meta({\n description: \"Azure provider authentication configuration\",\n }),\n })\n .strict()\n .meta({ id: \"AzureEntraModelConfigObject\" });\n\nexport const AzureApiKeyModelConfigObjectSchema =\n AzureModelConfigBaseSchema.strict().meta({\n id: \"AzureApiKeyModelConfigObject\",\n });\n\nexport const AzureModelConfigObjectSchema = z\n .union([\n AzureEntraModelConfigObjectSchema,\n AzureApiKeyModelConfigObjectSchema,\n ])\n .meta({ id: \"AzureModelConfigObject\" });\n\nexport const ModelConfigObjectSchema = z\n .union([\n VertexModelConfigObjectSchema,\n AzureModelConfigObjectSchema,\n GenericModelConfigObjectSchema,\n ])\n .meta({ id: \"ModelConfigObject\" });\n\n/** Model configuration */\nexport const ModelConfigSchema = ModelConfigObjectSchema.meta({\n id: \"ModelConfig\",\n});\n\n/** Action object returned by observe and used by act */\nexport const ActionSchema = z\n .object({\n selector: z.string().meta({\n description: \"CSS selector or XPath for the element\",\n example: \"[data-testid='submit-button']\",\n }),\n description: z.string().meta({\n description: \"Human-readable description of the action\",\n example: \"Click the submit button\",\n }),\n backendNodeId: z.number().optional().meta({\n description: \"Backend node ID for the element\",\n }),\n method: z.string().optional().meta({\n description: \"The method to execute (click, fill, etc.)\",\n example: \"click\",\n }),\n arguments: z\n .array(z.string())\n .optional()\n .meta({\n description: \"Arguments to pass to the method\",\n example: [\"Hello World\"],\n }),\n })\n .meta({\n id: \"Action\",\n description: \"Action object returned by observe and used by act\",\n });\n\n/** Session ID path parameter */\nexport const SessionIdParamsSchema = z\n .object({\n id: z.string().meta({\n description: \"Unique session identifier\",\n example: \"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123\",\n }),\n })\n .strict()\n .meta({ id: \"SessionIdParams\" });\n\n/** Browser configuration for session start */\nexport const BrowserConfigSchema = z\n .object({\n type: z.enum([\"local\", \"browserbase\"]).optional().meta({\n description: \"Browser type to use\",\n example: \"local\",\n }),\n cdpUrl: z.string().optional().meta({\n description:\n \"Chrome DevTools Protocol URL for connecting to existing browser\",\n example: \"ws://localhost:9222\",\n }),\n launchOptions: LocalBrowserLaunchOptionsSchema.optional(),\n })\n .meta({ id: \"BrowserConfig\" });\n\n// =============================================================================\n// Request Headers (operational only - auth headers are in security schemes)\n// =============================================================================\n\n/** Operational headers for all session requests (auth handled via security schemes) */\nexport const SessionHeadersSchema = z\n .object({\n \"x-stream-response\": z.enum([\"true\", \"false\"]).optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: \"true\",\n }),\n })\n .meta({ id: \"SessionHeaders\" });\n\n// =============================================================================\n// Response Wrapper Helper\n// =============================================================================\n\n/** Wraps a result schema in standard success response format */\nconst wrapResponse = <T extends z.ZodTypeAny>(resultSchema: T, name: string) =>\n z\n .object({\n success: z.boolean().meta({\n description: \"Indicates whether the request was successful\",\n }),\n data: resultSchema,\n })\n .meta({ id: name });\n\n/** Standard error response */\nexport const ErrorResponseSchema = z\n .object({\n success: z.literal(false),\n error: z.string(),\n code: z.string().optional(),\n })\n .strict()\n .meta({ id: \"ErrorResponse\" });\n\n// =============================================================================\n// Browserbase Session Create Params (zod+hints duplicated version of Browserbase.Sessions.SessionCreateParams)\n// =============================================================================\n\n/** Browserbase viewport configuration */\nexport const BrowserbaseViewportSchema = z\n .object({\n width: z.number().optional(),\n height: z.number().optional(),\n })\n .meta({ id: \"BrowserbaseViewport\" });\n\n/** Browserbase fingerprint screen configuration */\nexport const BrowserbaseFingerprintScreenSchema = z\n .object({\n maxHeight: z.number().optional(),\n maxWidth: z.number().optional(),\n minHeight: z.number().optional(),\n minWidth: z.number().optional(),\n })\n .meta({ id: \"BrowserbaseFingerprintScreen\" });\n\n/** Browserbase fingerprint configuration for stealth mode */\nexport const BrowserbaseFingerprintSchema = z\n .object({\n browsers: z\n .array(z.enum([\"chrome\", \"edge\", \"firefox\", \"safari\"]))\n .optional(),\n devices: z.array(z.enum([\"desktop\", \"mobile\"])).optional(),\n httpVersion: z.enum([\"1\", \"2\"]).optional(),\n locales: z.array(z.string()).optional(),\n operatingSystems: z\n .array(z.enum([\"android\", \"ios\", \"linux\", \"macos\", \"windows\"]))\n .optional(),\n screen: BrowserbaseFingerprintScreenSchema.optional(),\n })\n .meta({ id: \"BrowserbaseFingerprint\" });\n\n/** Browserbase context configuration for session persistence */\nexport const BrowserbaseContextSchema = z\n .object({\n id: z.string(),\n persist: z.boolean().optional(),\n })\n .meta({ id: \"BrowserbaseContext\" });\n\n/** Browserbase browser settings for session creation */\nexport const BrowserbaseBrowserSettingsSchema = z\n .object({\n advancedStealth: z.boolean().optional(),\n blockAds: z.boolean().optional(),\n captchaImageSelector: z.string().optional(),\n captchaInputSelector: z.string().optional(),\n context: BrowserbaseContextSchema.optional(),\n extensionId: z.string().optional(),\n fingerprint: BrowserbaseFingerprintSchema.optional(),\n logSession: z.boolean().optional(),\n os: z.enum([\"windows\", \"mac\", \"linux\", \"mobile\", \"tablet\"]).optional(),\n recordSession: z.boolean().optional(),\n solveCaptchas: z.boolean().optional(),\n verified: z.boolean().optional(),\n viewport: BrowserbaseViewportSchema.optional(),\n })\n .meta({ id: \"BrowserbaseBrowserSettings\" });\n\n/** Browserbase managed proxy geolocation configuration */\nexport const BrowserbaseProxyGeolocationSchema = z\n .object({\n country: z.string(),\n city: z.string().optional(),\n state: z.string().optional(),\n })\n .meta({ id: \"BrowserbaseProxyGeolocation\" });\n\n/** Browserbase managed proxy configuration */\nexport const BrowserbaseProxyConfigSchema = z\n .object({\n type: z.literal(\"browserbase\"),\n domainPattern: z.string().optional(),\n geolocation: BrowserbaseProxyGeolocationSchema.optional(),\n })\n .meta({ id: \"BrowserbaseProxyConfig\" });\n\n/** External proxy configuration */\nexport const ExternalProxyConfigSchema = z\n .object({\n type: z.literal(\"external\"),\n server: z.string(),\n domainPattern: z.string().optional(),\n username: z.string().optional(),\n password: z.string().optional(),\n })\n .meta({ id: \"ExternalProxyConfig\" });\n\n/** Union of proxy configuration types */\nexport const ProxyConfigSchema = z\n .discriminatedUnion(\"type\", [\n BrowserbaseProxyConfigSchema,\n ExternalProxyConfigSchema,\n ])\n .meta({ id: \"ProxyConfig\" });\n\n/** Browserbase region identifier for multi-region support */\nexport const BrowserbaseRegionSchema = z\n .enum([\"us-west-2\", \"us-east-1\", \"eu-central-1\", \"ap-southeast-1\"])\n .meta({ id: \"BrowserbaseRegion\" });\n\n/** Browserbase session creation parameters */\nexport const BrowserbaseSessionCreateParamsSchema = z\n .object({\n projectId: z.string().optional().meta({\n deprecated: true,\n description:\n \"Deprecated. Browserbase API keys are now project-scoped, so this field is no longer required.\",\n }),\n browserSettings: BrowserbaseBrowserSettingsSchema.optional(),\n extensionId: z.string().optional(),\n keepAlive: z.boolean().optional(),\n proxies: z.union([z.boolean(), z.array(ProxyConfigSchema)]).optional(),\n region: BrowserbaseRegionSchema.optional(),\n timeout: z.number().optional(),\n userMetadata: z.record(z.string(), z.unknown()).optional(),\n })\n .meta({ id: \"BrowserbaseSessionCreateParams\" });\n\n// =============================================================================\n// Session Start\n// =============================================================================\n\nexport const SessionStartRequestSchema = z\n .object({\n modelName: z.string().meta({\n description: \"Model name to use for AI operations\",\n example: \"openai/gpt-5.4-mini\",\n }),\n domSettleTimeoutMs: z.number().optional().meta({\n description: \"Timeout in ms to wait for DOM to settle\",\n example: 5000,\n }),\n verbose: z\n .union([z.literal(0), z.literal(1), z.literal(2)])\n .optional()\n .meta({\n description: \"Logging verbosity level (0=quiet, 1=normal, 2=debug)\",\n example: 1,\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n delete jsonSchema.anyOf;\n delete jsonSchema.allOf;\n delete jsonSchema.oneOf;\n jsonSchema.type = \"number\";\n jsonSchema.enum = [0, 1, 2];\n },\n }),\n systemPrompt: z.string().optional().meta({\n description: \"Custom system prompt for AI operations\",\n }),\n browserbaseSessionCreateParams:\n BrowserbaseSessionCreateParamsSchema.optional(),\n browser: BrowserConfigSchema.optional(),\n selfHeal: z.boolean().optional().meta({\n description: \"Enable self-healing for failed actions\",\n example: true,\n }),\n browserbaseSessionID: z.string().optional().meta({\n description: \"Existing Browserbase session ID to resume\",\n }),\n // experimental is a V3 field but doesn't need to go over the wire - included because wire type imports options type\n experimental: z.boolean().optional(),\n // V2 compatibility fields - only included because the server imports this type and supports V2\n // should never be used in v3 clients or v3-only server implementations\n waitForCaptchaSolves: z.boolean().optional().meta({\n description: \"Wait for captcha solves (deprecated, v2 only)\",\n }),\n actTimeoutMs: z.number().optional().meta({\n description: \"Timeout in ms for act operations (deprecated, v2 only)\",\n }),\n useTouch: z.boolean().optional().meta({\n description:\n \"Actuate coordinate pointer actions as trusted touch taps instead of mouse input (for sessions rendering a mobile layout)\",\n example: false,\n }),\n })\n .meta({ id: \"SessionStartRequest\" });\n\nexport const SessionStartResultSchema = z\n .object({\n sessionId: z.string().meta({\n description: \"Unique Browserbase session identifier\",\n example: \"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123\",\n }),\n cdpUrl: z.string().nullish().meta({\n description:\n \"CDP WebSocket URL for connecting to the Browserbase cloud browser (present when available)\",\n example: \"wss://connect.browserbase.com/?signingKey=abc123\",\n }),\n available: z.boolean(),\n })\n .meta({ id: \"SessionStartResult\" });\n\nexport const SessionStartResponseSchema = wrapResponse(\n SessionStartResultSchema,\n \"SessionStartResponse\",\n);\n\n// =============================================================================\n// Session End\n// =============================================================================\n\n/** Session end request - no request body. */\nexport const SessionEndRequestSchema = z\n .object({})\n .strict()\n .optional()\n .meta({ id: \"SessionEndRequest\" });\n\nexport const SessionEndResultSchema = z\n .object({})\n .strict()\n .meta({ id: \"SessionEndResult\" });\n\n/** Session end response - just success flag, no data wrapper */\nexport const SessionEndResponseSchema = z\n .object({\n success: z.boolean().meta({\n description: \"Indicates whether the request was successful\",\n }),\n })\n .strict()\n .meta({ id: \"SessionEndResponse\" });\n\n// =============================================================================\n// Act\n// =============================================================================\n\nexport const ActOptionsSchema = z\n .object({\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n variables: VariablesSchema.optional().meta({\n description:\n \"Variables to substitute in the action instruction. Accepts flat primitives or { value, description? } objects.\",\n example: {\n username: \"john_doe\",\n password: {\n value: \"secret123\",\n description: \"The login password\",\n },\n },\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the action\",\n example: 30000,\n }),\n })\n .optional()\n .meta({ id: \"ActOptions\" });\n\nexport const ActRequestSchema = z\n .object({\n input: z.string().or(ActionSchema).meta({\n description: \"Natural language instruction or Action object\",\n example: \"Click the login button\",\n }),\n options: ActOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the action\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"ActRequest\" });\n\n/** Inner act result data */\nexport const ActResultDataSchema = z\n .object({\n success: z.boolean().meta({\n description: \"Whether the action completed successfully\",\n example: true,\n }),\n message: z.string().meta({\n description: \"Human-readable result message\",\n example: \"Successfully clicked the login button\",\n }),\n actionDescription: z.string().meta({\n description: \"Description of the action that was performed\",\n example: \"Clicked button with text 'Login'\",\n }),\n actions: z.array(ActionSchema).meta({\n description: \"List of actions that were executed\",\n }),\n })\n .meta({ id: \"ActResultData\" });\n\nexport const ActResultSchema = z\n .object({\n result: ActResultDataSchema,\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"ActResult\" });\n\nexport const ActResponseSchema = wrapResponse(ActResultSchema, \"ActResponse\");\n\n// =============================================================================\n// Extract\n// =============================================================================\n\nexport const ExtractOptionsSchema = z\n .object({\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the extraction\",\n example: 30000,\n }),\n selector: z.string().optional().meta({\n description: \"CSS selector to scope extraction to a specific element\",\n example: \"#main-content\",\n }),\n ignoreSelectors: z\n .array(z.string())\n .optional()\n .meta({\n description:\n \"Selectors for elements and subtrees that should be excluded from extraction\",\n example: [\"nav\", \".cookie-banner\", \"#sidebar-ads\"],\n }),\n screenshot: z.boolean().optional().meta({\n description:\n \"When true, include a screenshot of the current viewport in the extraction LLM call. Defaults to false.\",\n example: false,\n }),\n })\n .optional()\n .meta({ id: \"ExtractOptions\" });\n\nexport const ExtractRequestSchema = z\n .object({\n instruction: z.string().optional().meta({\n description: \"Natural language instruction for what to extract\",\n example: \"Extract all product names and prices from the page\",\n }),\n schema: z.record(z.string(), z.unknown()).optional().meta({\n description: \"JSON Schema defining the structure of data to extract\",\n }),\n options: ExtractOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the extraction\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"ExtractRequest\" });\n\nexport const ExtractResultSchema = z\n .object({\n result: z.unknown().meta({\n description: \"Extracted data matching the requested schema\",\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n jsonSchema[\"x-stainless-any\"] = true;\n },\n }),\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"ExtractResult\" });\n\nexport const ExtractResponseSchema = wrapResponse(\n ExtractResultSchema,\n \"ExtractResponse\",\n);\n\n// =============================================================================\n// Observe\n// =============================================================================\n\nexport const ObserveOptionsSchema = z\n .object({\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n variables: VariablesSchema.optional().meta({\n description:\n \"Variables whose names are exposed to the model so observe() returns %variableName% placeholders in suggested action arguments instead of literal values. Accepts flat primitives or { value, description? } objects.\",\n example: {\n username: {\n value: \"john@example.com\",\n description: \"The login email\",\n },\n rememberMe: true,\n },\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the observation\",\n example: 30000,\n }),\n selector: z.string().optional().meta({\n description: \"CSS selector to scope observation to a specific element\",\n example: \"nav\",\n }),\n ignoreSelectors: z\n .array(z.string())\n .optional()\n .meta({\n description:\n \"Selectors for elements and subtrees that should be excluded from observation\",\n example: [\"nav\", \".cookie-banner\", \"#sidebar-ads\"],\n }),\n })\n .optional()\n .meta({ id: \"ObserveOptions\" });\n\nexport const ObserveRequestSchema = z\n .object({\n instruction: z.string().optional().meta({\n description: \"Natural language instruction for what actions to find\",\n example: \"Find all clickable navigation links\",\n }),\n options: ObserveOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the observation\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"ObserveRequest\" });\n\nexport const ObserveResultSchema = z\n .object({\n result: z.array(ActionSchema),\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"ObserveResult\" });\n\nexport const ObserveResponseSchema = wrapResponse(\n ObserveResultSchema,\n \"ObserveResponse\",\n);\n\n// =============================================================================\n// Agent Execute\n// =============================================================================\n\nexport const AgentConfigSchema = z\n .object({\n provider: z // cloud accepts provider: at the top level for legacy reasons, in the future we should remove it\n .enum([\"openai\", \"anthropic\", \"google\", \"microsoft\", \"bedrock\"])\n .optional()\n .meta({\n description:\n \"AI provider for the agent (legacy, use model: openai/gpt-5-nano instead)\",\n example: \"openai\",\n }),\n model: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano')\",\n }),\n systemPrompt: z.string().optional().meta({\n description: \"Custom system prompt for the agent\",\n }),\n cua: z.boolean().optional().meta({\n description:\n \"Deprecated. Use mode: 'cua' instead. If both are provided, mode takes precedence.\",\n example: true,\n }),\n mode: z.enum([\"dom\", \"hybrid\", \"cua\"]).optional().meta({\n description:\n \"Tool mode for the agent (dom, hybrid, cua). If set, overrides cua.\",\n example: \"cua\",\n }),\n executionModel: z.union([ModelConfigSchema, z.string()]).optional().meta({\n description:\n \"Model configuration object or model name string (e.g., 'openai/gpt-5-nano') for tool execution (observe/act calls within agent tools). If not specified, inherits from the main model configuration.\",\n }),\n })\n .meta({ id: \"AgentConfig\" });\n\n/** Action taken by the agent during execution */\nexport const AgentActionSchema = z\n .object({\n type: z.string().meta({\n description: \"Type of action taken\",\n example: \"click\",\n }),\n reasoning: z.string().optional().meta({\n description: \"Agent's reasoning for taking this action\",\n }),\n taskCompleted: z.boolean().optional(),\n action: z.string().optional(),\n timeMs: z.number().optional().meta({\n description: \"Time taken for this action in ms\",\n }),\n pageText: z.string().optional(),\n pageUrl: z.string().optional(),\n instruction: z.string().optional(),\n })\n .passthrough()\n .meta({ id: \"AgentAction\" });\n\n/** Token usage statistics for agent execution */\nexport const AgentUsageSchema = z\n .object({\n input_tokens: z.number().meta({ example: 1500 }),\n output_tokens: z.number().meta({ example: 250 }),\n reasoning_tokens: z.number().optional(),\n cached_input_tokens: z.number().optional(),\n inference_time_ms: z.number().meta({ example: 2500 }),\n })\n .meta({ id: \"AgentUsage\" });\n\n/** Result data from agent execution */\nexport const AgentResultDataSchema = z\n .object({\n success: z.boolean().meta({\n description: \"Whether the agent completed successfully\",\n example: true,\n }),\n message: z.string().meta({\n description: \"Summary of what the agent accomplished\",\n example: \"Successfully logged in and navigated to dashboard\",\n }),\n actions: z.array(AgentActionSchema),\n completed: z.boolean().meta({\n description: \"Whether the agent finished its task\",\n example: true,\n }),\n metadata: z.record(z.string(), z.unknown()).optional(),\n usage: AgentUsageSchema.optional(),\n })\n .meta({ id: \"AgentResultData\" });\n\nexport const AgentCacheEntrySchema = z\n .object({\n cacheKey: z.string().meta({\n description:\n \"Opaque cache identifier computed from instruction, URL, options, and config\",\n }),\n entry: z.unknown().meta({\n description: \"Serialized cache entry that can be written to disk\",\n }),\n })\n .meta({ id: \"AgentCacheEntry\" });\n\nexport const AgentExecuteOptionsSchema = z\n .object({\n instruction: z.string().meta({\n description: \"Natural language instruction for the agent\",\n example:\n \"Log in with username 'demo' and password 'test123', then navigate to settings\",\n }),\n maxSteps: z.number().optional().meta({\n description: \"Maximum number of steps the agent can take\",\n example: 20,\n }),\n highlightCursor: z.boolean().optional().meta({\n description: \"Whether to visually highlight the cursor during execution\",\n example: true,\n }),\n useSearch: z.boolean().optional().meta({\n description:\n \"Whether to enable the web search tool powered by Browserbase Search API\",\n example: true,\n }),\n toolTimeout: z.number().optional().meta({\n description: \"Timeout in milliseconds for each agent tool call\",\n example: 30000,\n }),\n variables: VariablesSchema.optional().meta({\n description:\n \"Variables available to the agent via %variableName% syntax in supported tools\",\n }),\n })\n .meta({ id: \"AgentExecuteOptions\" });\n\nexport const AgentExecuteRequestSchema = z\n .object({\n agentConfig: AgentConfigSchema,\n executeOptions: AgentExecuteOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the agent\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n shouldCache: z.boolean().optional().meta({\n description:\n \"If true, the server captures a cache entry and returns it to the client\",\n }),\n })\n .meta({ id: \"AgentExecuteRequest\" });\n\nexport const AgentExecuteResultSchema = z\n .object({\n result: AgentResultDataSchema,\n cacheEntry: AgentCacheEntrySchema.optional(),\n })\n .meta({ id: \"AgentExecuteResult\" });\n\nexport const AgentExecuteResponseSchema = wrapResponse(\n AgentExecuteResultSchema,\n \"AgentExecuteResponse\",\n);\n\n// =============================================================================\n// Navigate\n// =============================================================================\n\nexport const NavigateOptionsSchema = z\n .object({\n referer: z.string().optional().meta({\n description: \"Referer header to send with the request\",\n }),\n timeout: z.number().optional().meta({\n description: \"Timeout in ms for the navigation\",\n example: 30000,\n }),\n waitUntil: z\n .enum([\"load\", \"domcontentloaded\", \"networkidle\"])\n .optional()\n .meta({\n description: \"When to consider navigation complete\",\n example: \"networkidle\",\n }),\n })\n .optional()\n .meta({ id: \"NavigateOptions\" });\n\nexport const NavigateRequestSchema = z\n .object({\n url: z.string().meta({\n description: \"URL to navigate to\",\n example: \"https://example.com\",\n }),\n options: NavigateOptionsSchema,\n frameId: z.string().nullish().meta({\n description: \"Target frame ID for the navigation\",\n }),\n streamResponse: z.boolean().optional().meta({\n description: \"Whether to stream the response via SSE\",\n example: true,\n }),\n })\n .meta({ id: \"NavigateRequest\" });\n\nexport const NavigateResultSchema = z\n .object({\n // SerializableResponse from types/private/api.ts - no Zod schema available\n // as it wraps complex devtools-protocol types (Protocol.Network.Response)\n result: z\n .unknown()\n .nullable()\n .meta({\n description: \"Navigation response (Playwright Response object or null)\",\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n jsonSchema[\"x-stainless-any\"] = true;\n },\n }),\n actionId: z.string().optional().meta({\n description: \"Action ID for tracking\",\n }),\n })\n .meta({ id: \"NavigateResult\" });\n\nexport const NavigateResponseSchema = wrapResponse(\n NavigateResultSchema,\n \"NavigateResponse\",\n);\n\n// =============================================================================\n// Replay Metrics\n// =============================================================================\n\n/** Token usage for a single action */\nexport const TokenUsageSchema = z\n .object({\n inputTokens: z.number().optional(),\n outputTokens: z.number().optional(),\n timeMs: z.number().optional(),\n cost: z.number().optional(),\n })\n .meta({ id: \"TokenUsage\" });\n\n/** Action entry in replay metrics */\nexport const ReplayActionSchema = z\n .object({\n method: z.string(),\n parameters: z.record(z.string(), z.unknown()),\n result: z.record(z.string(), z.unknown()),\n timestamp: z.number(),\n endTime: z.number().optional(),\n tokenUsage: TokenUsageSchema.optional(),\n })\n .meta({ id: \"ReplayAction\" });\n\n/** Page entry in replay metrics */\nexport const ReplayPageSchema = z\n .object({\n url: z.string(),\n timestamp: z.number(),\n duration: z.number(),\n actions: z.array(ReplayActionSchema),\n })\n .meta({ id: \"ReplayPage\" });\n\n/** Inner result data for replay */\nexport const ReplayResultSchema = z\n .object({\n pages: z.array(ReplayPageSchema),\n clientLanguage: z.string().optional(),\n })\n .meta({ id: \"ReplayResult\" });\n\nexport const ReplayResponseSchema = wrapResponse(\n ReplayResultSchema,\n \"ReplayResponse\",\n);\n\n// =============================================================================\n// SSE Stream Events\n// =============================================================================\n// These schemas define the Server-Sent Events format for streaming responses.\n// Streaming is enabled by setting the `x-stream-response: true` header.\n\n/** Status values for SSE stream events */\nexport const StreamEventStatusSchema = z\n .enum([\"starting\", \"connected\", \"running\", \"finished\", \"error\"])\n .meta({\n id: \"StreamEventStatus\",\n description: \"Current status of the streaming operation\",\n });\n\n/** Type discriminator for SSE stream events */\nexport const StreamEventTypeSchema = z.enum([\"system\", \"log\"]).meta({\n id: \"StreamEventType\",\n description: \"Type of stream event - system events or log messages\",\n});\n\n/** Data payload for system stream events */\nexport const StreamEventSystemDataSchema = z\n .object({\n status: StreamEventStatusSchema,\n result: z\n .unknown()\n .optional()\n .meta({\n description: \"Operation result (present when status is 'finished')\",\n override: ({ jsonSchema }: { jsonSchema: Record<string, unknown> }) => {\n jsonSchema[\"x-stainless-any\"] = true;\n },\n }),\n error: z.string().optional().meta({\n description: \"Error message (present when status is 'error')\",\n }),\n })\n .meta({ id: \"StreamEventSystemData\" });\n\n/** Data payload for log stream events */\nexport const StreamEventLogDataSchema = z\n .object({\n status: z.literal(\"running\"),\n message: z.string().meta({\n description: \"Log message from the operation\",\n }),\n })\n .meta({ id: \"StreamEventLogData\" });\n\n/**\n * SSE stream event sent during streaming responses.\n *\n * The SSE wire format includes an `event:` line that mirrors the stream status\n * (`starting`, `connected`, `running`, `finished`, or `error`) followed by a\n * JSON `data:` line containing the typed payload below.\n */\nexport const StreamEventSchema = z\n .object({\n data: z.union([StreamEventSystemDataSchema, StreamEventLogDataSchema]),\n type: StreamEventTypeSchema,\n id: z.string().uuid().meta({\n description: \"Unique identifier for this event\",\n example: \"c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123\",\n }),\n })\n .meta({\n id: \"StreamEvent\",\n description:\n \"Server-Sent Event emitted during streaming responses. Events are sent as `event: <status>\\\\ndata: <JSON>\\\\n\\\\n`, where the JSON payload has the shape `{ data, type, id }`.\",\n });\n\n// =============================================================================\n// OpenAPI Components\n// =============================================================================\n// These objects are exported for use in gen-openapi.ts to configure the spec.\n\n/** OpenAPI security schemes for authentication */\nexport const openApiSecuritySchemes = {\n BrowserbaseApiKey: {\n type: \"apiKey\",\n in: \"header\",\n name: \"x-bb-api-key\",\n description: \"Browserbase API key for authentication\",\n },\n BrowserbaseProjectId: {\n type: \"apiKey\",\n in: \"header\",\n name: \"x-bb-project-id\",\n description:\n \"Deprecated. Browserbase API keys are now project-scoped, so this header is no longer required.\",\n },\n ModelApiKey: {\n type: \"apiKey\",\n in: \"header\",\n name: \"x-model-api-key\",\n description: \"API key for the AI model provider (OpenAI, Anthropic, etc.)\",\n },\n} as const;\n\n/** OpenAPI links for session operations (used in SessionStart response) */\nexport const openApiLinks = {\n SessionAct: {\n operationId: \"SessionAct\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Perform an action on the session\",\n },\n SessionExtract: {\n operationId: \"SessionExtract\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Extract data from the session\",\n },\n SessionObserve: {\n operationId: \"SessionObserve\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Observe available actions on the session\",\n },\n SessionNavigate: {\n operationId: \"SessionNavigate\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Navigate to a URL in the session\",\n },\n SessionAgentExecute: {\n operationId: \"SessionAgentExecute\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Execute an agent on the session\",\n },\n SessionReplay: {\n operationId: \"SessionReplay\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"Replay session metrics\",\n },\n SessionEnd: {\n operationId: \"SessionEnd\",\n parameters: { id: \"$response.body#/data/sessionId\" },\n description: \"End the session and release resources\",\n },\n} as const;\n\n/** OpenAPI operation metadata for each endpoint */\nexport const Operations = {\n SessionStart: {\n operationId: \"SessionStart\",\n summary: \"Start a new browser session\",\n description:\n \"Creates a new browser session with the specified configuration. Returns a session ID used for all subsequent operations.\",\n },\n SessionEnd: {\n operationId: \"SessionEnd\",\n summary: \"End a browser session\",\n description:\n \"Terminates the browser session and releases all associated resources.\",\n },\n SessionAct: {\n operationId: \"SessionAct\",\n summary: \"Perform an action\",\n description:\n \"Executes a browser action using natural language instructions or a predefined Action object.\",\n },\n SessionExtract: {\n operationId: \"SessionExtract\",\n summary: \"Extract data from the page\",\n description:\n \"Extracts structured data from the current page using AI-powered analysis.\",\n },\n SessionObserve: {\n operationId: \"SessionObserve\",\n summary: \"Observe available actions\",\n description:\n \"Identifies and returns available actions on the current page that match the given instruction.\",\n },\n SessionNavigate: {\n operationId: \"SessionNavigate\",\n summary: \"Navigate to a URL\",\n description: \"Navigates the browser to the specified URL.\",\n },\n SessionAgentExecute: {\n operationId: \"SessionAgentExecute\",\n summary: \"Execute an AI agent\",\n description:\n \"Runs an autonomous AI agent that can perform complex multi-step browser tasks.\",\n },\n SessionReplay: {\n operationId: \"SessionReplay\",\n summary: \"Replay session metrics\",\n description: \"Retrieves replay metrics for a session.\",\n },\n} as const;\n\n// =============================================================================\n// Type Exports (inferred from schemas)\n// =============================================================================\n\n// Shared types\nexport type Action = z.infer<typeof ActionSchema>;\nexport type ModelConfig = z.infer<typeof ModelConfigSchema>;\nexport type GenericModelConfigObject = z.infer<\n typeof GenericModelConfigObjectSchema\n>;\nexport type VertexModelConfigObject = z.infer<\n typeof VertexModelConfigObjectSchema\n>;\nexport type AzureModelConfigObject = z.infer<\n typeof AzureModelConfigObjectSchema\n>;\nexport type AzureEntraModelConfigObject = z.infer<\n typeof AzureEntraModelConfigObjectSchema\n>;\nexport type AzureApiKeyModelConfigObject = z.infer<\n typeof AzureApiKeyModelConfigObjectSchema\n>;\nexport type GoogleServiceAccountCredentials = z.infer<\n typeof GoogleServiceAccountCredentialsSchema\n>;\nexport type GoogleServiceAccountAuth = z.infer<\n typeof GoogleServiceAccountAuthSchema\n>;\nexport type AzureEntraIdAuth = z.infer<typeof AzureEntraIdAuthSchema>;\nexport type ModelAuth = z.infer<typeof ModelAuthSchema>;\nexport type VertexProviderOptions = z.infer<typeof VertexProviderOptionsSchema>;\nexport type AzureProviderOptions = z.infer<typeof AzureProviderOptionsSchema>;\nexport type VertexModelProviderOptions = z.infer<\n typeof VertexModelProviderOptionsSchema\n>;\nexport type AzureModelProviderOptions = z.infer<\n typeof AzureModelProviderOptionsSchema\n>;\nexport type ModelProviderOptions = z.infer<typeof ModelProviderOptionsSchema>;\nexport type BrowserConfig = z.infer<typeof BrowserConfigSchema>;\nexport type SessionIdParams = z.infer<typeof SessionIdParamsSchema>;\n\n// Header types\nexport type SessionHeaders = z.infer<typeof SessionHeadersSchema>;\n\n// Browserbase types\nexport type BrowserbaseViewport = z.infer<typeof BrowserbaseViewportSchema>;\nexport type BrowserbaseFingerprintScreen = z.infer<\n typeof BrowserbaseFingerprintScreenSchema\n>;\nexport type BrowserbaseFingerprint = z.infer<\n typeof BrowserbaseFingerprintSchema\n>;\nexport type BrowserbaseContext = z.infer<typeof BrowserbaseContextSchema>;\nexport type BrowserbaseBrowserSettings = z.infer<\n typeof BrowserbaseBrowserSettingsSchema\n>;\nexport type BrowserbaseProxyGeolocation = z.infer<\n typeof BrowserbaseProxyGeolocationSchema\n>;\nexport type BrowserbaseProxyConfig = z.infer<\n typeof BrowserbaseProxyConfigSchema\n>;\nexport type ExternalProxyConfig = z.infer<typeof ExternalProxyConfigSchema>;\nexport type BrowserbaseRegion = z.infer<typeof BrowserbaseRegionSchema>;\nexport type BrowserbaseSessionCreateParams = z.infer<\n typeof BrowserbaseSessionCreateParamsSchema\n>;\n\n// Type check: ensure our schema-derived type is assignable to the SDK type\n// This will cause a compile error if our schema drifts from the SDK\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\ntype _BrowserbaseSessionCreateParamsCheck =\n BrowserbaseSessionCreateParams extends Browserbase.Sessions.SessionCreateParams\n ? true\n : never;\n\n// /sessions/start\nexport type SessionStartRequest = z.infer<typeof SessionStartRequestSchema>;\nexport type SessionStartResult = z.infer<typeof SessionStartResultSchema>;\nexport type SessionStartResponse = z.infer<typeof SessionStartResponseSchema>;\n\n// /sessions/{id}/end\nexport type SessionEndResult = z.infer<typeof SessionEndResultSchema>;\nexport type SessionEndResponse = z.infer<typeof SessionEndResponseSchema>;\n\n// /sessions/{id}/act\nexport type ActRequest = z.infer<typeof ActRequestSchema>;\nexport type ActResultData = z.infer<typeof ActResultDataSchema>;\nexport type ActResult = z.infer<typeof ActResultSchema>;\nexport type ActResponse = z.infer<typeof ActResponseSchema>;\n\n// /sessions/{id}/extract\nexport type ExtractRequest = z.infer<typeof ExtractRequestSchema>;\nexport type ExtractResult = z.infer<typeof ExtractResultSchema>;\nexport type ExtractResponse = z.infer<typeof ExtractResponseSchema>;\n\n// /sessions/{id}/observe\nexport type ObserveRequest = z.infer<typeof ObserveRequestSchema>;\nexport type ObserveResult = z.infer<typeof ObserveResultSchema>;\nexport type ObserveResponse = z.infer<typeof ObserveResponseSchema>;\n\n// /sessions/{id}/agentExecute\nexport type AgentAction = z.infer<typeof AgentActionSchema>;\nexport type AgentUsage = z.infer<typeof AgentUsageSchema>;\nexport type AgentResultData = z.infer<typeof AgentResultDataSchema>;\nexport type AgentExecuteRequest = z.infer<typeof AgentExecuteRequestSchema>;\nexport type AgentExecuteResult = z.infer<typeof AgentExecuteResultSchema>;\nexport type AgentExecuteResponse = z.infer<typeof AgentExecuteResponseSchema>;\n\n// /sessions/{id}/navigate\nexport type NavigateRequest = z.infer<typeof NavigateRequestSchema>;\nexport type NavigateResult = z.infer<typeof NavigateResultSchema>;\nexport type NavigateResponse = z.infer<typeof NavigateResponseSchema>;\n\n// /sessions/{id}/replay\nexport type TokenUsage = z.infer<typeof TokenUsageSchema>;\nexport type ReplayAction = z.infer<typeof ReplayActionSchema>;\nexport type ReplayPage = z.infer<typeof ReplayPageSchema>;\nexport type ReplayResult = z.infer<typeof ReplayResultSchema>;\nexport type ReplayResponse = z.infer<typeof ReplayResponseSchema>;\n\n// SSE Stream Events\nexport type StreamEventStatus = z.infer<typeof StreamEventStatusSchema>;\nexport type StreamEventType = z.infer<typeof StreamEventTypeSchema>;\nexport type StreamEventSystemData = z.infer<typeof StreamEventSystemDataSchema>;\nexport type StreamEventLogData = z.infer<typeof StreamEventLogDataSchema>;\nexport type StreamEvent = z.infer<typeof StreamEventSchema>;\n"]}
@@ -58,6 +58,19 @@ export interface V3Options {
58
58
  */
59
59
  keepAlive?: boolean;
60
60
  localBrowserLaunchOptions?: LocalBrowserLaunchOptions;
61
+ /**
62
+ * Actuate coordinate pointer actions as touch (a real `Input.dispatchTouchEvent`
63
+ * tap) instead of mouse input. Mobile layouts commonly gate their handlers on
64
+ * touch/pointer events, where a synthesized mouse click never registers — e.g. a
65
+ * size selector that keeps reporting "please choose a size". Set this when the
66
+ * session renders a mobile layout (e.g. Browserbase `browserSettings.os:
67
+ * "mobile"`).
68
+ *
69
+ * Explicit opt-in only — nothing is derived from the session.
70
+ *
71
+ * @default false
72
+ */
73
+ useTouch?: boolean;
61
74
  model?: ModelConfiguration;
62
75
  llmClient?: LLMClient;
63
76
  systemPrompt?: string;