@modelprofile.com/browser-runtime 3.0.1 → 3.1.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/errors.ts CHANGED
@@ -9,6 +9,7 @@ export type TBrowserRuntimeErrorCode =
9
9
  | 'CONFINEMENT_FAILED'
10
10
  | 'EGRESS_DENIED'
11
11
  | 'FENCED'
12
+ | 'FRAME_STREAM_FAILED'
12
13
  | 'FRAME_TOO_LARGE'
13
14
  | 'INVALID_INPUT'
14
15
  | 'LOCKED'
@@ -30,6 +31,7 @@ const publicMessages: Record<TBrowserRuntimeErrorCode, string> = {
30
31
  CONFINEMENT_FAILED: 'Browser confinement could not be confirmed.',
31
32
  EGRESS_DENIED: 'The egress target was denied.',
32
33
  FENCED: 'The browser resource is permanently fenced.',
34
+ FRAME_STREAM_FAILED: 'The browser frame stream failed.',
33
35
  FRAME_TOO_LARGE: 'The browser frame exceeded its limit.',
34
36
  INVALID_INPUT: 'The request is invalid.',
35
37
  LOCKED: 'The browser runtime is already locked.',
package/ts/interfaces.ts CHANGED
@@ -127,6 +127,7 @@ export type TBrowserRuntimeOperationIdentity = TReadonlyBrowserCapabilityAuthori
127
127
 
128
128
  export type TBrowserRuntimeOperationClassification =
129
129
  | 'raw-input'
130
+ | 'frame-stream'
130
131
  | 'viewport'
131
132
  | 'navigation'
132
133
  | 'tab'
@@ -155,6 +156,9 @@ export interface ILiveBrowserSessionLike {
155
156
  getState(): plugins.smartpuppeteer.ILiveBrowserState;
156
157
  getProcessState(): plugins.smartpuppeteer.ILiveBrowserProcessState;
157
158
  onEvent(listener: plugins.smartpuppeteer.TLiveBrowserEventListener): () => void;
159
+ refreshScreencast(
160
+ options?: plugins.smartpuppeteer.ILiveBrowserOperationOptions,
161
+ ): Promise<plugins.smartpuppeteer.ILiveBrowserFrameIdentity>;
158
162
  acknowledgeFrame(
159
163
  request: plugins.smartpuppeteer.ILiveBrowserFrameAcknowledgementRequest,
160
164
  ): Promise<plugins.smartpuppeteer.ILiveBrowserFrameAcknowledgement>;