@replayio/protocol
Advanced tools
Comparing version 0.76.0 to 0.77.0
@@ -18,3 +18,3 @@ import { CommandMethods, CommandParams, CommandResult, EventMethods, EventParams } from "../protocol"; | ||
} | ||
export declare type EventListeners = { | ||
export type EventListeners = { | ||
[M in EventMethods]: (params: EventParams<M>) => void; | ||
@@ -21,0 +21,0 @@ }; |
@@ -18,3 +18,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -21,0 +21,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -63,7 +63,7 @@ import { SourceId, PointDescription } from "./Debugger"; | ||
*/ | ||
export declare type MessageSource = "PageError" | "ConsoleAPI" | "UnknownMessageError"; | ||
export type MessageSource = "PageError" | "ConsoleAPI" | "UnknownMessageError"; | ||
/** | ||
* Severity level of a message. | ||
*/ | ||
export declare type MessageLevel = "info" | "trace" | "warning" | "error" | "assert" | "timeEnd"; | ||
export type MessageLevel = "info" | "trace" | "warning" | "error" | "assert" | "timeEnd"; | ||
export interface findMessagesParameters { | ||
@@ -70,0 +70,0 @@ } |
@@ -5,3 +5,3 @@ import { TimeStampedPoint, PointRange, ExecutionPoint } from "./Recording"; | ||
*/ | ||
export declare type SourceId = string; | ||
export type SourceId = string; | ||
/** | ||
@@ -29,3 +29,3 @@ * Kind of a source. | ||
*/ | ||
export declare type SourceKind = "inlineScript" | "scriptSource" | "other" | "html" | "sourceMapped" | "prettyPrinted"; | ||
export type SourceKind = "inlineScript" | "scriptSource" | "other" | "html" | "sourceMapped" | "prettyPrinted"; | ||
/** | ||
@@ -70,7 +70,7 @@ * Source file information. | ||
*/ | ||
export declare type VariableMapping = string[]; | ||
export type VariableMapping = string[]; | ||
/** | ||
* Possible content types for sources. | ||
*/ | ||
export declare type ContentType = "text/javascript" | "text/html"; | ||
export type ContentType = "text/javascript" | "text/html"; | ||
/** | ||
@@ -93,3 +93,3 @@ * A combination of a location and the number of times that location was hit | ||
*/ | ||
export declare type EventHandlerType = string; | ||
export type EventHandlerType = string; | ||
export interface EventHandlerCount { | ||
@@ -157,7 +157,7 @@ /** | ||
*/ | ||
export declare type MappedLocation = Location[]; | ||
export type MappedLocation = Location[]; | ||
/** | ||
* ID for a breakpoint. | ||
*/ | ||
export declare type BreakpointId = string; | ||
export type BreakpointId = string; | ||
/** | ||
@@ -173,3 +173,3 @@ * Reasons why execution can pause when running forward or backward through | ||
*/ | ||
export declare type PauseReason = "endpoint" | "breakpoint" | "debuggerStatement" | "step"; | ||
export type PauseReason = "endpoint" | "breakpoint" | "debuggerStatement" | "step"; | ||
/** | ||
@@ -207,3 +207,3 @@ * Description of an execution point. | ||
*/ | ||
export declare type PersistentObjectId = string; | ||
export type PersistentObjectId = string; | ||
export interface SourceLocationRange { | ||
@@ -210,0 +210,0 @@ begin: SourceLocation; |
@@ -89,3 +89,3 @@ import { ObjectId, PauseData } from "./Pause"; | ||
*/ | ||
export declare type PseudoType = "before" | "after" | "marker"; | ||
export type PseudoType = "before" | "after" | "marker"; | ||
/** | ||
@@ -123,3 +123,3 @@ * Description of the box model for a node. | ||
*/ | ||
export declare type Quads = number[]; | ||
export type Quads = number[]; | ||
/** | ||
@@ -130,3 +130,3 @@ * Compact representation of a DOMRect. A rect has four elements, listing the | ||
*/ | ||
export declare type Rect = number[]; | ||
export type Rect = number[]; | ||
/** | ||
@@ -133,0 +133,0 @@ * Clipping bounds that are applied to an element. These come from an ancestor |
@@ -5,7 +5,7 @@ import { TimeStampedPoint, ExecutionPoint } from "./Recording"; | ||
*/ | ||
export declare type MimeType = "image/jpeg" | "image/png"; | ||
export type MimeType = "image/jpeg" | "image/png"; | ||
/** | ||
* Compact hash code for a screen shot. | ||
*/ | ||
export declare type ScreenShotHash = string; | ||
export type ScreenShotHash = string; | ||
/** | ||
@@ -12,0 +12,0 @@ * Compact description of the graphics rendered at some point. |
@@ -16,3 +16,3 @@ export * from "./Connection"; | ||
import { mayDisconnect, willDisconnect } from "./Connection"; | ||
import { uploadedData, awaitingSourcemaps, sessionError, processRecordingProgress, createSessionParameters, createSessionResult, releaseSessionParameters, releaseSessionResult, processRecordingParameters, processRecordingResult, addSourceMapParameters, addSourceMapResult, addOriginalSourceParameters, addOriginalSourceResult } from "./Recording"; | ||
import { uploadedData, awaitingSourcemaps, sessionError, processRecordingProgress, createSessionParameters, createSessionResult, releaseSessionParameters, releaseSessionResult, processRecordingParameters, processRecordingResult, addSourceMapParameters, addSourceMapResult, addOriginalSourceParameters, addOriginalSourceResult, globalExperimentalCommandParameters, globalExperimentalCommandResult } from "./Recording"; | ||
import { tokenParameters, tokenResult, existsParameters, existsResult, createParameters, createResult } from "./Resource"; | ||
@@ -281,5 +281,5 @@ import { setAccessTokenParameters, setAccessTokenResult } from "./Authentication"; | ||
} | ||
export declare type EventMethods = keyof Events; | ||
export declare type EventParams<P extends EventMethods> = Events[P]["parameters"]; | ||
export declare type EventHasSessionId<P extends EventMethods> = Events[P]["sessionId"]; | ||
export type EventMethods = keyof Events; | ||
export type EventParams<P extends EventMethods> = Events[P]["parameters"]; | ||
export type EventHasSessionId<P extends EventMethods> = Events[P]["sessionId"]; | ||
interface Commands { | ||
@@ -352,2 +352,13 @@ /** | ||
/** | ||
* Perform an operation which is not yet officially supported | ||
* in the protocol. Operates globally with no associated session or recording. | ||
*/ | ||
"Recording.globalExperimentalCommand": { | ||
parameters: globalExperimentalCommandParameters; | ||
result: globalExperimentalCommandResult; | ||
sessionId: false; | ||
pauseId: false; | ||
binary: false; | ||
}; | ||
/** | ||
* Get the token to use when computing the hashes of a given file. | ||
@@ -1645,7 +1656,7 @@ */ | ||
} | ||
export declare type CommandMethods = keyof Commands; | ||
export declare type CommandParams<P extends CommandMethods> = Commands[P]["parameters"]; | ||
export declare type CommandResult<P extends CommandMethods> = Commands[P]["result"]; | ||
export declare type CommandHasSessionId<P extends CommandMethods> = Commands[P]["sessionId"]; | ||
export declare type CommandHasPauseId<P extends CommandMethods> = Commands[P]["pauseId"]; | ||
export declare type CommandHasBinary<P extends CommandMethods> = Commands[P]["binary"]; | ||
export type CommandMethods = keyof Commands; | ||
export type CommandParams<P extends CommandMethods> = Commands[P]["parameters"]; | ||
export type CommandResult<P extends CommandMethods> = Commands[P]["result"]; | ||
export type CommandHasSessionId<P extends CommandMethods> = Commands[P]["sessionId"]; | ||
export type CommandHasPauseId<P extends CommandMethods> = Commands[P]["pauseId"]; | ||
export type CommandHasBinary<P extends CommandMethods> = Commands[P]["binary"]; |
@@ -5,3 +5,3 @@ import { TimeStampedPoint } from "./Recording"; | ||
*/ | ||
export declare type RequestId = string; | ||
export type RequestId = string; | ||
/** | ||
@@ -123,3 +123,3 @@ * The range offsets within a request/response body. | ||
*/ | ||
export declare type RequestEvent = RequestOpenEvent | RequestRawHeaderEvent | RequestDestinationEvent | RequestResponseEvent | RequestResponseRawHeaderEvent | RequestDoneEvent | RequestBodyEvent | RequestFailedEvent | RequestResponseBodyEvent; | ||
export type RequestEvent = RequestOpenEvent | RequestRawHeaderEvent | RequestDestinationEvent | RequestResponseEvent | RequestResponseRawHeaderEvent | RequestDoneEvent | RequestBodyEvent | RequestFailedEvent | RequestResponseBodyEvent; | ||
/** | ||
@@ -126,0 +126,0 @@ * An event representing the beginning of a request. |
@@ -12,7 +12,7 @@ import { MappedLocation, PersistentObjectId, PointDescription } from "./Debugger"; | ||
*/ | ||
export declare type PauseId = string; | ||
export type PauseId = string; | ||
/** | ||
* Identifier for a call frame in a pause. | ||
*/ | ||
export declare type FrameId = string; | ||
export type FrameId = string; | ||
/** | ||
@@ -22,11 +22,11 @@ * Description of the entire call stack: the IDs of all frames, in order | ||
*/ | ||
export declare type CallStack = FrameId[]; | ||
export type CallStack = FrameId[]; | ||
/** | ||
* Identifier for a scope in a pause. | ||
*/ | ||
export declare type ScopeId = string; | ||
export type ScopeId = string; | ||
/** | ||
* Identifier for a JS object in a pause. | ||
*/ | ||
export declare type ObjectId = string; | ||
export type ObjectId = string; | ||
/** | ||
@@ -128,3 +128,3 @@ * Description of a value. At most one property will be specified. | ||
*/ | ||
export declare type FrameType = "call" | "global" | "module" | "eval"; | ||
export type FrameType = "call" | "global" | "module" | "eval"; | ||
/** | ||
@@ -162,3 +162,3 @@ * Description of a scope. | ||
*/ | ||
export declare type ScopeType = "global" | "with" | "function" | "block"; | ||
export type ScopeType = "global" | "with" | "function" | "block"; | ||
/** | ||
@@ -290,3 +290,3 @@ * Description of an object. | ||
*/ | ||
export declare type PropertyConfigurationFlags = number; | ||
export type PropertyConfigurationFlags = number; | ||
/** | ||
@@ -308,3 +308,3 @@ * An entry in a container object (maps, sets, weak maps, and weak sets). | ||
*/ | ||
export declare type PromiseState = "pending" | "fulfilled" | "rejected"; | ||
export type PromiseState = "pending" | "fulfilled" | "rejected"; | ||
/** | ||
@@ -384,3 +384,3 @@ * The internal state data of a promise. | ||
*/ | ||
export declare type ObjectPreviewLevel = "none" | "noProperties" | "canOverflow" | "full"; | ||
export type ObjectPreviewLevel = "none" | "noProperties" | "canOverflow" | "full"; | ||
export interface evaluateInFrameParameters { | ||
@@ -387,0 +387,0 @@ /** |
@@ -6,7 +6,7 @@ import { SessionId, FocusWindowRequest, PointRangeFocusRequest } from "./Session"; | ||
*/ | ||
export declare type RecordingId = string; | ||
export type RecordingId = string; | ||
/** | ||
* Unique identifier for the software used to produce a recording. | ||
*/ | ||
export declare type BuildId = string; | ||
export type BuildId = string; | ||
/** | ||
@@ -17,3 +17,3 @@ * A point in time within a recording, specified as the elapsed time in | ||
*/ | ||
export declare type TimeStamp = number; | ||
export type TimeStamp = number; | ||
/** | ||
@@ -25,3 +25,3 @@ * Identifier for a point within a recording at which the program state can be | ||
*/ | ||
export declare type ExecutionPoint = string; | ||
export type ExecutionPoint = string; | ||
/** | ||
@@ -87,3 +87,3 @@ * A range limit between two optional execution points in a recording. | ||
*/ | ||
export declare type MouseEventKind = "mousemove" | "mousedown"; | ||
export type MouseEventKind = "mousemove" | "mousedown"; | ||
/** | ||
@@ -114,3 +114,3 @@ * A keyboard event that occurs somewhere in a recording. | ||
*/ | ||
export declare type KeyboardEventKind = "keydown" | "keyup" | "keypress"; | ||
export type KeyboardEventKind = "keydown" | "keyup" | "keypress"; | ||
/** | ||
@@ -145,3 +145,3 @@ * A navigate operation that occurs somewhere in a recording. | ||
*/ | ||
export declare type SourceMapId = string; | ||
export type SourceMapId = string; | ||
/** | ||
@@ -153,3 +153,3 @@ * The hash of a target for the sourcemap. | ||
*/ | ||
export declare type SourceMapTargetHash = string; | ||
export type SourceMapTargetHash = string; | ||
export interface createSessionParameters { | ||
@@ -256,2 +256,9 @@ /** | ||
} | ||
export interface globalExperimentalCommandParameters { | ||
name: string; | ||
params?: any; | ||
} | ||
export interface globalExperimentalCommandResult { | ||
rval?: any; | ||
} | ||
/** | ||
@@ -258,0 +265,0 @@ * Describes how much of a recording's data has been uploaded to the cloud service. |
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
export declare type Token = string; | ||
export type Token = string; | ||
/** | ||
@@ -16,3 +16,3 @@ * A string representing hashed resource file content. | ||
*/ | ||
export declare type FileHash = string; | ||
export type FileHash = string; | ||
/** | ||
@@ -19,0 +19,0 @@ * An object representing knowledge of a file's full content. |
@@ -8,3 +8,3 @@ import { Location, EventHandlerType, PointDescription, MappedLocation } from "./Debugger"; | ||
*/ | ||
export declare type SessionId = string; | ||
export type SessionId = string; | ||
/** | ||
@@ -85,3 +85,3 @@ * Select every point where a source location executes. | ||
*/ | ||
export declare type PointSelector = PointLocationSelector | PointLocationsSelector | EventHandlerEntrypointSelector | ExceptionPointSelector | PointListSelector | FrameStepsSelector; | ||
export type PointSelector = PointLocationSelector | PointLocationsSelector | EventHandlerEntrypointSelector | ExceptionPointSelector | PointListSelector | FrameStepsSelector; | ||
/** | ||
@@ -100,7 +100,7 @@ * Describes filtering limits on a list of points. | ||
*/ | ||
export declare type FindPointsId = string; | ||
export type FindPointsId = string; | ||
/** | ||
* The ID type for <code>Session.runEvaluation</code> commands. | ||
*/ | ||
export declare type RunEvaluationId = string; | ||
export type RunEvaluationId = string; | ||
/** | ||
@@ -163,3 +163,3 @@ * Describes the result of an evaluation at a particular point. | ||
*/ | ||
export declare type FocusWindowRequestBias = "begin" | "end"; | ||
export type FocusWindowRequestBias = "begin" | "end"; | ||
/** | ||
@@ -166,0 +166,0 @@ * Description for the focus window to load within a recording. |
{ | ||
"name": "@replayio/protocol", | ||
"version": "0.76.0", | ||
"version": "0.77.0", | ||
"description": "Definition of the protocol used by the Record Replay web service", | ||
@@ -5,0 +5,0 @@ "author": "", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13388
578407