11# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
3+ from typing import Optional
34from datetime import datetime
5+ from typing_extensions import Literal
46
57from 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