@@ -99,10 +99,10 @@ def with_streaming_response(self) -> SessionsResourceWithStreamingResponse:
9999 def create (
100100 self ,
101101 * ,
102- project_id : str ,
103102 browser_settings : session_create_params .BrowserSettings | Omit = omit ,
104103 extension_id : str | Omit = omit ,
105104 keep_alive : bool | Omit = omit ,
105+ project_id : str | Omit = omit ,
106106 proxies : Union [Iterable [session_create_params .ProxiesUnionMember0 ], bool ] | Omit = omit ,
107107 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | Omit = omit ,
108108 api_timeout : int | Omit = omit ,
@@ -117,17 +117,18 @@ def create(
117117 """Create a Session
118118
119119 Args:
120- project_id : The Project ID.
120+ extension_id : The uploaded Extension ID.
121121
122- Can be found in
123- [Settings](https://www.browserbase.com/settings).
124-
125- extension_id: The uploaded Extension ID. See
122+ See
126123 [Upload Extension](/reference/api/upload-an-extension).
127124
128125 keep_alive: Set to true to keep the session alive even after disconnections. Available on
129126 the Hobby Plan and above.
130127
128+ project_id: The Project ID. Can be found in
129+ [Settings](https://www.browserbase.com/settings). Optional - if not provided,
130+ the project will be inferred from the API key.
131+
131132 proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
132133 configurations.
133134
@@ -151,10 +152,10 @@ def create(
151152 "/v1/sessions" ,
152153 body = maybe_transform (
153154 {
154- "project_id" : project_id ,
155155 "browser_settings" : browser_settings ,
156156 "extension_id" : extension_id ,
157157 "keep_alive" : keep_alive ,
158+ "project_id" : project_id ,
158159 "proxies" : proxies ,
159160 "region" : region ,
160161 "api_timeout" : api_timeout ,
@@ -205,26 +206,26 @@ def update(
205206 self ,
206207 id : str ,
207208 * ,
208- project_id : str ,
209209 status : Literal ["REQUEST_RELEASE" ],
210+ project_id : str | Omit = omit ,
210211 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
211212 # The extra values given here take precedence over values defined on the client or passed to this method.
212213 extra_headers : Headers | None = None ,
213214 extra_query : Query | None = None ,
214215 extra_body : Body | None = None ,
215216 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
216217 ) -> SessionUpdateResponse :
217- """Update a Session
218+ """
219+ Update a Session
218220
219221 Args:
220- project_id: The Project ID.
221-
222- Can be found in
223- [Settings](https://www.browserbase.com/settings).
224-
225222 status: Set to `REQUEST_RELEASE` to request that the session complete. Use before
226223 session's timeout to avoid additional charges.
227224
225+ project_id: The Project ID. Can be found in
226+ [Settings](https://www.browserbase.com/settings). Optional - if not provided,
227+ the project will be inferred from the API key.
228+
228229 extra_headers: Send extra headers
229230
230231 extra_query: Add additional query parameters to the request
@@ -239,8 +240,8 @@ def update(
239240 f"/v1/sessions/{ id } " ,
240241 body = maybe_transform (
241242 {
242- "project_id" : project_id ,
243243 "status" : status ,
244+ "project_id" : project_id ,
244245 },
245246 session_update_params .SessionUpdateParams ,
246247 ),
@@ -370,10 +371,10 @@ def with_streaming_response(self) -> AsyncSessionsResourceWithStreamingResponse:
370371 async def create (
371372 self ,
372373 * ,
373- project_id : str ,
374374 browser_settings : session_create_params .BrowserSettings | Omit = omit ,
375375 extension_id : str | Omit = omit ,
376376 keep_alive : bool | Omit = omit ,
377+ project_id : str | Omit = omit ,
377378 proxies : Union [Iterable [session_create_params .ProxiesUnionMember0 ], bool ] | Omit = omit ,
378379 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | Omit = omit ,
379380 api_timeout : int | Omit = omit ,
@@ -388,17 +389,18 @@ async def create(
388389 """Create a Session
389390
390391 Args:
391- project_id : The Project ID.
392+ extension_id : The uploaded Extension ID.
392393
393- Can be found in
394- [Settings](https://www.browserbase.com/settings).
395-
396- extension_id: The uploaded Extension ID. See
394+ See
397395 [Upload Extension](/reference/api/upload-an-extension).
398396
399397 keep_alive: Set to true to keep the session alive even after disconnections. Available on
400398 the Hobby Plan and above.
401399
400+ project_id: The Project ID. Can be found in
401+ [Settings](https://www.browserbase.com/settings). Optional - if not provided,
402+ the project will be inferred from the API key.
403+
402404 proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
403405 configurations.
404406
@@ -422,10 +424,10 @@ async def create(
422424 "/v1/sessions" ,
423425 body = await async_maybe_transform (
424426 {
425- "project_id" : project_id ,
426427 "browser_settings" : browser_settings ,
427428 "extension_id" : extension_id ,
428429 "keep_alive" : keep_alive ,
430+ "project_id" : project_id ,
429431 "proxies" : proxies ,
430432 "region" : region ,
431433 "api_timeout" : api_timeout ,
@@ -476,26 +478,26 @@ async def update(
476478 self ,
477479 id : str ,
478480 * ,
479- project_id : str ,
480481 status : Literal ["REQUEST_RELEASE" ],
482+ project_id : str | Omit = omit ,
481483 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
482484 # The extra values given here take precedence over values defined on the client or passed to this method.
483485 extra_headers : Headers | None = None ,
484486 extra_query : Query | None = None ,
485487 extra_body : Body | None = None ,
486488 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
487489 ) -> SessionUpdateResponse :
488- """Update a Session
490+ """
491+ Update a Session
489492
490493 Args:
491- project_id: The Project ID.
492-
493- Can be found in
494- [Settings](https://www.browserbase.com/settings).
495-
496494 status: Set to `REQUEST_RELEASE` to request that the session complete. Use before
497495 session's timeout to avoid additional charges.
498496
497+ project_id: The Project ID. Can be found in
498+ [Settings](https://www.browserbase.com/settings). Optional - if not provided,
499+ the project will be inferred from the API key.
500+
499501 extra_headers: Send extra headers
500502
501503 extra_query: Add additional query parameters to the request
@@ -510,8 +512,8 @@ async def update(
510512 f"/v1/sessions/{ id } " ,
511513 body = await async_maybe_transform (
512514 {
513- "project_id" : project_id ,
514515 "status" : status ,
516+ "project_id" : project_id ,
515517 },
516518 session_update_params .SessionUpdateParams ,
517519 ),
0 commit comments