@modelprofile.com/browser-runtime 5.2.1 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ts/interfaces.ts CHANGED
@@ -131,9 +131,11 @@ export type TBrowserRuntimeOperationIdentity = TReadonlyBrowserCapabilityAuthori
131
131
  };
132
132
 
133
133
  export type TBrowserRuntimeOperationClassification =
134
+ | 'dialog'
134
135
  | 'raw-input'
135
136
  | 'frame-stream'
136
137
  | 'video-peer'
138
+ | 'devtools'
137
139
  | 'viewport'
138
140
  | 'navigation'
139
141
  | 'tab'
@@ -160,6 +162,10 @@ export type TBrowserRuntimeAuditEvent = TBrowserRuntimeOperationIdentity & {
160
162
  };
161
163
 
162
164
  export interface ILiveBrowserSessionLike {
165
+ respondToDialog(input: plugins.smartpuppeteer.ILiveBrowserDialogResponse,
166
+ options?: plugins.smartpuppeteer.ILiveBrowserOperationOptions): Promise<void>;
167
+ openDevTools?(options: plugins.smartpuppeteer.ILiveBrowserDevToolsOptions,
168
+ operationOptions?: plugins.smartpuppeteer.ILiveBrowserOperationOptions): Promise<plugins.smartpuppeteer.ILiveBrowserDevToolsConnection>;
163
169
  start(options?: plugins.smartpuppeteer.ILiveBrowserOperationOptions): Promise<void>;
164
170
  stop(): Promise<void>;
165
171
  terminate(
@@ -300,11 +306,14 @@ export interface IBrowserRuntimeOptions {
300
306
  screencast?: IBrowserRuntimeScreencastOptions;
301
307
  /** Trusted host configuration; defaults to direct ICE and automatic GPU support. */
302
308
  video?: plugins.smartpuppeteer.ILiveVideoOptions;
309
+ /** Enables selected-tab DevTools for human leases only. Disabled by default. */
310
+ devTools?: boolean;
303
311
  egress?: Omit<IBrowserEgressProxyOptions, 'projectId' | 'browserResourceId'>;
304
312
  artifacts?: Omit<IBrowserArtifactStoreOptions, 'rootDirectory'>;
305
313
  }
306
314
 
307
315
  export interface IBrowserRuntimeTabState {
316
+ dialog?: plugins.smartpuppeteer.ILiveBrowserDialog;
308
317
  id: string;
309
318
  url: string;
310
319
  title: string;