Skip to content

Commit 3050f62

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#27)
1 parent 1f3a189 commit 3050f62

File tree

4 files changed

+1
-19
lines changed

4 files changed

+1
-19
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-3140ed9942ce873c477c950cc9a13ccce88c3b054b903cdf78ac0db6cf2c634f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-1ccf843d2efab92c6fa01ffb11a0b5e6787218d750597687de526ac9f22f6b81.yml

Diff for: src/browserbase/resources/sessions/sessions.py

-10
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def create(
106106
keep_alive: bool | NotGiven = NOT_GIVEN,
107107
proxies: object | NotGiven = NOT_GIVEN,
108108
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
109-
api_timeout: int | NotGiven = NOT_GIVEN,
110109
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
111110
# The extra values given here take precedence over values defined on the client or passed to this method.
112111
extra_headers: Headers | None = None,
@@ -133,9 +132,6 @@ def create(
133132
134133
region: The region where the Session should run.
135134
136-
api_timeout: Duration in seconds after which the session will automatically end. Defaults to
137-
the Project's `defaultTimeout`.
138-
139135
extra_headers: Send extra headers
140136
141137
extra_query: Add additional query parameters to the request
@@ -154,7 +150,6 @@ def create(
154150
"keep_alive": keep_alive,
155151
"proxies": proxies,
156152
"region": region,
157-
"timeout": api_timeout,
158153
},
159154
session_create_params.SessionCreateParams,
160155
),
@@ -360,7 +355,6 @@ async def create(
360355
keep_alive: bool | NotGiven = NOT_GIVEN,
361356
proxies: object | NotGiven = NOT_GIVEN,
362357
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | NotGiven = NOT_GIVEN,
363-
api_timeout: int | NotGiven = NOT_GIVEN,
364358
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
365359
# The extra values given here take precedence over values defined on the client or passed to this method.
366360
extra_headers: Headers | None = None,
@@ -387,9 +381,6 @@ async def create(
387381
388382
region: The region where the Session should run.
389383
390-
api_timeout: Duration in seconds after which the session will automatically end. Defaults to
391-
the Project's `defaultTimeout`.
392-
393384
extra_headers: Send extra headers
394385
395386
extra_query: Add additional query parameters to the request
@@ -408,7 +399,6 @@ async def create(
408399
"keep_alive": keep_alive,
409400
"proxies": proxies,
410401
"region": region,
411-
"timeout": api_timeout,
412402
},
413403
session_create_params.SessionCreateParams,
414404
),

Diff for: src/browserbase/types/session_create_params.py

-6
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ class SessionCreateParams(TypedDict, total=False):
4747
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
4848
"""The region where the Session should run."""
4949

50-
api_timeout: Annotated[int, PropertyInfo(alias="timeout")]
51-
"""Duration in seconds after which the session will automatically end.
52-
53-
Defaults to the Project's `defaultTimeout`.
54-
"""
55-
5650

5751
class BrowserSettingsContext(TypedDict, total=False):
5852
id: Required[str]

Diff for: tests/api_resources/test_sessions.py

-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
6565
keep_alive=True,
6666
proxies={},
6767
region="us-west-2",
68-
api_timeout=60,
6968
)
7069
assert_matches_type(SessionCreateResponse, session, path=["response"])
7170

@@ -294,7 +293,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
294293
keep_alive=True,
295294
proxies={},
296295
region="us-west-2",
297-
api_timeout=60,
298296
)
299297
assert_matches_type(SessionCreateResponse, session, path=["response"])
300298

0 commit comments

Comments
 (0)