@recordreplay/protocol
Advanced tools
Comparing version 0.2.1 to 0.2.2
import { metadataChange, uploadedData, sessionError, getDescriptionParameters, getMetadataParameters, setMetadataParameters, metadataStartListeningParameters, metadataStopListeningParameters, createSessionParameters, releaseSessionParameters, processRecordingParameters } from "../../protocol/Recording"; | ||
import { setAccessTokenParameters } from "../../protocol/Authentication"; | ||
import { missingRegions, unprocessedRegions, mouseEvents, ensureProcessedParameters, findMouseEventsParameters, getEndpointParameters, createPauseParameters, releasePauseParameters } from "../../protocol/Session"; | ||
@@ -78,2 +79,11 @@ import { paintPoints, findPaintsParameters, getPaintContentsParameters, getDevicePixelRatioParameters } from "../../protocol/Graphics"; | ||
/** | ||
* The Authentication domain defines a command for authenticating the current user. | ||
*/ | ||
Authentication: { | ||
/** | ||
* Set the user's current access token | ||
*/ | ||
setAccessToken: (parameters: setAccessTokenParameters, sessionId?: string | undefined, pauseId?: string | undefined) => Promise<import("../../protocol/Authentication").setAccessTokenResult>; | ||
}; | ||
/** | ||
* The Session domain defines methods for using recording sessions. In order to | ||
@@ -80,0 +90,0 @@ * inspect a recording, it must first be loaded into a session via |
@@ -98,2 +98,13 @@ "use strict"; | ||
/** | ||
* The Authentication domain defines a command for authenticating the current user. | ||
*/ | ||
this.Authentication = { | ||
/** | ||
* Set the user's current access token | ||
*/ | ||
setAccessToken: function (parameters, sessionId, pauseId) { | ||
return _this.genericClient.sendCommand("Authentication.setAccessToken", parameters, sessionId, pauseId); | ||
}, | ||
}; | ||
/** | ||
* The Session domain defines methods for using recording sessions. In order to | ||
@@ -100,0 +111,0 @@ * inspect a recording, it must first be loaded into a session via |
import { metadataChange, uploadedData, sessionError, getDescriptionParameters, getDescriptionResult, getMetadataParameters, getMetadataResult, setMetadataParameters, setMetadataResult, metadataStartListeningParameters, metadataStartListeningResult, metadataStopListeningParameters, metadataStopListeningResult, createSessionParameters, createSessionResult, releaseSessionParameters, releaseSessionResult, processRecordingParameters, processRecordingResult } from "../../protocol/Recording"; | ||
import { setAccessTokenParameters, setAccessTokenResult } from "../../protocol/Authentication"; | ||
import { missingRegions, unprocessedRegions, mouseEvents, ensureProcessedParameters, ensureProcessedResult, findMouseEventsParameters, findMouseEventsResult, getEndpointParameters, getEndpointResult, createPauseParameters, createPauseResult, releasePauseParameters, releasePauseResult, SessionId } from "../../protocol/Session"; | ||
@@ -107,2 +108,6 @@ import { paintPoints, findPaintsParameters, findPaintsResult, getPaintContentsParameters, getPaintContentsResult, getDevicePixelRatioParameters, getDevicePixelRatioResult } from "../../protocol/Graphics"; | ||
/** | ||
* Set the user's current access token | ||
*/ | ||
sendCommand(command: "Authentication.setAccessToken", parameters: setAccessTokenParameters, sessionId?: SessionId, pauseId?: PauseId): Promise<setAccessTokenResult>; | ||
/** | ||
* Does not return until the recording is fully processed. Before returning, | ||
@@ -109,0 +114,0 @@ * <code>missingRegions</code> and <code>unprocessedRegions</code> events will |
export * from "./Recording"; | ||
export * from "./Authentication"; | ||
export * from "./Session"; | ||
@@ -3,0 +4,0 @@ export * from "./Graphics"; |
@@ -14,2 +14,3 @@ "use strict"; | ||
__exportStar(require("./Recording"), exports); | ||
__exportStar(require("./Authentication"), exports); | ||
__exportStar(require("./Session"), exports); | ||
@@ -16,0 +17,0 @@ __exportStar(require("./Graphics"), exports); |
import { getDescriptionParameters, getDescriptionResult, getMetadataParameters, getMetadataResult, setMetadataParameters, setMetadataResult, metadataStartListeningParameters, metadataStartListeningResult, metadataStopListeningParameters, metadataStopListeningResult, createSessionParameters, createSessionResult, releaseSessionParameters, releaseSessionResult, processRecordingParameters, processRecordingResult } from "../../protocol/Recording"; | ||
import { setAccessTokenParameters, setAccessTokenResult } from "../../protocol/Authentication"; | ||
import { ensureProcessedParameters, ensureProcessedResult, findMouseEventsParameters, findMouseEventsResult, getEndpointParameters, getEndpointResult, createPauseParameters, createPauseResult, releasePauseParameters, releasePauseResult, SessionId } from "../../protocol/Session"; | ||
@@ -55,2 +56,6 @@ import { findPaintsParameters, findPaintsResult, getPaintContentsParameters, getPaintContentsResult, getDevicePixelRatioParameters, getDevicePixelRatioResult } from "../../protocol/Graphics"; | ||
/** | ||
* Set the user's current access token | ||
*/ | ||
"Authentication.setAccessToken": (handler: T, parameters: setAccessTokenParameters, sessionId?: SessionId, pauseId?: PauseId) => Promise<setAccessTokenResult | null> | setAccessTokenResult | null; | ||
/** | ||
* Does not return until the recording is fully processed. Before returning, | ||
@@ -446,2 +451,6 @@ * <code>missingRegions</code> and <code>unprocessedRegions</code> events will | ||
/** | ||
* Set the user's current access token | ||
*/ | ||
(message: "Authentication.setAccessToken", messageHandler: (handler: T, parameters: setAccessTokenParameters) => Promise<setAccessTokenResult | null> | setAccessTokenResult | null): void; | ||
/** | ||
* Does not return until the recording is fully processed. Before returning, | ||
@@ -448,0 +457,0 @@ * <code>missingRegions</code> and <code>unprocessedRegions</code> events will |
{ | ||
"name": "@recordreplay/protocol", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
393983
46
8436
0