@cloudcare/guance-front-tools 1.0.19 → 1.0.21

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 (185) hide show
  1. package/README.md +0 -64
  2. package/lib/cjs/generated/dashboardCharts.d.ts +172 -69
  3. package/lib/cjs/scripts/convert-grafana-dashboard-core.js +417 -56
  4. package/lib/esm/generated/dashboardCharts.d.ts +172 -69
  5. package/lib/esm/scripts/convert-grafana-dashboard-core.js +417 -56
  6. package/lib/example/1860_rev45.json +15536 -0
  7. package/lib/example/guance-dashboard.json +16766 -2702
  8. package/lib/scripts/convert-grafana-dashboard-core.js +1899 -1633
  9. package/package.json +1 -1
  10. package/schemas/charts/chart-schema.json +711 -1
  11. package/schemas/charts/settings/_common-settings-gradual-color-schema.json +17 -3
  12. package/schemas/charts/settings/_common-settings-legend-values-schema.json +23 -15
  13. package/{skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-treemap-settings-schema.json → schemas/charts/settings/chart-change-settings-schema.json} +34 -32
  14. package/schemas/charts/settings/chart-chinamap-settings-schema.json +2 -1
  15. package/schemas/charts/settings/chart-command-settings-schema.json +16 -0
  16. package/schemas/charts/settings/chart-hexgon-settings-schema.json +2 -1
  17. package/{skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-log-settings-schema.json → schemas/charts/settings/chart-monitor-settings-schema.json} +27 -30
  18. package/schemas/charts/settings/chart-sequence-settings-schema.json +2 -3
  19. package/schemas/charts/settings/chart-topology-settings-schema.json +1 -6
  20. package/schemas/charts/settings/chart-video-settings-schema.json +45 -0
  21. package/schemas/charts/settings/chart-worldmap-settings-schema.json +2 -1
  22. package/schemas/charts/settings/settings-alias-schema.json +14 -1
  23. package/schemas/charts/settings/settings-compare-schema.json +20 -12
  24. package/schemas/charts/settings/settings-schema.json +13 -1
  25. package/schemas/charts/settings/settings-time-schema.json +38 -23
  26. package/schemas/charts/settings/settings-unit-items-schema.json +222 -210
  27. package/schemas/charts/settings/settings-units-schema.json +0 -3
  28. package/test/cli.test.mjs +66 -44
  29. package/skills/grafana-to-guance-dashboard/SKILL.md +0 -490
  30. package/skills/grafana-to-guance-dashboard/agents/openai.yaml +0 -4
  31. package/skills/grafana-to-guance-dashboard/fixtures/grafana-dashboard.guance.json +0 -1029
  32. package/skills/grafana-to-guance-dashboard/fixtures/grafana-dashboard.json +0 -878
  33. package/skills/grafana-to-guance-dashboard/package.json +0 -16
  34. package/skills/grafana-to-guance-dashboard/references/conversion-audit-checklist.md +0 -183
  35. package/skills/grafana-to-guance-dashboard/references/converter-notes.md +0 -244
  36. package/skills/grafana-to-guance-dashboard/references/promql-compatibility-cheatsheet.md +0 -172
  37. package/skills/grafana-to-guance-dashboard/references/unit-inference-cheatsheet.md +0 -174
  38. package/skills/grafana-to-guance-dashboard/schemas/charts/chart-schema.json +0 -84
  39. package/skills/grafana-to-guance-dashboard/schemas/charts/common/chart-link-item-schema.json +0 -48
  40. package/skills/grafana-to-guance-dashboard/schemas/charts/common/chart-links-schema.json +0 -9
  41. package/skills/grafana-to-guance-dashboard/schemas/charts/common/common-chart-types-schema.json +0 -39
  42. package/skills/grafana-to-guance-dashboard/schemas/charts/common/common-vars-item-schema.json +0 -117
  43. package/skills/grafana-to-guance-dashboard/schemas/charts/common/common-vars-schema.json +0 -10
  44. package/skills/grafana-to-guance-dashboard/schemas/charts/dashboard-schema.json +0 -80
  45. package/skills/grafana-to-guance-dashboard/schemas/charts/query/queries-schema.json +0 -10
  46. package/skills/grafana-to-guance-dashboard/schemas/charts/query/query-item-schema.json +0 -60
  47. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-connect-null-schema.json +0 -7
  48. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-gradual-color-schema.json +0 -72
  49. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-groupby-schema.json +0 -22
  50. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-legend-position-schema.json +0 -14
  51. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-legend-values-schema.json +0 -19
  52. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-open-stack-schema.json +0 -8
  53. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-show-label-schema.json +0 -8
  54. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-show-line-schema.json +0 -8
  55. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-stack-content-schema.json +0 -12
  56. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/_common-settings-stack-type-schema.json +0 -11
  57. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-alarm-settings-schema.json +0 -48
  58. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-bar-settings-schema.json +0 -69
  59. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-chinamap-settings-schema.json +0 -102
  60. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-funnel-settings-schema.json +0 -34
  61. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-gauge-settings-schema.json +0 -65
  62. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-heatmap-settings-schema.json +0 -50
  63. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-hexgon-settings-schema.json +0 -90
  64. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-histogram-settings-schema.json +0 -47
  65. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-iframe-settings-schema.json +0 -24
  66. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-object-settings-schema.json +0 -52
  67. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-picture-settings-schema.json +0 -46
  68. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-pie-settings-schema.json +0 -90
  69. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-sankey-settings-schema.json +0 -34
  70. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-scatter-bubble-settings-schema.json +0 -31
  71. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-sequence-settings-schema.json +0 -76
  72. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-singlestat-settings-schema.json +0 -163
  73. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-table-settings-schema.json +0 -184
  74. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-text-settings-schema.json +0 -20
  75. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-toplist-settings-schema.json +0 -117
  76. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-topology-settings-schema.json +0 -71
  77. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/chart-worldmap-settings-schema.json +0 -102
  78. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/common-settings-schema.json +0 -82
  79. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-alias-schema.json +0 -47
  80. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-chart-type-schema.json +0 -27
  81. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-colors-schema.json +0 -46
  82. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-compare-schema.json +0 -58
  83. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-fixed-time-schema.json +0 -49
  84. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-levels-schema.json +0 -33
  85. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-schema.json +0 -79
  86. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-time-schema.json +0 -43
  87. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-unit-items-schema.json +0 -228
  88. package/skills/grafana-to-guance-dashboard/schemas/charts/settings/settings-units-schema.json +0 -59
  89. package/skills/grafana-to-guance-dashboard/schemas/dashboard-schema.json +0 -5
  90. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/attribute-mutation-schema.json +0 -21
  91. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/attributes-schema.json +0 -10
  92. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/cdata-node-schema.json +0 -19
  93. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/creation-reason-schema.json +0 -17
  94. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/document-fragment-node-schema.json +0 -35
  95. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/document-node-schema.json +0 -30
  96. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/document-type-node-schema.json +0 -28
  97. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/element-node-schema.json +0 -33
  98. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/frustration-record-schema.json +0 -49
  99. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/full-snapshot-record-schema.json +0 -26
  100. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/incremental-data-schema.json +0 -36
  101. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/incremental-snapshot-record-schema.json +0 -29
  102. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/input-data-schema.json +0 -27
  103. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/input-state-schema.json +0 -27
  104. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/media-interaction-data-schema.json +0 -23
  105. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/media-interaction-schema.json +0 -20
  106. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/mouse-interaction-data-schema.json +0 -23
  107. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/mouse-interaction-schema.json +0 -47
  108. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/mouse-move-data-schema.json +0 -23
  109. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/mouse-position-schema.json +0 -26
  110. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/mutation-data-schema.json +0 -23
  111. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/mutation-payload-schema.json +0 -42
  112. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/node-added-mutation-schema.json +0 -41
  113. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/node-removed-mutation-schema.json +0 -18
  114. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/node-schema.json +0 -28
  115. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/record-schema.json +0 -30
  116. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/scroll-data-schema.json +0 -23
  117. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/scroll-position-schema.json +0 -22
  118. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/segment-metadata-schema.json +0 -28
  119. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/segment-schema.json +0 -25
  120. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/serialized-node-schema.json +0 -15
  121. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/serialized-node-with-id-schema.json +0 -21
  122. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/stylesheet-rule-add-schema.json +0 -28
  123. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/stylesheet-rule-data-schema.json +0 -23
  124. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/stylesheet-rule-delete-schema.json +0 -24
  125. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/stylesheet-rule-schema.json +0 -29
  126. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/stylesheet-schema.json +0 -30
  127. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/text-mutation-schema.json +0 -27
  128. package/skills/grafana-to-guance-dashboard/schemas/session-replay/browser/text-node-schema.json +0 -23
  129. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/_common-record-schema.json +0 -14
  130. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/_common-segment-metadata-schema.json +0 -30
  131. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/_slot-supported-common-record-schema.json +0 -21
  132. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/focus-record-schema.json +0 -34
  133. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/meta-record-schema.json +0 -42
  134. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/pointer-interaction-data-schema.json +0 -23
  135. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/pointer-interaction-schema.json +0 -34
  136. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/segment-context-schema.json +0 -46
  137. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/view-end-record-schema.json +0 -23
  138. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/viewport-resize-data-schema.json +0 -23
  139. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/viewport-resize-dimension-schema.json +0 -18
  140. package/skills/grafana-to-guance-dashboard/schemas/session-replay/common/visual-viewport-record-schema.json +0 -50
  141. package/skills/grafana-to-guance-dashboard/schemas/session-replay/full-snapshot-record-schema.json +0 -14
  142. package/skills/grafana-to-guance-dashboard/schemas/session-replay/incremental-data-schema.json +0 -14
  143. package/skills/grafana-to-guance-dashboard/schemas/session-replay/incremental-snapshot-record-schema.json +0 -14
  144. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/_common-shape-wireframe-schema.json +0 -22
  145. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/_common-shape-wireframe-update-schema.json +0 -22
  146. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/_common-wireframe-schema.json +0 -38
  147. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/_common-wireframe-update-schema.json +0 -38
  148. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/full-snapshot-record-schema.json +0 -38
  149. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/image-wireframe-schema.json +0 -43
  150. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/image-wireframe-update-schema.json +0 -43
  151. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/incremental-data-schema.json +0 -21
  152. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/incremental-snapshot-record-schema.json +0 -26
  153. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/mutation-data-schema.json +0 -23
  154. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/mutation-payload-schema.json +0 -55
  155. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/placeholder-wireframe-schema.json +0 -28
  156. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/placeholder-wireframe-update-schema.json +0 -28
  157. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/record-schema.json +0 -27
  158. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/segment-metadata-schema.json +0 -25
  159. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/segment-schema.json +0 -25
  160. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/shape-border-schema.json +0 -25
  161. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/shape-style-schema.json +0 -29
  162. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/shape-wireframe-schema.json +0 -23
  163. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/shape-wireframe-update-schema.json +0 -23
  164. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/text-position-schema.json +0 -57
  165. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/text-style-schema.json +0 -31
  166. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/text-wireframe-schema.json +0 -34
  167. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/text-wireframe-update-schema.json +0 -34
  168. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/touch-data-schema.json +0 -51
  169. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/webview-wireframe-schema.json +0 -33
  170. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/webview-wireframe-update-schema.json +0 -33
  171. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/wireframe-clip-schema.json +0 -29
  172. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/wireframe-schema.json +0 -24
  173. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mobile/wireframe-update-mutation-schema.json +0 -24
  174. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mutation-data-schema.json +0 -14
  175. package/skills/grafana-to-guance-dashboard/schemas/session-replay/mutation-payload-schema.json +0 -14
  176. package/skills/grafana-to-guance-dashboard/schemas/session-replay/record-schema.json +0 -14
  177. package/skills/grafana-to-guance-dashboard/schemas/session-replay/segment-metadata-schema.json +0 -14
  178. package/skills/grafana-to-guance-dashboard/schemas/session-replay/segment-schema.json +0 -15
  179. package/skills/grafana-to-guance-dashboard/schemas/session-replay-browser-schema.json +0 -5
  180. package/skills/grafana-to-guance-dashboard/schemas/session-replay-mobile-schema.json +0 -5
  181. package/skills/grafana-to-guance-dashboard/schemas/session-replay-schema.json +0 -33
  182. package/skills/grafana-to-guance-dashboard/scripts/convert-grafana-dashboard-core.js +0 -1675
  183. package/skills/grafana-to-guance-dashboard/scripts/convert-grafana-dashboard.mjs +0 -120
  184. package/skills/grafana-to-guance-dashboard/scripts/validate-file.mjs +0 -62
  185. package/skills/grafana-to-guance-dashboard/test/convert.test.mjs +0 -54
@@ -1,35 +0,0 @@
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
- }
@@ -1,30 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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
- }
@@ -1,33 +0,0 @@
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
- }
@@ -1,49 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,36 +0,0 @@
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
- }
@@ -1,29 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,26 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,42 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "session-replay/browser/node-added-mutation-schema.json",
4
- "title": "AddedNodeMutation",
5
- "type": "object",
6
- "description": "Schema of an AddedNodeMutation.",
7
- "required": ["node", "nextId", "parentId"],
8
- "properties": {
9
- "node": {
10
- "$ref": "serialized-node-with-id-schema.json"
11
- },
12
- "parentId": {
13
- "type": "integer",
14
- "description": "Id for the parent node for this AddedNodeMutation."
15
- },
16
- "nextId": {
17
- "anyOf": [
18
- {
19
- "type": "integer",
20
- "description": "Id for the next sibling node for this AddedNodeMutation."
21
- },
22
- {
23
- "type": "null",
24
- "description": "Sent when there is no next sibling anymore."
25
- }
26
- ]
27
- },
28
- "previousId": {
29
- "anyOf": [
30
- {
31
- "type": "integer",
32
- "description": "Id for the previous sibling node for this AddedNodeMutation."
33
- },
34
- {
35
- "type": "null",
36
- "description": "Sent when there is no previous sibling anymore."
37
- }
38
- ]
39
- }
40
- }
41
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "session-replay/browser/node-removed-mutation-schema.json",
4
- "title": "RemovedNodeMutation",
5
- "type": "object",
6
- "description": "Schema of a RemovedNodeMutation.",
7
- "required": ["id", "parentId"],
8
- "properties": {
9
- "id": {
10
- "type": "integer",
11
- "description": "Id of the mutated node."
12
- },
13
- "parentId": {
14
- "type": "integer",
15
- "description": "Id for the parent node for this RemovedNodeMutation"
16
- }
17
- }
18
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "session-replay/browser/node-schema.json",
4
- "title": "BrowserNode",
5
- "type": "object",
6
- "description": "Schema of a Node type.",
7
- "required": ["node", "initialOffset"],
8
- "properties": {
9
- "node": {
10
- "$ref": "serialized-node-with-id-schema.json"
11
- },
12
- "initialOffset": {
13
- "type": "object",
14
- "description": "Initial node offset position.",
15
- "required": ["top", "left"],
16
- "properties": {
17
- "top": {
18
- "type": "number",
19
- "description": "Top position offset for this node."
20
- },
21
- "left": {
22
- "type": "number",
23
- "description": "Left position offset for this node."
24
- }
25
- }
26
- }
27
- }
28
- }