Skip to content

feat(api): update via SDK Studio #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-1ccf843d2efab92c6fa01ffb11a0b5e6787218d750597687de526ac9f22f6b81.yml
10 changes: 0 additions & 10 deletions src/browserbase/resources/sessions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def create(
keep_alive: bool | NotGiven = NOT_GIVEN,
proxies: object | NotGiven = NOT_GIVEN,
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
api_timeout: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -133,9 +132,6 @@ def create(

region: The region where the Session should run.

api_timeout: Duration in seconds after which the session will automatically end. Defaults to
the Project's `defaultTimeout`.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -154,7 +150,6 @@ def create(
"keep_alive": keep_alive,
"proxies": proxies,
"region": region,
"timeout": api_timeout,
},
session_create_params.SessionCreateParams,
),
Expand Down Expand Up @@ -360,7 +355,6 @@ async def create(
keep_alive: bool | NotGiven = NOT_GIVEN,
proxies: object | NotGiven = NOT_GIVEN,
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
api_timeout: int | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -387,9 +381,6 @@ async def create(

region: The region where the Session should run.

api_timeout: Duration in seconds after which the session will automatically end. Defaults to
the Project's `defaultTimeout`.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -408,7 +399,6 @@ async def create(
"keep_alive": keep_alive,
"proxies": proxies,
"region": region,
"timeout": api_timeout,
},
session_create_params.SessionCreateParams,
),
Expand Down
6 changes: 0 additions & 6 deletions src/browserbase/types/session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ class SessionCreateParams(TypedDict, total=False):
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
"""The region where the Session should run."""

api_timeout: Annotated[int, PropertyInfo(alias="timeout")]
"""Duration in seconds after which the session will automatically end.

Defaults to the Project's `defaultTimeout`.
"""


class BrowserSettingsContext(TypedDict, total=False):
id: Required[str]
Expand Down
2 changes: 0 additions & 2 deletions tests/api_resources/test_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
keep_alive=True,
proxies={},
region="us-west-2",
api_timeout=60,
)
assert_matches_type(SessionCreateResponse, session, path=["response"])

Expand Down Expand Up @@ -294,7 +293,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
keep_alive=True,
proxies={},
region="us-west-2",
api_timeout=60,
)
assert_matches_type(SessionCreateResponse, session, path=["response"])

Expand Down