@browserbasehq/orca 3.5.0-preview.1 → 3.5.1-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.
- package/README.md +7 -3
- package/dist/cjs/lib/utils.d.ts +2 -0
- package/dist/cjs/lib/utils.js +20 -0
- package/dist/cjs/lib/utils.js.map +1 -1
- package/dist/cjs/lib/v3/agent/AgentProvider.js +1 -0
- package/dist/cjs/lib/v3/agent/AgentProvider.js.map +1 -1
- package/dist/cjs/lib/v3/agent/AnthropicCUAClient.js +1 -0
- package/dist/cjs/lib/v3/agent/AnthropicCUAClient.js.map +1 -1
- package/dist/cjs/lib/v3/api.js +28 -33
- package/dist/cjs/lib/v3/api.js.map +1 -1
- package/dist/cjs/lib/v3/dom/build/locatorScripts.generated.d.ts +24 -24
- package/dist/cjs/lib/v3/dom/build/locatorScripts.generated.js +24 -24
- package/dist/cjs/lib/v3/dom/build/locatorScripts.generated.js.map +1 -1
- package/dist/cjs/lib/v3/dom/locatorScripts/xpathResolver.js +79 -10
- package/dist/cjs/lib/v3/dom/locatorScripts/xpathResolver.js.map +1 -1
- package/dist/cjs/lib/v3/index.d.ts +2 -1
- package/dist/cjs/lib/v3/llm/LLMProvider.js +18 -2
- package/dist/cjs/lib/v3/llm/LLMProvider.js.map +1 -1
- package/dist/cjs/lib/v3/types/public/agent.d.ts +2 -2
- package/dist/cjs/lib/v3/types/public/agent.js +1 -0
- package/dist/cjs/lib/v3/types/public/agent.js.map +1 -1
- package/dist/cjs/lib/v3/types/public/api.d.ts +538 -27
- package/dist/cjs/lib/v3/types/public/api.js +83 -7
- package/dist/cjs/lib/v3/types/public/api.js.map +1 -1
- package/dist/cjs/lib/v3/types/public/clipboard.d.ts +15 -0
- package/dist/cjs/lib/v3/types/public/clipboard.js +3 -0
- package/dist/cjs/lib/v3/types/public/clipboard.js.map +1 -0
- package/dist/cjs/lib/v3/types/public/index.d.ts +1 -0
- package/dist/cjs/lib/v3/types/public/index.js +1 -0
- package/dist/cjs/lib/v3/types/public/index.js.map +1 -1
- package/dist/cjs/lib/v3/types/public/model.d.ts +18 -3
- package/dist/cjs/lib/v3/types/public/model.js.map +1 -1
- package/dist/cjs/lib/v3/types/public/page.d.ts +29 -0
- package/dist/cjs/lib/v3/types/public/page.js.map +1 -1
- package/dist/cjs/lib/v3/types/public/sdkErrors.d.ts +3 -0
- package/dist/cjs/lib/v3/types/public/sdkErrors.js +8 -2
- package/dist/cjs/lib/v3/types/public/sdkErrors.js.map +1 -1
- package/dist/cjs/lib/v3/understudy/clipboard.d.ts +24 -0
- package/dist/cjs/lib/v3/understudy/clipboard.js +166 -0
- package/dist/cjs/lib/v3/understudy/clipboard.js.map +1 -0
- package/dist/cjs/lib/v3/understudy/context.d.ts +3 -0
- package/dist/cjs/lib/v3/understudy/context.js +15 -0
- package/dist/cjs/lib/v3/understudy/context.js.map +1 -1
- package/dist/cjs/lib/v3/understudy/page.d.ts +23 -1
- package/dist/cjs/lib/v3/understudy/page.js +283 -0
- package/dist/cjs/lib/v3/understudy/page.js.map +1 -1
- package/dist/cjs/lib/v3/v3.js +15 -6
- package/dist/cjs/lib/v3/v3.js.map +1 -1
- package/dist/cjs/lib/version.d.ts +1 -1
- package/dist/cjs/lib/version.js +1 -1
- package/dist/cjs/lib/version.js.map +1 -1
- package/dist/esm/lib/utils.d.ts +2 -0
- package/dist/esm/lib/utils.js +18 -0
- package/dist/esm/lib/utils.js.map +1 -1
- package/dist/esm/lib/v3/agent/AgentProvider.js +1 -0
- package/dist/esm/lib/v3/agent/AgentProvider.js.map +1 -1
- package/dist/esm/lib/v3/agent/AnthropicCUAClient.js +1 -0
- package/dist/esm/lib/v3/agent/AnthropicCUAClient.js.map +1 -1
- package/dist/esm/lib/v3/api.js +29 -34
- package/dist/esm/lib/v3/api.js.map +1 -1
- package/dist/esm/lib/v3/dom/build/locatorScripts.generated.d.ts +24 -24
- package/dist/esm/lib/v3/dom/build/locatorScripts.generated.js +24 -24
- package/dist/esm/lib/v3/dom/build/locatorScripts.generated.js.map +1 -1
- package/dist/esm/lib/v3/dom/locatorScripts/xpathResolver.js +79 -10
- package/dist/esm/lib/v3/dom/locatorScripts/xpathResolver.js.map +1 -1
- package/dist/esm/lib/v3/index.d.ts +2 -1
- package/dist/esm/lib/v3/llm/LLMProvider.js +18 -2
- package/dist/esm/lib/v3/llm/LLMProvider.js.map +1 -1
- package/dist/esm/lib/v3/types/public/agent.d.ts +2 -2
- package/dist/esm/lib/v3/types/public/agent.js +1 -0
- package/dist/esm/lib/v3/types/public/agent.js.map +1 -1
- package/dist/esm/lib/v3/types/public/api.d.ts +538 -27
- package/dist/esm/lib/v3/types/public/api.js +81 -5
- package/dist/esm/lib/v3/types/public/api.js.map +1 -1
- package/dist/esm/lib/v3/types/public/clipboard.d.ts +15 -0
- package/dist/esm/lib/v3/types/public/clipboard.js +2 -0
- package/dist/esm/lib/v3/types/public/clipboard.js.map +1 -0
- package/dist/esm/lib/v3/types/public/index.d.ts +1 -0
- package/dist/esm/lib/v3/types/public/index.js +1 -0
- package/dist/esm/lib/v3/types/public/index.js.map +1 -1
- package/dist/esm/lib/v3/types/public/model.d.ts +18 -3
- package/dist/esm/lib/v3/types/public/model.js.map +1 -1
- package/dist/esm/lib/v3/types/public/page.d.ts +29 -0
- package/dist/esm/lib/v3/types/public/page.js.map +1 -1
- package/dist/esm/lib/v3/types/public/sdkErrors.d.ts +3 -0
- package/dist/esm/lib/v3/types/public/sdkErrors.js +5 -0
- package/dist/esm/lib/v3/types/public/sdkErrors.js.map +1 -1
- package/dist/esm/lib/v3/understudy/clipboard.d.ts +24 -0
- package/dist/esm/lib/v3/understudy/clipboard.js +163 -0
- package/dist/esm/lib/v3/understudy/clipboard.js.map +1 -0
- package/dist/esm/lib/v3/understudy/context.d.ts +3 -0
- package/dist/esm/lib/v3/understudy/context.js +15 -0
- package/dist/esm/lib/v3/understudy/context.js.map +1 -1
- package/dist/esm/lib/v3/understudy/page.d.ts +23 -1
- package/dist/esm/lib/v3/understudy/page.js +284 -1
- package/dist/esm/lib/v3/understudy/page.js.map +1 -1
- package/dist/esm/lib/v3/v3.js +16 -7
- package/dist/esm/lib/v3/v3.js.map +1 -1
- package/dist/esm/lib/version.d.ts +1 -1
- package/dist/esm/lib/version.js +1 -1
- package/dist/esm/lib/version.js.map +1 -1
- package/package.json +13 -7
|
@@ -87,8 +87,22 @@ export const GoogleServiceAccountAuthSchema = z
|
|
|
87
87
|
})
|
|
88
88
|
.strict()
|
|
89
89
|
.meta({ id: "GoogleServiceAccountAuth" });
|
|
90
|
+
export const AzureEntraIdAuthSchema = z
|
|
91
|
+
.object({
|
|
92
|
+
type: z.literal("azureEntraId").meta({
|
|
93
|
+
description: "Use a Microsoft Entra ID bearer token for authentication",
|
|
94
|
+
}),
|
|
95
|
+
token: z.string().min(1).meta({
|
|
96
|
+
description: "Microsoft Entra ID bearer token for Azure OpenAI",
|
|
97
|
+
}),
|
|
98
|
+
})
|
|
99
|
+
.strict()
|
|
100
|
+
.meta({ id: "AzureEntraIdAuth" });
|
|
90
101
|
export const ModelAuthSchema = z
|
|
91
|
-
.discriminatedUnion("type", [
|
|
102
|
+
.discriminatedUnion("type", [
|
|
103
|
+
GoogleServiceAccountAuthSchema,
|
|
104
|
+
AzureEntraIdAuthSchema,
|
|
105
|
+
])
|
|
92
106
|
.meta({ id: "ModelAuth" });
|
|
93
107
|
export const VertexProviderOptionsSchema = z
|
|
94
108
|
.object({
|
|
@@ -109,13 +123,46 @@ export const VertexProviderOptionsSchema = z
|
|
|
109
123
|
})
|
|
110
124
|
.strict()
|
|
111
125
|
.meta({ id: "VertexProviderOptions" });
|
|
112
|
-
export const
|
|
126
|
+
export const AzureProviderOptionsSchema = z
|
|
127
|
+
.object({
|
|
128
|
+
resourceName: z.string().optional().meta({
|
|
129
|
+
description: "Azure OpenAI resource name",
|
|
130
|
+
example: "my-azure-openai-resource",
|
|
131
|
+
}),
|
|
132
|
+
baseURL: z.string().url().optional().meta({
|
|
133
|
+
description: "Base URL for the Azure OpenAI provider",
|
|
134
|
+
}),
|
|
135
|
+
apiVersion: z.string().optional().meta({
|
|
136
|
+
description: "Azure OpenAI API version",
|
|
137
|
+
example: "2024-10-01-preview",
|
|
138
|
+
}),
|
|
139
|
+
useDeploymentBasedUrls: z.boolean().optional().meta({
|
|
140
|
+
description: "Whether to use deployment-based Azure OpenAI URLs",
|
|
141
|
+
}),
|
|
142
|
+
headers: z.record(z.string(), z.string()).optional().meta({
|
|
143
|
+
description: "Custom headers sent with every request to the Azure OpenAI provider",
|
|
144
|
+
}),
|
|
145
|
+
})
|
|
146
|
+
.strict()
|
|
147
|
+
.meta({ id: "AzureProviderOptions" });
|
|
148
|
+
export const VertexModelProviderOptionsSchema = z
|
|
113
149
|
.object({
|
|
114
150
|
vertex: VertexProviderOptionsSchema.meta({
|
|
115
151
|
description: "Vertex AI provider-specific settings",
|
|
116
152
|
}),
|
|
117
153
|
})
|
|
118
154
|
.strict()
|
|
155
|
+
.meta({ id: "VertexModelProviderOptions" });
|
|
156
|
+
export const AzureModelProviderOptionsSchema = z
|
|
157
|
+
.object({
|
|
158
|
+
azure: AzureProviderOptionsSchema.meta({
|
|
159
|
+
description: "Azure OpenAI provider-specific settings",
|
|
160
|
+
}),
|
|
161
|
+
})
|
|
162
|
+
.strict()
|
|
163
|
+
.meta({ id: "AzureModelProviderOptions" });
|
|
164
|
+
export const ModelProviderOptionsSchema = z
|
|
165
|
+
.union([VertexModelProviderOptionsSchema, AzureModelProviderOptionsSchema])
|
|
119
166
|
.meta({ id: "ModelProviderOptions" });
|
|
120
167
|
const ModelConfigBaseSchema = z
|
|
121
168
|
.object({
|
|
@@ -151,17 +198,46 @@ export const VertexModelConfigObjectSchema = ModelConfigBaseSchema.extend({
|
|
|
151
198
|
provider: z.literal("vertex").meta({
|
|
152
199
|
description: "Vertex AI model provider",
|
|
153
200
|
}),
|
|
154
|
-
auth:
|
|
201
|
+
auth: GoogleServiceAccountAuthSchema.meta({
|
|
155
202
|
description: "Vertex provider authentication configuration",
|
|
156
203
|
}),
|
|
157
|
-
providerOptions:
|
|
204
|
+
providerOptions: VertexModelProviderOptionsSchema.meta({
|
|
158
205
|
description: "Vertex provider-specific model configuration",
|
|
159
206
|
}),
|
|
160
207
|
})
|
|
161
208
|
.strict()
|
|
162
209
|
.meta({ id: "VertexModelConfigObject" });
|
|
210
|
+
const AzureModelConfigBaseSchema = ModelConfigBaseSchema.extend({
|
|
211
|
+
provider: z.literal("azure").meta({
|
|
212
|
+
description: "Azure OpenAI model provider",
|
|
213
|
+
}),
|
|
214
|
+
providerOptions: AzureModelProviderOptionsSchema.meta({
|
|
215
|
+
description: "Azure provider-specific model configuration",
|
|
216
|
+
}),
|
|
217
|
+
}).strict();
|
|
218
|
+
export const AzureEntraModelConfigObjectSchema = AzureModelConfigBaseSchema.omit({ apiKey: true })
|
|
219
|
+
.extend({
|
|
220
|
+
auth: AzureEntraIdAuthSchema.meta({
|
|
221
|
+
description: "Azure provider authentication configuration",
|
|
222
|
+
}),
|
|
223
|
+
})
|
|
224
|
+
.strict()
|
|
225
|
+
.meta({ id: "AzureEntraModelConfigObject" });
|
|
226
|
+
export const AzureApiKeyModelConfigObjectSchema = AzureModelConfigBaseSchema.strict().meta({
|
|
227
|
+
id: "AzureApiKeyModelConfigObject",
|
|
228
|
+
});
|
|
229
|
+
export const AzureModelConfigObjectSchema = z
|
|
230
|
+
.union([
|
|
231
|
+
AzureEntraModelConfigObjectSchema,
|
|
232
|
+
AzureApiKeyModelConfigObjectSchema,
|
|
233
|
+
])
|
|
234
|
+
.meta({ id: "AzureModelConfigObject" });
|
|
163
235
|
export const ModelConfigObjectSchema = z
|
|
164
|
-
.union([
|
|
236
|
+
.union([
|
|
237
|
+
VertexModelConfigObjectSchema,
|
|
238
|
+
AzureModelConfigObjectSchema,
|
|
239
|
+
GenericModelConfigObjectSchema,
|
|
240
|
+
])
|
|
165
241
|
.meta({ id: "ModelConfigObject" });
|
|
166
242
|
/** Model configuration */
|
|
167
243
|
export const ModelConfigSchema = ModelConfigObjectSchema.meta({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../../../lib/v3/types/public/api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF,gDAAgD;AAChD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzE,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,C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,EAAE,gBAAgB;QAC7B,OAAO,EAAE,2BAA2B;QACpC,WAAW,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 ModelAuthSchema = z\n .discriminatedUnion(\"type\", [GoogleServiceAccountAuthSchema])\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 ModelProviderOptionsSchema = z\n .object({\n vertex: VertexProviderOptionsSchema.meta({\n description: \"Vertex AI provider-specific settings\",\n }),\n })\n .strict()\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: ModelAuthSchema.meta({\n description: \"Vertex provider authentication configuration\",\n }),\n providerOptions: ModelProviderOptionsSchema.meta({\n description: \"Vertex provider-specific model configuration\",\n }),\n})\n .strict()\n .meta({ id: \"VertexModelConfigObject\" });\n\nexport const ModelConfigObjectSchema = z\n .union([VertexModelConfigObjectSchema, GenericModelConfigObjectSchema])\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 GoogleServiceAccountCredentials = z.infer<\n typeof GoogleServiceAccountCredentialsSchema\n>;\nexport type GoogleServiceAccountAuth = z.infer<\n typeof GoogleServiceAccountAuthSchema\n>;\nexport type ModelAuth = z.infer<typeof ModelAuthSchema>;\nexport type VertexProviderOptions = z.infer<typeof VertexProviderOptionsSchema>;\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,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF,gDAAgD;AAChD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CA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,GAAG;IACxB,YAAY,EAAE;QACZ,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE,6BAA6B;QACtC,WAAW,EACT,0HAA0H;KAC7H;IACD,UAAU,EAAE;QACV,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,uBAAuB;QAChC,WAAW,EACT,uEAAuE;KAC1E;IACD,UAAU,EAAE;QACV,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EACT,8FAA8F;KACjG;IACD,cAAc,EAAE;QACd,WAAW,EAAE,gBAAgB;QAC7B,OAAO,EAAE,4BAA4B;QACrC,WAAW,EACT,2EAA2E;KAC9E;IACD,cAAc,EAAE;QACd,WAAW,EAAE,gBAAgB;QAC7B,OAAO,EAAE,2BAA2B;QACpC,WAAW,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 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"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Page } from "../../understudy/page.js";
|
|
2
|
+
export interface ClipboardOptions {
|
|
3
|
+
page?: Page;
|
|
4
|
+
}
|
|
5
|
+
export interface ClipboardPasteOptions extends ClipboardOptions {
|
|
6
|
+
shortcut?: "ControlOrMeta+V" | "Meta+V" | "Control+V";
|
|
7
|
+
}
|
|
8
|
+
export interface BrowserClipboard {
|
|
9
|
+
readText(options?: ClipboardOptions): Promise<string>;
|
|
10
|
+
writeText(text: string, options?: ClipboardOptions): Promise<void>;
|
|
11
|
+
clear(options?: ClipboardOptions): Promise<void>;
|
|
12
|
+
paste(options?: ClipboardPasteOptions): Promise<void>;
|
|
13
|
+
copy(options?: ClipboardOptions): Promise<void>;
|
|
14
|
+
cut(options?: ClipboardOptions): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../../../../lib/v3/types/public/clipboard.ts"],"names":[],"mappings":"","sourcesContent":["import type { Page } from \"../../understudy/page.js\";\n\nexport interface ClipboardOptions {\n page?: Page;\n}\n\nexport interface ClipboardPasteOptions extends ClipboardOptions {\n shortcut?: \"ControlOrMeta+V\" | \"Meta+V\" | \"Control+V\";\n}\n\nexport interface BrowserClipboard {\n readText(options?: ClipboardOptions): Promise<string>;\n writeText(text: string, options?: ClipboardOptions): Promise<void>;\n clear(options?: ClipboardOptions): Promise<void>;\n paste(options?: ClipboardPasteOptions): Promise<void>;\n copy(options?: ClipboardOptions): Promise<void>;\n cut(options?: ClipboardOptions): Promise<void>;\n}\n"]}
|
|
@@ -3,6 +3,7 @@ export * from "./agentEvidenceEvents.js";
|
|
|
3
3
|
export * as Api from "./api.js";
|
|
4
4
|
export type { BrowserbaseRegion } from "./api.js";
|
|
5
5
|
export * from "./apiErrors.js";
|
|
6
|
+
export * from "./clipboard.js";
|
|
6
7
|
export * from "./logs.js";
|
|
7
8
|
export * from "./methods.js";
|
|
8
9
|
export * from "./metrics.js";
|
|
@@ -3,6 +3,7 @@ export * from "./agentEvidenceEvents.js";
|
|
|
3
3
|
// Export api.ts under namespace to avoid conflicts with methods.ts types
|
|
4
4
|
export * as Api from "./api.js";
|
|
5
5
|
export * from "./apiErrors.js";
|
|
6
|
+
export * from "./clipboard.js";
|
|
6
7
|
export * from "./logs.js";
|
|
7
8
|
export * from "./methods.js";
|
|
8
9
|
export * from "./metrics.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../lib/v3/types/public/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,yEAAyE;AACzE,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAGhC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export * from \"./agent.js\";\nexport * from \"./agentEvidenceEvents.js\";\n// Export api.ts under namespace to avoid conflicts with methods.ts types\nexport * as Api from \"./api.js\";\n// Also export BrowserbaseRegion directly for convenience\nexport type { BrowserbaseRegion } from \"./api.js\";\nexport * from \"./apiErrors.js\";\nexport * from \"./logs.js\";\nexport * from \"./methods.js\";\nexport * from \"./metrics.js\";\nexport * from \"./model.js\";\nexport * from \"./options.js\";\nexport * from \"./page.js\";\nexport * from \"./sdkErrors.js\";\nexport * from \"./context.js\";\nexport { AISdkClient } from \"../../external_clients/aisdk.js\";\nexport { CustomOpenAIClient } from \"../../external_clients/customOpenAI.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../lib/v3/types/public/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,yEAAyE;AACzE,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAGhC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC","sourcesContent":["export * from \"./agent.js\";\nexport * from \"./agentEvidenceEvents.js\";\n// Export api.ts under namespace to avoid conflicts with methods.ts types\nexport * as Api from \"./api.js\";\n// Also export BrowserbaseRegion directly for convenience\nexport type { BrowserbaseRegion } from \"./api.js\";\nexport * from \"./apiErrors.js\";\nexport * from \"./clipboard.js\";\nexport * from \"./logs.js\";\nexport * from \"./methods.js\";\nexport * from \"./metrics.js\";\nexport * from \"./model.js\";\nexport * from \"./options.js\";\nexport * from \"./page.js\";\nexport * from \"./sdkErrors.js\";\nexport * from \"./context.js\";\nexport { AISdkClient } from \"../../external_clients/aisdk.js\";\nexport { CustomOpenAIClient } from \"../../external_clients/customOpenAI.js\";\n"]}
|
|
@@ -24,16 +24,31 @@ export interface GoogleServiceAccountAuth {
|
|
|
24
24
|
projectId?: string;
|
|
25
25
|
universeDomain?: string;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export interface AzureEntraIdAuth {
|
|
28
|
+
type: "azureEntraId";
|
|
29
|
+
token: string;
|
|
30
|
+
}
|
|
31
|
+
export type ModelAuth = GoogleServiceAccountAuth | AzureEntraIdAuth;
|
|
28
32
|
export interface VertexProviderOptions {
|
|
29
33
|
project: string;
|
|
30
34
|
location: string;
|
|
31
35
|
baseURL?: string;
|
|
32
36
|
headers?: Record<string, string>;
|
|
33
37
|
}
|
|
34
|
-
export interface
|
|
35
|
-
|
|
38
|
+
export interface AzureProviderOptions {
|
|
39
|
+
resourceName?: string;
|
|
40
|
+
baseURL?: string;
|
|
41
|
+
apiVersion?: string;
|
|
42
|
+
useDeploymentBasedUrls?: boolean;
|
|
43
|
+
headers?: Record<string, string>;
|
|
36
44
|
}
|
|
45
|
+
export type ModelProviderOptions = {
|
|
46
|
+
vertex: VertexProviderOptions;
|
|
47
|
+
azure?: never;
|
|
48
|
+
} | {
|
|
49
|
+
azure: AzureProviderOptions;
|
|
50
|
+
vertex?: never;
|
|
51
|
+
};
|
|
37
52
|
export type AnthropicJsonSchemaObject = {
|
|
38
53
|
definitions?: {
|
|
39
54
|
MySchema?: {
|