|
14 | 14 | class Session(BaseModel):
|
15 | 15 | id: str
|
16 | 16 |
|
17 |
| - created_at: datetime = FieldInfo(alias="createdAt") |
| 17 | + created_at: datetime |
18 | 18 |
|
19 |
| - expires_at: datetime = FieldInfo(alias="expiresAt") |
| 19 | + expires_at: datetime |
20 | 20 |
|
21 |
| - keep_alive: bool = FieldInfo(alias="keepAlive") |
| 21 | + keep_alive: bool |
22 | 22 | """Indicates if the Session was created to be kept alive upon disconnections"""
|
23 | 23 |
|
24 |
| - project_id: str = FieldInfo(alias="projectId") |
| 24 | + project_id: str |
25 | 25 | """The Project ID linked to the Session."""
|
26 | 26 |
|
27 |
| - proxy_bytes: int = FieldInfo(alias="proxyBytes") |
28 |
| - """Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips)""" |
| 27 | + region: str |
29 | 28 |
|
30 |
| - started_at: datetime = FieldInfo(alias="startedAt") |
| 29 | + started_at: datetime |
31 | 30 |
|
32 | 31 | status: Literal["RUNNING", "ERROR", "TIMED_OUT", "COMPLETED"]
|
33 | 32 |
|
34 |
| - updated_at: datetime = FieldInfo(alias="updatedAt") |
| 33 | + updated_at: datetime |
35 | 34 |
|
36 |
| - avg_cpu_usage: Optional[int] = FieldInfo(alias="avgCpuUsage", default=None) |
| 35 | + avg_cpu_usage: Optional[int] = None |
37 | 36 | """CPU used by the Session"""
|
38 | 37 |
|
39 |
| - context_id: Optional[str] = FieldInfo(alias="contextId", default=None) |
| 38 | + connect_url: Optional[str] = FieldInfo(alias="connectUrl", default=None) |
| 39 | + |
| 40 | + context_id: Optional[str] = None |
40 | 41 | """Optional. The Context linked to the Session."""
|
41 | 42 |
|
42 |
| - ended_at: Optional[datetime] = FieldInfo(alias="endedAt", default=None) |
| 43 | + ended_at: Optional[datetime] = None |
| 44 | + |
| 45 | + is_idle: Optional[bool] = None |
43 | 46 |
|
44 |
| - memory_usage: Optional[int] = FieldInfo(alias="memoryUsage", default=None) |
| 47 | + memory_usage: Optional[int] = None |
45 | 48 | """Memory used by the Session"""
|
| 49 | + |
| 50 | + proxy_bytes: Optional[int] = None |
| 51 | + """Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips)""" |
| 52 | + |
| 53 | + selenium_remote_url: Optional[str] = FieldInfo(alias="seleniumRemoteUrl", default=None) |
| 54 | + |
| 55 | + signing_key: Optional[str] = FieldInfo(alias="signingKey", default=None) |
| 56 | + |
| 57 | + viewport_height: Optional[int] = None |
| 58 | + |
| 59 | + viewport_width: Optional[int] = None |
0 commit comments