Skip to content

Commit 30c7100

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#7)
1 parent 5b2c773 commit 30c7100

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Diff for: .stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-0069ed71133ac7b0add07abd8562396c4b8e3c9a212e14a7586782eeed2ff373.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-825ce446567db7e2dcda332131368fcaf1986bae2eff640205b4e1f7b582aaa4.yml

Diff for: src/browserbase/types/session.py

+28
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from datetime import datetime
5+
from typing_extensions import Literal
46

57
from pydantic import Field as FieldInfo
68

@@ -14,4 +16,30 @@ class Session(BaseModel):
1416

1517
created_at: datetime = FieldInfo(alias="createdAt")
1618

19+
expires_at: datetime = FieldInfo(alias="expiresAt")
20+
21+
keep_alive: bool = FieldInfo(alias="keepAlive")
22+
"""Indicates if the Session was created to be kept alive upon disconnections"""
23+
24+
project_id: str = FieldInfo(alias="projectId")
25+
"""The Project ID linked to the Session."""
26+
27+
proxy_bytes: int = FieldInfo(alias="proxyBytes")
28+
"""Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips)"""
29+
30+
started_at: datetime = FieldInfo(alias="startedAt")
31+
32+
status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]
33+
1734
updated_at: datetime = FieldInfo(alias="updatedAt")
35+
36+
avg_cpu_usage: Optional[int] = FieldInfo(alias="avgCpuUsage", default=None)
37+
"""CPU used by the Session"""
38+
39+
context_id: Optional[str] = FieldInfo(alias="contextId", default=None)
40+
"""Optional. The Context linked to the Session."""
41+
42+
ended_at: Optional[datetime] = FieldInfo(alias="endedAt", default=None)
43+
44+
memory_usage: Optional[int] = FieldInfo(alias="memoryUsage", default=None)
45+
"""Memory used by the Session"""

0 commit comments

Comments
 (0)