@cloudcare/guance-front-tools 1.0.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.
Files changed (216) hide show
  1. package/.prettierignore +3 -0
  2. package/.prettierrc +6 -0
  3. package/LICENSE +21 -0
  4. package/README.md +31 -0
  5. package/cli.js +16 -0
  6. package/lib/cjs/generated/browserSessionReplay.d.ts +703 -0
  7. package/lib/cjs/generated/browserSessionReplay.js +6 -0
  8. package/lib/cjs/generated/dashboardCharts.d.ts +1372 -0
  9. package/lib/cjs/generated/dashboardCharts.js +6 -0
  10. package/lib/cjs/generated/mobileSessionReplay.d.ts +653 -0
  11. package/lib/cjs/generated/mobileSessionReplay.js +6 -0
  12. package/lib/cjs/generated/sessionReplay.d.ts +1190 -0
  13. package/lib/cjs/generated/sessionReplay.js +6 -0
  14. package/lib/cjs/src/dashboard-charts.d.ts +1 -0
  15. package/lib/cjs/src/dashboard-charts.js +17 -0
  16. package/lib/cjs/src/index.d.ts +2 -0
  17. package/lib/cjs/src/index.js +18 -0
  18. package/lib/cjs/src/session-replay-browser.d.ts +58 -0
  19. package/lib/cjs/src/session-replay-browser.js +69 -0
  20. package/lib/cjs/src/session-replay-mobile.d.ts +30 -0
  21. package/lib/cjs/src/session-replay-mobile.js +42 -0
  22. package/lib/cjs/src/session-replay.d.ts +30 -0
  23. package/lib/cjs/src/session-replay.js +49 -0
  24. package/lib/esm/generated/browserSessionReplay.d.ts +703 -0
  25. package/lib/esm/generated/browserSessionReplay.js +5 -0
  26. package/lib/esm/generated/dashboardCharts.d.ts +1372 -0
  27. package/lib/esm/generated/dashboardCharts.js +5 -0
  28. package/lib/esm/generated/mobileSessionReplay.d.ts +653 -0
  29. package/lib/esm/generated/mobileSessionReplay.js +5 -0
  30. package/lib/esm/generated/sessionReplay.d.ts +1190 -0
  31. package/lib/esm/generated/sessionReplay.js +5 -0
  32. package/lib/esm/src/dashboard-charts.d.ts +1 -0
  33. package/lib/esm/src/dashboard-charts.js +1 -0
  34. package/lib/esm/src/index.d.ts +2 -0
  35. package/lib/esm/src/index.js +2 -0
  36. package/lib/esm/src/session-replay-browser.d.ts +58 -0
  37. package/lib/esm/src/session-replay-browser.js +52 -0
  38. package/lib/esm/src/session-replay-mobile.d.ts +30 -0
  39. package/lib/esm/src/session-replay-mobile.js +25 -0
  40. package/lib/esm/src/session-replay.d.ts +30 -0
  41. package/lib/esm/src/session-replay.js +24 -0
  42. package/lib/example/grafana-dashboard.json +2205 -0
  43. package/lib/example/guance-covert-test.json +629 -0
  44. package/lib/example/guance-dashboard-1.json +672 -0
  45. package/lib/example/guance-dashboard.json +2841 -0
  46. package/lib/scripts/grafana-covert-to-guance.d.ts +1 -0
  47. package/lib/scripts/grafana-covert-to-guance.js +367 -0
  48. package/lib/scripts/grafana-covert-to-guance.ts +374 -0
  49. package/lib/scripts/grafana-dashbord.d.ts +2220 -0
  50. package/lib/scripts/grafana-dashbord.js +1 -0
  51. package/lib/scripts/grafana-dashbord.ts +2427 -0
  52. package/lib/src/dashboard-charts.ts +1 -0
  53. package/lib/src/index.ts +2 -0
  54. package/lib/src/session-replay-browser.ts +98 -0
  55. package/lib/src/session-replay-mobile.ts +54 -0
  56. package/lib/src/session-replay.ts +61 -0
  57. package/package.json +45 -0
  58. package/samples/dashboard/dashboard.json +2842 -0
  59. package/samples/dashboard/promql-dashboard.json +2175 -0
  60. package/samples/session-replay/mobile/record/full-snapshot-record.json +51 -0
  61. package/samples/session-replay/mobile/record/has-focus-record.json +7 -0
  62. package/samples/session-replay/mobile/record/incremental-snapshot-record.json +74 -0
  63. package/samples/session-replay/mobile/record/metadata-record.json +8 -0
  64. package/samples/session-replay/mobile/record/view-end-record.json +4 -0
  65. package/samples/session-replay/mobile/segment/segment.json +110 -0
  66. package/schemas/charts/chart-schema.json +73 -0
  67. package/schemas/charts/common/common-chart-types-schema.json +37 -0
  68. package/schemas/charts/common/common-vars-item-schema.json +117 -0
  69. package/schemas/charts/common/common-vars-schema.json +10 -0
  70. package/schemas/charts/dashboard-schema.json +73 -0
  71. package/schemas/charts/query/queries-schema.json +10 -0
  72. package/schemas/charts/query/query-item-schema.json +42 -0
  73. package/schemas/charts/settings/_common-settings-connect-null-schema.json +7 -0
  74. package/schemas/charts/settings/_common-settings-gradual-color-schema.json +72 -0
  75. package/schemas/charts/settings/_common-settings-groupby-schema.json +22 -0
  76. package/schemas/charts/settings/_common-settings-legend-position-schema.json +14 -0
  77. package/schemas/charts/settings/_common-settings-legend-values-schema.json +19 -0
  78. package/schemas/charts/settings/_common-settings-open-stack-schema.json +8 -0
  79. package/schemas/charts/settings/_common-settings-show-label-schema.json +8 -0
  80. package/schemas/charts/settings/_common-settings-show-line-schema.json +8 -0
  81. package/schemas/charts/settings/_common-settings-stack-content-schema.json +12 -0
  82. package/schemas/charts/settings/_common-settings-stack-type-schema.json +11 -0
  83. package/schemas/charts/settings/chart-alarm-settings-schema.json +48 -0
  84. package/schemas/charts/settings/chart-bar-settings-schema.json +69 -0
  85. package/schemas/charts/settings/chart-chinamap-settings-schema.json +102 -0
  86. package/schemas/charts/settings/chart-funnel-settings-schema.json +34 -0
  87. package/schemas/charts/settings/chart-gauge-settings-schema.json +65 -0
  88. package/schemas/charts/settings/chart-heatmap-settings-schema.json +50 -0
  89. package/schemas/charts/settings/chart-hexgon-settings-schema.json +90 -0
  90. package/schemas/charts/settings/chart-histogram-settings-schema.json +47 -0
  91. package/schemas/charts/settings/chart-iframe-settings-schema.json +24 -0
  92. package/schemas/charts/settings/chart-log-settings-schema.json +84 -0
  93. package/schemas/charts/settings/chart-object-settings-schema.json +52 -0
  94. package/schemas/charts/settings/chart-picture-settings-schema.json +46 -0
  95. package/schemas/charts/settings/chart-pie-settings-schema.json +90 -0
  96. package/schemas/charts/settings/chart-sankey-settings-schema.json +34 -0
  97. package/schemas/charts/settings/chart-scatter-bubble-settings-schema.json +31 -0
  98. package/schemas/charts/settings/chart-sequence-settings-schema.json +76 -0
  99. package/schemas/charts/settings/chart-singlestat-settings-schema.json +163 -0
  100. package/schemas/charts/settings/chart-table-settings-schema.json +184 -0
  101. package/schemas/charts/settings/chart-text-settings-schema.json +20 -0
  102. package/schemas/charts/settings/chart-toplist-settings-schema.json +117 -0
  103. package/schemas/charts/settings/chart-topology-settings-schema.json +71 -0
  104. package/schemas/charts/settings/chart-treemap-settings-schema.json +66 -0
  105. package/schemas/charts/settings/chart-worldmap-settings-schema.json +102 -0
  106. package/schemas/charts/settings/common-settings-schema.json +82 -0
  107. package/schemas/charts/settings/settings-alias-schema.json +47 -0
  108. package/schemas/charts/settings/settings-chart-type-schema.json +27 -0
  109. package/schemas/charts/settings/settings-colors-schema.json +46 -0
  110. package/schemas/charts/settings/settings-compare-schema.json +58 -0
  111. package/schemas/charts/settings/settings-fixed-time-schema.json +49 -0
  112. package/schemas/charts/settings/settings-levels-schema.json +33 -0
  113. package/schemas/charts/settings/settings-schema.json +79 -0
  114. package/schemas/charts/settings/settings-time-schema.json +47 -0
  115. package/schemas/charts/settings/settings-unit-items-schema.json +226 -0
  116. package/schemas/charts/settings/settings-units-schema.json +60 -0
  117. package/schemas/dashboard-schema.json +5 -0
  118. package/schemas/session-replay/browser/attribute-mutation-schema.json +21 -0
  119. package/schemas/session-replay/browser/attributes-schema.json +10 -0
  120. package/schemas/session-replay/browser/cdata-node-schema.json +19 -0
  121. package/schemas/session-replay/browser/creation-reason-schema.json +17 -0
  122. package/schemas/session-replay/browser/document-fragment-node-schema.json +35 -0
  123. package/schemas/session-replay/browser/document-node-schema.json +30 -0
  124. package/schemas/session-replay/browser/document-type-node-schema.json +28 -0
  125. package/schemas/session-replay/browser/element-node-schema.json +33 -0
  126. package/schemas/session-replay/browser/frustration-record-schema.json +49 -0
  127. package/schemas/session-replay/browser/full-snapshot-record-schema.json +26 -0
  128. package/schemas/session-replay/browser/incremental-data-schema.json +36 -0
  129. package/schemas/session-replay/browser/incremental-snapshot-record-schema.json +29 -0
  130. package/schemas/session-replay/browser/input-data-schema.json +27 -0
  131. package/schemas/session-replay/browser/input-state-schema.json +27 -0
  132. package/schemas/session-replay/browser/media-interaction-data-schema.json +23 -0
  133. package/schemas/session-replay/browser/media-interaction-schema.json +20 -0
  134. package/schemas/session-replay/browser/mouse-interaction-data-schema.json +23 -0
  135. package/schemas/session-replay/browser/mouse-interaction-schema.json +47 -0
  136. package/schemas/session-replay/browser/mouse-move-data-schema.json +23 -0
  137. package/schemas/session-replay/browser/mouse-position-schema.json +26 -0
  138. package/schemas/session-replay/browser/mutation-data-schema.json +23 -0
  139. package/schemas/session-replay/browser/mutation-payload-schema.json +42 -0
  140. package/schemas/session-replay/browser/node-added-mutation-schema.json +41 -0
  141. package/schemas/session-replay/browser/node-removed-mutation-schema.json +18 -0
  142. package/schemas/session-replay/browser/node-schema.json +28 -0
  143. package/schemas/session-replay/browser/record-schema.json +30 -0
  144. package/schemas/session-replay/browser/scroll-data-schema.json +23 -0
  145. package/schemas/session-replay/browser/scroll-position-schema.json +22 -0
  146. package/schemas/session-replay/browser/segment-metadata-schema.json +28 -0
  147. package/schemas/session-replay/browser/segment-schema.json +25 -0
  148. package/schemas/session-replay/browser/serialized-node-schema.json +15 -0
  149. package/schemas/session-replay/browser/serialized-node-with-id-schema.json +21 -0
  150. package/schemas/session-replay/browser/stylesheet-rule-add-schema.json +28 -0
  151. package/schemas/session-replay/browser/stylesheet-rule-data-schema.json +23 -0
  152. package/schemas/session-replay/browser/stylesheet-rule-delete-schema.json +24 -0
  153. package/schemas/session-replay/browser/stylesheet-rule-schema.json +29 -0
  154. package/schemas/session-replay/browser/stylesheet-schema.json +30 -0
  155. package/schemas/session-replay/browser/text-mutation-schema.json +27 -0
  156. package/schemas/session-replay/browser/text-node-schema.json +23 -0
  157. package/schemas/session-replay/common/_common-record-schema.json +14 -0
  158. package/schemas/session-replay/common/_common-segment-metadata-schema.json +30 -0
  159. package/schemas/session-replay/common/_slot-supported-common-record-schema.json +21 -0
  160. package/schemas/session-replay/common/focus-record-schema.json +34 -0
  161. package/schemas/session-replay/common/meta-record-schema.json +42 -0
  162. package/schemas/session-replay/common/pointer-interaction-data-schema.json +23 -0
  163. package/schemas/session-replay/common/pointer-interaction-schema.json +34 -0
  164. package/schemas/session-replay/common/segment-context-schema.json +46 -0
  165. package/schemas/session-replay/common/view-end-record-schema.json +23 -0
  166. package/schemas/session-replay/common/viewport-resize-data-schema.json +23 -0
  167. package/schemas/session-replay/common/viewport-resize-dimension-schema.json +18 -0
  168. package/schemas/session-replay/common/visual-viewport-record-schema.json +50 -0
  169. package/schemas/session-replay/full-snapshot-record-schema.json +14 -0
  170. package/schemas/session-replay/incremental-data-schema.json +14 -0
  171. package/schemas/session-replay/incremental-snapshot-record-schema.json +14 -0
  172. package/schemas/session-replay/mobile/_common-shape-wireframe-schema.json +22 -0
  173. package/schemas/session-replay/mobile/_common-shape-wireframe-update-schema.json +22 -0
  174. package/schemas/session-replay/mobile/_common-wireframe-schema.json +38 -0
  175. package/schemas/session-replay/mobile/_common-wireframe-update-schema.json +38 -0
  176. package/schemas/session-replay/mobile/full-snapshot-record-schema.json +38 -0
  177. package/schemas/session-replay/mobile/image-wireframe-schema.json +43 -0
  178. package/schemas/session-replay/mobile/image-wireframe-update-schema.json +43 -0
  179. package/schemas/session-replay/mobile/incremental-data-schema.json +21 -0
  180. package/schemas/session-replay/mobile/incremental-snapshot-record-schema.json +26 -0
  181. package/schemas/session-replay/mobile/mutation-data-schema.json +23 -0
  182. package/schemas/session-replay/mobile/mutation-payload-schema.json +55 -0
  183. package/schemas/session-replay/mobile/placeholder-wireframe-schema.json +28 -0
  184. package/schemas/session-replay/mobile/placeholder-wireframe-update-schema.json +28 -0
  185. package/schemas/session-replay/mobile/record-schema.json +27 -0
  186. package/schemas/session-replay/mobile/segment-metadata-schema.json +25 -0
  187. package/schemas/session-replay/mobile/segment-schema.json +25 -0
  188. package/schemas/session-replay/mobile/shape-border-schema.json +25 -0
  189. package/schemas/session-replay/mobile/shape-style-schema.json +29 -0
  190. package/schemas/session-replay/mobile/shape-wireframe-schema.json +23 -0
  191. package/schemas/session-replay/mobile/shape-wireframe-update-schema.json +23 -0
  192. package/schemas/session-replay/mobile/text-position-schema.json +57 -0
  193. package/schemas/session-replay/mobile/text-style-schema.json +31 -0
  194. package/schemas/session-replay/mobile/text-wireframe-schema.json +34 -0
  195. package/schemas/session-replay/mobile/text-wireframe-update-schema.json +34 -0
  196. package/schemas/session-replay/mobile/touch-data-schema.json +51 -0
  197. package/schemas/session-replay/mobile/webview-wireframe-schema.json +33 -0
  198. package/schemas/session-replay/mobile/webview-wireframe-update-schema.json +33 -0
  199. package/schemas/session-replay/mobile/wireframe-clip-schema.json +29 -0
  200. package/schemas/session-replay/mobile/wireframe-schema.json +24 -0
  201. package/schemas/session-replay/mobile/wireframe-update-mutation-schema.json +24 -0
  202. package/schemas/session-replay/mutation-data-schema.json +14 -0
  203. package/schemas/session-replay/mutation-payload-schema.json +14 -0
  204. package/schemas/session-replay/record-schema.json +14 -0
  205. package/schemas/session-replay/segment-metadata-schema.json +14 -0
  206. package/schemas/session-replay/segment-schema.json +15 -0
  207. package/schemas/session-replay-browser-schema.json +5 -0
  208. package/schemas/session-replay-mobile-schema.json +5 -0
  209. package/schemas/session-replay-schema.json +33 -0
  210. package/scripts/generate.mjs +96 -0
  211. package/scripts/utils.mjs +16 -0
  212. package/scripts/validate.mjs +144 -0
  213. package/tsconfig.cjs.json +7 -0
  214. package/tsconfig.esm.json +7 -0
  215. package/tsconfig.json +13 -0
  216. package/tsconfig.script.json +15 -0
@@ -0,0 +1,703 @@
1
+ /**
2
+ * DO NOT MODIFY IT BY HAND. Run `yarn generate` 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
+ 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;
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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ * Schema of a Session Replay Segment context.
308
+ */
309
+ export interface SegmentContext {
310
+ /**
311
+ * Application properties
312
+ */
313
+ application: {
314
+ /**
315
+ * UUID of the application
316
+ */
317
+ id: string;
318
+ };
319
+ /**
320
+ * Session properties
321
+ */
322
+ session: {
323
+ /**
324
+ * UUID of the session
325
+ */
326
+ id: string;
327
+ };
328
+ /**
329
+ * View properties
330
+ */
331
+ view: {
332
+ /**
333
+ * UUID of the view
334
+ */
335
+ id: string;
336
+ };
337
+ }
338
+ /**
339
+ * Schema of common properties for a Segment Metadata type.
340
+ */
341
+ export interface CommonSegmentMetadataSchema {
342
+ /**
343
+ * 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.
344
+ */
345
+ start: number;
346
+ /**
347
+ * 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.
348
+ */
349
+ end: number;
350
+ /**
351
+ * The number of records in this Segment.
352
+ */
353
+ records_count: number;
354
+ /**
355
+ * The index of this Segment in the segments list that was recorded for this view ID. Starts from 0.
356
+ */
357
+ index_in_view?: number;
358
+ /**
359
+ * Whether this Segment contains a full snapshot record or not.
360
+ */
361
+ has_full_snapshot?: boolean;
362
+ }
363
+ /**
364
+ * Schema of common properties for a Record event type.
365
+ */
366
+ export interface CommonRecordSchema {
367
+ /**
368
+ * Defines the UTC time in milliseconds when this Record was performed.
369
+ */
370
+ timestamp: number;
371
+ }
372
+ /**
373
+ * Schema of a Node type.
374
+ */
375
+ export interface BrowserNode {
376
+ node: SerializedNodeWithId;
377
+ /**
378
+ * Initial node offset position.
379
+ */
380
+ initialOffset: {
381
+ /**
382
+ * Top position offset for this node.
383
+ */
384
+ top: number;
385
+ /**
386
+ * Left position offset for this node.
387
+ */
388
+ left: number;
389
+ };
390
+ }
391
+ /**
392
+ * Schema of a Document Node.
393
+ */
394
+ export interface DocumentNode {
395
+ /**
396
+ * The type of this Node.
397
+ */
398
+ type: 0;
399
+ /**
400
+ * Stylesheet added dynamically
401
+ */
402
+ adoptedStyleSheets?: StyleSheet[];
403
+ childNodes: SerializedNodeWithId[];
404
+ }
405
+ /**
406
+ * Browser-specific. Schema of a StyleSheet
407
+ */
408
+ export interface StyleSheet {
409
+ /**
410
+ * CSS rules applied (rule.cssText)
411
+ */
412
+ cssRules: string[];
413
+ /**
414
+ * MediaList of the stylesheet
415
+ */
416
+ media?: string[];
417
+ /**
418
+ * Is the stylesheet disabled
419
+ */
420
+ disabled?: boolean;
421
+ }
422
+ /**
423
+ * Schema of a Document FragmentNode.
424
+ */
425
+ export interface DocumentFragmentNode {
426
+ /**
427
+ * The type of this Node.
428
+ */
429
+ type: 11;
430
+ /**
431
+ * Stylesheet added dynamically
432
+ */
433
+ adoptedStyleSheets?: StyleSheet[];
434
+ /**
435
+ * Is this node a shadow root or not
436
+ */
437
+ isShadowRoot: boolean;
438
+ childNodes: SerializedNodeWithId[];
439
+ }
440
+ /**
441
+ * Schema of a Document Type Node.
442
+ */
443
+ export interface DocumentTypeNode {
444
+ /**
445
+ * The type of this Node.
446
+ */
447
+ type: 1;
448
+ /**
449
+ * Name for this DocumentType
450
+ */
451
+ name: string;
452
+ /**
453
+ * PublicId for this DocumentType
454
+ */
455
+ publicId: string;
456
+ /**
457
+ * SystemId for this DocumentType
458
+ */
459
+ systemId: string;
460
+ }
461
+ /**
462
+ * Schema of an Element Node.
463
+ */
464
+ export interface ElementNode {
465
+ /**
466
+ * The type of this Node.
467
+ */
468
+ type: 2;
469
+ /**
470
+ * TagName for this Node
471
+ */
472
+ tagName: string;
473
+ attributes: Attributes;
474
+ childNodes: SerializedNodeWithId[];
475
+ /**
476
+ * Is this node a SVG instead of a HTML
477
+ */
478
+ isSVG?: true;
479
+ }
480
+ /**
481
+ * Schema of an Attributes type.
482
+ */
483
+ export interface Attributes {
484
+ [k: string]: string | number | boolean;
485
+ }
486
+ /**
487
+ * Schema of a Text Node.
488
+ */
489
+ export interface TextNode {
490
+ /**
491
+ * The type of this Node.
492
+ */
493
+ type: 3;
494
+ /**
495
+ * Text value for this Text Node
496
+ */
497
+ textContent: string;
498
+ isStyle?: true;
499
+ }
500
+ /**
501
+ * Schema of a CData Node.
502
+ */
503
+ export interface CDataNode {
504
+ /**
505
+ * The type of this Node.
506
+ */
507
+ type: 4;
508
+ textContent: '';
509
+ }
510
+ /**
511
+ * Schema of an AddedNodeMutation.
512
+ */
513
+ export interface AddedNodeMutation {
514
+ node: SerializedNodeWithId;
515
+ /**
516
+ * Id for the parent node for this AddedNodeMutation.
517
+ */
518
+ parentId: number;
519
+ nextId: number | null;
520
+ previousId?: number | null;
521
+ }
522
+ /**
523
+ * Schema of a RemovedNodeMutation.
524
+ */
525
+ export interface RemovedNodeMutation {
526
+ /**
527
+ * Id of the mutated node.
528
+ */
529
+ id: number;
530
+ /**
531
+ * Id for the parent node for this RemovedNodeMutation
532
+ */
533
+ parentId: number;
534
+ }
535
+ /**
536
+ * Schema of an AttributeMutation.
537
+ */
538
+ export interface AttributeMutation {
539
+ /**
540
+ * Id of the mutated node.
541
+ */
542
+ id: number;
543
+ /**
544
+ * Attributes for this AttributeMutation
545
+ */
546
+ attributes: {
547
+ [k: string]: string | null;
548
+ };
549
+ }
550
+ /**
551
+ * Schema of a TextMutation.
552
+ */
553
+ export interface TextMutation {
554
+ /**
555
+ * Id of the mutated node.
556
+ */
557
+ id: number;
558
+ /**
559
+ * Value for this TextMutation
560
+ */
561
+ value: null | string;
562
+ }
563
+ /**
564
+ * Browser-specific. Schema of a MousemoveData.
565
+ */
566
+ export interface MousemoveData {
567
+ /**
568
+ * The source of this type of incremental data.
569
+ */
570
+ source: 1 | 6;
571
+ /**
572
+ * Positions reported for this MousemoveData.
573
+ */
574
+ positions: MousePosition[];
575
+ }
576
+ /**
577
+ * Browser-specific. Schema of a MousePosition.
578
+ */
579
+ export interface MousePosition {
580
+ /**
581
+ * X-axis coordinate for this MousePosition.
582
+ */
583
+ x: number;
584
+ /**
585
+ * Y-axis coordinate for this MousePosition.
586
+ */
587
+ y: number;
588
+ /**
589
+ * Id for the target node for this MousePosition.
590
+ */
591
+ id: number;
592
+ /**
593
+ * Observed time offset for this MousePosition.
594
+ */
595
+ timeOffset: number;
596
+ }
597
+ /**
598
+ * Browser-specific. Schema of a ScrollPosition.
599
+ */
600
+ export interface ScrollPosition {
601
+ /**
602
+ * Id for the target node for this ScrollPosition.
603
+ */
604
+ id: number;
605
+ /**
606
+ * X-axis coordinate for this ScrollPosition.
607
+ */
608
+ x: number;
609
+ /**
610
+ * Y-axis coordinate for this ScrollPosition.
611
+ */
612
+ y: number;
613
+ }
614
+ /**
615
+ * Browser-specific. Schema of a MediaInteraction.
616
+ */
617
+ export interface MediaInteraction {
618
+ /**
619
+ * Id for the target node for this MediaInteraction.
620
+ */
621
+ id: number;
622
+ /**
623
+ * The type of MediaInteraction.
624
+ */
625
+ type: 0 | 1;
626
+ }
627
+ /**
628
+ * Browser-specific. Schema of a StyleSheetRule.
629
+ */
630
+ export interface StyleSheetRule {
631
+ /**
632
+ * Id of the owner node for this StyleSheetRule.
633
+ */
634
+ id: number;
635
+ /**
636
+ * Rules added to this StyleSheetRule.
637
+ */
638
+ adds?: StyleSheetAddRule[];
639
+ /**
640
+ * Rules deleted from this StyleSheetRule.
641
+ */
642
+ removes?: StyleSheetDeleteRule[];
643
+ }
644
+ /**
645
+ * Browser-specific. Schema of a StyleSheetAddRule.
646
+ */
647
+ export interface StyleSheetAddRule {
648
+ /**
649
+ * Text content for this StyleSheetAddRule.
650
+ */
651
+ rule: string;
652
+ /**
653
+ * Index of this StyleSheetAddRule in its StyleSheet.
654
+ */
655
+ index?: number | number[];
656
+ }
657
+ /**
658
+ * Browser-specific. Schema of a StyleSheetDeleteRule.
659
+ */
660
+ export interface StyleSheetDeleteRule {
661
+ /**
662
+ * Index of this StyleSheetDeleteRule in its StyleSheet.
663
+ */
664
+ index: number | number[];
665
+ }
666
+ /**
667
+ * Schema of a ViewportResizeDimension.
668
+ */
669
+ export interface ViewportResizeDimension {
670
+ /**
671
+ * 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.
672
+ */
673
+ width: number;
674
+ /**
675
+ * 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.
676
+ */
677
+ height: number;
678
+ }
679
+ /**
680
+ * Schema of a PointerInteraction.
681
+ */
682
+ export interface PointerInteraction {
683
+ /**
684
+ * Schema of an PointerEventType
685
+ */
686
+ pointerEventType: 'down' | 'up' | 'move';
687
+ /**
688
+ * Schema of an PointerType
689
+ */
690
+ pointerType: 'mouse' | 'touch' | 'pen';
691
+ /**
692
+ * Id of the pointer of this PointerInteraction.
693
+ */
694
+ pointerId: number;
695
+ /**
696
+ * X-axis coordinate for this PointerInteraction.
697
+ */
698
+ x: number;
699
+ /**
700
+ * Y-axis coordinate for this PointerInteraction.
701
+ */
702
+ y: number;
703
+ }
@@ -0,0 +1,5 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * DO NOT MODIFY IT BY HAND. Run `yarn generate` instead.
4
+ */
5
+ export {};