@depup/datadog__browser-rum 6.31.0-depup.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/LICENSE +201 -0
- package/README.md +25 -0
- package/bundle/chunks/profiler-9f1c1103f1ef0aa98257-datadog-rum.js +1 -0
- package/bundle/chunks/recorder-926b641c6ef51d09a378-datadog-rum.js +1 -0
- package/bundle/datadog-rum.js +1 -0
- package/changes.json +5 -0
- package/cjs/boot/isBrowserSupported.d.ts +4 -0
- package/cjs/boot/isBrowserSupported.js +17 -0
- package/cjs/boot/isBrowserSupported.js.map +1 -0
- package/cjs/boot/lazyLoadProfiler.d.ts +3 -0
- package/cjs/boot/lazyLoadProfiler.js +56 -0
- package/cjs/boot/lazyLoadProfiler.js.map +1 -0
- package/cjs/boot/lazyLoadRecorder.d.ts +3 -0
- package/cjs/boot/lazyLoadRecorder.js +56 -0
- package/cjs/boot/lazyLoadRecorder.js.map +1 -0
- package/cjs/boot/postStartStrategy.d.ts +33 -0
- package/cjs/boot/postStartStrategy.js +98 -0
- package/cjs/boot/postStartStrategy.js.map +1 -0
- package/cjs/boot/preStartStrategy.d.ts +6 -0
- package/cjs/boot/preStartStrategy.js +24 -0
- package/cjs/boot/preStartStrategy.js.map +1 -0
- package/cjs/boot/profilerApi.d.ts +2 -0
- package/cjs/boot/profilerApi.js +52 -0
- package/cjs/boot/profilerApi.js.map +1 -0
- package/cjs/boot/recorderApi.d.ts +3 -0
- package/cjs/boot/recorderApi.js +71 -0
- package/cjs/boot/recorderApi.js.map +1 -0
- package/cjs/boot/startRecording.d.ts +6 -0
- package/cjs/boot/startRecording.js +45 -0
- package/cjs/boot/startRecording.js.map +1 -0
- package/cjs/domain/deflate/deflateEncoder.d.ts +3 -0
- package/cjs/domain/deflate/deflateEncoder.js +110 -0
- package/cjs/domain/deflate/deflateEncoder.js.map +1 -0
- package/cjs/domain/deflate/deflateWorker.d.ts +29 -0
- package/cjs/domain/deflate/deflateWorker.js +105 -0
- package/cjs/domain/deflate/deflateWorker.js.map +1 -0
- package/cjs/domain/deflate/index.d.ts +3 -0
- package/cjs/domain/deflate/index.js +11 -0
- package/cjs/domain/deflate/index.js.map +1 -0
- package/cjs/domain/getSessionReplayLink.d.ts +2 -0
- package/cjs/domain/getSessionReplayLink.js +35 -0
- package/cjs/domain/getSessionReplayLink.js.map +1 -0
- package/cjs/domain/profiling/actionHistory.d.ts +10 -0
- package/cjs/domain/profiling/actionHistory.js +49 -0
- package/cjs/domain/profiling/actionHistory.js.map +1 -0
- package/cjs/domain/profiling/longTaskHistory.d.ts +11 -0
- package/cjs/domain/profiling/longTaskHistory.js +28 -0
- package/cjs/domain/profiling/longTaskHistory.js.map +1 -0
- package/cjs/domain/profiling/profiler.d.ts +7 -0
- package/cjs/domain/profiling/profiler.js +267 -0
- package/cjs/domain/profiling/profiler.js.map +1 -0
- package/cjs/domain/profiling/profilingContext.d.ts +6 -0
- package/cjs/domain/profiling/profilingContext.js +31 -0
- package/cjs/domain/profiling/profilingContext.js.map +1 -0
- package/cjs/domain/profiling/profilingSupported.d.ts +1 -0
- package/cjs/domain/profiling/profilingSupported.js +11 -0
- package/cjs/domain/profiling/profilingSupported.js.map +1 -0
- package/cjs/domain/profiling/test-utils/mockedTrace.d.ts +3 -0
- package/cjs/domain/profiling/test-utils/mockedTrace.js +57 -0
- package/cjs/domain/profiling/test-utils/mockedTrace.js.map +1 -0
- package/cjs/domain/profiling/transport/assembly.d.ts +7 -0
- package/cjs/domain/profiling/transport/assembly.js +45 -0
- package/cjs/domain/profiling/transport/assembly.js.map +1 -0
- package/cjs/domain/profiling/transport/buildProfileEventAttributes.d.ts +33 -0
- package/cjs/domain/profiling/transport/buildProfileEventAttributes.js +63 -0
- package/cjs/domain/profiling/transport/buildProfileEventAttributes.js.map +1 -0
- package/cjs/domain/profiling/types/index.d.ts +2 -0
- package/cjs/domain/profiling/types/index.js +3 -0
- package/cjs/domain/profiling/types/index.js.map +1 -0
- package/cjs/domain/profiling/types/profilerApi.types.d.ts +58 -0
- package/cjs/domain/profiling/types/profilerApi.types.js +5 -0
- package/cjs/domain/profiling/types/profilerApi.types.js.map +1 -0
- package/cjs/domain/profiling/types/rumProfiler.types.d.ts +55 -0
- package/cjs/domain/profiling/types/rumProfiler.types.js +3 -0
- package/cjs/domain/profiling/types/rumProfiler.types.js.map +1 -0
- package/cjs/domain/profiling/utils/getCustomOrDefaultViewName.d.ts +1 -0
- package/cjs/domain/profiling/utils/getCustomOrDefaultViewName.js +7 -0
- package/cjs/domain/profiling/utils/getCustomOrDefaultViewName.js.map +1 -0
- package/cjs/domain/profiling/utils/getDefaultViewName.d.ts +1 -0
- package/cjs/domain/profiling/utils/getDefaultViewName.js +14 -0
- package/cjs/domain/profiling/utils/getDefaultViewName.js.map +1 -0
- package/cjs/domain/profiling/utils/getNumberOfSamples.d.ts +8 -0
- package/cjs/domain/profiling/utils/getNumberOfSamples.js +19 -0
- package/cjs/domain/profiling/utils/getNumberOfSamples.js.map +1 -0
- package/cjs/domain/profiling/vitalHistory.d.ts +10 -0
- package/cjs/domain/profiling/vitalHistory.js +42 -0
- package/cjs/domain/profiling/vitalHistory.js.map +1 -0
- package/cjs/domain/record/assembly.d.ts +3 -0
- package/cjs/domain/record/assembly.js +16 -0
- package/cjs/domain/record/assembly.js.map +1 -0
- package/cjs/domain/record/elementsScrollPositions.d.ts +10 -0
- package/cjs/domain/record/elementsScrollPositions.js +23 -0
- package/cjs/domain/record/elementsScrollPositions.js.map +1 -0
- package/cjs/domain/record/eventsUtils.d.ts +2 -0
- package/cjs/domain/record/eventsUtils.js +15 -0
- package/cjs/domain/record/eventsUtils.js.map +1 -0
- package/cjs/domain/record/index.d.ts +6 -0
- package/cjs/domain/record/index.js +17 -0
- package/cjs/domain/record/index.js.map +1 -0
- package/cjs/domain/record/internalApi.d.ts +22 -0
- package/cjs/domain/record/internalApi.js +55 -0
- package/cjs/domain/record/internalApi.js.map +1 -0
- package/cjs/domain/record/itemIds.d.ts +40 -0
- package/cjs/domain/record/itemIds.js +58 -0
- package/cjs/domain/record/itemIds.js.map +1 -0
- package/cjs/domain/record/mutationBatch.d.ts +12 -0
- package/cjs/domain/record/mutationBatch.js +44 -0
- package/cjs/domain/record/mutationBatch.js.map +1 -0
- package/cjs/domain/record/record.d.ts +16 -0
- package/cjs/domain/record/record.js +88 -0
- package/cjs/domain/record/record.js.map +1 -0
- package/cjs/domain/record/record.types.d.ts +18 -0
- package/cjs/domain/record/record.types.js +3 -0
- package/cjs/domain/record/record.types.js.map +1 -0
- package/cjs/domain/record/recordingScope.d.ts +24 -0
- package/cjs/domain/record/recordingScope.js +29 -0
- package/cjs/domain/record/recordingScope.js.map +1 -0
- package/cjs/domain/record/serialization/changeEncoder.d.ts +22 -0
- package/cjs/domain/record/serialization/changeEncoder.js +59 -0
- package/cjs/domain/record/serialization/changeEncoder.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/changeConverter.d.ts +10 -0
- package/cjs/domain/record/serialization/conversions/changeConverter.js +216 -0
- package/cjs/domain/record/serialization/conversions/changeConverter.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/changeDecoder.d.ts +16 -0
- package/cjs/domain/record/serialization/conversions/changeDecoder.js +137 -0
- package/cjs/domain/record/serialization/conversions/changeDecoder.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/index.d.ts +7 -0
- package/cjs/domain/record/serialization/conversions/index.js +11 -0
- package/cjs/domain/record/serialization/conversions/index.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/mutationLog.d.ts +15 -0
- package/cjs/domain/record/serialization/conversions/mutationLog.js +36 -0
- package/cjs/domain/record/serialization/conversions/mutationLog.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/nodeIdRemapper.d.ts +10 -0
- package/cjs/domain/record/serialization/conversions/nodeIdRemapper.js +53 -0
- package/cjs/domain/record/serialization/conversions/nodeIdRemapper.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/renderOptions.d.ts +6 -0
- package/cjs/domain/record/serialization/conversions/renderOptions.js +12 -0
- package/cjs/domain/record/serialization/conversions/renderOptions.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/stringTable.d.ts +5 -0
- package/cjs/domain/record/serialization/conversions/stringTable.js +22 -0
- package/cjs/domain/record/serialization/conversions/stringTable.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/vDocument.d.ts +23 -0
- package/cjs/domain/record/serialization/conversions/vDocument.js +176 -0
- package/cjs/domain/record/serialization/conversions/vDocument.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/vNode.d.ts +66 -0
- package/cjs/domain/record/serialization/conversions/vNode.js +285 -0
- package/cjs/domain/record/serialization/conversions/vNode.js.map +1 -0
- package/cjs/domain/record/serialization/conversions/vStyleSheet.d.ts +16 -0
- package/cjs/domain/record/serialization/conversions/vStyleSheet.js +29 -0
- package/cjs/domain/record/serialization/conversions/vStyleSheet.js.map +1 -0
- package/cjs/domain/record/serialization/experimentalFeatures.d.ts +2 -0
- package/cjs/domain/record/serialization/experimentalFeatures.js +16 -0
- package/cjs/domain/record/serialization/experimentalFeatures.js.map +1 -0
- package/cjs/domain/record/serialization/index.d.ts +17 -0
- package/cjs/domain/record/serialization/index.js +37 -0
- package/cjs/domain/record/serialization/index.js.map +1 -0
- package/cjs/domain/record/serialization/insertionCursor.d.ts +57 -0
- package/cjs/domain/record/serialization/insertionCursor.js +68 -0
- package/cjs/domain/record/serialization/insertionCursor.js.map +1 -0
- package/cjs/domain/record/serialization/serialization.types.d.ts +24 -0
- package/cjs/domain/record/serialization/serialization.types.js +3 -0
- package/cjs/domain/record/serialization/serialization.types.js.map +1 -0
- package/cjs/domain/record/serialization/serializationStats.d.ts +12 -0
- package/cjs/domain/record/serialization/serializationStats.js +32 -0
- package/cjs/domain/record/serialization/serializationStats.js.map +1 -0
- package/cjs/domain/record/serialization/serializationTransaction.d.ts +96 -0
- package/cjs/domain/record/serialization/serializationTransaction.js +103 -0
- package/cjs/domain/record/serialization/serializationTransaction.js.map +1 -0
- package/cjs/domain/record/serialization/serializationUtils.d.ts +18 -0
- package/cjs/domain/record/serialization/serializationUtils.js +88 -0
- package/cjs/domain/record/serialization/serializationUtils.js.map +1 -0
- package/cjs/domain/record/serialization/serializeAttribute.d.ts +4 -0
- package/cjs/domain/record/serialization/serializeAttribute.js +42 -0
- package/cjs/domain/record/serialization/serializeAttribute.js.map +1 -0
- package/cjs/domain/record/serialization/serializeAttributes.d.ts +7 -0
- package/cjs/domain/record/serialization/serializeAttributes.js +167 -0
- package/cjs/domain/record/serialization/serializeAttributes.js.map +1 -0
- package/cjs/domain/record/serialization/serializeFullSnapshot.d.ts +5 -0
- package/cjs/domain/record/serialization/serializeFullSnapshot.js +34 -0
- package/cjs/domain/record/serialization/serializeFullSnapshot.js.map +1 -0
- package/cjs/domain/record/serialization/serializeFullSnapshotAsChange.d.ts +5 -0
- package/cjs/domain/record/serialization/serializeFullSnapshotAsChange.js +13 -0
- package/cjs/domain/record/serialization/serializeFullSnapshotAsChange.js.map +1 -0
- package/cjs/domain/record/serialization/serializeMutations.d.ts +11 -0
- package/cjs/domain/record/serialization/serializeMutations.js +262 -0
- package/cjs/domain/record/serialization/serializeMutations.js.map +1 -0
- package/cjs/domain/record/serialization/serializeMutationsAsChange.d.ts +5 -0
- package/cjs/domain/record/serialization/serializeMutationsAsChange.js +204 -0
- package/cjs/domain/record/serialization/serializeMutationsAsChange.js.map +1 -0
- package/cjs/domain/record/serialization/serializeNode.d.ts +7 -0
- package/cjs/domain/record/serialization/serializeNode.js +154 -0
- package/cjs/domain/record/serialization/serializeNode.js.map +1 -0
- package/cjs/domain/record/serialization/serializeNodeAsChange.d.ts +4 -0
- package/cjs/domain/record/serialization/serializeNodeAsChange.js +153 -0
- package/cjs/domain/record/serialization/serializeNodeAsChange.js.map +1 -0
- package/cjs/domain/record/serialization/serializeStyleSheets.d.ts +3 -0
- package/cjs/domain/record/serialization/serializeStyleSheets.js +30 -0
- package/cjs/domain/record/serialization/serializeStyleSheets.js.map +1 -0
- package/cjs/domain/record/serializationVerifier.d.ts +18 -0
- package/cjs/domain/record/serializationVerifier.js +126 -0
- package/cjs/domain/record/serializationVerifier.js.map +1 -0
- package/cjs/domain/record/shadowRootsController.d.ts +11 -0
- package/cjs/domain/record/shadowRootsController.js +45 -0
- package/cjs/domain/record/shadowRootsController.js.map +1 -0
- package/cjs/domain/record/startFullSnapshots.d.ts +10 -0
- package/cjs/domain/record/startFullSnapshots.js +50 -0
- package/cjs/domain/record/startFullSnapshots.js.map +1 -0
- package/cjs/domain/record/trackers/index.d.ts +12 -0
- package/cjs/domain/record/trackers/index.js +27 -0
- package/cjs/domain/record/trackers/index.js.map +1 -0
- package/cjs/domain/record/trackers/trackFocus.d.ts +5 -0
- package/cjs/domain/record/trackers/trackFocus.js +15 -0
- package/cjs/domain/record/trackers/trackFocus.js.map +1 -0
- package/cjs/domain/record/trackers/trackFrustration.d.ts +6 -0
- package/cjs/domain/record/trackers/trackFrustration.js +31 -0
- package/cjs/domain/record/trackers/trackFrustration.js.map +1 -0
- package/cjs/domain/record/trackers/trackInput.d.ts +4 -0
- package/cjs/domain/record/trackers/trackInput.js +104 -0
- package/cjs/domain/record/trackers/trackInput.js.map +1 -0
- package/cjs/domain/record/trackers/trackMediaInteraction.d.ts +5 -0
- package/cjs/domain/record/trackers/trackMediaInteraction.js +29 -0
- package/cjs/domain/record/trackers/trackMediaInteraction.js.map +1 -0
- package/cjs/domain/record/trackers/trackMouseInteraction.d.ts +5 -0
- package/cjs/domain/record/trackers/trackMouseInteraction.js +59 -0
- package/cjs/domain/record/trackers/trackMouseInteraction.js.map +1 -0
- package/cjs/domain/record/trackers/trackMove.d.ts +9 -0
- package/cjs/domain/record/trackers/trackMove.js +55 -0
- package/cjs/domain/record/trackers/trackMove.js.map +1 -0
- package/cjs/domain/record/trackers/trackMutation.d.ts +13 -0
- package/cjs/domain/record/trackers/trackMutation.js +41 -0
- package/cjs/domain/record/trackers/trackMutation.js.map +1 -0
- package/cjs/domain/record/trackers/trackScroll.d.ts +5 -0
- package/cjs/domain/record/trackers/trackScroll.js +48 -0
- package/cjs/domain/record/trackers/trackScroll.js.map +1 -0
- package/cjs/domain/record/trackers/trackStyleSheet.d.ts +6 -0
- package/cjs/domain/record/trackers/trackStyleSheet.js +89 -0
- package/cjs/domain/record/trackers/trackStyleSheet.js.map +1 -0
- package/cjs/domain/record/trackers/trackViewEnd.d.ts +5 -0
- package/cjs/domain/record/trackers/trackViewEnd.js +20 -0
- package/cjs/domain/record/trackers/trackViewEnd.js.map +1 -0
- package/cjs/domain/record/trackers/trackViewportResize.d.ts +6 -0
- package/cjs/domain/record/trackers/trackViewportResize.js +46 -0
- package/cjs/domain/record/trackers/trackViewportResize.js.map +1 -0
- package/cjs/domain/record/trackers/tracker.types.d.ts +3 -0
- package/cjs/domain/record/trackers/tracker.types.js +3 -0
- package/cjs/domain/record/trackers/tracker.types.js.map +1 -0
- package/cjs/domain/record/viewports.d.ts +20 -0
- package/cjs/domain/record/viewports.js +60 -0
- package/cjs/domain/record/viewports.js.map +1 -0
- package/cjs/domain/replayStats.d.ts +8 -0
- package/cjs/domain/replayStats.js +60 -0
- package/cjs/domain/replayStats.js.map +1 -0
- package/cjs/domain/scriptLoadingError.d.ts +6 -0
- package/cjs/domain/scriptLoadingError.js +26 -0
- package/cjs/domain/scriptLoadingError.js.map +1 -0
- package/cjs/domain/segmentCollection/buildReplayPayload.d.ts +15 -0
- package/cjs/domain/segmentCollection/buildReplayPayload.js +26 -0
- package/cjs/domain/segmentCollection/buildReplayPayload.js.map +1 -0
- package/cjs/domain/segmentCollection/index.d.ts +4 -0
- package/cjs/domain/segmentCollection/index.js +11 -0
- package/cjs/domain/segmentCollection/index.js.map +1 -0
- package/cjs/domain/segmentCollection/segment.d.ts +16 -0
- package/cjs/domain/segmentCollection/segment.js +82 -0
- package/cjs/domain/segmentCollection/segment.js.map +1 -0
- package/cjs/domain/segmentCollection/segmentCollection.d.ts +31 -0
- package/cjs/domain/segmentCollection/segmentCollection.js +113 -0
- package/cjs/domain/segmentCollection/segmentCollection.js.map +1 -0
- package/cjs/domain/segmentCollection/startSegmentTelemetry.d.ts +6 -0
- package/cjs/domain/segmentCollection/startSegmentTelemetry.js +52 -0
- package/cjs/domain/segmentCollection/startSegmentTelemetry.js.map +1 -0
- package/cjs/domain/startRecordBridge.d.ts +5 -0
- package/cjs/domain/startRecordBridge.js +17 -0
- package/cjs/domain/startRecordBridge.js.map +1 -0
- package/cjs/domain/startRecorderInitTelemetry.d.ts +15 -0
- package/cjs/domain/startRecorderInitTelemetry.js +55 -0
- package/cjs/domain/startRecorderInitTelemetry.js.map +1 -0
- package/cjs/entries/internal.d.ts +11 -0
- package/cjs/entries/internal.js +28 -0
- package/cjs/entries/internal.js.map +1 -0
- package/cjs/entries/internalSynthetics.d.ts +2 -0
- package/cjs/entries/internalSynthetics.js +27 -0
- package/cjs/entries/internalSynthetics.js.map +1 -0
- package/cjs/entries/main.d.ts +23 -0
- package/cjs/entries/main.js +35 -0
- package/cjs/entries/main.js.map +1 -0
- package/cjs/types/index.d.ts +3 -0
- package/cjs/types/index.js +18 -0
- package/cjs/types/index.js.map +1 -0
- package/cjs/types/profiling.d.ts +296 -0
- package/cjs/types/profiling.js +6 -0
- package/cjs/types/profiling.js.map +1 -0
- package/cjs/types/sessionReplay.d.ts +934 -0
- package/cjs/types/sessionReplay.js +6 -0
- package/cjs/types/sessionReplay.js.map +1 -0
- package/cjs/types/sessionReplayConstants.d.ts +71 -0
- package/cjs/types/sessionReplayConstants.js +67 -0
- package/cjs/types/sessionReplayConstants.js.map +1 -0
- package/esm/boot/isBrowserSupported.d.ts +4 -0
- package/esm/boot/isBrowserSupported.js +14 -0
- package/esm/boot/isBrowserSupported.js.map +1 -0
- package/esm/boot/lazyLoadProfiler.d.ts +3 -0
- package/esm/boot/lazyLoadProfiler.js +19 -0
- package/esm/boot/lazyLoadProfiler.js.map +1 -0
- package/esm/boot/lazyLoadRecorder.d.ts +3 -0
- package/esm/boot/lazyLoadRecorder.js +19 -0
- package/esm/boot/lazyLoadRecorder.js.map +1 -0
- package/esm/boot/postStartStrategy.d.ts +33 -0
- package/esm/boot/postStartStrategy.js +95 -0
- package/esm/boot/postStartStrategy.js.map +1 -0
- package/esm/boot/preStartStrategy.d.ts +6 -0
- package/esm/boot/preStartStrategy.js +21 -0
- package/esm/boot/preStartStrategy.js.map +1 -0
- package/esm/boot/profilerApi.d.ts +2 -0
- package/esm/boot/profilerApi.js +49 -0
- package/esm/boot/profilerApi.js.map +1 -0
- package/esm/boot/recorderApi.d.ts +3 -0
- package/esm/boot/recorderApi.js +68 -0
- package/esm/boot/recorderApi.js.map +1 -0
- package/esm/boot/startRecording.d.ts +6 -0
- package/esm/boot/startRecording.js +42 -0
- package/esm/boot/startRecording.js.map +1 -0
- package/esm/domain/deflate/deflateEncoder.d.ts +3 -0
- package/esm/domain/deflate/deflateEncoder.js +107 -0
- package/esm/domain/deflate/deflateEncoder.js.map +1 -0
- package/esm/domain/deflate/deflateWorker.d.ts +29 -0
- package/esm/domain/deflate/deflateWorker.js +97 -0
- package/esm/domain/deflate/deflateWorker.js.map +1 -0
- package/esm/domain/deflate/index.d.ts +3 -0
- package/esm/domain/deflate/index.js +3 -0
- package/esm/domain/deflate/index.js.map +1 -0
- package/esm/domain/getSessionReplayLink.d.ts +2 -0
- package/esm/domain/getSessionReplayLink.js +32 -0
- package/esm/domain/getSessionReplayLink.js.map +1 -0
- package/esm/domain/profiling/actionHistory.d.ts +10 -0
- package/esm/domain/profiling/actionHistory.js +45 -0
- package/esm/domain/profiling/actionHistory.js.map +1 -0
- package/esm/domain/profiling/longTaskHistory.d.ts +11 -0
- package/esm/domain/profiling/longTaskHistory.js +24 -0
- package/esm/domain/profiling/longTaskHistory.js.map +1 -0
- package/esm/domain/profiling/profiler.d.ts +7 -0
- package/esm/domain/profiling/profiler.js +263 -0
- package/esm/domain/profiling/profiler.js.map +1 -0
- package/esm/domain/profiling/profilingContext.d.ts +6 -0
- package/esm/domain/profiling/profilingContext.js +28 -0
- package/esm/domain/profiling/profilingContext.js.map +1 -0
- package/esm/domain/profiling/profilingSupported.d.ts +1 -0
- package/esm/domain/profiling/profilingSupported.js +8 -0
- package/esm/domain/profiling/profilingSupported.js.map +1 -0
- package/esm/domain/profiling/test-utils/mockedTrace.d.ts +3 -0
- package/esm/domain/profiling/test-utils/mockedTrace.js +54 -0
- package/esm/domain/profiling/test-utils/mockedTrace.js.map +1 -0
- package/esm/domain/profiling/transport/assembly.d.ts +7 -0
- package/esm/domain/profiling/transport/assembly.js +42 -0
- package/esm/domain/profiling/transport/assembly.js.map +1 -0
- package/esm/domain/profiling/transport/buildProfileEventAttributes.d.ts +33 -0
- package/esm/domain/profiling/transport/buildProfileEventAttributes.js +60 -0
- package/esm/domain/profiling/transport/buildProfileEventAttributes.js.map +1 -0
- package/esm/domain/profiling/types/index.d.ts +2 -0
- package/esm/domain/profiling/types/index.js +2 -0
- package/esm/domain/profiling/types/index.js.map +1 -0
- package/esm/domain/profiling/types/profilerApi.types.d.ts +58 -0
- package/esm/domain/profiling/types/profilerApi.types.js +4 -0
- package/esm/domain/profiling/types/profilerApi.types.js.map +1 -0
- package/esm/domain/profiling/types/rumProfiler.types.d.ts +55 -0
- package/esm/domain/profiling/types/rumProfiler.types.js +2 -0
- package/esm/domain/profiling/types/rumProfiler.types.js.map +1 -0
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.d.ts +1 -0
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.js +3 -0
- package/esm/domain/profiling/utils/getCustomOrDefaultViewName.js.map +1 -0
- package/esm/domain/profiling/utils/getDefaultViewName.d.ts +1 -0
- package/esm/domain/profiling/utils/getDefaultViewName.js +11 -0
- package/esm/domain/profiling/utils/getDefaultViewName.js.map +1 -0
- package/esm/domain/profiling/utils/getNumberOfSamples.d.ts +8 -0
- package/esm/domain/profiling/utils/getNumberOfSamples.js +16 -0
- package/esm/domain/profiling/utils/getNumberOfSamples.js.map +1 -0
- package/esm/domain/profiling/vitalHistory.d.ts +10 -0
- package/esm/domain/profiling/vitalHistory.js +38 -0
- package/esm/domain/profiling/vitalHistory.js.map +1 -0
- package/esm/domain/record/assembly.d.ts +3 -0
- package/esm/domain/record/assembly.js +13 -0
- package/esm/domain/record/assembly.js.map +1 -0
- package/esm/domain/record/elementsScrollPositions.d.ts +10 -0
- package/esm/domain/record/elementsScrollPositions.js +20 -0
- package/esm/domain/record/elementsScrollPositions.js.map +1 -0
- package/esm/domain/record/eventsUtils.d.ts +2 -0
- package/esm/domain/record/eventsUtils.js +11 -0
- package/esm/domain/record/eventsUtils.js.map +1 -0
- package/esm/domain/record/index.d.ts +6 -0
- package/esm/domain/record/index.js +5 -0
- package/esm/domain/record/index.js.map +1 -0
- package/esm/domain/record/internalApi.d.ts +22 -0
- package/esm/domain/record/internalApi.js +51 -0
- package/esm/domain/record/internalApi.js.map +1 -0
- package/esm/domain/record/itemIds.d.ts +40 -0
- package/esm/domain/record/itemIds.js +52 -0
- package/esm/domain/record/itemIds.js.map +1 -0
- package/esm/domain/record/mutationBatch.d.ts +12 -0
- package/esm/domain/record/mutationBatch.js +40 -0
- package/esm/domain/record/mutationBatch.js.map +1 -0
- package/esm/domain/record/record.d.ts +16 -0
- package/esm/domain/record/record.js +52 -0
- package/esm/domain/record/record.js.map +1 -0
- package/esm/domain/record/record.types.d.ts +18 -0
- package/esm/domain/record/record.types.js +2 -0
- package/esm/domain/record/record.types.js.map +1 -0
- package/esm/domain/record/recordingScope.d.ts +24 -0
- package/esm/domain/record/recordingScope.js +26 -0
- package/esm/domain/record/recordingScope.js.map +1 -0
- package/esm/domain/record/serialization/changeEncoder.d.ts +22 -0
- package/esm/domain/record/serialization/changeEncoder.js +56 -0
- package/esm/domain/record/serialization/changeEncoder.js.map +1 -0
- package/esm/domain/record/serialization/conversions/changeConverter.d.ts +10 -0
- package/esm/domain/record/serialization/conversions/changeConverter.js +213 -0
- package/esm/domain/record/serialization/conversions/changeConverter.js.map +1 -0
- package/esm/domain/record/serialization/conversions/changeDecoder.d.ts +16 -0
- package/esm/domain/record/serialization/conversions/changeDecoder.js +134 -0
- package/esm/domain/record/serialization/conversions/changeDecoder.js.map +1 -0
- package/esm/domain/record/serialization/conversions/index.d.ts +7 -0
- package/esm/domain/record/serialization/conversions/index.js +4 -0
- package/esm/domain/record/serialization/conversions/index.js.map +1 -0
- package/esm/domain/record/serialization/conversions/mutationLog.d.ts +15 -0
- package/esm/domain/record/serialization/conversions/mutationLog.js +33 -0
- package/esm/domain/record/serialization/conversions/mutationLog.js.map +1 -0
- package/esm/domain/record/serialization/conversions/nodeIdRemapper.d.ts +10 -0
- package/esm/domain/record/serialization/conversions/nodeIdRemapper.js +49 -0
- package/esm/domain/record/serialization/conversions/nodeIdRemapper.js.map +1 -0
- package/esm/domain/record/serialization/conversions/renderOptions.d.ts +6 -0
- package/esm/domain/record/serialization/conversions/renderOptions.js +9 -0
- package/esm/domain/record/serialization/conversions/renderOptions.js.map +1 -0
- package/esm/domain/record/serialization/conversions/stringTable.d.ts +5 -0
- package/esm/domain/record/serialization/conversions/stringTable.js +19 -0
- package/esm/domain/record/serialization/conversions/stringTable.js.map +1 -0
- package/esm/domain/record/serialization/conversions/vDocument.d.ts +23 -0
- package/esm/domain/record/serialization/conversions/vDocument.js +173 -0
- package/esm/domain/record/serialization/conversions/vDocument.js.map +1 -0
- package/esm/domain/record/serialization/conversions/vNode.d.ts +66 -0
- package/esm/domain/record/serialization/conversions/vNode.js +282 -0
- package/esm/domain/record/serialization/conversions/vNode.js.map +1 -0
- package/esm/domain/record/serialization/conversions/vStyleSheet.d.ts +16 -0
- package/esm/domain/record/serialization/conversions/vStyleSheet.js +26 -0
- package/esm/domain/record/serialization/conversions/vStyleSheet.js.map +1 -0
- package/esm/domain/record/serialization/experimentalFeatures.d.ts +2 -0
- package/esm/domain/record/serialization/experimentalFeatures.js +12 -0
- package/esm/domain/record/serialization/experimentalFeatures.js.map +1 -0
- package/esm/domain/record/serialization/index.d.ts +17 -0
- package/esm/domain/record/serialization/index.js +14 -0
- package/esm/domain/record/serialization/index.js.map +1 -0
- package/esm/domain/record/serialization/insertionCursor.d.ts +57 -0
- package/esm/domain/record/serialization/insertionCursor.js +64 -0
- package/esm/domain/record/serialization/insertionCursor.js.map +1 -0
- package/esm/domain/record/serialization/serialization.types.d.ts +24 -0
- package/esm/domain/record/serialization/serialization.types.js +2 -0
- package/esm/domain/record/serialization/serialization.types.js.map +1 -0
- package/esm/domain/record/serialization/serializationStats.d.ts +12 -0
- package/esm/domain/record/serialization/serializationStats.js +27 -0
- package/esm/domain/record/serialization/serializationStats.js.map +1 -0
- package/esm/domain/record/serialization/serializationTransaction.d.ts +96 -0
- package/esm/domain/record/serialization/serializationTransaction.js +99 -0
- package/esm/domain/record/serialization/serializationTransaction.js.map +1 -0
- package/esm/domain/record/serialization/serializationUtils.d.ts +18 -0
- package/esm/domain/record/serialization/serializationUtils.js +80 -0
- package/esm/domain/record/serialization/serializationUtils.js.map +1 -0
- package/esm/domain/record/serialization/serializeAttribute.d.ts +4 -0
- package/esm/domain/record/serialization/serializeAttribute.js +38 -0
- package/esm/domain/record/serialization/serializeAttribute.js.map +1 -0
- package/esm/domain/record/serialization/serializeAttributes.d.ts +7 -0
- package/esm/domain/record/serialization/serializeAttributes.js +161 -0
- package/esm/domain/record/serialization/serializeAttributes.js.map +1 -0
- package/esm/domain/record/serialization/serializeFullSnapshot.d.ts +5 -0
- package/esm/domain/record/serialization/serializeFullSnapshot.js +31 -0
- package/esm/domain/record/serialization/serializeFullSnapshot.js.map +1 -0
- package/esm/domain/record/serialization/serializeFullSnapshotAsChange.d.ts +5 -0
- package/esm/domain/record/serialization/serializeFullSnapshotAsChange.js +10 -0
- package/esm/domain/record/serialization/serializeFullSnapshotAsChange.js.map +1 -0
- package/esm/domain/record/serialization/serializeMutations.d.ts +11 -0
- package/esm/domain/record/serialization/serializeMutations.js +257 -0
- package/esm/domain/record/serialization/serializeMutations.js.map +1 -0
- package/esm/domain/record/serialization/serializeMutationsAsChange.d.ts +5 -0
- package/esm/domain/record/serialization/serializeMutationsAsChange.js +201 -0
- package/esm/domain/record/serialization/serializeMutationsAsChange.js.map +1 -0
- package/esm/domain/record/serialization/serializeNode.d.ts +7 -0
- package/esm/domain/record/serialization/serializeNode.js +149 -0
- package/esm/domain/record/serialization/serializeNode.js.map +1 -0
- package/esm/domain/record/serialization/serializeNodeAsChange.d.ts +4 -0
- package/esm/domain/record/serialization/serializeNodeAsChange.js +150 -0
- package/esm/domain/record/serialization/serializeNodeAsChange.js.map +1 -0
- package/esm/domain/record/serialization/serializeStyleSheets.d.ts +3 -0
- package/esm/domain/record/serialization/serializeStyleSheets.js +27 -0
- package/esm/domain/record/serialization/serializeStyleSheets.js.map +1 -0
- package/esm/domain/record/serializationVerifier.d.ts +18 -0
- package/esm/domain/record/serializationVerifier.js +123 -0
- package/esm/domain/record/serializationVerifier.js.map +1 -0
- package/esm/domain/record/shadowRootsController.d.ts +11 -0
- package/esm/domain/record/shadowRootsController.js +41 -0
- package/esm/domain/record/shadowRootsController.js.map +1 -0
- package/esm/domain/record/startFullSnapshots.d.ts +10 -0
- package/esm/domain/record/startFullSnapshots.js +46 -0
- package/esm/domain/record/startFullSnapshots.js.map +1 -0
- package/esm/domain/record/trackers/index.d.ts +12 -0
- package/esm/domain/record/trackers/index.js +12 -0
- package/esm/domain/record/trackers/index.js.map +1 -0
- package/esm/domain/record/trackers/trackFocus.d.ts +5 -0
- package/esm/domain/record/trackers/trackFocus.js +12 -0
- package/esm/domain/record/trackers/trackFocus.js.map +1 -0
- package/esm/domain/record/trackers/trackFrustration.d.ts +6 -0
- package/esm/domain/record/trackers/trackFrustration.js +28 -0
- package/esm/domain/record/trackers/trackFrustration.js.map +1 -0
- package/esm/domain/record/trackers/trackInput.d.ts +4 -0
- package/esm/domain/record/trackers/trackInput.js +101 -0
- package/esm/domain/record/trackers/trackInput.js.map +1 -0
- package/esm/domain/record/trackers/trackMediaInteraction.d.ts +5 -0
- package/esm/domain/record/trackers/trackMediaInteraction.js +26 -0
- package/esm/domain/record/trackers/trackMediaInteraction.js.map +1 -0
- package/esm/domain/record/trackers/trackMouseInteraction.d.ts +5 -0
- package/esm/domain/record/trackers/trackMouseInteraction.js +56 -0
- package/esm/domain/record/trackers/trackMouseInteraction.js.map +1 -0
- package/esm/domain/record/trackers/trackMove.d.ts +9 -0
- package/esm/domain/record/trackers/trackMove.js +51 -0
- package/esm/domain/record/trackers/trackMove.js.map +1 -0
- package/esm/domain/record/trackers/trackMutation.d.ts +13 -0
- package/esm/domain/record/trackers/trackMutation.js +38 -0
- package/esm/domain/record/trackers/trackMutation.js.map +1 -0
- package/esm/domain/record/trackers/trackScroll.d.ts +5 -0
- package/esm/domain/record/trackers/trackScroll.js +45 -0
- package/esm/domain/record/trackers/trackScroll.js.map +1 -0
- package/esm/domain/record/trackers/trackStyleSheet.d.ts +6 -0
- package/esm/domain/record/trackers/trackStyleSheet.js +85 -0
- package/esm/domain/record/trackers/trackStyleSheet.js.map +1 -0
- package/esm/domain/record/trackers/trackViewEnd.d.ts +5 -0
- package/esm/domain/record/trackers/trackViewEnd.js +17 -0
- package/esm/domain/record/trackers/trackViewEnd.js.map +1 -0
- package/esm/domain/record/trackers/trackViewportResize.d.ts +6 -0
- package/esm/domain/record/trackers/trackViewportResize.js +42 -0
- package/esm/domain/record/trackers/trackViewportResize.js.map +1 -0
- package/esm/domain/record/trackers/tracker.types.d.ts +3 -0
- package/esm/domain/record/trackers/tracker.types.js +2 -0
- package/esm/domain/record/trackers/tracker.types.js.map +1 -0
- package/esm/domain/record/viewports.d.ts +20 -0
- package/esm/domain/record/viewports.js +55 -0
- package/esm/domain/record/viewports.js.map +1 -0
- package/esm/domain/replayStats.d.ts +8 -0
- package/esm/domain/replayStats.js +51 -0
- package/esm/domain/replayStats.js.map +1 -0
- package/esm/domain/scriptLoadingError.d.ts +6 -0
- package/esm/domain/scriptLoadingError.js +23 -0
- package/esm/domain/scriptLoadingError.js.map +1 -0
- package/esm/domain/segmentCollection/buildReplayPayload.d.ts +15 -0
- package/esm/domain/segmentCollection/buildReplayPayload.js +23 -0
- package/esm/domain/segmentCollection/buildReplayPayload.js.map +1 -0
- package/esm/domain/segmentCollection/index.d.ts +4 -0
- package/esm/domain/segmentCollection/index.js +4 -0
- package/esm/domain/segmentCollection/index.js.map +1 -0
- package/esm/domain/segmentCollection/segment.d.ts +16 -0
- package/esm/domain/segmentCollection/segment.js +46 -0
- package/esm/domain/segmentCollection/segment.js.map +1 -0
- package/esm/domain/segmentCollection/segmentCollection.d.ts +31 -0
- package/esm/domain/segmentCollection/segmentCollection.js +106 -0
- package/esm/domain/segmentCollection/segmentCollection.js.map +1 -0
- package/esm/domain/segmentCollection/startSegmentTelemetry.d.ts +6 -0
- package/esm/domain/segmentCollection/startSegmentTelemetry.js +49 -0
- package/esm/domain/segmentCollection/startSegmentTelemetry.js.map +1 -0
- package/esm/domain/startRecordBridge.d.ts +5 -0
- package/esm/domain/startRecordBridge.js +14 -0
- package/esm/domain/startRecordBridge.js.map +1 -0
- package/esm/domain/startRecorderInitTelemetry.d.ts +15 -0
- package/esm/domain/startRecorderInitTelemetry.js +52 -0
- package/esm/domain/startRecorderInitTelemetry.js.map +1 -0
- package/esm/entries/internal.d.ts +11 -0
- package/esm/entries/internal.js +4 -0
- package/esm/entries/internal.js.map +1 -0
- package/esm/entries/internalSynthetics.d.ts +2 -0
- package/esm/entries/internalSynthetics.js +23 -0
- package/esm/entries/internalSynthetics.js.map +1 -0
- package/esm/entries/main.d.ts +23 -0
- package/esm/entries/main.js +31 -0
- package/esm/entries/main.js.map +1 -0
- package/esm/types/index.d.ts +3 -0
- package/esm/types/index.js +2 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/profiling.d.ts +296 -0
- package/esm/types/profiling.js +5 -0
- package/esm/types/profiling.js.map +1 -0
- package/esm/types/sessionReplay.d.ts +934 -0
- package/esm/types/sessionReplay.js +5 -0
- package/esm/types/sessionReplay.js.map +1 -0
- package/esm/types/sessionReplayConstants.d.ts +71 -0
- package/esm/types/sessionReplayConstants.js +64 -0
- package/esm/types/sessionReplayConstants.js.map +1 -0
- package/internal/package.json +6 -0
- package/internal-synthetics/package.json +6 -0
- package/package.json +52 -0
- package/src/boot/isBrowserSupported.ts +14 -0
- package/src/boot/lazyLoadProfiler.ts +20 -0
- package/src/boot/lazyLoadRecorder.ts +20 -0
- package/src/boot/postStartStrategy.ts +176 -0
- package/src/boot/preStartStrategy.ts +34 -0
- package/src/boot/profilerApi.ts +82 -0
- package/src/boot/recorderApi.ts +113 -0
- package/src/boot/startRecording.ts +70 -0
- package/src/domain/deflate/deflateEncoder.ts +144 -0
- package/src/domain/deflate/deflateWorker.ts +152 -0
- package/src/domain/deflate/index.ts +9 -0
- package/src/domain/getSessionReplayLink.ts +40 -0
- package/src/domain/profiling/actionHistory.ts +65 -0
- package/src/domain/profiling/longTaskHistory.ts +40 -0
- package/src/domain/profiling/profiler.ts +366 -0
- package/src/domain/profiling/profilingContext.ts +39 -0
- package/src/domain/profiling/profilingSupported.ts +10 -0
- package/src/domain/profiling/test-utils/mockedTrace.ts +58 -0
- package/src/domain/profiling/transport/assembly.ts +63 -0
- package/src/domain/profiling/transport/buildProfileEventAttributes.ts +106 -0
- package/src/domain/profiling/types/index.ts +2 -0
- package/src/domain/profiling/types/profilerApi.types.ts +87 -0
- package/src/domain/profiling/types/rumProfiler.types.ts +62 -0
- package/src/domain/profiling/utils/getCustomOrDefaultViewName.ts +4 -0
- package/src/domain/profiling/utils/getDefaultViewName.ts +12 -0
- package/src/domain/profiling/utils/getNumberOfSamples.ts +17 -0
- package/src/domain/profiling/vitalHistory.ts +58 -0
- package/src/domain/record/assembly.ts +19 -0
- package/src/domain/record/elementsScrollPositions.ts +28 -0
- package/src/domain/record/eventsUtils.ts +12 -0
- package/src/domain/record/index.ts +12 -0
- package/src/domain/record/internalApi.ts +84 -0
- package/src/domain/record/itemIds.ts +97 -0
- package/src/domain/record/mutationBatch.ts +47 -0
- package/src/domain/record/record.ts +90 -0
- package/src/domain/record/record.types.ts +22 -0
- package/src/domain/record/recordingScope.ts +58 -0
- package/src/domain/record/serialization/changeEncoder.ts +89 -0
- package/src/domain/record/serialization/conversions/changeConverter.ts +277 -0
- package/src/domain/record/serialization/conversions/changeDecoder.ts +192 -0
- package/src/domain/record/serialization/conversions/index.ts +7 -0
- package/src/domain/record/serialization/conversions/mutationLog.ts +56 -0
- package/src/domain/record/serialization/conversions/nodeIdRemapper.ts +69 -0
- package/src/domain/record/serialization/conversions/renderOptions.ts +14 -0
- package/src/domain/record/serialization/conversions/stringTable.ts +25 -0
- package/src/domain/record/serialization/conversions/vDocument.ts +239 -0
- package/src/domain/record/serialization/conversions/vNode.ts +417 -0
- package/src/domain/record/serialization/conversions/vStyleSheet.ts +47 -0
- package/src/domain/record/serialization/experimentalFeatures.ts +15 -0
- package/src/domain/record/serialization/index.ts +21 -0
- package/src/domain/record/serialization/insertionCursor.ts +131 -0
- package/src/domain/record/serialization/serialization.types.ts +38 -0
- package/src/domain/record/serialization/serializationStats.ts +43 -0
- package/src/domain/record/serialization/serializationTransaction.ts +255 -0
- package/src/domain/record/serialization/serializationUtils.ts +103 -0
- package/src/domain/record/serialization/serializeAttribute.ts +55 -0
- package/src/domain/record/serialization/serializeAttributes.ts +194 -0
- package/src/domain/record/serialization/serializeFullSnapshot.ts +46 -0
- package/src/domain/record/serialization/serializeFullSnapshotAsChange.ts +33 -0
- package/src/domain/record/serialization/serializeMutations.ts +395 -0
- package/src/domain/record/serialization/serializeMutationsAsChange.ts +298 -0
- package/src/domain/record/serialization/serializeNode.ts +229 -0
- package/src/domain/record/serialization/serializeNodeAsChange.ts +237 -0
- package/src/domain/record/serialization/serializeStyleSheets.ts +36 -0
- package/src/domain/record/serializationVerifier.ts +208 -0
- package/src/domain/record/shadowRootsController.ts +62 -0
- package/src/domain/record/startFullSnapshots.ts +92 -0
- package/src/domain/record/trackers/index.ts +12 -0
- package/src/domain/record/trackers/trackFocus.ts +16 -0
- package/src/domain/record/trackers/trackFrustration.ts +39 -0
- package/src/domain/record/trackers/trackInput.ts +128 -0
- package/src/domain/record/trackers/trackMediaInteraction.ts +43 -0
- package/src/domain/record/trackers/trackMouseInteraction.ts +74 -0
- package/src/domain/record/trackers/trackMove.ts +78 -0
- package/src/domain/record/trackers/trackMutation.ts +74 -0
- package/src/domain/record/trackers/trackScroll.ts +61 -0
- package/src/domain/record/trackers/trackStyleSheet.ts +117 -0
- package/src/domain/record/trackers/trackViewEnd.ts +27 -0
- package/src/domain/record/trackers/trackViewportResize.ts +69 -0
- package/src/domain/record/trackers/tracker.types.ts +3 -0
- package/src/domain/record/viewports.ts +68 -0
- package/src/domain/replayStats.ts +61 -0
- package/src/domain/scriptLoadingError.ts +36 -0
- package/src/domain/segmentCollection/buildReplayPayload.ts +52 -0
- package/src/domain/segmentCollection/index.ts +4 -0
- package/src/domain/segmentCollection/segment.ts +79 -0
- package/src/domain/segmentCollection/segmentCollection.ts +200 -0
- package/src/domain/segmentCollection/startSegmentTelemetry.ts +91 -0
- package/src/domain/startRecordBridge.ts +17 -0
- package/src/domain/startRecorderInitTelemetry.ts +90 -0
- package/src/entries/internal.ts +18 -0
- package/src/entries/internalSynthetics.ts +24 -0
- package/src/entries/main.ts +96 -0
- package/src/types/index.ts +3 -0
- package/src/types/profiling.ts +298 -0
- package/src/types/sessionReplay.ts +990 -0
- package/src/types/sessionReplayConstants.ts +130 -0
|
@@ -0,0 +1,934 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT MODIFY IT BY HAND. Run `yarn json-schemas:sync` instead.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Browser-specific. Schema of a Session Replay data Segment.
|
|
6
|
+
*/
|
|
7
|
+
export type BrowserSegment = BrowserSegmentMetadata & {
|
|
8
|
+
/**
|
|
9
|
+
* The records contained by this Segment.
|
|
10
|
+
*/
|
|
11
|
+
readonly records: BrowserRecord[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Browser-specific. Schema of a Session Replay Segment metadata.
|
|
15
|
+
*/
|
|
16
|
+
export type BrowserSegmentMetadata = SegmentContext & CommonSegmentMetadataSchema & {
|
|
17
|
+
/**
|
|
18
|
+
* The source of this record
|
|
19
|
+
*/
|
|
20
|
+
source: 'browser';
|
|
21
|
+
creation_reason: CreationReason;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The reason this Segment was created. For mobile there is only one possible value for this, which is always the default value.
|
|
25
|
+
*/
|
|
26
|
+
export type CreationReason = 'init' | 'segment_duration_limit' | 'segment_bytes_limit' | 'view_change' | 'before_unload' | 'visibility_hidden' | 'page_frozen';
|
|
27
|
+
/**
|
|
28
|
+
* Browser-specific. Schema of a Session Replay Record.
|
|
29
|
+
*/
|
|
30
|
+
export type BrowserRecord = BrowserFullSnapshotRecord | BrowserIncrementalSnapshotRecord | MetaRecord | FocusRecord | ViewEndRecord | VisualViewportRecord | FrustrationRecord | BrowserChangeRecord;
|
|
31
|
+
/**
|
|
32
|
+
* Browser-specific. Schema of a Record type which contains the full snapshot of a screen.
|
|
33
|
+
*/
|
|
34
|
+
export type BrowserFullSnapshotRecord = SlotSupportedCommonRecordSchema & {
|
|
35
|
+
/**
|
|
36
|
+
* The type of this Record.
|
|
37
|
+
*/
|
|
38
|
+
readonly type: 2;
|
|
39
|
+
data: BrowserNode;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Schema of common properties for a Record event type that is supported by slots.
|
|
43
|
+
*/
|
|
44
|
+
export type SlotSupportedCommonRecordSchema = CommonRecordSchema & {
|
|
45
|
+
/**
|
|
46
|
+
* Unique ID of the slot that generated this record.
|
|
47
|
+
*/
|
|
48
|
+
readonly slotId?: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Serialized node contained by this Record.
|
|
52
|
+
*/
|
|
53
|
+
export type SerializedNodeWithId = {
|
|
54
|
+
id: number;
|
|
55
|
+
} & SerializedNode;
|
|
56
|
+
/**
|
|
57
|
+
* Serialized node contained by this Record.
|
|
58
|
+
*/
|
|
59
|
+
export type SerializedNode = DocumentNode | DocumentFragmentNode | DocumentTypeNode | ElementNode | TextNode | CDataNode;
|
|
60
|
+
/**
|
|
61
|
+
* Browser-specific. Schema of a Record type which contains mutations of a screen.
|
|
62
|
+
*/
|
|
63
|
+
export type BrowserIncrementalSnapshotRecord = SlotSupportedCommonRecordSchema & {
|
|
64
|
+
/**
|
|
65
|
+
* The type of this Record.
|
|
66
|
+
*/
|
|
67
|
+
readonly type: 3;
|
|
68
|
+
data: BrowserIncrementalData;
|
|
69
|
+
id?: number;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Browser-specific. Schema of a Session Replay IncrementalData type.
|
|
73
|
+
*/
|
|
74
|
+
export type BrowserIncrementalData = BrowserMutationData | MousemoveData | MouseInteractionData | ScrollData | InputData | MediaInteractionData | StyleSheetRuleData | ViewportResizeData | PointerInteractionData;
|
|
75
|
+
/**
|
|
76
|
+
* Browser-specific. Schema of a MutationData.
|
|
77
|
+
*/
|
|
78
|
+
export type BrowserMutationData = {
|
|
79
|
+
/**
|
|
80
|
+
* The source of this type of incremental data.
|
|
81
|
+
*/
|
|
82
|
+
readonly source: 0;
|
|
83
|
+
} & BrowserMutationPayload;
|
|
84
|
+
/**
|
|
85
|
+
* Browser-specific. Schema of a MutationPayload.
|
|
86
|
+
*/
|
|
87
|
+
export type BrowserMutationPayload = {
|
|
88
|
+
/**
|
|
89
|
+
* Contains the newly added nodes.
|
|
90
|
+
*/
|
|
91
|
+
adds: AddedNodeMutation[];
|
|
92
|
+
/**
|
|
93
|
+
* Contains the removed nodes.
|
|
94
|
+
*/
|
|
95
|
+
removes: RemovedNodeMutation[];
|
|
96
|
+
/**
|
|
97
|
+
* Contains the updated attribute mutations.
|
|
98
|
+
*/
|
|
99
|
+
attributes: AttributeMutation[];
|
|
100
|
+
/**
|
|
101
|
+
* Contains the updated text mutations.
|
|
102
|
+
*/
|
|
103
|
+
texts: TextMutation[];
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Browser-specific. Schema of a MouseInteractionData.
|
|
107
|
+
*/
|
|
108
|
+
export type MouseInteractionData = {
|
|
109
|
+
/**
|
|
110
|
+
* The source of this type of incremental data.
|
|
111
|
+
*/
|
|
112
|
+
readonly source: 2;
|
|
113
|
+
} & MouseInteraction;
|
|
114
|
+
/**
|
|
115
|
+
* Browser-specific. Schema of a MouseInteraction.
|
|
116
|
+
*/
|
|
117
|
+
export type MouseInteraction = {
|
|
118
|
+
/**
|
|
119
|
+
* The type of MouseInteraction: 0=mouseup, 1=mousedown, 2=click, 3=contextmenu, 4=dblclick, 7=touchstart, 9=touchend
|
|
120
|
+
*/
|
|
121
|
+
readonly type: 0 | 1 | 2 | 3 | 4 | 7 | 9;
|
|
122
|
+
/**
|
|
123
|
+
* Id for the target node for this MouseInteraction.
|
|
124
|
+
*/
|
|
125
|
+
id: number;
|
|
126
|
+
/**
|
|
127
|
+
* X-axis coordinate for this MouseInteraction.
|
|
128
|
+
*/
|
|
129
|
+
x: number;
|
|
130
|
+
/**
|
|
131
|
+
* Y-axis coordinate for this MouseInteraction.
|
|
132
|
+
*/
|
|
133
|
+
y: number;
|
|
134
|
+
} | {
|
|
135
|
+
/**
|
|
136
|
+
* The type of MouseInteraction: 5=focus, 6=blur
|
|
137
|
+
*/
|
|
138
|
+
readonly type: 5 | 6;
|
|
139
|
+
/**
|
|
140
|
+
* Id for the target node for this MouseInteraction.
|
|
141
|
+
*/
|
|
142
|
+
id: number;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Browser-specific. Schema of a ScrollData.
|
|
146
|
+
*/
|
|
147
|
+
export type ScrollData = {
|
|
148
|
+
/**
|
|
149
|
+
* The source of this type of incremental data.
|
|
150
|
+
*/
|
|
151
|
+
readonly source: 3;
|
|
152
|
+
} & ScrollPosition;
|
|
153
|
+
/**
|
|
154
|
+
* Browser-specific. Schema of an InputData.
|
|
155
|
+
*/
|
|
156
|
+
export type InputData = {
|
|
157
|
+
/**
|
|
158
|
+
* The source of this type of incremental data.
|
|
159
|
+
*/
|
|
160
|
+
readonly source: 5;
|
|
161
|
+
/**
|
|
162
|
+
* Id for the target node for this InputData.
|
|
163
|
+
*/
|
|
164
|
+
id: number;
|
|
165
|
+
} & InputState;
|
|
166
|
+
/**
|
|
167
|
+
* Browser-specific. Schema of an InputState.
|
|
168
|
+
*/
|
|
169
|
+
export type InputState = {
|
|
170
|
+
/**
|
|
171
|
+
* Text value for this InputState.
|
|
172
|
+
*/
|
|
173
|
+
text: string;
|
|
174
|
+
} | {
|
|
175
|
+
/**
|
|
176
|
+
* Checked state for this InputState.
|
|
177
|
+
*/
|
|
178
|
+
isChecked: boolean;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Browser-specific. Schema of a MediaInteractionData.
|
|
182
|
+
*/
|
|
183
|
+
export type MediaInteractionData = {
|
|
184
|
+
/**
|
|
185
|
+
* The source of this type of incremental data.
|
|
186
|
+
*/
|
|
187
|
+
readonly source: 7;
|
|
188
|
+
} & MediaInteraction;
|
|
189
|
+
/**
|
|
190
|
+
* Browser-specific. Schema of a StyleSheetRuleData.
|
|
191
|
+
*/
|
|
192
|
+
export type StyleSheetRuleData = {
|
|
193
|
+
/**
|
|
194
|
+
* The source of this type of incremental data.
|
|
195
|
+
*/
|
|
196
|
+
readonly source: 8;
|
|
197
|
+
} & StyleSheetRule;
|
|
198
|
+
/**
|
|
199
|
+
* Schema of a ViewportResizeData.
|
|
200
|
+
*/
|
|
201
|
+
export type ViewportResizeData = {
|
|
202
|
+
/**
|
|
203
|
+
* The source of this type of incremental data.
|
|
204
|
+
*/
|
|
205
|
+
readonly source: 4;
|
|
206
|
+
} & ViewportResizeDimension;
|
|
207
|
+
/**
|
|
208
|
+
* Schema of a PointerInteractionData.
|
|
209
|
+
*/
|
|
210
|
+
export type PointerInteractionData = {
|
|
211
|
+
/**
|
|
212
|
+
* The source of this type of incremental data.
|
|
213
|
+
*/
|
|
214
|
+
readonly source: 9;
|
|
215
|
+
} & PointerInteraction;
|
|
216
|
+
/**
|
|
217
|
+
* Schema of a Record which contains the screen properties.
|
|
218
|
+
*/
|
|
219
|
+
export type MetaRecord = SlotSupportedCommonRecordSchema & {
|
|
220
|
+
/**
|
|
221
|
+
* The type of this Record.
|
|
222
|
+
*/
|
|
223
|
+
readonly type: 4;
|
|
224
|
+
/**
|
|
225
|
+
* The data contained by this record.
|
|
226
|
+
*/
|
|
227
|
+
data: {
|
|
228
|
+
/**
|
|
229
|
+
* The width of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the normalized width is the current width divided by 2.
|
|
230
|
+
*/
|
|
231
|
+
width: number;
|
|
232
|
+
/**
|
|
233
|
+
* The height of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the normalized height is the current height divided by 2.
|
|
234
|
+
*/
|
|
235
|
+
height: number;
|
|
236
|
+
/**
|
|
237
|
+
* Browser-specific. URL of the view described by this record.
|
|
238
|
+
*/
|
|
239
|
+
href?: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Schema of a Record type which contains focus information.
|
|
244
|
+
*/
|
|
245
|
+
export type FocusRecord = SlotSupportedCommonRecordSchema & {
|
|
246
|
+
/**
|
|
247
|
+
* The type of this Record.
|
|
248
|
+
*/
|
|
249
|
+
readonly type: 6;
|
|
250
|
+
data: {
|
|
251
|
+
/**
|
|
252
|
+
* Whether this screen has a focus or not. For now it will always be true for mobile.
|
|
253
|
+
*/
|
|
254
|
+
readonly has_focus: boolean;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Schema of a Record which signifies that view lifecycle ended.
|
|
259
|
+
*/
|
|
260
|
+
export type ViewEndRecord = SlotSupportedCommonRecordSchema & {
|
|
261
|
+
/**
|
|
262
|
+
* The type of this Record.
|
|
263
|
+
*/
|
|
264
|
+
readonly type: 7;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Schema of a Record which signifies that the viewport properties have changed.
|
|
268
|
+
*/
|
|
269
|
+
export type VisualViewportRecord = SlotSupportedCommonRecordSchema & {
|
|
270
|
+
data: {
|
|
271
|
+
height: number;
|
|
272
|
+
offsetLeft: number;
|
|
273
|
+
offsetTop: number;
|
|
274
|
+
pageLeft: number;
|
|
275
|
+
pageTop: number;
|
|
276
|
+
scale: number;
|
|
277
|
+
width: number;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* The type of this Record.
|
|
281
|
+
*/
|
|
282
|
+
readonly type: 8;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Schema of a Record which signifies a collection of frustration signals.
|
|
286
|
+
*/
|
|
287
|
+
export type FrustrationRecord = SlotSupportedCommonRecordSchema & {
|
|
288
|
+
/**
|
|
289
|
+
* The type of this Record.
|
|
290
|
+
*/
|
|
291
|
+
readonly type: 9;
|
|
292
|
+
/**
|
|
293
|
+
* Schema of a Session Replay FrustrationRecord data structure type.
|
|
294
|
+
*/
|
|
295
|
+
data: {
|
|
296
|
+
/**
|
|
297
|
+
* Collection of frustration signal types.
|
|
298
|
+
*/
|
|
299
|
+
frustrationTypes: ('rage_click' | 'error_click' | 'dead_click')[];
|
|
300
|
+
/**
|
|
301
|
+
* Collection of frustration signal event IDs.
|
|
302
|
+
*/
|
|
303
|
+
recordIds: number[];
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* Browser-specific. Schema of a record type which represents changes using a compact encoding. (Experimental; subject to change.)
|
|
308
|
+
*/
|
|
309
|
+
export type BrowserChangeRecord = SlotSupportedCommonRecordSchema & {
|
|
310
|
+
/**
|
|
311
|
+
* The type of this Record.
|
|
312
|
+
*/
|
|
313
|
+
readonly type: 12;
|
|
314
|
+
data: Change[];
|
|
315
|
+
id?: number;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Browser-specific. Schema representing an individual change within a BrowserChangeData collection.
|
|
319
|
+
*/
|
|
320
|
+
export type Change = [0, ...AddStringChange[]] | [1, ...AddNodeChange[]] | [2, ...RemoveNodeChange[]] | [3, ...AttributeChange[]] | [4, ...TextChange[]] | [5, ...SizeChange[]] | [6, ...ScrollPositionChange[]] | [7, ...AddStyleSheetChange[]] | [8, ...AttachedStyleSheetsChange[]] | [9, ...MediaPlaybackStateChange[]] | [10, ...VisualViewportChange[]];
|
|
321
|
+
/**
|
|
322
|
+
* Browser-specific. Schema representing the addition of a string to the string table.
|
|
323
|
+
*/
|
|
324
|
+
export type AddStringChange = string;
|
|
325
|
+
/**
|
|
326
|
+
* Browser-specific. Schema representing the addition of a new node to the document.
|
|
327
|
+
*/
|
|
328
|
+
export type AddNodeChange = AddCDataSectionNodeChange | AddDocTypeNodeChange | AddDocumentNodeChange | AddDocumentFragmentNodeChange | AddElementNodeChange | AddShadowRootNodeChange | AddTextNodeChange;
|
|
329
|
+
/**
|
|
330
|
+
* Schema representing the addition of a new #cdata-section node.
|
|
331
|
+
*
|
|
332
|
+
* @minItems 2
|
|
333
|
+
*/
|
|
334
|
+
export type AddCDataSectionNodeChange = [InsertionPoint, '#cdata-section' | StringReference];
|
|
335
|
+
/**
|
|
336
|
+
* Browser-specific. Schema representing the insertion point of a node which is being added to the document.
|
|
337
|
+
*/
|
|
338
|
+
export type InsertionPoint = AppendChildInsertionPoint | InsertAfterPreviousInsertionPoint | InsertBeforeInsertionPoint | RootInsertionPoint;
|
|
339
|
+
/**
|
|
340
|
+
* A positive integer insertion point. Inserting a node at positive integer N indicates that the new node's parent is the node with an id N lower than the new node, and that we should insert the new node at the end of its parent's child list, as if the DOM method appendChild() was being used.
|
|
341
|
+
*/
|
|
342
|
+
export type AppendChildInsertionPoint = number;
|
|
343
|
+
/**
|
|
344
|
+
* A zero insertion point. Inserting a node at zero indicates that the new node should be inserted after the node with an id one lower than the new node, as if the DOM method after() is being used. Using a zero insertion point repeatedly is thus a quick way to insert a sequence of sibling elements.
|
|
345
|
+
*/
|
|
346
|
+
export type InsertAfterPreviousInsertionPoint = 0;
|
|
347
|
+
/**
|
|
348
|
+
* A negative integer insertion point. Inserting a node at negative integer -N indicates that the new node's next sibling is the node with an id N lower than the new node, and that we should insert the new node before its next sibling, as if the DOM method insertBefore() was being used.
|
|
349
|
+
*/
|
|
350
|
+
export type InsertBeforeInsertionPoint = number;
|
|
351
|
+
/**
|
|
352
|
+
* A null insertion point, indicating that the node should be inserted at the root of the document.
|
|
353
|
+
*/
|
|
354
|
+
export type RootInsertionPoint = null;
|
|
355
|
+
/**
|
|
356
|
+
* Browser-specific. Schema representing a string, expressed as an index into the string table.
|
|
357
|
+
*/
|
|
358
|
+
export type StringReference = number;
|
|
359
|
+
/**
|
|
360
|
+
* Schema representing the addition of a new #doctype node, using the format [#doctype, name, public ID, system ID].
|
|
361
|
+
*
|
|
362
|
+
* @minItems 5
|
|
363
|
+
*/
|
|
364
|
+
export type AddDocTypeNodeChange = [
|
|
365
|
+
InsertionPoint,
|
|
366
|
+
'#doctype' | StringReference,
|
|
367
|
+
StringOrStringReference,
|
|
368
|
+
StringOrStringReference,
|
|
369
|
+
StringOrStringReference
|
|
370
|
+
];
|
|
371
|
+
/**
|
|
372
|
+
* Browser-specific. Schema representing a string, either expressed as a literal or as an index into the string table.
|
|
373
|
+
*/
|
|
374
|
+
export type StringOrStringReference = string | StringReference;
|
|
375
|
+
/**
|
|
376
|
+
* Schema representing the addition of a new #document node.
|
|
377
|
+
*
|
|
378
|
+
* @minItems 2
|
|
379
|
+
*/
|
|
380
|
+
export type AddDocumentNodeChange = [InsertionPoint, '#document' | StringReference];
|
|
381
|
+
/**
|
|
382
|
+
* Schema representing the addition of a new #document-fragment node.
|
|
383
|
+
*
|
|
384
|
+
* @minItems 2
|
|
385
|
+
*/
|
|
386
|
+
export type AddDocumentFragmentNodeChange = [InsertionPoint, '#document-fragment' | StringReference];
|
|
387
|
+
/**
|
|
388
|
+
* Schema representing the addition of a new element node.
|
|
389
|
+
*
|
|
390
|
+
* @minItems 2
|
|
391
|
+
*/
|
|
392
|
+
export type AddElementNodeChange = [InsertionPoint, string | StringReference, ...AttributeAssignment[]];
|
|
393
|
+
/**
|
|
394
|
+
* Schema representing an assignment of a value to an attribute. The format is [name, value].
|
|
395
|
+
*
|
|
396
|
+
* @minItems 2
|
|
397
|
+
*/
|
|
398
|
+
export type AttributeAssignment = [StringOrStringReference, StringOrStringReference];
|
|
399
|
+
/**
|
|
400
|
+
* Schema representing the addition of a new #shadow-root node.
|
|
401
|
+
*
|
|
402
|
+
* @minItems 2
|
|
403
|
+
*/
|
|
404
|
+
export type AddShadowRootNodeChange = [InsertionPoint, '#shadow-root' | StringReference];
|
|
405
|
+
/**
|
|
406
|
+
* Schema representing the addition of a new #text node.
|
|
407
|
+
*
|
|
408
|
+
* @minItems 3
|
|
409
|
+
*/
|
|
410
|
+
export type AddTextNodeChange = [InsertionPoint, '#text' | StringReference, StringOrStringReference];
|
|
411
|
+
/**
|
|
412
|
+
* Browser-specific. Schema representing the removal of a node from the document.
|
|
413
|
+
*/
|
|
414
|
+
export type RemoveNodeChange = number;
|
|
415
|
+
/**
|
|
416
|
+
* Browser-specific. Schema representing a change to an node's attributes.
|
|
417
|
+
*
|
|
418
|
+
* @minItems 1
|
|
419
|
+
*/
|
|
420
|
+
export type AttributeChange = [NodeId, ...AttributeAssignmentOrDeletion[]];
|
|
421
|
+
/**
|
|
422
|
+
* Browser-specific. Schema representing the ID of a DOM node.
|
|
423
|
+
*/
|
|
424
|
+
export type NodeId = number;
|
|
425
|
+
/**
|
|
426
|
+
* Schema representing a change to an attribute, either by assignment of a new value or by deletion of the attribute.
|
|
427
|
+
*/
|
|
428
|
+
export type AttributeAssignmentOrDeletion = AttributeAssignment | AttributeDeletion;
|
|
429
|
+
/**
|
|
430
|
+
* Schema representing the deletion of an attribute.
|
|
431
|
+
*
|
|
432
|
+
* @minItems 1
|
|
433
|
+
*/
|
|
434
|
+
export type AttributeDeletion = [StringOrStringReference];
|
|
435
|
+
/**
|
|
436
|
+
* Browser-specific. Schema representing a change to the text content of a #text node.
|
|
437
|
+
*
|
|
438
|
+
* @minItems 2
|
|
439
|
+
*/
|
|
440
|
+
export type TextChange = [NodeId, StringOrStringReference];
|
|
441
|
+
/**
|
|
442
|
+
* Browser-specific. Schema representing a change in an element's size.
|
|
443
|
+
*
|
|
444
|
+
* @minItems 3
|
|
445
|
+
*/
|
|
446
|
+
export type SizeChange = [NodeId, number, number];
|
|
447
|
+
/**
|
|
448
|
+
* Browser-specific. Schema representing a scroll position change.
|
|
449
|
+
*
|
|
450
|
+
* @minItems 3
|
|
451
|
+
*/
|
|
452
|
+
export type ScrollPositionChange = [NodeId, number, number];
|
|
453
|
+
/**
|
|
454
|
+
* Browser-specific. Schema representing the addition of a new stylesheet to the document.
|
|
455
|
+
*/
|
|
456
|
+
export type AddStyleSheetChange = StyleSheetSnapshot;
|
|
457
|
+
/**
|
|
458
|
+
* Schema representing a snapshot of a CSS stylesheet.
|
|
459
|
+
*
|
|
460
|
+
* @minItems 1
|
|
461
|
+
*/
|
|
462
|
+
export type StyleSheetSnapshot = [StyleSheetRules] | [StyleSheetRules, StyleSheetMediaList] | [StyleSheetRules, StyleSheetMediaList, boolean];
|
|
463
|
+
/**
|
|
464
|
+
* Schema representing a CSS stylesheet's rules, encoded either as a single string or as an array containing a separate string for each rule.
|
|
465
|
+
*/
|
|
466
|
+
export type StyleSheetRules = StringOrStringReference | StringOrStringReference[];
|
|
467
|
+
/**
|
|
468
|
+
* If non-empty, the list of medias for which this stylesheet is active. Defaults to the empty list if not present.
|
|
469
|
+
*/
|
|
470
|
+
export type StyleSheetMediaList = StringOrStringReference[];
|
|
471
|
+
/**
|
|
472
|
+
* Browser-specific. Schema representing a change to the stylesheets attached to a DOM node. For <link> or <style> elements, which use classic CSSOM APIs, at most one stylesheet can be attached. For #document, #document-fragment, or #shadow-root nodes, which use the `adoptedStyleSheets` API, any number of stylesheets can be attached.
|
|
473
|
+
*
|
|
474
|
+
* @minItems 1
|
|
475
|
+
*/
|
|
476
|
+
export type AttachedStyleSheetsChange = [NodeId, ...StyleSheetId[]];
|
|
477
|
+
/**
|
|
478
|
+
* Browser-specific. Schema representing the ID of a stylesheet.
|
|
479
|
+
*/
|
|
480
|
+
export type StyleSheetId = number;
|
|
481
|
+
/**
|
|
482
|
+
* Browser-specific. Schema representing a change to the playback state of the media associated with an <audio> or <video> element.
|
|
483
|
+
*
|
|
484
|
+
* @minItems 2
|
|
485
|
+
*/
|
|
486
|
+
export type MediaPlaybackStateChange = [NodeId, PlaybackStatePlaying | PlaybackStatePaused];
|
|
487
|
+
/**
|
|
488
|
+
* A playback state indicating that the associated media is playing.
|
|
489
|
+
*/
|
|
490
|
+
export type PlaybackStatePlaying = 0;
|
|
491
|
+
/**
|
|
492
|
+
* A playback state indicating that the associated media is paused.
|
|
493
|
+
*/
|
|
494
|
+
export type PlaybackStatePaused = 1;
|
|
495
|
+
/**
|
|
496
|
+
* Browser-specific. Schema representing a change to the visual viewport, defined in terms of the web platform VisualViewport API.
|
|
497
|
+
*
|
|
498
|
+
* @minItems 7
|
|
499
|
+
*/
|
|
500
|
+
export type VisualViewportChange = [
|
|
501
|
+
VisualViewportOffsetLeft,
|
|
502
|
+
VisualViewportOffsetTop,
|
|
503
|
+
VisualViewportPageLeft,
|
|
504
|
+
VisualViewportPageTop,
|
|
505
|
+
VisualViewportWidth,
|
|
506
|
+
VisualViewportHeight,
|
|
507
|
+
VisualViewportScale
|
|
508
|
+
];
|
|
509
|
+
/**
|
|
510
|
+
* The offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels.
|
|
511
|
+
*/
|
|
512
|
+
export type VisualViewportOffsetLeft = number;
|
|
513
|
+
/**
|
|
514
|
+
* The offset of the top edge of the visual viewport from the top edge of the layout viewport in CSS pixels.
|
|
515
|
+
*/
|
|
516
|
+
export type VisualViewportOffsetTop = number;
|
|
517
|
+
/**
|
|
518
|
+
* The x coordinate of the visual viewport relative to the initial containing block origin of the top edge in CSS pixels.
|
|
519
|
+
*/
|
|
520
|
+
export type VisualViewportPageLeft = number;
|
|
521
|
+
/**
|
|
522
|
+
* The y coordinate of the visual viewport relative to the initial containing block origin of the top edge in CSS pixels.
|
|
523
|
+
*/
|
|
524
|
+
export type VisualViewportPageTop = number;
|
|
525
|
+
/**
|
|
526
|
+
* The width of the visual viewport in CSS pixels.
|
|
527
|
+
*/
|
|
528
|
+
export type VisualViewportWidth = number;
|
|
529
|
+
/**
|
|
530
|
+
* The height of the visual viewport in CSS pixels.
|
|
531
|
+
*/
|
|
532
|
+
export type VisualViewportHeight = number;
|
|
533
|
+
/**
|
|
534
|
+
* The pinch-zoom scaling factor applied to the visual viewport.
|
|
535
|
+
*/
|
|
536
|
+
export type VisualViewportScale = number;
|
|
537
|
+
/**
|
|
538
|
+
* Schema of a Session Replay Segment context.
|
|
539
|
+
*/
|
|
540
|
+
export interface SegmentContext {
|
|
541
|
+
/**
|
|
542
|
+
* Application properties
|
|
543
|
+
*/
|
|
544
|
+
application: {
|
|
545
|
+
/**
|
|
546
|
+
* UUID of the application
|
|
547
|
+
*/
|
|
548
|
+
id: string;
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* Session properties
|
|
552
|
+
*/
|
|
553
|
+
session: {
|
|
554
|
+
/**
|
|
555
|
+
* UUID of the session
|
|
556
|
+
*/
|
|
557
|
+
id: string;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* View properties
|
|
561
|
+
*/
|
|
562
|
+
view: {
|
|
563
|
+
/**
|
|
564
|
+
* UUID of the view
|
|
565
|
+
*/
|
|
566
|
+
id: string;
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Schema of common properties for a Segment Metadata type.
|
|
571
|
+
*/
|
|
572
|
+
export interface CommonSegmentMetadataSchema {
|
|
573
|
+
/**
|
|
574
|
+
* The start UTC timestamp in milliseconds corresponding to the first record in the Segment data. Each timestamp is computed as the UTC interval since 00:00:00.000 01.01.1970.
|
|
575
|
+
*/
|
|
576
|
+
start: number;
|
|
577
|
+
/**
|
|
578
|
+
* The end UTC timestamp in milliseconds corresponding to the last record in the Segment data. Each timestamp is computed as the UTC interval since 00:00:00.000 01.01.1970.
|
|
579
|
+
*/
|
|
580
|
+
end: number;
|
|
581
|
+
/**
|
|
582
|
+
* The number of records in this Segment.
|
|
583
|
+
*/
|
|
584
|
+
records_count: number;
|
|
585
|
+
/**
|
|
586
|
+
* The index of this Segment in the segments list that was recorded for this view ID. Starts from 0.
|
|
587
|
+
*/
|
|
588
|
+
index_in_view?: number;
|
|
589
|
+
/**
|
|
590
|
+
* Whether this Segment contains a full snapshot record or not.
|
|
591
|
+
*/
|
|
592
|
+
has_full_snapshot?: boolean;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Schema of common properties for a Record event type.
|
|
596
|
+
*/
|
|
597
|
+
export interface CommonRecordSchema {
|
|
598
|
+
/**
|
|
599
|
+
* Defines the UTC time in milliseconds when this Record was performed.
|
|
600
|
+
*/
|
|
601
|
+
timestamp: number;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Schema of a Node type.
|
|
605
|
+
*/
|
|
606
|
+
export interface BrowserNode {
|
|
607
|
+
node: SerializedNodeWithId;
|
|
608
|
+
/**
|
|
609
|
+
* Initial node offset position.
|
|
610
|
+
*/
|
|
611
|
+
initialOffset: {
|
|
612
|
+
/**
|
|
613
|
+
* Top position offset for this node.
|
|
614
|
+
*/
|
|
615
|
+
top: number;
|
|
616
|
+
/**
|
|
617
|
+
* Left position offset for this node.
|
|
618
|
+
*/
|
|
619
|
+
left: number;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Schema of a Document Node.
|
|
624
|
+
*/
|
|
625
|
+
export interface DocumentNode {
|
|
626
|
+
/**
|
|
627
|
+
* The type of this Node.
|
|
628
|
+
*/
|
|
629
|
+
readonly type: 0;
|
|
630
|
+
/**
|
|
631
|
+
* Stylesheet added dynamically
|
|
632
|
+
*/
|
|
633
|
+
readonly adoptedStyleSheets?: StyleSheet[];
|
|
634
|
+
childNodes: SerializedNodeWithId[];
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* Browser-specific. Schema of a StyleSheet
|
|
638
|
+
*/
|
|
639
|
+
export interface StyleSheet {
|
|
640
|
+
/**
|
|
641
|
+
* CSS rules applied (rule.cssText)
|
|
642
|
+
*/
|
|
643
|
+
cssRules: string[];
|
|
644
|
+
/**
|
|
645
|
+
* MediaList of the stylesheet
|
|
646
|
+
*/
|
|
647
|
+
media?: string[];
|
|
648
|
+
/**
|
|
649
|
+
* Is the stylesheet disabled
|
|
650
|
+
*/
|
|
651
|
+
disabled?: boolean;
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Schema of a Document FragmentNode.
|
|
655
|
+
*/
|
|
656
|
+
export interface DocumentFragmentNode {
|
|
657
|
+
/**
|
|
658
|
+
* The type of this Node.
|
|
659
|
+
*/
|
|
660
|
+
readonly type: 11;
|
|
661
|
+
/**
|
|
662
|
+
* Stylesheet added dynamically
|
|
663
|
+
*/
|
|
664
|
+
readonly adoptedStyleSheets?: StyleSheet[];
|
|
665
|
+
/**
|
|
666
|
+
* Is this node a shadow root or not
|
|
667
|
+
*/
|
|
668
|
+
readonly isShadowRoot: boolean;
|
|
669
|
+
childNodes: SerializedNodeWithId[];
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Schema of a Document Type Node.
|
|
673
|
+
*/
|
|
674
|
+
export interface DocumentTypeNode {
|
|
675
|
+
/**
|
|
676
|
+
* The type of this Node.
|
|
677
|
+
*/
|
|
678
|
+
readonly type: 1;
|
|
679
|
+
/**
|
|
680
|
+
* Name for this DocumentType
|
|
681
|
+
*/
|
|
682
|
+
name: string;
|
|
683
|
+
/**
|
|
684
|
+
* PublicId for this DocumentType
|
|
685
|
+
*/
|
|
686
|
+
publicId: string;
|
|
687
|
+
/**
|
|
688
|
+
* SystemId for this DocumentType
|
|
689
|
+
*/
|
|
690
|
+
systemId: string;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Schema of an Element Node.
|
|
694
|
+
*/
|
|
695
|
+
export interface ElementNode {
|
|
696
|
+
/**
|
|
697
|
+
* The type of this Node.
|
|
698
|
+
*/
|
|
699
|
+
readonly type: 2;
|
|
700
|
+
/**
|
|
701
|
+
* TagName for this Node
|
|
702
|
+
*/
|
|
703
|
+
tagName: string;
|
|
704
|
+
attributes: Attributes;
|
|
705
|
+
childNodes: SerializedNodeWithId[];
|
|
706
|
+
/**
|
|
707
|
+
* Is this node a SVG instead of a HTML
|
|
708
|
+
*/
|
|
709
|
+
isSVG?: true;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Schema of an Attributes type.
|
|
713
|
+
*/
|
|
714
|
+
export interface Attributes {
|
|
715
|
+
[k: string]: string | number | boolean;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* Schema of a Text Node.
|
|
719
|
+
*/
|
|
720
|
+
export interface TextNode {
|
|
721
|
+
/**
|
|
722
|
+
* The type of this Node.
|
|
723
|
+
*/
|
|
724
|
+
readonly type: 3;
|
|
725
|
+
/**
|
|
726
|
+
* Text value for this Text Node
|
|
727
|
+
*/
|
|
728
|
+
textContent: string;
|
|
729
|
+
isStyle?: true;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Schema of a CData Node.
|
|
733
|
+
*/
|
|
734
|
+
export interface CDataNode {
|
|
735
|
+
/**
|
|
736
|
+
* The type of this Node.
|
|
737
|
+
*/
|
|
738
|
+
readonly type: 4;
|
|
739
|
+
textContent: '';
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Schema of an AddedNodeMutation.
|
|
743
|
+
*/
|
|
744
|
+
export interface AddedNodeMutation {
|
|
745
|
+
node: SerializedNodeWithId;
|
|
746
|
+
/**
|
|
747
|
+
* Id for the parent node for this AddedNodeMutation.
|
|
748
|
+
*/
|
|
749
|
+
parentId: number;
|
|
750
|
+
nextId: number | null;
|
|
751
|
+
previousId?: number | null;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Schema of a RemovedNodeMutation.
|
|
755
|
+
*/
|
|
756
|
+
export interface RemovedNodeMutation {
|
|
757
|
+
/**
|
|
758
|
+
* Id of the mutated node.
|
|
759
|
+
*/
|
|
760
|
+
id: number;
|
|
761
|
+
/**
|
|
762
|
+
* Id for the parent node for this RemovedNodeMutation
|
|
763
|
+
*/
|
|
764
|
+
parentId: number;
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Schema of an AttributeMutation.
|
|
768
|
+
*/
|
|
769
|
+
export interface AttributeMutation {
|
|
770
|
+
/**
|
|
771
|
+
* Id of the mutated node.
|
|
772
|
+
*/
|
|
773
|
+
id: number;
|
|
774
|
+
/**
|
|
775
|
+
* Attributes for this AttributeMutation
|
|
776
|
+
*/
|
|
777
|
+
attributes: {
|
|
778
|
+
[k: string]: string | null;
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Schema of a TextMutation.
|
|
783
|
+
*/
|
|
784
|
+
export interface TextMutation {
|
|
785
|
+
/**
|
|
786
|
+
* Id of the mutated node.
|
|
787
|
+
*/
|
|
788
|
+
id: number;
|
|
789
|
+
/**
|
|
790
|
+
* Value for this TextMutation
|
|
791
|
+
*/
|
|
792
|
+
value: null | string;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Browser-specific. Schema of a MousemoveData.
|
|
796
|
+
*/
|
|
797
|
+
export interface MousemoveData {
|
|
798
|
+
/**
|
|
799
|
+
* The source of this type of incremental data.
|
|
800
|
+
*/
|
|
801
|
+
readonly source: 1 | 6;
|
|
802
|
+
/**
|
|
803
|
+
* Positions reported for this MousemoveData.
|
|
804
|
+
*/
|
|
805
|
+
positions: MousePosition[];
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Browser-specific. Schema of a MousePosition.
|
|
809
|
+
*/
|
|
810
|
+
export interface MousePosition {
|
|
811
|
+
/**
|
|
812
|
+
* X-axis coordinate for this MousePosition.
|
|
813
|
+
*/
|
|
814
|
+
x: number;
|
|
815
|
+
/**
|
|
816
|
+
* Y-axis coordinate for this MousePosition.
|
|
817
|
+
*/
|
|
818
|
+
y: number;
|
|
819
|
+
/**
|
|
820
|
+
* Id for the target node for this MousePosition.
|
|
821
|
+
*/
|
|
822
|
+
id: number;
|
|
823
|
+
/**
|
|
824
|
+
* Observed time offset for this MousePosition.
|
|
825
|
+
*/
|
|
826
|
+
timeOffset: number;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Browser-specific. Schema of a ScrollPosition.
|
|
830
|
+
*/
|
|
831
|
+
export interface ScrollPosition {
|
|
832
|
+
/**
|
|
833
|
+
* Id for the target node for this ScrollPosition.
|
|
834
|
+
*/
|
|
835
|
+
id: number;
|
|
836
|
+
/**
|
|
837
|
+
* X-axis coordinate for this ScrollPosition.
|
|
838
|
+
*/
|
|
839
|
+
x: number;
|
|
840
|
+
/**
|
|
841
|
+
* Y-axis coordinate for this ScrollPosition.
|
|
842
|
+
*/
|
|
843
|
+
y: number;
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* Browser-specific. Schema of a MediaInteraction.
|
|
847
|
+
*/
|
|
848
|
+
export interface MediaInteraction {
|
|
849
|
+
/**
|
|
850
|
+
* Id for the target node for this MediaInteraction.
|
|
851
|
+
*/
|
|
852
|
+
id: number;
|
|
853
|
+
/**
|
|
854
|
+
* The type of MediaInteraction.
|
|
855
|
+
*/
|
|
856
|
+
readonly type: 0 | 1;
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Browser-specific. Schema of a StyleSheetRule.
|
|
860
|
+
*/
|
|
861
|
+
export interface StyleSheetRule {
|
|
862
|
+
/**
|
|
863
|
+
* Id of the owner node for this StyleSheetRule.
|
|
864
|
+
*/
|
|
865
|
+
readonly id: number;
|
|
866
|
+
/**
|
|
867
|
+
* Rules added to this StyleSheetRule.
|
|
868
|
+
*/
|
|
869
|
+
adds?: StyleSheetAddRule[];
|
|
870
|
+
/**
|
|
871
|
+
* Rules deleted from this StyleSheetRule.
|
|
872
|
+
*/
|
|
873
|
+
removes?: StyleSheetDeleteRule[];
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Browser-specific. Schema of a StyleSheetAddRule.
|
|
877
|
+
*/
|
|
878
|
+
export interface StyleSheetAddRule {
|
|
879
|
+
/**
|
|
880
|
+
* Text content for this StyleSheetAddRule.
|
|
881
|
+
*/
|
|
882
|
+
rule: string;
|
|
883
|
+
/**
|
|
884
|
+
* Index of this StyleSheetAddRule in its StyleSheet.
|
|
885
|
+
*/
|
|
886
|
+
index?: number | number[];
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Browser-specific. Schema of a StyleSheetDeleteRule.
|
|
890
|
+
*/
|
|
891
|
+
export interface StyleSheetDeleteRule {
|
|
892
|
+
/**
|
|
893
|
+
* Index of this StyleSheetDeleteRule in its StyleSheet.
|
|
894
|
+
*/
|
|
895
|
+
index: number | number[];
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Schema of a ViewportResizeDimension.
|
|
899
|
+
*/
|
|
900
|
+
export interface ViewportResizeDimension {
|
|
901
|
+
/**
|
|
902
|
+
* The new width of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the width is divided by 2 to get a normalized width.
|
|
903
|
+
*/
|
|
904
|
+
width: number;
|
|
905
|
+
/**
|
|
906
|
+
* The new height of the screen in pixels, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the height is divided by 2 to get a normalized height.
|
|
907
|
+
*/
|
|
908
|
+
height: number;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Schema of a PointerInteraction.
|
|
912
|
+
*/
|
|
913
|
+
export interface PointerInteraction {
|
|
914
|
+
/**
|
|
915
|
+
* Schema of an PointerEventType
|
|
916
|
+
*/
|
|
917
|
+
readonly pointerEventType: 'down' | 'up' | 'move';
|
|
918
|
+
/**
|
|
919
|
+
* Schema of an PointerType
|
|
920
|
+
*/
|
|
921
|
+
readonly pointerType: 'mouse' | 'touch' | 'pen';
|
|
922
|
+
/**
|
|
923
|
+
* Id of the pointer of this PointerInteraction.
|
|
924
|
+
*/
|
|
925
|
+
pointerId: number;
|
|
926
|
+
/**
|
|
927
|
+
* X-axis coordinate for this PointerInteraction.
|
|
928
|
+
*/
|
|
929
|
+
x: number;
|
|
930
|
+
/**
|
|
931
|
+
* Y-axis coordinate for this PointerInteraction.
|
|
932
|
+
*/
|
|
933
|
+
y: number;
|
|
934
|
+
}
|