Skip to content

Commit 0cdb22b

Browse files
feat(api): manual updates
1 parent cfb73bc commit 0cdb22b

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

.stats.yml

Lines changed: 3 additions & 3 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-e09ad013e10b6a6bb76dd9b2067696ba92bd7acb862b39bbfe2f296ebdb6eddf.yml
3-
openapi_spec_hash: 2f633591561e4737534842273441a818
4-
config_hash: 88e87ba7021be93d267ecfc8f5e6b891
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-e96507dd78e76fccc77ba7fb09704da127ead6f4d73ea854e9b2150e90787ff4.yml
3+
openapi_spec_hash: 0c2548b8fdd6de6789b19123e69609c1
4+
config_hash: c3abb41dbe698d59b3bf12f393013d54

src/stagehand/resources/sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def start(
498498
experimental: bool | Omit = omit,
499499
self_heal: bool | Omit = omit,
500500
system_prompt: str | Omit = omit,
501-
verbose: Literal[0, 1, 2] | Omit = omit,
501+
verbose: int | Omit = omit,
502502
wait_for_captcha_solves: bool | Omit = omit,
503503
x_language: Literal["typescript", "python", "playground"] | Omit = omit,
504504
x_sdk_version: str | Omit = omit,
@@ -1044,7 +1044,7 @@ async def start(
10441044
experimental: bool | Omit = omit,
10451045
self_heal: bool | Omit = omit,
10461046
system_prompt: str | Omit = omit,
1047-
verbose: Literal[0, 1, 2] | Omit = omit,
1047+
verbose: int | Omit = omit,
10481048
wait_for_captcha_solves: bool | Omit = omit,
10491049
x_language: Literal["typescript", "python", "playground"] | Omit = omit,
10501050
x_sdk_version: str | Omit = omit,

src/stagehand/types/session_start_params.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"BrowserbaseSessionCreateParamsBrowserSettingsFingerprint",
2222
"BrowserbaseSessionCreateParamsBrowserSettingsFingerprintScreen",
2323
"BrowserbaseSessionCreateParamsBrowserSettingsViewport",
24-
"BrowserbaseSessionCreateParamsProxiesUnionMember1",
25-
"BrowserbaseSessionCreateParamsProxiesUnionMember1BrowserbaseProxyConfig",
26-
"BrowserbaseSessionCreateParamsProxiesUnionMember1BrowserbaseProxyConfigGeolocation",
27-
"BrowserbaseSessionCreateParamsProxiesUnionMember1ExternalProxyConfig",
24+
"BrowserbaseSessionCreateParamsProxiesProxyConfigList",
25+
"BrowserbaseSessionCreateParamsProxiesProxyConfigListBrowserbaseProxyConfig",
26+
"BrowserbaseSessionCreateParamsProxiesProxyConfigListBrowserbaseProxyConfigGeolocation",
27+
"BrowserbaseSessionCreateParamsProxiesProxyConfigListExternalProxyConfig",
2828
]
2929

3030

@@ -57,7 +57,7 @@ class SessionStartParams(TypedDict, total=False):
5757
system_prompt: Annotated[str, PropertyInfo(alias="systemPrompt")]
5858
"""Custom system prompt for AI operations"""
5959

60-
verbose: Literal[0, 1, 2]
60+
verbose: int
6161
"""Logging verbosity level (0=quiet, 1=normal, 2=debug)"""
6262

6363
wait_for_captcha_solves: Annotated[bool, PropertyInfo(alias="waitForCaptchaSolves")]
@@ -197,23 +197,23 @@ class BrowserbaseSessionCreateParamsBrowserSettings(TypedDict, total=False):
197197
viewport: BrowserbaseSessionCreateParamsBrowserSettingsViewport
198198

199199

200-
class BrowserbaseSessionCreateParamsProxiesUnionMember1BrowserbaseProxyConfigGeolocation(TypedDict, total=False):
200+
class BrowserbaseSessionCreateParamsProxiesProxyConfigListBrowserbaseProxyConfigGeolocation(TypedDict, total=False):
201201
country: Required[str]
202202

203203
city: str
204204

205205
state: str
206206

207207

208-
class BrowserbaseSessionCreateParamsProxiesUnionMember1BrowserbaseProxyConfig(TypedDict, total=False):
208+
class BrowserbaseSessionCreateParamsProxiesProxyConfigListBrowserbaseProxyConfig(TypedDict, total=False):
209209
type: Required[Literal["browserbase"]]
210210

211211
domain_pattern: Annotated[str, PropertyInfo(alias="domainPattern")]
212212

213-
geolocation: BrowserbaseSessionCreateParamsProxiesUnionMember1BrowserbaseProxyConfigGeolocation
213+
geolocation: BrowserbaseSessionCreateParamsProxiesProxyConfigListBrowserbaseProxyConfigGeolocation
214214

215215

216-
class BrowserbaseSessionCreateParamsProxiesUnionMember1ExternalProxyConfig(TypedDict, total=False):
216+
class BrowserbaseSessionCreateParamsProxiesProxyConfigListExternalProxyConfig(TypedDict, total=False):
217217
server: Required[str]
218218

219219
type: Required[Literal["external"]]
@@ -225,9 +225,9 @@ class BrowserbaseSessionCreateParamsProxiesUnionMember1ExternalProxyConfig(Typed
225225
username: str
226226

227227

228-
BrowserbaseSessionCreateParamsProxiesUnionMember1: TypeAlias = Union[
229-
BrowserbaseSessionCreateParamsProxiesUnionMember1BrowserbaseProxyConfig,
230-
BrowserbaseSessionCreateParamsProxiesUnionMember1ExternalProxyConfig,
228+
BrowserbaseSessionCreateParamsProxiesProxyConfigList: TypeAlias = Union[
229+
BrowserbaseSessionCreateParamsProxiesProxyConfigListBrowserbaseProxyConfig,
230+
BrowserbaseSessionCreateParamsProxiesProxyConfigListExternalProxyConfig,
231231
]
232232

233233

@@ -240,7 +240,7 @@ class BrowserbaseSessionCreateParams(TypedDict, total=False):
240240

241241
project_id: Annotated[str, PropertyInfo(alias="projectId")]
242242

243-
proxies: Union[bool, Iterable[BrowserbaseSessionCreateParamsProxiesUnionMember1]]
243+
proxies: Union[bool, Iterable[BrowserbaseSessionCreateParamsProxiesProxyConfigList]]
244244

245245
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
246246

tests/api_resources/test_sessions.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_method_act_with_all_params(self, client: Stagehand) -> None:
4949
},
5050
x_language="typescript",
5151
x_sdk_version="3.0.6",
52-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
52+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
5353
x_stream_response="true",
5454
)
5555
assert_matches_type(SessionActResponse, session, path=["response"])
@@ -106,7 +106,7 @@ def test_method_end_with_all_params(self, client: Stagehand) -> None:
106106
id="c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123",
107107
x_language="typescript",
108108
x_sdk_version="3.0.6",
109-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
109+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
110110
x_stream_response="true",
111111
)
112112
assert_matches_type(SessionEndResponse, session, path=["response"])
@@ -175,7 +175,7 @@ def test_method_execute_with_all_params(self, client: Stagehand) -> None:
175175
frame_id="frameId",
176176
x_language="typescript",
177177
x_sdk_version="3.0.6",
178-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
178+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
179179
x_stream_response="true",
180180
)
181181
assert_matches_type(SessionExecuteResponse, session, path=["response"])
@@ -249,7 +249,7 @@ def test_method_extract_with_all_params(self, client: Stagehand) -> None:
249249
schema={"foo": "bar"},
250250
x_language="typescript",
251251
x_sdk_version="3.0.6",
252-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
252+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
253253
x_stream_response="true",
254254
)
255255
assert_matches_type(SessionExtractResponse, session, path=["response"])
@@ -311,7 +311,7 @@ def test_method_navigate_with_all_params(self, client: Stagehand) -> None:
311311
},
312312
x_language="typescript",
313313
x_sdk_version="3.0.6",
314-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
314+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
315315
x_stream_response="true",
316316
)
317317
assert_matches_type(SessionNavigateResponse, session, path=["response"])
@@ -375,7 +375,7 @@ def test_method_observe_with_all_params(self, client: Stagehand) -> None:
375375
},
376376
x_language="typescript",
377377
x_sdk_version="3.0.6",
378-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
378+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
379379
x_stream_response="true",
380380
)
381381
assert_matches_type(SessionObserveResponse, session, path=["response"])
@@ -508,7 +508,7 @@ def test_method_start_with_all_params(self, client: Stagehand) -> None:
508508
wait_for_captcha_solves=True,
509509
x_language="typescript",
510510
x_sdk_version="3.0.6",
511-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
511+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
512512
x_stream_response="true",
513513
)
514514
assert_matches_type(SessionStartResponse, session, path=["response"])
@@ -568,7 +568,7 @@ async def test_method_act_with_all_params(self, async_client: AsyncStagehand) ->
568568
},
569569
x_language="typescript",
570570
x_sdk_version="3.0.6",
571-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
571+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
572572
x_stream_response="true",
573573
)
574574
assert_matches_type(SessionActResponse, session, path=["response"])
@@ -625,7 +625,7 @@ async def test_method_end_with_all_params(self, async_client: AsyncStagehand) ->
625625
id="c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123",
626626
x_language="typescript",
627627
x_sdk_version="3.0.6",
628-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
628+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
629629
x_stream_response="true",
630630
)
631631
assert_matches_type(SessionEndResponse, session, path=["response"])
@@ -694,7 +694,7 @@ async def test_method_execute_with_all_params(self, async_client: AsyncStagehand
694694
frame_id="frameId",
695695
x_language="typescript",
696696
x_sdk_version="3.0.6",
697-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
697+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
698698
x_stream_response="true",
699699
)
700700
assert_matches_type(SessionExecuteResponse, session, path=["response"])
@@ -768,7 +768,7 @@ async def test_method_extract_with_all_params(self, async_client: AsyncStagehand
768768
schema={"foo": "bar"},
769769
x_language="typescript",
770770
x_sdk_version="3.0.6",
771-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
771+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
772772
x_stream_response="true",
773773
)
774774
assert_matches_type(SessionExtractResponse, session, path=["response"])
@@ -830,7 +830,7 @@ async def test_method_navigate_with_all_params(self, async_client: AsyncStagehan
830830
},
831831
x_language="typescript",
832832
x_sdk_version="3.0.6",
833-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
833+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
834834
x_stream_response="true",
835835
)
836836
assert_matches_type(SessionNavigateResponse, session, path=["response"])
@@ -894,7 +894,7 @@ async def test_method_observe_with_all_params(self, async_client: AsyncStagehand
894894
},
895895
x_language="typescript",
896896
x_sdk_version="3.0.6",
897-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
897+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
898898
x_stream_response="true",
899899
)
900900
assert_matches_type(SessionObserveResponse, session, path=["response"])
@@ -1027,7 +1027,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncStagehand)
10271027
wait_for_captcha_solves=True,
10281028
x_language="typescript",
10291029
x_sdk_version="3.0.6",
1030-
x_sent_at=parse_datetime("2025-01-15T10:30:00.000Z"),
1030+
x_sent_at=parse_datetime("2025-01-15T10:30:00Z"),
10311031
x_stream_response="true",
10321032
)
10331033
assert_matches_type(SessionStartResponse, session, path=["response"])

0 commit comments

Comments
 (0)