Skip to content

Commit 848805a

Browse files
feat: Publish iframe and worker browser target types
Stainless-Generated-From: a2f1ad1397e88859def542150105c6048160757d
1 parent 1e45af6 commit 848805a

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

‎src/kernel/types/browsers/browser_event_context.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ class BrowserEventContext(BaseModel):
3232
target_id: Optional[str] = None
3333
"""Browser target identifier (stable across navigations within a tab)."""
3434

35-
target_type: Optional[Literal["page", "background_page", "service_worker", "shared_worker", "other"]] = None
35+
target_type: Optional[
36+
Literal["page", "iframe", "worker", "background_page", "service_worker", "shared_worker", "other"]
37+
] = None
3638
"""CDP target type of the page that produced the event."""
3739

3840
url: Optional[str] = None

‎src/kernel/types/browsers/browser_page_crashed_event.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Data(BaseModel):
1313
target_id: str
1414
"""CDP target identifier of the crashed page."""
1515

16-
target_type: Literal["page", "background_page", "service_worker", "shared_worker", "other"]
16+
target_type: Literal["page", "iframe", "worker", "background_page", "service_worker", "shared_worker", "other"]
1717
"""CDP target type of the page that produced the event."""
1818

1919
url: str

‎src/kernel/types/browsers/browser_page_navigation_event.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class Data(BaseModel):
2828
target_id: Optional[str] = None
2929
"""Browser target identifier."""
3030

31-
target_type: Optional[Literal["page", "background_page", "service_worker", "shared_worker", "other"]] = None
31+
target_type: Optional[
32+
Literal["page", "iframe", "worker", "background_page", "service_worker", "shared_worker", "other"]
33+
] = None
3234
"""CDP target type of the page that produced the event."""
3335

3436
url: Optional[str] = None

‎src/kernel/types/browsers/browser_page_tab_opened_event.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ class Data(BaseModel):
1616
target_id: Optional[str] = None
1717
"""CDP target identifier for the newly opened tab."""
1818

19-
target_type: Optional[Literal["page", "background_page", "service_worker", "shared_worker", "other"]] = None
19+
target_type: Optional[
20+
Literal["page", "iframe", "worker", "background_page", "service_worker", "shared_worker", "other"]
21+
] = None
2022
"""CDP target type of the page that produced the event."""
2123

2224
title: Optional[str] = None

0 commit comments

Comments
 (0)