-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbrowser.ts
More file actions
48 lines (41 loc) · 1.15 KB
/
Copy pathbrowser.ts
File metadata and controls
48 lines (41 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { RequestOptions } from '../internal/request-options';
export class Browser extends APIResource {
/**
* Create Browser Session
*/
createSession(
body: BrowserCreateSessionParams,
options?: RequestOptions,
): APIPromise<BrowserCreateSessionResponse> {
return this._client.post('/browser', { body, ...options });
}
}
export interface BrowserCreateSessionResponse {
/**
* Websocket URL for Chrome DevTools Protocol connections to the browser session
*/
cdp_ws_url: string;
/**
* Remote URL for live viewing the browser session
*/
remote_url: string;
/**
* Unique identifier for the browser session
*/
sessionId: string;
}
export interface BrowserCreateSessionParams {
/**
* Kernel App invocation ID
*/
invocationId: string;
}
export declare namespace Browser {
export {
type BrowserCreateSessionResponse as BrowserCreateSessionResponse,
type BrowserCreateSessionParams as BrowserCreateSessionParams,
};
}