Skip to content

Commit 9fa5139

Browse files
feat(api): add browser timeouts
1 parent 1332b9a commit 9fa5139

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-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: 31
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-6f4aab5f0db80d6ce30ef40274eee347cce0a9465e7f1e5077f8f4a085251ddf.yml
3-
openapi_spec_hash: 8e83254243d1620b80a0dc8aa212ee0d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-b55c3e0424fa7733487139488b9fff00ad8949ff02ee3160ee36b9334e84b134.yml
3+
openapi_spec_hash: 17f36677e3dc0a3aeb419654c8d5cae3
44
config_hash: f67e4b33b2fb30c1405ee2fff8096320

src/kernel/types/browser_create_response.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from datetime import datetime
45

56
from .._models import BaseModel
67
from .browser_persistence import BrowserPersistence
@@ -12,14 +13,17 @@ class BrowserCreateResponse(BaseModel):
1213
cdp_ws_url: str
1314
"""Websocket URL for Chrome DevTools Protocol connections to the browser session"""
1415

16+
created_at: datetime
17+
"""When the browser session was created."""
18+
1519
headless: bool
16-
"""Indicates whether the browser session is headless."""
20+
"""Whether the browser session is running in headless mode."""
1721

1822
session_id: str
1923
"""Unique identifier for the browser session"""
2024

2125
stealth: bool
22-
"""Indicates whether the browser session is stealth."""
26+
"""Whether the browser session is running in stealth mode."""
2327

2428
timeout_seconds: int
2529
"""The number of seconds of inactivity before the browser session is terminated."""

src/kernel/types/browser_list_response.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from datetime import datetime
45
from typing_extensions import TypeAlias
56

67
from .._models import BaseModel
@@ -13,14 +14,17 @@ class BrowserListResponseItem(BaseModel):
1314
cdp_ws_url: str
1415
"""Websocket URL for Chrome DevTools Protocol connections to the browser session"""
1516

17+
created_at: datetime
18+
"""When the browser session was created."""
19+
1620
headless: bool
17-
"""Indicates whether the browser session is headless."""
21+
"""Whether the browser session is running in headless mode."""
1822

1923
session_id: str
2024
"""Unique identifier for the browser session"""
2125

2226
stealth: bool
23-
"""Indicates whether the browser session is stealth."""
27+
"""Whether the browser session is running in stealth mode."""
2428

2529
timeout_seconds: int
2630
"""The number of seconds of inactivity before the browser session is terminated."""

src/kernel/types/browser_retrieve_response.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4+
from datetime import datetime
45

56
from .._models import BaseModel
67
from .browser_persistence import BrowserPersistence
@@ -12,14 +13,17 @@ class BrowserRetrieveResponse(BaseModel):
1213
cdp_ws_url: str
1314
"""Websocket URL for Chrome DevTools Protocol connections to the browser session"""
1415

16+
created_at: datetime
17+
"""When the browser session was created."""
18+
1519
headless: bool
16-
"""Indicates whether the browser session is headless."""
20+
"""Whether the browser session is running in headless mode."""
1721

1822
session_id: str
1923
"""Unique identifier for the browser session"""
2024

2125
stealth: bool
22-
"""Indicates whether the browser session is stealth."""
26+
"""Whether the browser session is running in stealth mode."""
2327

2428
timeout_seconds: int
2529
"""The number of seconds of inactivity before the browser session is terminated."""

0 commit comments

Comments
 (0)