@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,1190 @@
1
+ /**
2
+ * DO NOT MODIFY IT BY HAND. Run `yarn generate` instead.
3
+ */
4
+ /**
5
+ * Schema of all properties of Session Replay
6
+ */
7
+ export type SessionReplay = Segment & SegmentMetadata & Record & FullSnapshotRecord & IncrementalSnapshotRecord & IncrementalData & MutationData & MutationPayload;
8
+ /**
9
+ * Schema of a Session Replay data Segment.
10
+ */
11
+ export type Segment = BrowserSegment | MobileSegment;
12
+ /**
13
+ * Browser-specific. Schema of a Session Replay data Segment.
14
+ */
15
+ export type BrowserSegment = BrowserSegmentMetadata & {
16
+ /**
17
+ * The records contained by this Segment.
18
+ */
19
+ records: BrowserRecord[];
20
+ };
21
+ /**
22
+ * Browser-specific. Schema of a Session Replay Segment metadata.
23
+ */
24
+ export type BrowserSegmentMetadata = SegmentContext & CommonSegmentMetadataSchema & {
25
+ /**
26
+ * The source of this record
27
+ */
28
+ source: 'browser';
29
+ creation_reason: CreationReason;
30
+ };
31
+ /**
32
+ * The reason this Segment was created. For mobile there is only one possible value for this, which is always the default value.
33
+ */
34
+ export type CreationReason = 'init' | 'segment_duration_limit' | 'segment_bytes_limit' | 'view_change' | 'before_unload' | 'visibility_hidden' | 'page_frozen';
35
+ /**
36
+ * Browser-specific. Schema of a Session Replay Record.
37
+ */
38
+ export type BrowserRecord = BrowserFullSnapshotRecord | BrowserIncrementalSnapshotRecord | MetaRecord | FocusRecord | ViewEndRecord | VisualViewportRecord | FrustrationRecord;
39
+ /**
40
+ * Browser-specific. Schema of a Record type which contains the full snapshot of a screen.
41
+ */
42
+ export type BrowserFullSnapshotRecord = SlotSupportedCommonRecordSchema & {
43
+ /**
44
+ * The type of this Record.
45
+ */
46
+ type: 2;
47
+ data: BrowserNode;
48
+ };
49
+ /**
50
+ * Schema of common properties for a Record event type that is supported by slots.
51
+ */
52
+ export type SlotSupportedCommonRecordSchema = CommonRecordSchema & {
53
+ /**
54
+ * Unique ID of the slot that generated this record.
55
+ */
56
+ slotId?: string;
57
+ };
58
+ /**
59
+ * Serialized node contained by this Record.
60
+ */
61
+ export type SerializedNodeWithId = {
62
+ id: number;
63
+ } & SerializedNode;
64
+ /**
65
+ * Serialized node contained by this Record.
66
+ */
67
+ export type SerializedNode = DocumentNode | DocumentFragmentNode | DocumentTypeNode | ElementNode | TextNode | CDataNode;
68
+ /**
69
+ * Browser-specific. Schema of a Record type which contains mutations of a screen.
70
+ */
71
+ export type BrowserIncrementalSnapshotRecord = SlotSupportedCommonRecordSchema & {
72
+ /**
73
+ * The type of this Record.
74
+ */
75
+ type: 3;
76
+ data: BrowserIncrementalData;
77
+ id?: number;
78
+ };
79
+ /**
80
+ * Browser-specific. Schema of a Session Replay IncrementalData type.
81
+ */
82
+ export type BrowserIncrementalData = BrowserMutationData | MousemoveData | MouseInteractionData | ScrollData | InputData | MediaInteractionData | StyleSheetRuleData | ViewportResizeData | PointerInteractionData;
83
+ /**
84
+ * Browser-specific. Schema of a MutationData.
85
+ */
86
+ export type BrowserMutationData = {
87
+ /**
88
+ * The source of this type of incremental data.
89
+ */
90
+ source: 0;
91
+ } & BrowserMutationPayload;
92
+ /**
93
+ * Browser-specific. Schema of a MutationPayload.
94
+ */
95
+ export type BrowserMutationPayload = {
96
+ /**
97
+ * Contains the newly added nodes.
98
+ */
99
+ adds: AddedNodeMutation[];
100
+ /**
101
+ * Contains the removed nodes.
102
+ */
103
+ removes: RemovedNodeMutation[];
104
+ /**
105
+ * Contains the updated attribute mutations.
106
+ */
107
+ attributes: AttributeMutation[];
108
+ /**
109
+ * Contains the updated text mutations.
110
+ */
111
+ texts: TextMutation[];
112
+ };
113
+ /**
114
+ * Browser-specific. Schema of a MouseInteractionData.
115
+ */
116
+ export type MouseInteractionData = {
117
+ /**
118
+ * The source of this type of incremental data.
119
+ */
120
+ source: 2;
121
+ } & MouseInteraction;
122
+ /**
123
+ * Browser-specific. Schema of a MouseInteraction.
124
+ */
125
+ export type MouseInteraction = {
126
+ /**
127
+ * The type of MouseInteraction: 0=mouseup, 1=mousedown, 2=click, 3=contextmenu, 4=dblclick, 7=touchstart, 9=touchend
128
+ */
129
+ type: 0 | 1 | 2 | 3 | 4 | 7 | 9;
130
+ /**
131
+ * Id for the target node for this MouseInteraction.
132
+ */
133
+ id: number;
134
+ /**
135
+ * X-axis coordinate for this MouseInteraction.
136
+ */
137
+ x: number;
138
+ /**
139
+ * Y-axis coordinate for this MouseInteraction.
140
+ */
141
+ y: number;
142
+ } | {
143
+ /**
144
+ * The type of MouseInteraction: 5=focus, 6=blur
145
+ */
146
+ type: 5 | 6;
147
+ /**
148
+ * Id for the target node for this MouseInteraction.
149
+ */
150
+ id: number;
151
+ };
152
+ /**
153
+ * Browser-specific. Schema of a ScrollData.
154
+ */
155
+ export type ScrollData = {
156
+ /**
157
+ * The source of this type of incremental data.
158
+ */
159
+ source: 3;
160
+ } & ScrollPosition;
161
+ /**
162
+ * Browser-specific. Schema of an InputData.
163
+ */
164
+ export type InputData = {
165
+ /**
166
+ * The source of this type of incremental data.
167
+ */
168
+ source: 5;
169
+ /**
170
+ * Id for the target node for this InputData.
171
+ */
172
+ id: number;
173
+ } & InputState;
174
+ /**
175
+ * Browser-specific. Schema of an InputState.
176
+ */
177
+ export type InputState = {
178
+ /**
179
+ * Text value for this InputState.
180
+ */
181
+ text: string;
182
+ } | {
183
+ /**
184
+ * Checked state for this InputState.
185
+ */
186
+ isChecked: boolean;
187
+ };
188
+ /**
189
+ * Browser-specific. Schema of a MediaInteractionData.
190
+ */
191
+ export type MediaInteractionData = {
192
+ /**
193
+ * The source of this type of incremental data.
194
+ */
195
+ source: 7;
196
+ } & MediaInteraction;
197
+ /**
198
+ * Browser-specific. Schema of a StyleSheetRuleData.
199
+ */
200
+ export type StyleSheetRuleData = {
201
+ /**
202
+ * The source of this type of incremental data.
203
+ */
204
+ source: 8;
205
+ } & StyleSheetRule;
206
+ /**
207
+ * Schema of a ViewportResizeData.
208
+ */
209
+ export type ViewportResizeData = {
210
+ /**
211
+ * The source of this type of incremental data.
212
+ */
213
+ source: 4;
214
+ } & ViewportResizeDimension;
215
+ /**
216
+ * Schema of a PointerInteractionData.
217
+ */
218
+ export type PointerInteractionData = {
219
+ /**
220
+ * The source of this type of incremental data.
221
+ */
222
+ source: 9;
223
+ } & PointerInteraction;
224
+ /**
225
+ * Schema of a Record which contains the screen properties.
226
+ */
227
+ export type MetaRecord = SlotSupportedCommonRecordSchema & {
228
+ /**
229
+ * The type of this Record.
230
+ */
231
+ type: 4;
232
+ /**
233
+ * The data contained by this record.
234
+ */
235
+ data: {
236
+ /**
237
+ * 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.
238
+ */
239
+ width: number;
240
+ /**
241
+ * 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.
242
+ */
243
+ height: number;
244
+ /**
245
+ * Browser-specific. URL of the view described by this record.
246
+ */
247
+ href?: string;
248
+ };
249
+ };
250
+ /**
251
+ * Schema of a Record type which contains focus information.
252
+ */
253
+ export type FocusRecord = SlotSupportedCommonRecordSchema & {
254
+ /**
255
+ * The type of this Record.
256
+ */
257
+ type: 6;
258
+ data: {
259
+ /**
260
+ * Whether this screen has a focus or not. For now it will always be true for mobile.
261
+ */
262
+ has_focus: boolean;
263
+ };
264
+ };
265
+ /**
266
+ * Schema of a Record which signifies that view lifecycle ended.
267
+ */
268
+ export type ViewEndRecord = SlotSupportedCommonRecordSchema & {
269
+ /**
270
+ * The type of this Record.
271
+ */
272
+ type: 7;
273
+ };
274
+ /**
275
+ * Schema of a Record which signifies that the viewport properties have changed.
276
+ */
277
+ export type VisualViewportRecord = SlotSupportedCommonRecordSchema & {
278
+ data: {
279
+ height: number;
280
+ offsetLeft: number;
281
+ offsetTop: number;
282
+ pageLeft: number;
283
+ pageTop: number;
284
+ scale: number;
285
+ width: number;
286
+ };
287
+ /**
288
+ * The type of this Record.
289
+ */
290
+ type: 8;
291
+ };
292
+ /**
293
+ * Schema of a Record which signifies a collection of frustration signals.
294
+ */
295
+ export type FrustrationRecord = SlotSupportedCommonRecordSchema & {
296
+ /**
297
+ * The type of this Record.
298
+ */
299
+ type: 9;
300
+ /**
301
+ * Schema of a Session Replay FrustrationRecord data structure type.
302
+ */
303
+ data: {
304
+ /**
305
+ * Collection of frustration signal types.
306
+ */
307
+ frustrationTypes: ('rage_click' | 'error_click' | 'dead_click')[];
308
+ /**
309
+ * Collection of frustration signal event IDs.
310
+ */
311
+ recordIds: number[];
312
+ };
313
+ };
314
+ /**
315
+ * Mobile-specific. Schema of a Session Replay data Segment.
316
+ */
317
+ export type MobileSegment = MobileSegmentMetadata & {
318
+ /**
319
+ * The records contained by this Segment.
320
+ */
321
+ records: MobileRecord[];
322
+ };
323
+ /**
324
+ * Mobile-specific. Schema of a Session Replay Segment metadata.
325
+ */
326
+ export type MobileSegmentMetadata = SegmentContext & CommonSegmentMetadataSchema & {
327
+ /**
328
+ * The source of this record
329
+ */
330
+ source: 'android' | 'ios' | 'flutter' | 'react-native';
331
+ };
332
+ /**
333
+ * Mobile-specific. Schema of a Session Replay Record.
334
+ */
335
+ export type MobileRecord = MobileFullSnapshotRecord | MobileIncrementalSnapshotRecord | MetaRecord | FocusRecord | ViewEndRecord | VisualViewportRecord;
336
+ /**
337
+ * Mobile-specific. Schema of a Record type which contains the full snapshot of a screen.
338
+ */
339
+ export type MobileFullSnapshotRecord = CommonRecordSchema & {
340
+ /**
341
+ * The type of this Record.
342
+ */
343
+ type: 10;
344
+ data: {
345
+ /**
346
+ * The Wireframes contained by this Record.
347
+ */
348
+ wireframes: Wireframe[];
349
+ };
350
+ };
351
+ /**
352
+ * Schema of a Wireframe type.
353
+ */
354
+ export type Wireframe = ShapeWireframe | TextWireframe | ImageWireframe | PlaceholderWireframe | WebviewWireframe;
355
+ /**
356
+ * Schema of all properties of a ShapeWireframe.
357
+ */
358
+ export type ShapeWireframe = CommonShapeWireframe & {
359
+ /**
360
+ * The type of the wireframe.
361
+ */
362
+ type: 'shape';
363
+ };
364
+ /**
365
+ * Schema of common properties for ShapeWireframe events type and all its sub - types.
366
+ */
367
+ export type CommonShapeWireframe = CommonWireframe & {
368
+ shapeStyle?: ShapeStyle;
369
+ border?: ShapeBorder;
370
+ };
371
+ /**
372
+ * The style of this wireframe.
373
+ */
374
+ export type ShapeStyle = {
375
+ /**
376
+ * The background color for this wireframe as a String hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional. The default value is #FFFFFF00.
377
+ */
378
+ backgroundColor?: string;
379
+ /**
380
+ * The opacity of this wireframe. Takes values from 0 to 1, default value is 1.
381
+ */
382
+ opacity?: number;
383
+ /**
384
+ * The corner(border) radius of this wireframe in pixels. The default value is 0.
385
+ */
386
+ cornerRadius?: number;
387
+ };
388
+ /**
389
+ * The border properties of this wireframe. The default value is null (no-border).
390
+ */
391
+ export type ShapeBorder = {
392
+ /**
393
+ * The border color as a String hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
394
+ */
395
+ color: string;
396
+ /**
397
+ * The width of the border in pixels.
398
+ */
399
+ width: number;
400
+ };
401
+ /**
402
+ * Schema of all properties of a TextWireframe.
403
+ */
404
+ export type TextWireframe = CommonShapeWireframe & {
405
+ /**
406
+ * The type of the wireframe.
407
+ */
408
+ type: 'text';
409
+ /**
410
+ * The text value of the wireframe.
411
+ */
412
+ text: string;
413
+ textStyle: TextStyle;
414
+ textPosition?: TextPosition;
415
+ };
416
+ /**
417
+ * Schema of all properties of a TextStyle.
418
+ */
419
+ export type TextStyle = {
420
+ /**
421
+ * The preferred font family collection, ordered by preference and formatted as a String list: e.g. Century Gothic, Verdana, sans-serif
422
+ */
423
+ family: string;
424
+ /**
425
+ * The font size in pixels.
426
+ */
427
+ size: number;
428
+ /**
429
+ * The font color as a string hexadecimal. Follows the #RRGGBBAA color format with the alpha value as optional.
430
+ */
431
+ color: string;
432
+ };
433
+ /**
434
+ * Schema of all properties of a TextPosition.
435
+ */
436
+ export type TextPosition = {
437
+ padding?: {
438
+ /**
439
+ * The top padding in pixels. The default value is 0.
440
+ */
441
+ top?: number;
442
+ /**
443
+ * The bottom padding in pixels. The default value is 0.
444
+ */
445
+ bottom?: number;
446
+ /**
447
+ * The left padding in pixels. The default value is 0.
448
+ */
449
+ left?: number;
450
+ /**
451
+ * The right padding in pixels. The default value is 0.
452
+ */
453
+ right?: number;
454
+ };
455
+ alignment?: {
456
+ /**
457
+ * The horizontal text alignment. The default value is `left`.
458
+ */
459
+ horizontal?: 'left' | 'right' | 'center';
460
+ /**
461
+ * The vertical text alignment. The default value is `top`.
462
+ */
463
+ vertical?: 'top' | 'bottom' | 'center';
464
+ };
465
+ };
466
+ /**
467
+ * Schema of all properties of a ImageWireframe.
468
+ */
469
+ export type ImageWireframe = CommonShapeWireframe & {
470
+ /**
471
+ * The type of the wireframe.
472
+ */
473
+ type: 'image';
474
+ /**
475
+ * base64 representation of the image. Not required as the ImageWireframe can be initialised without any base64
476
+ */
477
+ base64?: string;
478
+ /**
479
+ * Unique identifier of the image resource
480
+ */
481
+ resourceId?: string;
482
+ /**
483
+ * MIME type of the image file
484
+ */
485
+ mimeType?: string;
486
+ /**
487
+ * Flag describing an image wireframe that should render an empty state placeholder
488
+ */
489
+ isEmpty?: boolean;
490
+ };
491
+ /**
492
+ * Schema of all properties of a PlaceholderWireframe.
493
+ */
494
+ export type PlaceholderWireframe = CommonWireframe & {
495
+ /**
496
+ * The type of the wireframe.
497
+ */
498
+ type: 'placeholder';
499
+ /**
500
+ * Label of the placeholder
501
+ */
502
+ label?: string;
503
+ };
504
+ /**
505
+ * Schema of all properties of a WebviewWireframe.
506
+ */
507
+ export type WebviewWireframe = CommonShapeWireframe & {
508
+ /**
509
+ * The type of the wireframe.
510
+ */
511
+ type: 'webview';
512
+ /**
513
+ * Unique Id of the slot containing this webview.
514
+ */
515
+ slotId: string;
516
+ /**
517
+ * Whether this webview is visible or not.
518
+ */
519
+ isVisible?: boolean;
520
+ };
521
+ /**
522
+ * Mobile-specific. Schema of a Record type which contains mutations of a screen.
523
+ */
524
+ export type MobileIncrementalSnapshotRecord = CommonRecordSchema & {
525
+ /**
526
+ * The type of this Record.
527
+ */
528
+ type: 11;
529
+ data: MobileIncrementalData;
530
+ };
531
+ /**
532
+ * Mobile-specific. Schema of a Session Replay IncrementalData type.
533
+ */
534
+ export type MobileIncrementalData = MobileMutationData | TouchData | ViewportResizeData | PointerInteractionData;
535
+ /**
536
+ * Mobile-specific. Schema of a MutationData.
537
+ */
538
+ export type MobileMutationData = {
539
+ /**
540
+ * The source of this type of incremental data.
541
+ */
542
+ source: 0;
543
+ } & MobileMutationPayload;
544
+ /**
545
+ * Mobile-specific. Schema of a MutationPayload.
546
+ */
547
+ export type MobileMutationPayload = {
548
+ /**
549
+ * Contains the newly added wireframes.
550
+ */
551
+ adds?: {
552
+ /**
553
+ * The previous wireframe id next or after which this new wireframe is drawn or attached to, respectively.
554
+ */
555
+ previousId?: number;
556
+ wireframe: Wireframe;
557
+ }[];
558
+ /**
559
+ * Contains the removed wireframes as an array of ids.
560
+ */
561
+ removes?: {
562
+ /**
563
+ * The id of the wireframe that needs to be removed.
564
+ */
565
+ id: number;
566
+ }[];
567
+ /**
568
+ * Contains the updated wireframes mutations.
569
+ */
570
+ updates?: WireframeUpdateMutation[];
571
+ };
572
+ /**
573
+ * Schema of a WireframeUpdateMutation type.
574
+ */
575
+ export type WireframeUpdateMutation = TextWireframeUpdate | ShapeWireframeUpdate | ImageWireframeUpdate | PlaceholderWireframeUpdate | WebviewWireframeUpdate;
576
+ /**
577
+ * Schema of all properties of a TextWireframeUpdate.
578
+ */
579
+ export type TextWireframeUpdate = CommonShapeWireframeUpdate & {
580
+ /**
581
+ * The type of the wireframe.
582
+ */
583
+ type: 'text';
584
+ /**
585
+ * The text value of the wireframe.
586
+ */
587
+ text?: string;
588
+ textStyle?: TextStyle;
589
+ textPosition?: TextPosition;
590
+ };
591
+ /**
592
+ * Schema of common properties for ShapeWireframeUpdate events type and all its sub - types.
593
+ */
594
+ export type CommonShapeWireframeUpdate = CommonWireframeUpdate & {
595
+ shapeStyle?: ShapeStyle;
596
+ border?: ShapeBorder;
597
+ };
598
+ /**
599
+ * Schema of a ShapeWireframeUpdate.
600
+ */
601
+ export type ShapeWireframeUpdate = CommonShapeWireframeUpdate & {
602
+ /**
603
+ * The type of the wireframe.
604
+ */
605
+ type: 'shape';
606
+ };
607
+ /**
608
+ * Schema of all properties of a ImageWireframeUpdate.
609
+ */
610
+ export type ImageWireframeUpdate = CommonShapeWireframeUpdate & {
611
+ /**
612
+ * The type of the wireframe.
613
+ */
614
+ type: 'image';
615
+ /**
616
+ * base64 representation of the image. Not required as the ImageWireframe can be initialised without any base64
617
+ */
618
+ base64?: string;
619
+ /**
620
+ * Unique identifier of the image resource
621
+ */
622
+ resourceId?: string;
623
+ /**
624
+ * MIME type of the image file
625
+ */
626
+ mimeType?: string;
627
+ /**
628
+ * Flag describing an image wireframe that should render an empty state placeholder
629
+ */
630
+ isEmpty?: boolean;
631
+ };
632
+ /**
633
+ * Schema of all properties of a PlaceholderWireframe.
634
+ */
635
+ export type PlaceholderWireframeUpdate = CommonWireframeUpdate & {
636
+ /**
637
+ * The type of the wireframe.
638
+ */
639
+ type: 'placeholder';
640
+ /**
641
+ * Label of the placeholder
642
+ */
643
+ label?: string;
644
+ };
645
+ /**
646
+ * Schema of all properties of a WebviewWireframeUpdate.
647
+ */
648
+ export type WebviewWireframeUpdate = CommonShapeWireframeUpdate & {
649
+ /**
650
+ * The type of the wireframe.
651
+ */
652
+ type: 'webview';
653
+ /**
654
+ * Unique Id of the slot containing this webview.
655
+ */
656
+ slotId: string;
657
+ /**
658
+ * Whether this webview is visible or not.
659
+ */
660
+ isVisible?: boolean;
661
+ };
662
+ /**
663
+ * Schema of a TouchData.
664
+ */
665
+ export type TouchData = {
666
+ /**
667
+ * The source of this type of incremental data.
668
+ */
669
+ source: 2;
670
+ /**
671
+ * Contains the positions of the finger on the screen during the touchDown/touchUp event lifecycle.
672
+ */
673
+ positions?: {
674
+ /**
675
+ * The touch id of the touch event this position corresponds to. In mobile it is possible to have multiple touch events (fingers touching the screen) happening at the same time.
676
+ */
677
+ id: number;
678
+ /**
679
+ * The x coordinate value of the position.
680
+ */
681
+ x: number;
682
+ /**
683
+ * The y coordinate value of the position.
684
+ */
685
+ y: number;
686
+ /**
687
+ * The UTC timestamp in milliseconds corresponding to the moment the position change was recorded. Each timestamp is computed as the UTC interval since 00:00:00.000 01.01.1970.
688
+ */
689
+ timestamp: number;
690
+ }[];
691
+ };
692
+ /**
693
+ * Schema of a Session Replay SegmentMetadata.
694
+ */
695
+ export type SegmentMetadata = BrowserSegmentMetadata | MobileSegmentMetadata;
696
+ /**
697
+ * Schema of a Session Replay Record.
698
+ */
699
+ export type Record = BrowserRecord | MobileRecord;
700
+ /**
701
+ * Schema of a Record type which contains the full snapshot of a screen.
702
+ */
703
+ export type FullSnapshotRecord = BrowserFullSnapshotRecord | MobileFullSnapshotRecord;
704
+ /**
705
+ * Schema of a Record type which contains mutations of a screen.
706
+ */
707
+ export type IncrementalSnapshotRecord = BrowserIncrementalSnapshotRecord | MobileIncrementalSnapshotRecord;
708
+ /**
709
+ * Schema of a Session Replay IncrementalData type.
710
+ */
711
+ export type IncrementalData = BrowserIncrementalData | MobileIncrementalData;
712
+ /**
713
+ * Schema of a MutationData.
714
+ */
715
+ export type MutationData = BrowserMutationData | MobileMutationData;
716
+ /**
717
+ * Schema of a MutationPayload.
718
+ */
719
+ export type MutationPayload = BrowserMutationPayload | MobileMutationPayload;
720
+ /**
721
+ * Schema of a Session Replay Segment context.
722
+ */
723
+ export interface SegmentContext {
724
+ /**
725
+ * Application properties
726
+ */
727
+ application: {
728
+ /**
729
+ * UUID of the application
730
+ */
731
+ id: string;
732
+ };
733
+ /**
734
+ * Session properties
735
+ */
736
+ session: {
737
+ /**
738
+ * UUID of the session
739
+ */
740
+ id: string;
741
+ };
742
+ /**
743
+ * View properties
744
+ */
745
+ view: {
746
+ /**
747
+ * UUID of the view
748
+ */
749
+ id: string;
750
+ };
751
+ }
752
+ /**
753
+ * Schema of common properties for a Segment Metadata type.
754
+ */
755
+ export interface CommonSegmentMetadataSchema {
756
+ /**
757
+ * 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.
758
+ */
759
+ start: number;
760
+ /**
761
+ * 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.
762
+ */
763
+ end: number;
764
+ /**
765
+ * The number of records in this Segment.
766
+ */
767
+ records_count: number;
768
+ /**
769
+ * The index of this Segment in the segments list that was recorded for this view ID. Starts from 0.
770
+ */
771
+ index_in_view?: number;
772
+ /**
773
+ * Whether this Segment contains a full snapshot record or not.
774
+ */
775
+ has_full_snapshot?: boolean;
776
+ }
777
+ /**
778
+ * Schema of common properties for a Record event type.
779
+ */
780
+ export interface CommonRecordSchema {
781
+ /**
782
+ * Defines the UTC time in milliseconds when this Record was performed.
783
+ */
784
+ timestamp: number;
785
+ }
786
+ /**
787
+ * Schema of a Node type.
788
+ */
789
+ export interface BrowserNode {
790
+ node: SerializedNodeWithId;
791
+ /**
792
+ * Initial node offset position.
793
+ */
794
+ initialOffset: {
795
+ /**
796
+ * Top position offset for this node.
797
+ */
798
+ top: number;
799
+ /**
800
+ * Left position offset for this node.
801
+ */
802
+ left: number;
803
+ };
804
+ }
805
+ /**
806
+ * Schema of a Document Node.
807
+ */
808
+ export interface DocumentNode {
809
+ /**
810
+ * The type of this Node.
811
+ */
812
+ type: 0;
813
+ /**
814
+ * Stylesheet added dynamically
815
+ */
816
+ adoptedStyleSheets?: StyleSheet[];
817
+ childNodes: SerializedNodeWithId[];
818
+ }
819
+ /**
820
+ * Browser-specific. Schema of a StyleSheet
821
+ */
822
+ export interface StyleSheet {
823
+ /**
824
+ * CSS rules applied (rule.cssText)
825
+ */
826
+ cssRules: string[];
827
+ /**
828
+ * MediaList of the stylesheet
829
+ */
830
+ media?: string[];
831
+ /**
832
+ * Is the stylesheet disabled
833
+ */
834
+ disabled?: boolean;
835
+ }
836
+ /**
837
+ * Schema of a Document FragmentNode.
838
+ */
839
+ export interface DocumentFragmentNode {
840
+ /**
841
+ * The type of this Node.
842
+ */
843
+ type: 11;
844
+ /**
845
+ * Stylesheet added dynamically
846
+ */
847
+ adoptedStyleSheets?: StyleSheet[];
848
+ /**
849
+ * Is this node a shadow root or not
850
+ */
851
+ isShadowRoot: boolean;
852
+ childNodes: SerializedNodeWithId[];
853
+ }
854
+ /**
855
+ * Schema of a Document Type Node.
856
+ */
857
+ export interface DocumentTypeNode {
858
+ /**
859
+ * The type of this Node.
860
+ */
861
+ type: 1;
862
+ /**
863
+ * Name for this DocumentType
864
+ */
865
+ name: string;
866
+ /**
867
+ * PublicId for this DocumentType
868
+ */
869
+ publicId: string;
870
+ /**
871
+ * SystemId for this DocumentType
872
+ */
873
+ systemId: string;
874
+ }
875
+ /**
876
+ * Schema of an Element Node.
877
+ */
878
+ export interface ElementNode {
879
+ /**
880
+ * The type of this Node.
881
+ */
882
+ type: 2;
883
+ /**
884
+ * TagName for this Node
885
+ */
886
+ tagName: string;
887
+ attributes: Attributes;
888
+ childNodes: SerializedNodeWithId[];
889
+ /**
890
+ * Is this node a SVG instead of a HTML
891
+ */
892
+ isSVG?: true;
893
+ }
894
+ /**
895
+ * Schema of an Attributes type.
896
+ */
897
+ export interface Attributes {
898
+ [k: string]: string | number | boolean;
899
+ }
900
+ /**
901
+ * Schema of a Text Node.
902
+ */
903
+ export interface TextNode {
904
+ /**
905
+ * The type of this Node.
906
+ */
907
+ type: 3;
908
+ /**
909
+ * Text value for this Text Node
910
+ */
911
+ textContent: string;
912
+ isStyle?: true;
913
+ }
914
+ /**
915
+ * Schema of a CData Node.
916
+ */
917
+ export interface CDataNode {
918
+ /**
919
+ * The type of this Node.
920
+ */
921
+ type: 4;
922
+ textContent: '';
923
+ }
924
+ /**
925
+ * Schema of an AddedNodeMutation.
926
+ */
927
+ export interface AddedNodeMutation {
928
+ node: SerializedNodeWithId;
929
+ /**
930
+ * Id for the parent node for this AddedNodeMutation.
931
+ */
932
+ parentId: number;
933
+ nextId: number | null;
934
+ previousId?: number | null;
935
+ }
936
+ /**
937
+ * Schema of a RemovedNodeMutation.
938
+ */
939
+ export interface RemovedNodeMutation {
940
+ /**
941
+ * Id of the mutated node.
942
+ */
943
+ id: number;
944
+ /**
945
+ * Id for the parent node for this RemovedNodeMutation
946
+ */
947
+ parentId: number;
948
+ }
949
+ /**
950
+ * Schema of an AttributeMutation.
951
+ */
952
+ export interface AttributeMutation {
953
+ /**
954
+ * Id of the mutated node.
955
+ */
956
+ id: number;
957
+ /**
958
+ * Attributes for this AttributeMutation
959
+ */
960
+ attributes: {
961
+ [k: string]: string | null;
962
+ };
963
+ }
964
+ /**
965
+ * Schema of a TextMutation.
966
+ */
967
+ export interface TextMutation {
968
+ /**
969
+ * Id of the mutated node.
970
+ */
971
+ id: number;
972
+ /**
973
+ * Value for this TextMutation
974
+ */
975
+ value: null | string;
976
+ }
977
+ /**
978
+ * Browser-specific. Schema of a MousemoveData.
979
+ */
980
+ export interface MousemoveData {
981
+ /**
982
+ * The source of this type of incremental data.
983
+ */
984
+ source: 1 | 6;
985
+ /**
986
+ * Positions reported for this MousemoveData.
987
+ */
988
+ positions: MousePosition[];
989
+ }
990
+ /**
991
+ * Browser-specific. Schema of a MousePosition.
992
+ */
993
+ export interface MousePosition {
994
+ /**
995
+ * X-axis coordinate for this MousePosition.
996
+ */
997
+ x: number;
998
+ /**
999
+ * Y-axis coordinate for this MousePosition.
1000
+ */
1001
+ y: number;
1002
+ /**
1003
+ * Id for the target node for this MousePosition.
1004
+ */
1005
+ id: number;
1006
+ /**
1007
+ * Observed time offset for this MousePosition.
1008
+ */
1009
+ timeOffset: number;
1010
+ }
1011
+ /**
1012
+ * Browser-specific. Schema of a ScrollPosition.
1013
+ */
1014
+ export interface ScrollPosition {
1015
+ /**
1016
+ * Id for the target node for this ScrollPosition.
1017
+ */
1018
+ id: number;
1019
+ /**
1020
+ * X-axis coordinate for this ScrollPosition.
1021
+ */
1022
+ x: number;
1023
+ /**
1024
+ * Y-axis coordinate for this ScrollPosition.
1025
+ */
1026
+ y: number;
1027
+ }
1028
+ /**
1029
+ * Browser-specific. Schema of a MediaInteraction.
1030
+ */
1031
+ export interface MediaInteraction {
1032
+ /**
1033
+ * Id for the target node for this MediaInteraction.
1034
+ */
1035
+ id: number;
1036
+ /**
1037
+ * The type of MediaInteraction.
1038
+ */
1039
+ type: 0 | 1;
1040
+ }
1041
+ /**
1042
+ * Browser-specific. Schema of a StyleSheetRule.
1043
+ */
1044
+ export interface StyleSheetRule {
1045
+ /**
1046
+ * Id of the owner node for this StyleSheetRule.
1047
+ */
1048
+ id: number;
1049
+ /**
1050
+ * Rules added to this StyleSheetRule.
1051
+ */
1052
+ adds?: StyleSheetAddRule[];
1053
+ /**
1054
+ * Rules deleted from this StyleSheetRule.
1055
+ */
1056
+ removes?: StyleSheetDeleteRule[];
1057
+ }
1058
+ /**
1059
+ * Browser-specific. Schema of a StyleSheetAddRule.
1060
+ */
1061
+ export interface StyleSheetAddRule {
1062
+ /**
1063
+ * Text content for this StyleSheetAddRule.
1064
+ */
1065
+ rule: string;
1066
+ /**
1067
+ * Index of this StyleSheetAddRule in its StyleSheet.
1068
+ */
1069
+ index?: number | number[];
1070
+ }
1071
+ /**
1072
+ * Browser-specific. Schema of a StyleSheetDeleteRule.
1073
+ */
1074
+ export interface StyleSheetDeleteRule {
1075
+ /**
1076
+ * Index of this StyleSheetDeleteRule in its StyleSheet.
1077
+ */
1078
+ index: number | number[];
1079
+ }
1080
+ /**
1081
+ * Schema of a ViewportResizeDimension.
1082
+ */
1083
+ export interface ViewportResizeDimension {
1084
+ /**
1085
+ * 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.
1086
+ */
1087
+ width: number;
1088
+ /**
1089
+ * 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.
1090
+ */
1091
+ height: number;
1092
+ }
1093
+ /**
1094
+ * Schema of a PointerInteraction.
1095
+ */
1096
+ export interface PointerInteraction {
1097
+ /**
1098
+ * Schema of an PointerEventType
1099
+ */
1100
+ pointerEventType: 'down' | 'up' | 'move';
1101
+ /**
1102
+ * Schema of an PointerType
1103
+ */
1104
+ pointerType: 'mouse' | 'touch' | 'pen';
1105
+ /**
1106
+ * Id of the pointer of this PointerInteraction.
1107
+ */
1108
+ pointerId: number;
1109
+ /**
1110
+ * X-axis coordinate for this PointerInteraction.
1111
+ */
1112
+ x: number;
1113
+ /**
1114
+ * Y-axis coordinate for this PointerInteraction.
1115
+ */
1116
+ y: number;
1117
+ }
1118
+ /**
1119
+ * Schema of common properties for Wireframe events type.
1120
+ */
1121
+ export interface CommonWireframe {
1122
+ /**
1123
+ * Defines the unique ID of the wireframe. This is persistent throughout the view lifetime.
1124
+ */
1125
+ id: number;
1126
+ /**
1127
+ * The position in pixels on X axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
1128
+ */
1129
+ x: number;
1130
+ /**
1131
+ * The position in pixels on Y axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
1132
+ */
1133
+ y: number;
1134
+ /**
1135
+ * The width in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the width of all UI elements is divided by 2 to get a normalized width.
1136
+ */
1137
+ width: number;
1138
+ /**
1139
+ * The height in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the height of all UI elements is divided by 2 to get a normalized height.
1140
+ */
1141
+ height: number;
1142
+ clip?: WireframeClip;
1143
+ }
1144
+ /**
1145
+ * Schema of clipping information for a Wireframe.
1146
+ */
1147
+ export interface WireframeClip {
1148
+ /**
1149
+ * The amount of space in pixels that needs to be clipped (masked) at the top of the wireframe.
1150
+ */
1151
+ top?: number;
1152
+ /**
1153
+ * The amount of space in pixels that needs to be clipped (masked) at the bottom of the wireframe.
1154
+ */
1155
+ bottom?: number;
1156
+ /**
1157
+ * The amount of space in pixels that needs to be clipped (masked) at the left of the wireframe.
1158
+ */
1159
+ left?: number;
1160
+ /**
1161
+ * The amount of space in pixels that needs to be clipped (masked) at the right of the wireframe.
1162
+ */
1163
+ right?: number;
1164
+ }
1165
+ /**
1166
+ * Schema of common properties for WireframeUpdate events type.
1167
+ */
1168
+ export interface CommonWireframeUpdate {
1169
+ /**
1170
+ * Defines the unique ID of the wireframe. This is persistent throughout the view lifetime.
1171
+ */
1172
+ id: number;
1173
+ /**
1174
+ * The position in pixels on X axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
1175
+ */
1176
+ x?: number;
1177
+ /**
1178
+ * The position in pixels on Y axis of the UI element in absolute coordinates. The anchor point is always the top-left corner of the wireframe.
1179
+ */
1180
+ y?: number;
1181
+ /**
1182
+ * The width in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the width of all UI elements is divided by 2 to get a normalized width.
1183
+ */
1184
+ width?: number;
1185
+ /**
1186
+ * The height in pixels of the UI element, normalized based on the device pixels per inch density (DPI). Example: if a device has a DPI = 2, the height of all UI elements is divided by 2 to get a normalized height.
1187
+ */
1188
+ height?: number;
1189
+ clip?: WireframeClip;
1190
+ }