Skip to content

Commit 405c606

Browse files
feat: [STG-1053] [server] Use fastify-zod-openapi + zod v4 for openapi generation
1 parent 681e90f commit 405c606

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-4fb17cafc413ae3d575e3268602b01d2d0e9ebeb734a41b6086b3353ff0d2523.yml
3-
openapi_spec_hash: 8d48d8564849246f6f14d900c6c5f60c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-ed52466945f2f8dfd3814a29e948d7bf30af7b76a7a7689079c03b8baf64e26f.yml
3+
openapi_spec_hash: 5d57aaf2362b0d882372dbf76477ba23
44
config_hash: 5c69fb596588b8ace08203858518c149

src/stagehand/resources/sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ def start(
10321032
experimental: bool | Omit = omit,
10331033
self_heal: bool | Omit = omit,
10341034
system_prompt: str | Omit = omit,
1035-
verbose: Literal["0", "1", "2"] | Omit = omit,
1035+
verbose: Literal[0, 1, 2] | Omit = omit,
10361036
wait_for_captcha_solves: bool | Omit = omit,
10371037
x_language: Literal["typescript", "python", "playground"] | Omit = omit,
10381038
x_sdk_version: str | Omit = omit,
@@ -2111,7 +2111,7 @@ async def start(
21112111
experimental: bool | Omit = omit,
21122112
self_heal: bool | Omit = omit,
21132113
system_prompt: str | Omit = omit,
2114-
verbose: Literal["0", "1", "2"] | Omit = omit,
2114+
verbose: Literal[0, 1, 2] | Omit = omit,
21152115
wait_for_captcha_solves: bool | Omit = omit,
21162116
x_language: Literal["typescript", "python", "playground"] | Omit = omit,
21172117
x_sdk_version: str | Omit = omit,

src/stagehand/types/session_start_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class SessionStartParams(TypedDict, total=False):
5555
system_prompt: Annotated[str, PropertyInfo(alias="systemPrompt")]
5656
"""Custom system prompt for AI operations"""
5757

58-
verbose: Literal["0", "1", "2"]
58+
verbose: Literal[0, 1, 2]
5959
"""Logging verbosity level (0=quiet, 1=normal, 2=debug)"""
6060

6161
wait_for_captcha_solves: Annotated[bool, PropertyInfo(alias="waitForCaptchaSolves")]

tests/api_resources/test_sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ def test_method_start_with_all_params(self, client: Stagehand) -> None:
795795
experimental=True,
796796
self_heal=True,
797797
system_prompt="systemPrompt",
798-
verbose="1",
798+
verbose=1,
799799
wait_for_captcha_solves=True,
800800
x_language="typescript",
801801
x_sdk_version="3.0.6",
@@ -1605,7 +1605,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncStagehand)
16051605
experimental=True,
16061606
self_heal=True,
16071607
system_prompt="systemPrompt",
1608-
verbose="1",
1608+
verbose=1,
16091609
wait_for_captcha_solves=True,
16101610
x_language="typescript",
16111611
x_sdk_version="3.0.6",

0 commit comments

Comments
 (0)