Skip to content

Commit b211a4f

Browse files
feat: Expose profile save behavior in browser responses
Stainless-Generated-From: 74632566cb147b88cffc6d024d19d5439aae563c
1 parent 6135e12 commit b211a4f

6 files changed

Lines changed: 36 additions & 0 deletions

src/kernel/types/browser_create_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class BrowserCreateResponse(BaseModel):
7373
profile: Optional[Profile] = None
7474
"""Browser profile metadata."""
7575

76+
profile_save_changes: Optional[bool] = None
77+
"""
78+
Whether changes made during this browser session are saved back to its profile
79+
when the session ends. Omitted when no profile is attached.
80+
"""
81+
7682
proxy_id: Optional[str] = None
7783
"""ID of the proxy associated with this browser session, if any."""
7884

src/kernel/types/browser_list_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class BrowserListResponse(BaseModel):
7373
profile: Optional[Profile] = None
7474
"""Browser profile metadata."""
7575

76+
profile_save_changes: Optional[bool] = None
77+
"""
78+
Whether changes made during this browser session are saved back to its profile
79+
when the session ends. Omitted when no profile is attached.
80+
"""
81+
7682
proxy_id: Optional[str] = None
7783
"""ID of the proxy associated with this browser session, if any."""
7884

src/kernel/types/browser_pool_acquire_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class BrowserPoolAcquireResponse(BaseModel):
7373
profile: Optional[Profile] = None
7474
"""Browser profile metadata."""
7575

76+
profile_save_changes: Optional[bool] = None
77+
"""
78+
Whether changes made during this browser session are saved back to its profile
79+
when the session ends. Omitted when no profile is attached.
80+
"""
81+
7682
proxy_id: Optional[str] = None
7783
"""ID of the proxy associated with this browser session, if any."""
7884

src/kernel/types/browser_retrieve_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class BrowserRetrieveResponse(BaseModel):
7373
profile: Optional[Profile] = None
7474
"""Browser profile metadata."""
7575

76+
profile_save_changes: Optional[bool] = None
77+
"""
78+
Whether changes made during this browser session are saved back to its profile
79+
when the session ends. Omitted when no profile is attached.
80+
"""
81+
7682
proxy_id: Optional[str] = None
7783
"""ID of the proxy associated with this browser session, if any."""
7884

src/kernel/types/browser_update_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class BrowserUpdateResponse(BaseModel):
7373
profile: Optional[Profile] = None
7474
"""Browser profile metadata."""
7575

76+
profile_save_changes: Optional[bool] = None
77+
"""
78+
Whether changes made during this browser session are saved back to its profile
79+
when the session ends. Omitted when no profile is attached.
80+
"""
81+
7682
proxy_id: Optional[str] = None
7783
"""ID of the proxy associated with this browser session, if any."""
7884

src/kernel/types/invocation_list_browsers_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class Browser(BaseModel):
7373
profile: Optional[Profile] = None
7474
"""Browser profile metadata."""
7575

76+
profile_save_changes: Optional[bool] = None
77+
"""
78+
Whether changes made during this browser session are saved back to its profile
79+
when the session ends. Omitted when no profile is attached.
80+
"""
81+
7682
proxy_id: Optional[str] = None
7783
"""ID of the proxy associated with this browser session, if any."""
7884

0 commit comments

Comments
 (0)