Skip to content

Commit 72aa8b8

Browse files
feat(api): manual updates
1 parent 8ba62c8 commit 72aa8b8

File tree

10 files changed

+1360
-27
lines changed

10 files changed

+1360
-27
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-24dc965121b5ad70c846fd8b96ce4638d13bac7e86ba0f50a8d13a5664ac4929.yml
3-
openapi_spec_hash: 5a8e70d2a5358bfd6917f907b4a4d1f3
4-
config_hash: a35b56eb05306a0f02e83c11d57f975f
1+
configured_endpoints: 7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-c1a6f03afe5d6823c198e5ac476fb688dacc783dae1fefdf6bf142084e298e16.yml
3+
openapi_spec_hash: d20e8f697ce8d5bb80295fc1e8ce02e8
4+
config_hash: e457d704d820df5d25acfd379169f132

api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,10 @@ from stagehand.types import Action, ModelConfig
88

99
Methods:
1010

11+
- <code title="post /sessions/{id}/act">client.sessions.<a href="./src/stagehand/resources/sessions.py">act</a>(id, \*\*<a href="src/stagehand/types/session_act_params.py">params</a>) -> object</code>
12+
- <code title="post /sessions/{id}/end">client.sessions.<a href="./src/stagehand/resources/sessions.py">end</a>(id) -> object</code>
13+
- <code title="post /sessions/{id}/agentExecute">client.sessions.<a href="./src/stagehand/resources/sessions.py">execute_agent</a>(id, \*\*<a href="src/stagehand/types/session_execute_agent_params.py">params</a>) -> object</code>
14+
- <code title="post /sessions/{id}/extract">client.sessions.<a href="./src/stagehand/resources/sessions.py">extract</a>(id, \*\*<a href="src/stagehand/types/session_extract_params.py">params</a>) -> object</code>
15+
- <code title="post /sessions/{id}/navigate">client.sessions.<a href="./src/stagehand/resources/sessions.py">navigate</a>(id, \*\*<a href="src/stagehand/types/session_navigate_params.py">params</a>) -> object</code>
16+
- <code title="post /sessions/{id}/observe">client.sessions.<a href="./src/stagehand/resources/sessions.py">observe</a>(id, \*\*<a href="src/stagehand/types/session_observe_params.py">params</a>) -> object</code>
1117
- <code title="post /sessions/start">client.sessions.<a href="./src/stagehand/resources/sessions.py">start</a>(\*\*<a href="src/stagehand/types/session_start_params.py">params</a>) -> object</code>

src/stagehand/resources/sessions.py

Lines changed: 678 additions & 23 deletions
Large diffs are not rendered by default.

src/stagehand/types/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22

33
from __future__ import annotations
44

5+
from .session_act_params import SessionActParams as SessionActParams
56
from .session_start_params import SessionStartParams as SessionStartParams
7+
from .session_extract_params import SessionExtractParams as SessionExtractParams
8+
from .session_observe_params import SessionObserveParams as SessionObserveParams
9+
from .session_navigate_params import SessionNavigateParams as SessionNavigateParams
10+
from .session_execute_agent_params import SessionExecuteAgentParams as SessionExecuteAgentParams
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Annotated, TypedDict
6+
7+
from .._utils import PropertyInfo
8+
9+
__all__ = ["SessionActParams"]
10+
11+
12+
class SessionActParams(TypedDict, total=False):
13+
body: object
14+
15+
x_language: Annotated[object, PropertyInfo(alias="x-language")]
16+
17+
x_sdk_version: Annotated[object, PropertyInfo(alias="x-sdk-version")]
18+
19+
x_sent_at: Annotated[object, PropertyInfo(alias="x-sent-at")]
20+
21+
x_stream_response: Annotated[object, PropertyInfo(alias="x-stream-response")]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Annotated, TypedDict
6+
7+
from .._utils import PropertyInfo
8+
9+
__all__ = ["SessionExecuteAgentParams"]
10+
11+
12+
class SessionExecuteAgentParams(TypedDict, total=False):
13+
body: object
14+
15+
x_language: Annotated[object, PropertyInfo(alias="x-language")]
16+
17+
x_sdk_version: Annotated[object, PropertyInfo(alias="x-sdk-version")]
18+
19+
x_sent_at: Annotated[object, PropertyInfo(alias="x-sent-at")]
20+
21+
x_stream_response: Annotated[object, PropertyInfo(alias="x-stream-response")]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Annotated, TypedDict
6+
7+
from .._utils import PropertyInfo
8+
9+
__all__ = ["SessionExtractParams"]
10+
11+
12+
class SessionExtractParams(TypedDict, total=False):
13+
body: object
14+
15+
x_language: Annotated[object, PropertyInfo(alias="x-language")]
16+
17+
x_sdk_version: Annotated[object, PropertyInfo(alias="x-sdk-version")]
18+
19+
x_sent_at: Annotated[object, PropertyInfo(alias="x-sent-at")]
20+
21+
x_stream_response: Annotated[object, PropertyInfo(alias="x-stream-response")]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Annotated, TypedDict
6+
7+
from .._utils import PropertyInfo
8+
9+
__all__ = ["SessionNavigateParams"]
10+
11+
12+
class SessionNavigateParams(TypedDict, total=False):
13+
body: object
14+
15+
x_language: Annotated[object, PropertyInfo(alias="x-language")]
16+
17+
x_sdk_version: Annotated[object, PropertyInfo(alias="x-sdk-version")]
18+
19+
x_sent_at: Annotated[object, PropertyInfo(alias="x-sent-at")]
20+
21+
x_stream_response: Annotated[object, PropertyInfo(alias="x-stream-response")]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Annotated, TypedDict
6+
7+
from .._utils import PropertyInfo
8+
9+
__all__ = ["SessionObserveParams"]
10+
11+
12+
class SessionObserveParams(TypedDict, total=False):
13+
body: object
14+
15+
x_language: Annotated[object, PropertyInfo(alias="x-language")]
16+
17+
x_sdk_version: Annotated[object, PropertyInfo(alias="x-sdk-version")]
18+
19+
x_sent_at: Annotated[object, PropertyInfo(alias="x-sent-at")]
20+
21+
x_stream_response: Annotated[object, PropertyInfo(alias="x-stream-response")]

0 commit comments

Comments
 (0)