@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/changelog.md +10 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.runtime.d.ts +42 -1
- package/dist_ts/classes.runtime.js +430 -31
- package/dist_ts/errors.d.ts +1 -1
- package/dist_ts/errors.js +2 -1
- package/dist_ts/interfaces.d.ts +2 -1
- package/package.json +2 -2
- package/readme.hints.md +2 -0
- package/readme.md +4 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.runtime.ts +534 -32
- package/ts/errors.ts +2 -0
- package/ts/interfaces.ts +4 -0
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>;
|