Skip to content

Commit 892fe71

Browse files
feat(api): manual updates
1 parent 32e4d51 commit 892fe71

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
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: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-af59f86ea3ee682d54560eaf6055df5bebacee560749f5f3cbd9c8ff8b5fa8e5.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-cd8c38feb61fd4aac23600d0e9e51f11db92b1a119d0e807e61835c05a7bf68e.yml
33
openapi_spec_hash: 72dfdba2efc46c7cbbaa98bd234b72de
4-
config_hash: 99e5318dc8a8d75839ec565d94276c71
4+
config_hash: 2ac55ea7ba4af84e5b7486df92730bcf

src/browserbase/resources/sessions/sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def create(
104104
extension_id: str | Omit = omit,
105105
keep_alive: bool | Omit = omit,
106106
project_id: str | Omit = omit,
107-
proxies: Union[bool, Iterable[session_create_params.ProxiesUnionMember1]] | Omit = omit,
107+
proxies: Union[bool, Iterable[session_create_params.ProxiesUnionArrayVariant1]] | Omit = omit,
108108
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | Omit = omit,
109109
user_metadata: Dict[str, object] | Omit = omit,
110110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -373,7 +373,7 @@ async def create(
373373
extension_id: str | Omit = omit,
374374
keep_alive: bool | Omit = omit,
375375
project_id: str | Omit = omit,
376-
proxies: Union[bool, Iterable[session_create_params.ProxiesUnionMember1]] | Omit = omit,
376+
proxies: Union[bool, Iterable[session_create_params.ProxiesUnionArrayVariant1]] | Omit = omit,
377377
region: Literal["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"] | Omit = omit,
378378
user_metadata: Dict[str, object] | Omit = omit,
379379
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/browserbase/types/session_create_params.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"BrowserSettings",
1313
"BrowserSettingsContext",
1414
"BrowserSettingsViewport",
15-
"ProxiesUnionMember1",
16-
"ProxiesUnionMember1BrowserbaseProxyConfig",
17-
"ProxiesUnionMember1BrowserbaseProxyConfigGeolocation",
18-
"ProxiesUnionMember1ExternalProxyConfig",
19-
"ProxiesUnionMember1NoneProxyConfig",
15+
"ProxiesUnionArrayVariant1",
16+
"ProxiesUnionArrayVariant1BrowserbaseProxyConfig",
17+
"ProxiesUnionArrayVariant1BrowserbaseProxyConfigGeolocation",
18+
"ProxiesUnionArrayVariant1ExternalProxyConfig",
19+
"ProxiesUnionArrayVariant1NoneProxyConfig",
2020
]
2121

2222

@@ -47,7 +47,7 @@ class SessionCreateParams(TypedDict, total=False):
4747
Can be found in [Settings](https://www.browserbase.com/settings).
4848
"""
4949

50-
proxies: Union[bool, Iterable[ProxiesUnionMember1]]
50+
proxies: Union[bool, Iterable[ProxiesUnionArrayVariant1]]
5151
"""Proxy configuration.
5252
5353
Can be true for default proxy, or an array of proxy configurations.
@@ -123,7 +123,7 @@ class BrowserSettings(TypedDict, total=False):
123123
viewport: BrowserSettingsViewport
124124

125125

126-
class ProxiesUnionMember1BrowserbaseProxyConfigGeolocation(TypedDict, total=False):
126+
class ProxiesUnionArrayVariant1BrowserbaseProxyConfigGeolocation(TypedDict, total=False):
127127
"""Configuration for geolocation"""
128128

129129
country: Required[str]
@@ -136,7 +136,7 @@ class ProxiesUnionMember1BrowserbaseProxyConfigGeolocation(TypedDict, total=Fals
136136
"""US state code (2 characters). Must also specify US as the country. Optional."""
137137

138138

139-
class ProxiesUnionMember1BrowserbaseProxyConfig(TypedDict, total=False):
139+
class ProxiesUnionArrayVariant1BrowserbaseProxyConfig(TypedDict, total=False):
140140
type: Required[Literal["browserbase"]]
141141
"""Type of proxy.
142142
@@ -149,11 +149,11 @@ class ProxiesUnionMember1BrowserbaseProxyConfig(TypedDict, total=False):
149149
If omitted, defaults to all domains. Optional.
150150
"""
151151

152-
geolocation: ProxiesUnionMember1BrowserbaseProxyConfigGeolocation
152+
geolocation: ProxiesUnionArrayVariant1BrowserbaseProxyConfigGeolocation
153153
"""Configuration for geolocation"""
154154

155155

156-
class ProxiesUnionMember1ExternalProxyConfig(TypedDict, total=False):
156+
class ProxiesUnionArrayVariant1ExternalProxyConfig(TypedDict, total=False):
157157
server: Required[str]
158158
"""Server URL for external proxy. Required."""
159159

@@ -173,16 +173,16 @@ class ProxiesUnionMember1ExternalProxyConfig(TypedDict, total=False):
173173
"""Username for external proxy authentication. Optional."""
174174

175175

176-
class ProxiesUnionMember1NoneProxyConfig(TypedDict, total=False):
176+
class ProxiesUnionArrayVariant1NoneProxyConfig(TypedDict, total=False):
177177
domain_pattern: Required[Annotated[str, PropertyInfo(alias="domainPattern")]]
178178
"""Domain pattern for which site should have proxies disabled."""
179179

180180
type: Required[Literal["none"]]
181181
"""Type of proxy. Use 'none' to disable proxy for matching domains."""
182182

183183

184-
ProxiesUnionMember1: TypeAlias = Union[
185-
ProxiesUnionMember1BrowserbaseProxyConfig,
186-
ProxiesUnionMember1ExternalProxyConfig,
187-
ProxiesUnionMember1NoneProxyConfig,
184+
ProxiesUnionArrayVariant1: TypeAlias = Union[
185+
ProxiesUnionArrayVariant1BrowserbaseProxyConfig,
186+
ProxiesUnionArrayVariant1ExternalProxyConfig,
187+
ProxiesUnionArrayVariant1NoneProxyConfig,
188188
]

0 commit comments

Comments
 (0)