@@ -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,17 @@ 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).
130+
131131 proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
132132 configurations.
133133
@@ -151,10 +151,10 @@ def create(
151151 "/v1/sessions" ,
152152 body = maybe_transform (
153153 {
154- "project_id" : project_id ,
155154 "browser_settings" : browser_settings ,
156155 "extension_id" : extension_id ,
157156 "keep_alive" : keep_alive ,
157+ "project_id" : project_id ,
158158 "proxies" : proxies ,
159159 "region" : region ,
160160 "api_timeout" : api_timeout ,
@@ -205,26 +205,25 @@ def update(
205205 self ,
206206 id : str ,
207207 * ,
208- project_id : str ,
209208 status : Literal ["REQUEST_RELEASE" ],
209+ project_id : str | Omit = omit ,
210210 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
211211 # The extra values given here take precedence over values defined on the client or passed to this method.
212212 extra_headers : Headers | None = None ,
213213 extra_query : Query | None = None ,
214214 extra_body : Body | None = None ,
215215 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
216216 ) -> SessionUpdateResponse :
217- """Update a Session
217+ """
218+ Update a Session
218219
219220 Args:
220- project_id: The Project ID.
221-
222- Can be found in
223- [Settings](https://www.browserbase.com/settings).
224-
225221 status: Set to `REQUEST_RELEASE` to request that the session complete. Use before
226222 session's timeout to avoid additional charges.
227223
224+ project_id: The Project ID. Can be found in
225+ [Settings](https://www.browserbase.com/settings).
226+
228227 extra_headers: Send extra headers
229228
230229 extra_query: Add additional query parameters to the request
@@ -239,8 +238,8 @@ def update(
239238 f"/v1/sessions/{ id } " ,
240239 body = maybe_transform (
241240 {
242- "project_id" : project_id ,
243241 "status" : status ,
242+ "project_id" : project_id ,
244243 },
245244 session_update_params .SessionUpdateParams ,
246245 ),
@@ -370,10 +369,10 @@ def with_streaming_response(self) -> AsyncSessionsResourceWithStreamingResponse:
370369 async def create (
371370 self ,
372371 * ,
373- project_id : str ,
374372 browser_settings : session_create_params .BrowserSettings | Omit = omit ,
375373 extension_id : str | Omit = omit ,
376374 keep_alive : bool | Omit = omit ,
375+ project_id : str | Omit = omit ,
377376 proxies : Union [Iterable [session_create_params .ProxiesUnionMember0 ], bool ] | Omit = omit ,
378377 region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ] | Omit = omit ,
379378 api_timeout : int | Omit = omit ,
@@ -388,17 +387,17 @@ async def create(
388387 """Create a Session
389388
390389 Args:
391- project_id : The Project ID.
390+ extension_id : The uploaded Extension ID.
392391
393- Can be found in
394- [Settings](https://www.browserbase.com/settings).
395-
396- extension_id: The uploaded Extension ID. See
392+ See
397393 [Upload Extension](/reference/api/upload-an-extension).
398394
399395 keep_alive: Set to true to keep the session alive even after disconnections. Available on
400396 the Hobby Plan and above.
401397
398+ project_id: The Project ID. Can be found in
399+ [Settings](https://www.browserbase.com/settings).
400+
402401 proxies: Proxy configuration. Can be true for default proxy, or an array of proxy
403402 configurations.
404403
@@ -422,10 +421,10 @@ async def create(
422421 "/v1/sessions" ,
423422 body = await async_maybe_transform (
424423 {
425- "project_id" : project_id ,
426424 "browser_settings" : browser_settings ,
427425 "extension_id" : extension_id ,
428426 "keep_alive" : keep_alive ,
427+ "project_id" : project_id ,
429428 "proxies" : proxies ,
430429 "region" : region ,
431430 "api_timeout" : api_timeout ,
@@ -476,26 +475,25 @@ async def update(
476475 self ,
477476 id : str ,
478477 * ,
479- project_id : str ,
480478 status : Literal ["REQUEST_RELEASE" ],
479+ project_id : str | Omit = omit ,
481480 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
482481 # The extra values given here take precedence over values defined on the client or passed to this method.
483482 extra_headers : Headers | None = None ,
484483 extra_query : Query | None = None ,
485484 extra_body : Body | None = None ,
486485 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
487486 ) -> SessionUpdateResponse :
488- """Update a Session
487+ """
488+ Update a Session
489489
490490 Args:
491- project_id: The Project ID.
492-
493- Can be found in
494- [Settings](https://www.browserbase.com/settings).
495-
496491 status: Set to `REQUEST_RELEASE` to request that the session complete. Use before
497492 session's timeout to avoid additional charges.
498493
494+ project_id: The Project ID. Can be found in
495+ [Settings](https://www.browserbase.com/settings).
496+
499497 extra_headers: Send extra headers
500498
501499 extra_query: Add additional query parameters to the request
@@ -510,8 +508,8 @@ async def update(
510508 f"/v1/sessions/{ id } " ,
511509 body = await async_maybe_transform (
512510 {
513- "project_id" : project_id ,
514511 "status" : status ,
512+ "project_id" : project_id ,
515513 },
516514 session_update_params .SessionUpdateParams ,
517515 ),
0 commit comments