Skip to content

Commit 8590a04

Browse files
feat(api): manual updates
1 parent 8d1c5ae commit 8590a04

File tree

9 files changed

+17
-18
lines changed

9 files changed

+17
-18
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-e6a9dca1a93568e403ac72128d86f30c8c3f1336d4b67017d7e61b1836f10f47.yml
3-
openapi_spec_hash: ef01e0649bb0e283df0aa81c369649df
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-d571232203ef4e00986a3245224267db6f8aaffdad57780f712e0694dc8d9e37.yml
3+
openapi_spec_hash: d5d635dd7b24a2e1255c6f2a895253ff
44
config_hash: 88e87ba7021be93d267ecfc8f5e6b891

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_act_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4-
from typing_extensions import Literal
54

65
from pydantic import Field as FieldInfo
76

@@ -35,4 +34,5 @@ class Data(BaseModel):
3534
class SessionActResponse(BaseModel):
3635
data: Data
3736

38-
success: Literal[True]
37+
success: bool
38+
"""Indicates whether the request was successful"""

src/stagehand/types/session_execute_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import TYPE_CHECKING, Dict, List, Optional
4-
from typing_extensions import Literal
54

65
from pydantic import Field as FieldInfo
76

@@ -79,4 +78,5 @@ class Data(BaseModel):
7978
class SessionExecuteResponse(BaseModel):
8079
data: Data
8180

82-
success: Literal[True]
81+
success: bool
82+
"""Indicates whether the request was successful"""

src/stagehand/types/session_extract_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4-
from typing_extensions import Literal
54

65
from pydantic import Field as FieldInfo
76

@@ -21,4 +20,5 @@ class Data(BaseModel):
2120
class SessionExtractResponse(BaseModel):
2221
data: Data
2322

24-
success: Literal[True]
23+
success: bool
24+
"""Indicates whether the request was successful"""

src/stagehand/types/session_navigate_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4-
from typing_extensions import Literal
54

65
from pydantic import Field as FieldInfo
76

@@ -21,4 +20,5 @@ class Data(BaseModel):
2120
class SessionNavigateResponse(BaseModel):
2221
data: Data
2322

24-
success: Literal[True]
23+
success: bool
24+
"""Indicates whether the request was successful"""

src/stagehand/types/session_observe_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4-
from typing_extensions import Literal
54

65
from pydantic import Field as FieldInfo
76

@@ -21,4 +20,5 @@ class Data(BaseModel):
2120
class SessionObserveResponse(BaseModel):
2221
data: Data
2322

24-
success: Literal[True]
23+
success: bool
24+
"""Indicates whether the request was successful"""

src/stagehand/types/session_start_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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")]

src/stagehand/types/session_start_response.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing_extensions import Literal
4-
53
from pydantic import Field as FieldInfo
64

75
from .._models import BaseModel
@@ -19,4 +17,5 @@ class Data(BaseModel):
1917
class SessionStartResponse(BaseModel):
2018
data: Data
2119

22-
success: Literal[True]
20+
success: bool
21+
"""Indicates whether the request was successful"""

0 commit comments

Comments
 (0)