Skip to content

Commit 99b1cfb

Browse files
feat(api): manual updates
1 parent 6915700 commit 99b1cfb

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
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: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-be7a4aeebb1605262935b4b3ab446a95b1fad8a7d18098943dd548c8a486ef13.yml
3-
openapi_spec_hash: 1c950a109f80140711e7ae2cf87fddad
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0b96e0120f7cf3fba797371433e15a08d14727c0526d718b728faee615624297.yml
3+
openapi_spec_hash: 8d007eed388933bf9d74c5488a56be41
44
config_hash: b3ca4ec5b02e5333af51ebc2e9fdef1b

src/browserbase/resources/sessions/sessions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def create(
104104
extension_id: str | Omit = omit,
105105
keep_alive: bool | Omit = omit,
106106
proxies: Union[Iterable[session_create_params.ProxiesUnionMember0], bool] | Omit = omit,
107+
proxy_settings: session_create_params.ProxySettings | Omit = omit,
107108
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | Omit = omit,
108109
api_timeout: int | Omit = omit,
109110
user_metadata: Dict[str, object] | Omit = omit,
@@ -131,6 +132,8 @@ def create(
131132
proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
132133
configurations.
133134
135+
proxy_settings: [NOT IN DOCS] Supplementary proxy settings. Optional.
136+
134137
region: The region where the Session should run.
135138
136139
api_timeout: Duration in seconds after which the session will automatically end. Defaults to
@@ -156,6 +159,7 @@ def create(
156159
"extension_id": extension_id,
157160
"keep_alive": keep_alive,
158161
"proxies": proxies,
162+
"proxy_settings": proxy_settings,
159163
"region": region,
160164
"api_timeout": api_timeout,
161165
"user_metadata": user_metadata,
@@ -375,6 +379,7 @@ async def create(
375379
extension_id: str | Omit = omit,
376380
keep_alive: bool | Omit = omit,
377381
proxies: Union[Iterable[session_create_params.ProxiesUnionMember0], bool] | Omit = omit,
382+
proxy_settings: session_create_params.ProxySettings | Omit = omit,
378383
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | Omit = omit,
379384
api_timeout: int | Omit = omit,
380385
user_metadata: Dict[str, object] | Omit = omit,
@@ -402,6 +407,8 @@ async def create(
402407
proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
403408
configurations.
404409
410+
proxy_settings: [NOT IN DOCS] Supplementary proxy settings. Optional.
411+
405412
region: The region where the Session should run.
406413
407414
api_timeout: Duration in seconds after which the session will automatically end. Defaults to
@@ -427,6 +434,7 @@ async def create(
427434
"extension_id": extension_id,
428435
"keep_alive": keep_alive,
429436
"proxies": proxies,
437+
"proxy_settings": proxy_settings,
430438
"region": region,
431439
"api_timeout": api_timeout,
432440
"user_metadata": user_metadata,

src/browserbase/types/session_create_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"ProxiesUnionMember0UnionMember0",
2020
"ProxiesUnionMember0UnionMember0Geolocation",
2121
"ProxiesUnionMember0UnionMember1",
22+
"ProxySettings",
2223
]
2324

2425

@@ -49,6 +50,9 @@ class SessionCreateParams(TypedDict, total=False):
4950
Can be true for default proxy, or an array of proxy configurations.
5051
"""
5152

53+
proxy_settings: Annotated[ProxySettings, PropertyInfo(alias="proxySettings")]
54+
"""[NOT IN DOCS] Supplementary proxy settings. Optional."""
55+
5256
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"]
5357
"""The region where the Session should run."""
5458

@@ -208,3 +212,8 @@ class ProxiesUnionMember0UnionMember1(TypedDict, total=False):
208212

209213

210214
ProxiesUnionMember0: TypeAlias = Union[ProxiesUnionMember0UnionMember0, ProxiesUnionMember0UnionMember1]
215+
216+
217+
class ProxySettings(TypedDict, total=False):
218+
ca_certificates: Required[Annotated[SequenceNotStr[str], PropertyInfo(alias="caCertificates")]]
219+
"""[NOT IN DOCS] The TLS certificate IDs to trust. Optional."""

tests/api_resources/test_sessions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
7979
},
8080
}
8181
],
82+
proxy_settings={"ca_certificates": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]},
8283
region="us-west-2",
8384
api_timeout=60,
8485
user_metadata={"foo": "bar"},
@@ -326,6 +327,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
326327
},
327328
}
328329
],
330+
proxy_settings={"ca_certificates": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]},
329331
region="us-west-2",
330332
api_timeout=60,
331333
user_metadata={"foo": "bar"},

0 commit comments

Comments
 (0)