Skip to content

Commit 0ebbcca

Browse files
feat: Allow hot loading profiles into sessions
1 parent a75a5b9 commit 0ebbcca

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
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: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-7427d4bcaba5cad07910da7a222bdd2650b5280e6b889132ed38d230adafb8a5.yml
3-
openapi_spec_hash: e8e3dc1ae54666d544d1fc848b25e7cf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d430a8e3407ceb608d912cabadbcb016b4fcf057ca56b3bbd179ea3b3121b484.yml
3+
openapi_spec_hash: 8adbf013baf77abacaf04ed067749397
44
config_hash: b470456b217bb9502f5212311d395a6f

src/resources/browsers/browsers.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,22 @@ export interface BrowserRetrieveParams {
630630
}
631631

632632
export interface BrowserUpdateParams {
633+
/**
634+
* Profile to load into the browser session. Only allowed if the session does not
635+
* already have a profile loaded.
636+
*/
637+
profile?: Shared.BrowserProfile;
638+
633639
/**
634640
* ID of the proxy to use. Omit to leave unchanged, set to empty string to remove
635641
* proxy.
636642
*/
637643
proxy_id?: string | null;
644+
645+
/**
646+
* Viewport configuration to apply to the browser session.
647+
*/
648+
viewport?: Shared.BrowserViewport;
638649
}
639650

640651
export interface BrowserListParams extends OffsetPaginationParams {

0 commit comments

Comments
 (0)