Skip to content

Commit 4f1248d

Browse files
feat: [CORE-1928][apps/api] Add PENDING as a valid session state
1 parent 50ec5ae commit 4f1248d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-921d3c61c7aa06269f74bee63cee993597944f913429caa2aa2e00dd51fab60f.yml
3-
openapi_spec_hash: d35b9613c41bf172fa2b28aceef10b39
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-592ec7680e78e2cb6f33a051cb82c208b93c174b7458186efb54fca8254312d1.yml
3+
openapi_spec_hash: 77b58db061531c44f27d9bd5fbff9e93
44
config_hash: cf04ecfb8dad5fbd8b85be25d6e9ec55

src/browserbase/resources/sessions/sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def list(
255255
self,
256256
*,
257257
q: str | Omit = omit,
258-
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | Omit = omit,
258+
status: Literal["PENDING", "RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | Omit = omit,
259259
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
260260
# The extra values given here take precedence over values defined on the client or passed to this method.
261261
extra_headers: Headers | None = None,
@@ -527,7 +527,7 @@ async def list(
527527
self,
528528
*,
529529
q: str | Omit = omit,
530-
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | Omit = omit,
530+
status: Literal["PENDING", "RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"] | Omit = omit,
531531
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
532532
# The extra values given here take precedence over values defined on the client or passed to this method.
533533
extra_headers: Headers | None = None,

src/browserbase/types/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Session(BaseModel):
3232

3333
started_at: datetime = FieldInfo(alias="startedAt")
3434

35-
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]
35+
status: Literal["PENDING", "RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]
3636

3737
updated_at: datetime = FieldInfo(alias="updatedAt")
3838

src/browserbase/types/session_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ class SessionListParams(TypedDict, total=False):
1616
for the schema of this query.
1717
"""
1818

19-
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]
19+
status: Literal["PENDING", "RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]

tests/api_resources/test_sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_method_list(self, client: Browserbase) -> None:
189189
def test_method_list_with_all_params(self, client: Browserbase) -> None:
190190
session = client.sessions.list(
191191
q="q",
192-
status="RUNNING",
192+
status="PENDING",
193193
)
194194
assert_matches_type(SessionListResponse, session, path=["response"])
195195

@@ -423,7 +423,7 @@ async def test_method_list(self, async_client: AsyncBrowserbase) -> None:
423423
async def test_method_list_with_all_params(self, async_client: AsyncBrowserbase) -> None:
424424
session = await async_client.sessions.list(
425425
q="q",
426-
status="RUNNING",
426+
status="PENDING",
427427
)
428428
assert_matches_type(SessionListResponse, session, path=["response"])
429429

0 commit comments

Comments
 (0)