Skip to content

Commit 7c17bc2

Browse files
feat: Add missing cdpHeaders field to v3 server openapi spec
1 parent 291b296 commit 7c17bc2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-a4e672f457dd99336f4b2a113fd7c7c6c9db0941b38d57cff6e3641549a6c4ed.yml
3-
openapi_spec_hash: eae9c8561e420db8e4d238c1e59617fb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-573d364768ac1902ee5ed8b2485d3b293bda0ea8ff7898aef1a3fd6be79b594a.yml
3+
openapi_spec_hash: 107ec840f4330885dd2232a05a66fed7
44
config_hash: 2a565ad6662259a2e90fa5f1f5095525

src/stagehand/types/session_start_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ class BrowserLaunchOptions(TypedDict, total=False):
8989

9090
args: SequenceNotStr[str]
9191

92+
cdp_headers: Annotated[Dict[str, str], PropertyInfo(alias="cdpHeaders")]
93+
9294
cdp_url: Annotated[str, PropertyInfo(alias="cdpUrl")]
9395

9496
chromium_sandbox: Annotated[bool, PropertyInfo(alias="chromiumSandbox")]

tests/api_resources/test_sessions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ def test_method_start_with_all_params(self, client: Stagehand) -> None:
776776
"launch_options": {
777777
"accept_downloads": True,
778778
"args": ["string"],
779+
"cdp_headers": {"foo": "string"},
779780
"cdp_url": "cdpUrl",
780781
"chromium_sandbox": True,
781782
"connect_timeout_ms": 0,
@@ -1635,6 +1636,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncStagehand)
16351636
"launch_options": {
16361637
"accept_downloads": True,
16371638
"args": ["string"],
1639+
"cdp_headers": {"foo": "string"},
16381640
"cdp_url": "cdpUrl",
16391641
"chromium_sandbox": True,
16401642
"connect_timeout_ms": 0,

0 commit comments

Comments
 (0)