Skip to content

Commit 97edfd0

Browse files
feat(api): api update
1 parent f6e0241 commit 97edfd0

File tree

4 files changed

+2
-21
lines changed

4 files changed

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

src/browserbase/resources/sessions/sessions.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ 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,
108107
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | Omit = omit,
109108
api_timeout: int | Omit = omit,
110109
user_metadata: Dict[str, object] | Omit = omit,
@@ -132,8 +131,6 @@ def create(
132131
proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
133132
configurations.
134133
135-
proxy_settings: [NOT IN DOCS] Supplementary proxy settings. Optional.
136-
137134
region: The region where the Session should run.
138135
139136
api_timeout: Duration in seconds after which the session will automatically end. Defaults to
@@ -159,7 +156,6 @@ def create(
159156
"extension_id": extension_id,
160157
"keep_alive": keep_alive,
161158
"proxies": proxies,
162-
"proxy_settings": proxy_settings,
163159
"region": region,
164160
"api_timeout": api_timeout,
165161
"user_metadata": user_metadata,
@@ -379,7 +375,6 @@ async def create(
379375
extension_id: str | Omit = omit,
380376
keep_alive: bool | Omit = omit,
381377
proxies: Union[Iterable[session_create_params.ProxiesUnionMember0], bool] | Omit = omit,
382-
proxy_settings: session_create_params.ProxySettings | Omit = omit,
383378
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | Omit = omit,
384379
api_timeout: int | Omit = omit,
385380
user_metadata: Dict[str, object] | Omit = omit,
@@ -407,8 +402,6 @@ async def create(
407402
proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
408403
configurations.
409404
410-
proxy_settings: [NOT IN DOCS] Supplementary proxy settings. Optional.
411-
412405
region: The region where the Session should run.
413406
414407
api_timeout: Duration in seconds after which the session will automatically end. Defaults to
@@ -434,7 +427,6 @@ async def create(
434427
"extension_id": extension_id,
435428
"keep_alive": keep_alive,
436429
"proxies": proxies,
437-
"proxy_settings": proxy_settings,
438430
"region": region,
439431
"api_timeout": api_timeout,
440432
"user_metadata": user_metadata,

src/browserbase/types/session_create_params.py

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

2524

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

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

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

213209

214210
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
7979
},
8080
}
8181
],
82-
proxy_settings={"ca_certificates": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]},
8382
region="us-west-2",
8483
api_timeout=60,
8584
user_metadata={"foo": "bar"},
@@ -327,7 +326,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
327326
},
328327
}
329328
],
330-
proxy_settings={"ca_certificates": ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"]},
331329
region="us-west-2",
332330
api_timeout=60,
333331
user_metadata={"foo": "bar"},

0 commit comments

Comments
 (0)