Skip to content

Commit 7b9016e

Browse files
feat: Kiosk mode
1 parent 851eb18 commit 7b9016e

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-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: 57
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1cd328ccf61f0e888d6df27b091c30b38c392ab9ca8ce7fd0ead8f10aaf71ffa.yml
3-
openapi_spec_hash: af761c48d1955f11822f3b95f9c46750
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-6c765f1c4ce1c4dd4ceb371f56bf047aa79af36031ba43cbd68fa16a5fdb9bb3.yml
3+
openapi_spec_hash: e9086f69281360f4e0895c9274a59531
44
config_hash: deadfc4d2b0a947673bcf559b5db6e1b

src/resources/browsers/browsers.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ export interface BrowserCreateResponse {
241241
*/
242242
browser_live_view_url?: string;
243243

244+
/**
245+
* Whether the browser session is running in kiosk mode.
246+
*/
247+
kiosk_mode?: boolean;
248+
244249
/**
245250
* Optional persistence configuration for the browser session.
246251
*/
@@ -336,6 +341,11 @@ export interface BrowserRetrieveResponse {
336341
*/
337342
browser_live_view_url?: string;
338343

344+
/**
345+
* Whether the browser session is running in kiosk mode.
346+
*/
347+
kiosk_mode?: boolean;
348+
339349
/**
340350
* Optional persistence configuration for the browser session.
341351
*/
@@ -434,6 +444,11 @@ export namespace BrowserListResponse {
434444
*/
435445
browser_live_view_url?: string;
436446

447+
/**
448+
* Whether the browser session is running in kiosk mode.
449+
*/
450+
kiosk_mode?: boolean;
451+
437452
/**
438453
* Optional persistence configuration for the browser session.
439454
*/
@@ -510,6 +525,12 @@ export interface BrowserCreateParams {
510525
*/
511526
invocation_id?: string;
512527

528+
/**
529+
* If true, launches the browser in kiosk mode to hide address bar and tabs in live
530+
* view.
531+
*/
532+
kiosk_mode?: boolean;
533+
513534
/**
514535
* Optional persistence configuration for the browser session.
515536
*/

tests/api-resources/browsers/browsers.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe('resource browsers', () => {
2929
extensions: [{ id: 'id', name: 'name' }],
3030
headless: false,
3131
invocation_id: 'rr33xuugxj9h0bkf1rdt2bet',
32+
kiosk_mode: true,
3233
persistence: { id: 'my-awesome-browser-for-user-1234' },
3334
profile: { id: 'id', name: 'name', save_changes: true },
3435
proxy_id: 'proxy_id',

0 commit comments

Comments
 (0)