@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,21 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/attribute-mutation-schema.json",
4
+ "title": "AttributeMutation",
5
+ "type": "object",
6
+ "description": "Schema of an AttributeMutation.",
7
+ "required": ["id", "attributes"],
8
+ "properties": {
9
+ "id": {
10
+ "type": "integer",
11
+ "description": "Id of the mutated node."
12
+ },
13
+ "attributes": {
14
+ "type": "object",
15
+ "description": "Attributes for this AttributeMutation",
16
+ "additionalProperties": {
17
+ "type": ["string", "null"]
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/attributes-schema.json",
4
+ "title": "Attributes",
5
+ "type": "object",
6
+ "description": "Schema of an Attributes type.",
7
+ "additionalProperties": {
8
+ "type": ["string", "number", "boolean"]
9
+ }
10
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/cdata-node-schema.json",
4
+ "title": "CDataNode",
5
+ "type": "object",
6
+ "description": "Schema of a CData Node.",
7
+ "required": ["type", "textContent"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "integer",
11
+ "description": "The type of this Node.",
12
+ "const": 4,
13
+ "readOnly": true
14
+ },
15
+ "textContent": {
16
+ "const": ""
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/creation-reason-schema.json",
4
+ "title": "CreationReason",
5
+ "type": "string",
6
+ "description": "The reason this Segment was created. For mobile there is only one possible value for this, which is always the default value.",
7
+ "enum": [
8
+ "init",
9
+ "segment_duration_limit",
10
+ "segment_bytes_limit",
11
+ "view_change",
12
+ "before_unload",
13
+ "visibility_hidden",
14
+ "page_frozen"
15
+ ],
16
+ "default": "init"
17
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/document-fragment-node-schema.json",
4
+ "title": "DocumentFragmentNode",
5
+ "type": "object",
6
+ "description": "Schema of a Document FragmentNode.",
7
+ "required": ["type", "childNodes", "isShadowRoot"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "integer",
11
+ "description": "The type of this Node.",
12
+ "const": 11,
13
+ "readOnly": true
14
+ },
15
+ "adoptedStyleSheets": {
16
+ "type": "array",
17
+ "description": "Stylesheet added dynamically",
18
+ "items": {
19
+ "$ref": "stylesheet-schema.json"
20
+ },
21
+ "readOnly": true
22
+ },
23
+ "isShadowRoot": {
24
+ "type": "boolean",
25
+ "description": "Is this node a shadow root or not",
26
+ "readOnly": true
27
+ },
28
+ "childNodes": {
29
+ "type": "array",
30
+ "items": {
31
+ "$ref": "serialized-node-with-id-schema.json"
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/document-node-schema.json",
4
+ "title": "DocumentNode",
5
+ "type": "object",
6
+ "description": "Schema of a Document Node.",
7
+ "required": ["type", "childNodes"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "integer",
11
+ "description": "The type of this Node.",
12
+ "const": 0,
13
+ "readOnly": true
14
+ },
15
+ "adoptedStyleSheets": {
16
+ "type": "array",
17
+ "description": "Stylesheet added dynamically",
18
+ "items": {
19
+ "$ref": "stylesheet-schema.json"
20
+ },
21
+ "readOnly": true
22
+ },
23
+ "childNodes": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "serialized-node-with-id-schema.json"
27
+ }
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/document-type-node-schema.json",
4
+ "title": "DocumentTypeNode",
5
+ "type": "object",
6
+ "description": "Schema of a Document Type Node.",
7
+ "required": ["type", "name", "publicId", "systemId"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "integer",
11
+ "description": "The type of this Node.",
12
+ "const": 1,
13
+ "readOnly": true
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "description": "Name for this DocumentType"
18
+ },
19
+ "publicId": {
20
+ "type": "string",
21
+ "description": "PublicId for this DocumentType"
22
+ },
23
+ "systemId": {
24
+ "type": "string",
25
+ "description": "SystemId for this DocumentType"
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/element-node-schema.json",
4
+ "title": "ElementNode",
5
+ "type": "object",
6
+ "description": "Schema of an Element Node.",
7
+ "required": ["type", "tagName", "attributes", "childNodes"],
8
+ "properties": {
9
+ "type": {
10
+ "type": "integer",
11
+ "description": "The type of this Node.",
12
+ "const": 2,
13
+ "readOnly": true
14
+ },
15
+ "tagName": {
16
+ "type": "string",
17
+ "description": "TagName for this Node"
18
+ },
19
+ "attributes": {
20
+ "$ref": "attributes-schema.json"
21
+ },
22
+ "childNodes": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "serialized-node-with-id-schema.json"
26
+ }
27
+ },
28
+ "isSVG": {
29
+ "const": true,
30
+ "description": "Is this node a SVG instead of a HTML"
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/frustration-record-schema.json",
4
+ "title": "FrustrationRecord",
5
+ "type": "object",
6
+ "description": "Schema of a Record which signifies a collection of frustration signals.",
7
+ "allOf": [
8
+ {
9
+ "$ref": "../common/_slot-supported-common-record-schema.json"
10
+ },
11
+ {
12
+ "required": ["type", "data"],
13
+ "properties": {
14
+ "type": {
15
+ "type": "integer",
16
+ "description": "The type of this Record.",
17
+ "const": 9,
18
+ "readOnly": true
19
+ },
20
+ "data": {
21
+ "type": "object",
22
+ "description": "Schema of a Session Replay FrustrationRecord data structure type.",
23
+ "required": ["frustrationTypes", "recordIds"],
24
+ "properties": {
25
+ "frustrationTypes": {
26
+ "type": "array",
27
+ "description": "Collection of frustration signal types.",
28
+ "items": {
29
+ "type": "string",
30
+ "enum": ["rage_click", "error_click", "dead_click"],
31
+ "description": "The type of frustration signal.",
32
+ "readOnly": true
33
+ }
34
+ },
35
+ "recordIds": {
36
+ "type": "array",
37
+ "description": "Collection of frustration signal event IDs.",
38
+ "items": {
39
+ "type": "integer",
40
+ "description": "Event ID for this frustration signal.",
41
+ "readOnly": true
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/full-snapshot-record-schema.json",
4
+ "title": "BrowserFullSnapshotRecord",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a Record type which contains the full snapshot of a screen.",
7
+ "allOf": [
8
+ {
9
+ "$ref": "../common/_slot-supported-common-record-schema.json"
10
+ },
11
+ {
12
+ "required": ["type", "data"],
13
+ "properties": {
14
+ "type": {
15
+ "type": "integer",
16
+ "description": "The type of this Record.",
17
+ "const": 2,
18
+ "readOnly": true
19
+ },
20
+ "data": {
21
+ "$ref": "node-schema.json"
22
+ }
23
+ }
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/incremental-data-schema.json",
4
+ "title": "BrowserIncrementalData",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a Session Replay IncrementalData type.",
7
+ "oneOf": [
8
+ {
9
+ "$ref": "mutation-data-schema.json"
10
+ },
11
+ {
12
+ "$ref": "mouse-move-data-schema.json"
13
+ },
14
+ {
15
+ "$ref": "mouse-interaction-data-schema.json"
16
+ },
17
+ {
18
+ "$ref": "scroll-data-schema.json"
19
+ },
20
+ {
21
+ "$ref": "input-data-schema.json"
22
+ },
23
+ {
24
+ "$ref": "media-interaction-data-schema.json"
25
+ },
26
+ {
27
+ "$ref": "stylesheet-rule-data-schema.json"
28
+ },
29
+ {
30
+ "$ref": "../common/viewport-resize-data-schema.json"
31
+ },
32
+ {
33
+ "$ref": "../common/pointer-interaction-data-schema.json"
34
+ }
35
+ ]
36
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/incremental-snapshot-record-schema.json",
4
+ "title": "BrowserIncrementalSnapshotRecord",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a Record type which contains mutations of a screen.",
7
+ "allOf": [
8
+ {
9
+ "$ref": "../common/_slot-supported-common-record-schema.json"
10
+ },
11
+ {
12
+ "required": ["type", "data"],
13
+ "properties": {
14
+ "type": {
15
+ "type": "integer",
16
+ "description": "The type of this Record.",
17
+ "const": 3,
18
+ "readOnly": true
19
+ },
20
+ "data": {
21
+ "$ref": "incremental-data-schema.json"
22
+ },
23
+ "id": {
24
+ "type": "integer"
25
+ }
26
+ }
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/input-data-schema.json",
4
+ "title": "InputData",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of an InputData.",
7
+ "allOf": [
8
+ {
9
+ "required": ["source", "id"],
10
+ "properties": {
11
+ "source": {
12
+ "type": "integer",
13
+ "const": 5,
14
+ "description": "The source of this type of incremental data.",
15
+ "readOnly": true
16
+ },
17
+ "id": {
18
+ "type": "integer",
19
+ "description": "Id for the target node for this InputData."
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "$ref": "input-state-schema.json"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/input-state-schema.json",
4
+ "title": "InputState",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of an InputState.",
7
+ "oneOf": [
8
+ {
9
+ "required": ["text"],
10
+ "properties": {
11
+ "text": {
12
+ "type": "string",
13
+ "description": "Text value for this InputState."
14
+ }
15
+ }
16
+ },
17
+ {
18
+ "required": ["isChecked"],
19
+ "properties": {
20
+ "isChecked": {
21
+ "type": "boolean",
22
+ "description": "Checked state for this InputState."
23
+ }
24
+ }
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/media-interaction-data-schema.json",
4
+ "title": "MediaInteractionData",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MediaInteractionData.",
7
+ "allOf": [
8
+ {
9
+ "required": ["source"],
10
+ "properties": {
11
+ "source": {
12
+ "type": "integer",
13
+ "const": 7,
14
+ "description": "The source of this type of incremental data.",
15
+ "readOnly": true
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "$ref": "media-interaction-schema.json"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/media-interaction-schema.json",
4
+ "title": "MediaInteraction",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MediaInteraction.",
7
+ "required": ["id", "type"],
8
+ "properties": {
9
+ "id": {
10
+ "type": "integer",
11
+ "description": "Id for the target node for this MediaInteraction."
12
+ },
13
+ "type": {
14
+ "type": "integer",
15
+ "enum": [0, 1],
16
+ "description": "The type of MediaInteraction.",
17
+ "readOnly": true
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/mouse-interaction-data-schema.json",
4
+ "title": "MouseInteractionData",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MouseInteractionData.",
7
+ "allOf": [
8
+ {
9
+ "required": ["source"],
10
+ "properties": {
11
+ "source": {
12
+ "type": "integer",
13
+ "const": 2,
14
+ "description": "The source of this type of incremental data.",
15
+ "readOnly": true
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "$ref": "mouse-interaction-schema.json"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/mouse-interaction-schema.json",
4
+ "title": "MouseInteraction",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MouseInteraction.",
7
+ "oneOf": [
8
+ {
9
+ "required": ["type", "id", "x", "y"],
10
+ "properties": {
11
+ "type": {
12
+ "type": "integer",
13
+ "enum": [0, 1, 2, 3, 4, 7, 9],
14
+ "description": "The type of MouseInteraction: 0=mouseup, 1=mousedown, 2=click, 3=contextmenu, 4=dblclick, 7=touchstart, 9=touchend",
15
+ "readOnly": true
16
+ },
17
+ "id": {
18
+ "type": "integer",
19
+ "description": "Id for the target node for this MouseInteraction."
20
+ },
21
+ "x": {
22
+ "type": "number",
23
+ "description": "X-axis coordinate for this MouseInteraction."
24
+ },
25
+ "y": {
26
+ "type": "number",
27
+ "description": "Y-axis coordinate for this MouseInteraction."
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "required": ["type", "id"],
33
+ "properties": {
34
+ "type": {
35
+ "type": "integer",
36
+ "enum": [5, 6],
37
+ "description": "The type of MouseInteraction: 5=focus, 6=blur",
38
+ "readOnly": true
39
+ },
40
+ "id": {
41
+ "type": "integer",
42
+ "description": "Id for the target node for this MouseInteraction."
43
+ }
44
+ }
45
+ }
46
+ ]
47
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/mouse-move-data-schema.json",
4
+ "title": "MousemoveData",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MousemoveData.",
7
+ "required": ["source", "positions"],
8
+ "properties": {
9
+ "source": {
10
+ "type": "integer",
11
+ "enum": [1, 6],
12
+ "description": "The source of this type of incremental data.",
13
+ "readOnly": true
14
+ },
15
+ "positions": {
16
+ "type": "array",
17
+ "description": "Positions reported for this MousemoveData.",
18
+ "items": {
19
+ "$ref": "mouse-position-schema.json"
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/mouse-position-schema.json",
4
+ "title": "MousePosition",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MousePosition.",
7
+ "required": ["x", "y", "id", "timeOffset"],
8
+ "properties": {
9
+ "x": {
10
+ "type": "number",
11
+ "description": "X-axis coordinate for this MousePosition."
12
+ },
13
+ "y": {
14
+ "type": "number",
15
+ "description": "Y-axis coordinate for this MousePosition."
16
+ },
17
+ "id": {
18
+ "type": "integer",
19
+ "description": "Id for the target node for this MousePosition."
20
+ },
21
+ "timeOffset": {
22
+ "type": "integer",
23
+ "description": "Observed time offset for this MousePosition."
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/mutation-data-schema.json",
4
+ "title": "BrowserMutationData",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MutationData.",
7
+ "allOf": [
8
+ {
9
+ "required": ["source"],
10
+ "properties": {
11
+ "source": {
12
+ "type": "integer",
13
+ "const": 0,
14
+ "description": "The source of this type of incremental data.",
15
+ "readOnly": true
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "$ref": "mutation-payload-schema.json"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "session-replay/browser/mutation-payload-schema.json",
4
+ "title": "BrowserMutationPayload",
5
+ "type": "object",
6
+ "description": "Browser-specific. Schema of a MutationPayload.",
7
+ "allOf": [
8
+ {
9
+ "required": ["adds", "removes", "texts", "attributes"],
10
+ "properties": {
11
+ "adds": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "node-added-mutation-schema.json"
15
+ },
16
+ "description": "Contains the newly added nodes."
17
+ },
18
+ "removes": {
19
+ "type": "array",
20
+ "items": {
21
+ "$ref": "node-removed-mutation-schema.json"
22
+ },
23
+ "description": "Contains the removed nodes."
24
+ },
25
+ "attributes": {
26
+ "type": "array",
27
+ "items": {
28
+ "$ref": "attribute-mutation-schema.json"
29
+ },
30
+ "description": "Contains the updated attribute mutations."
31
+ },
32
+ "texts": {
33
+ "type": "array",
34
+ "items": {
35
+ "$ref": "text-mutation-schema.json"
36
+ },
37
+ "description": "Contains the updated text mutations."
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }