@browserbasehq/stagehand 4.0.0 → 4.0.1

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 CHANGED
@@ -20,7 +20,7 @@
20
20
  <img alt="MIT License" src="media/light_license.svg" />
21
21
  </picture>
22
22
  </a>
23
- <a href="https://stagehand.dev/discord">
23
+ <a href="https://discord.gg/stagehand">
24
24
  <picture>
25
25
  <source media="(prefers-color-scheme: dark)" srcset="media/dark_discord.svg" />
26
26
  <img alt="Discord Community" src="media/light_discord.svg" />
@@ -80,11 +80,22 @@ Here's how to build a sample browser automation with Stagehand:
80
80
  import { browserbase, Stagehand } from "@browserbasehq/stagehand";
81
81
  import { z } from "zod/v4";
82
82
 
83
- const browser = await browserbase.launch();
84
- const stagehand = await Stagehand.create({ browser });
83
+ const { BROWSERBASE_API_KEY, OPENAI_API_KEY } = process.env;
84
+
85
+ const browser = await browserbase.launch({
86
+ apiKey: BROWSERBASE_API_KEY,
87
+ });
88
+
89
+ const stagehand = await Stagehand.create({
90
+ browser,
91
+ model: {
92
+ modelName: "openai/gpt-5.4-mini",
93
+ apiKey: OPENAI_API_KEY,
94
+ },
95
+ });
85
96
 
86
97
  // Stagehand's CDP engine provides an optimized, low level interface to the browser built for automation
87
- const page = await browser.context.pages()[0];
98
+ const [page] = await browser.context.pages();
88
99
  await page.goto("https://github.com/browserbase");
89
100
 
90
101
  // Use act() to execute individual actions
@@ -108,47 +119,45 @@ const {
108
119
  );
109
120
  ```
110
121
 
122
+ See the [Python](./packages/sdk-python/README.md) and [Go](./packages/sdk-go/README.md) READMEs for equivalent examples.
123
+
111
124
  ## Documentation
112
125
 
113
126
  Visit [docs.stagehand.dev](https://docs.stagehand.dev) to view the full documentation.
114
127
 
115
128
  ### Build and Run from Source
116
129
 
130
+ Stagehand is a TypeScript, Python, and Go monorepo. We use [`just`](https://github.com/casey/just) to drive `pnpm`, `uv`, and `go` together.
131
+
117
132
  ```bash
118
133
  git clone https://github.com/browserbase/stagehand.git
119
134
  cd stagehand
120
- pnpm install
121
- pnpm run build
122
- pnpm run example # run the blank script at ./examples/example.ts
135
+ just install
136
+ just generate
137
+ just build
123
138
  ```
124
139
 
125
- Stagehand is best when you have an API key for an LLM provider and Browserbase credentials. To add these to your project, run:
140
+ Stagehand is best when you have an API key for an LLM provider and Browserbase credentials. Export them so they're available on `process.env`:
126
141
 
127
142
  ```bash
128
- cp .env.example .env
129
- nano .env # Edit the .env file to add API keys
143
+ export OPENAI_API_KEY="your-openai-api-key"
144
+ export BROWSERBASE_API_KEY="your-browserbase-api-key"
130
145
  ```
131
146
 
132
- ### Installing from a branch
133
-
134
- To install Stagehand directly from a GitHub branch, install the core package subdirectory:
147
+ Then run any of the scripts in [`packages/sdk-ts/examples`](./packages/sdk-ts/examples):
135
148
 
136
149
  ```bash
137
- pnpm add "github:browserbase/stagehand#<branchName>&path:/packages/core"
150
+ just example act # runs packages/sdk-ts/examples/act.ts
138
151
  ```
139
152
 
140
- Or set it in your project's `package.json`:
141
-
142
- ```json
143
- "@browserbasehq/stagehand": "github:browserbase/stagehand#<branchName>&path:/packages/core"
144
- ```
153
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full TypeScript, Python, and Go setup.
145
154
 
146
155
  ## Contributing
147
156
 
148
157
  > [!NOTE]
149
- > We highly value contributions to Stagehand! For questions or support, please join our [Discord community](https://stagehand.dev/discord).
158
+ > We highly value contributions to Stagehand! For questions or support, please join our [Discord community](https://discord.gg/stagehand).
150
159
 
151
- We're focused on improving reliability, extensibility, speed, and cost in that order of priority. If you're interested in contributing, **bug fixes and small improvements are the best way to get started**. For more involved features, we strongly recommend reaching out to [Miguel Gonzalez](https://x.com/miguel_gonzf) or [Paul Klein](https://x.com/pk_iv) in our [Discord community](https://stagehand.dev/discord) before starting to ensure that your contribution aligns with our goals.
160
+ We're focused on improving reliability, extensibility, speed, and cost in that order of priority. If you're interested in contributing, **bug fixes and small improvements are the best way to get started**. For more involved features, we strongly recommend reaching out to [Miguel Gonzalez](https://x.com/miguel_gonzf) or [Paul Klein](https://x.com/pk_iv) in our [Discord community](https://discord.gg/stagehand) before starting to ensure that your contribution aligns with our goals.
152
161
 
153
162
  <!-- For more information, please see our [CONTRIBUTING.md](CONTRIBUTING.md) -->
154
163
 
Binary file
@@ -7537,6 +7537,7 @@ var GoogleModelIdSchema = _enum([
7537
7537
  "gemini-3.1-flash-lite-preview",
7538
7538
  "gemini-3.1-flash-tts-preview",
7539
7539
  "gemini-3.5-flash",
7540
+ "gemini-3.6-flash",
7540
7541
  "gemini-pro-latest",
7541
7542
  "gemini-flash-latest",
7542
7543
  "gemini-flash-lite-latest",
package/dist/index.d.mts CHANGED
@@ -90,7 +90,7 @@ declare const StagehandMethods: {
90
90
  model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
91
91
  apiKey: z.ZodOptional<z.ZodString>;
92
92
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
93
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
93
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
94
94
  }, z.core.$strict>, z.ZodObject<{
95
95
  source: z.ZodLiteral<"client">;
96
96
  }, z.core.$strict>]>>;
@@ -144,7 +144,7 @@ declare const StagehandMethods: {
144
144
  model: z.ZodOptional<z.ZodObject<{
145
145
  apiKey: z.ZodOptional<z.ZodString>;
146
146
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
147
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
147
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
148
148
  }, z.core.$strict>>;
149
149
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
150
150
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -215,7 +215,7 @@ declare const StagehandMethods: {
215
215
  model: z.ZodOptional<z.ZodObject<{
216
216
  apiKey: z.ZodOptional<z.ZodString>;
217
217
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
218
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
218
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
219
219
  }, z.core.$strict>>;
220
220
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
221
221
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -282,7 +282,7 @@ declare const StagehandMethods: {
282
282
  model: z.ZodOptional<z.ZodObject<{
283
283
  apiKey: z.ZodOptional<z.ZodString>;
284
284
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
285
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
285
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
286
286
  }, z.core.$strict>>;
287
287
  timeout: z.ZodOptional<z.ZodNumber>;
288
288
  locator: z.ZodOptional<z.ZodObject<{
@@ -2004,7 +2004,7 @@ type RegisteredNotificationSchema = { [Key in keyof typeof StagehandNotification
2004
2004
  declare const StagehandRpcNotificationSchema: z.ZodUnion<[RegisteredNotificationSchema, ...RegisteredNotificationSchema[]]>;
2005
2005
  //#endregion
2006
2006
  //#region ../protocol/schemas.d.ts
2007
- declare const ModelNameSchema: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
2007
+ declare const ModelNameSchema: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
2008
2008
  declare const CookieSchema: z.ZodObject<{
2009
2009
  name: z.ZodString;
2010
2010
  value: z.ZodString;
@@ -2079,7 +2079,7 @@ declare const CachingSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2079
2079
  declare const ModelConfigSchema: z.ZodObject<{
2080
2080
  apiKey: z.ZodOptional<z.ZodString>;
2081
2081
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2082
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
2082
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
2083
2083
  }, z.core.$strict>;
2084
2084
  /** Action object returned by observe and used by act */
2085
2085
  declare const ActionSchema: z.ZodObject<{
@@ -3428,7 +3428,7 @@ declare const StagehandClientActOptionsSchema: z.ZodObject<{
3428
3428
  model: z.ZodOptional<z.ZodObject<{
3429
3429
  apiKey: z.ZodOptional<z.ZodString>;
3430
3430
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3431
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3431
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3432
3432
  }, z.core.$strict>>;
3433
3433
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
3434
3434
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -3446,7 +3446,7 @@ declare const StagehandClientObserveOptionsSchema: z.ZodObject<{
3446
3446
  model: z.ZodOptional<z.ZodObject<{
3447
3447
  apiKey: z.ZodOptional<z.ZodString>;
3448
3448
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3449
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3449
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3450
3450
  }, z.core.$strict>>;
3451
3451
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
3452
3452
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -3464,7 +3464,7 @@ declare const StagehandClientExtractOptionsSchema: z.ZodObject<{
3464
3464
  model: z.ZodOptional<z.ZodObject<{
3465
3465
  apiKey: z.ZodOptional<z.ZodString>;
3466
3466
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3467
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3467
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3468
3468
  }, z.core.$strict>>;
3469
3469
  timeout: z.ZodOptional<z.ZodNumber>;
3470
3470
  screenshot: z.ZodOptional<z.ZodBoolean>;
@@ -3493,7 +3493,7 @@ declare const StagehandClientCreateConfigSchema: z.ZodObject<{
3493
3493
  model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3494
3494
  apiKey: z.ZodOptional<z.ZodString>;
3495
3495
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3496
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3496
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
3497
3497
  }, z.core.$strict>, z.ZodObject<{
3498
3498
  generate: z.ZodFunction<z.ZodTuple<readonly [z.ZodUnion<readonly [z.ZodObject<{
3499
3499
  messages: z.ZodArray<z.ZodObject<{
@@ -4095,7 +4095,7 @@ declare const StagehandCreateOptionsSchema: z.ZodObject<{
4095
4095
  model: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
4096
4096
  apiKey: z.ZodOptional<z.ZodString>;
4097
4097
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4098
- modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
4098
+ modelName: z.ZodUnion<readonly [z.ZodTemplateLiteral<"openai/gpt-4.1" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano" | "openai/gpt-4.1-nano-2025-04-14" | "openai/gpt-4o" | "openai/gpt-4o-2024-05-13" | "openai/gpt-4o-2024-08-06" | "openai/gpt-4o-2024-11-20" | "openai/gpt-4o-audio-preview" | "openai/gpt-4o-audio-preview-2024-12-17" | "openai/gpt-4o-search-preview" | "openai/gpt-4o-search-preview-2025-03-11" | "openai/gpt-4o-mini-search-preview" | "openai/gpt-4o-mini-search-preview-2025-03-11" | "openai/gpt-4o-mini" | "openai/gpt-4o-mini-2024-07-18" | "openai/gpt-3.5-turbo-0125" | "openai/gpt-3.5-turbo" | "openai/gpt-3.5-turbo-1106" | "openai/gpt-5-chat-latest" | "openai/o1" | "openai/o1-2024-12-17" | "openai/o3" | "openai/o3-2025-04-16" | "openai/o3-mini" | "openai/o3-mini-2025-01-31" | "openai/o4-mini" | "openai/o4-mini-2025-04-16" | "openai/gpt-5" | "openai/gpt-5-2025-08-07" | "openai/gpt-5-codex" | "openai/gpt-5-mini" | "openai/gpt-5-mini-2025-08-07" | "openai/gpt-5-nano" | "openai/gpt-5-nano-2025-08-07" | "openai/gpt-5-pro" | "openai/gpt-5-pro-2025-10-06" | "openai/gpt-5.1" | "openai/gpt-5.1-chat-latest" | "openai/gpt-5.1-codex-mini" | "openai/gpt-5.1-codex" | "openai/gpt-5.1-codex-max" | "openai/gpt-5.2" | "openai/gpt-5.2-chat-latest" | "openai/gpt-5.2-pro" | "openai/gpt-5.2-codex" | "openai/gpt-5.3-chat-latest" | "openai/gpt-5.3-codex" | "openai/gpt-5.4" | "openai/gpt-5.4-2026-03-05" | "openai/gpt-5.4-mini" | "openai/gpt-5.4-mini-2026-03-17" | "openai/gpt-5.4-nano" | "openai/gpt-5.4-nano-2026-03-17" | "openai/gpt-5.4-pro" | "openai/gpt-5.4-pro-2026-03-05" | "openai/gpt-5.5" | "openai/gpt-5.5-2026-04-23" | "openai/gpt-5.6" | "openai/gpt-5.6-luna" | "openai/gpt-5.6-sol" | "openai/gpt-5.6-terra">, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>;
4099
4099
  }, z.core.$strict>, z.ZodObject<{
4100
4100
  generate: z.ZodFunction<z.ZodTuple<readonly [z.ZodUnion<readonly [z.ZodObject<{
4101
4101
  messages: z.ZodArray<z.ZodObject<{