@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.
- package/.prettierignore +3 -0
- package/.prettierrc +6 -0
- package/LICENSE +21 -0
- package/README.md +31 -0
- package/cli.js +16 -0
- package/lib/cjs/generated/browserSessionReplay.d.ts +703 -0
- package/lib/cjs/generated/browserSessionReplay.js +6 -0
- package/lib/cjs/generated/dashboardCharts.d.ts +1372 -0
- package/lib/cjs/generated/dashboardCharts.js +6 -0
- package/lib/cjs/generated/mobileSessionReplay.d.ts +653 -0
- package/lib/cjs/generated/mobileSessionReplay.js +6 -0
- package/lib/cjs/generated/sessionReplay.d.ts +1190 -0
- package/lib/cjs/generated/sessionReplay.js +6 -0
- package/lib/cjs/src/dashboard-charts.d.ts +1 -0
- package/lib/cjs/src/dashboard-charts.js +17 -0
- package/lib/cjs/src/index.d.ts +2 -0
- package/lib/cjs/src/index.js +18 -0
- package/lib/cjs/src/session-replay-browser.d.ts +58 -0
- package/lib/cjs/src/session-replay-browser.js +69 -0
- package/lib/cjs/src/session-replay-mobile.d.ts +30 -0
- package/lib/cjs/src/session-replay-mobile.js +42 -0
- package/lib/cjs/src/session-replay.d.ts +30 -0
- package/lib/cjs/src/session-replay.js +49 -0
- package/lib/esm/generated/browserSessionReplay.d.ts +703 -0
- package/lib/esm/generated/browserSessionReplay.js +5 -0
- package/lib/esm/generated/dashboardCharts.d.ts +1372 -0
- package/lib/esm/generated/dashboardCharts.js +5 -0
- package/lib/esm/generated/mobileSessionReplay.d.ts +653 -0
- package/lib/esm/generated/mobileSessionReplay.js +5 -0
- package/lib/esm/generated/sessionReplay.d.ts +1190 -0
- package/lib/esm/generated/sessionReplay.js +5 -0
- package/lib/esm/src/dashboard-charts.d.ts +1 -0
- package/lib/esm/src/dashboard-charts.js +1 -0
- package/lib/esm/src/index.d.ts +2 -0
- package/lib/esm/src/index.js +2 -0
- package/lib/esm/src/session-replay-browser.d.ts +58 -0
- package/lib/esm/src/session-replay-browser.js +52 -0
- package/lib/esm/src/session-replay-mobile.d.ts +30 -0
- package/lib/esm/src/session-replay-mobile.js +25 -0
- package/lib/esm/src/session-replay.d.ts +30 -0
- package/lib/esm/src/session-replay.js +24 -0
- package/lib/example/grafana-dashboard.json +2205 -0
- package/lib/example/guance-covert-test.json +629 -0
- package/lib/example/guance-dashboard-1.json +672 -0
- package/lib/example/guance-dashboard.json +2841 -0
- package/lib/scripts/grafana-covert-to-guance.d.ts +1 -0
- package/lib/scripts/grafana-covert-to-guance.js +367 -0
- package/lib/scripts/grafana-covert-to-guance.ts +374 -0
- package/lib/scripts/grafana-dashbord.d.ts +2220 -0
- package/lib/scripts/grafana-dashbord.js +1 -0
- package/lib/scripts/grafana-dashbord.ts +2427 -0
- package/lib/src/dashboard-charts.ts +1 -0
- package/lib/src/index.ts +2 -0
- package/lib/src/session-replay-browser.ts +98 -0
- package/lib/src/session-replay-mobile.ts +54 -0
- package/lib/src/session-replay.ts +61 -0
- package/package.json +45 -0
- package/samples/dashboard/dashboard.json +2842 -0
- package/samples/dashboard/promql-dashboard.json +2175 -0
- package/samples/session-replay/mobile/record/full-snapshot-record.json +51 -0
- package/samples/session-replay/mobile/record/has-focus-record.json +7 -0
- package/samples/session-replay/mobile/record/incremental-snapshot-record.json +74 -0
- package/samples/session-replay/mobile/record/metadata-record.json +8 -0
- package/samples/session-replay/mobile/record/view-end-record.json +4 -0
- package/samples/session-replay/mobile/segment/segment.json +110 -0
- package/schemas/charts/chart-schema.json +73 -0
- package/schemas/charts/common/common-chart-types-schema.json +37 -0
- package/schemas/charts/common/common-vars-item-schema.json +117 -0
- package/schemas/charts/common/common-vars-schema.json +10 -0
- package/schemas/charts/dashboard-schema.json +73 -0
- package/schemas/charts/query/queries-schema.json +10 -0
- package/schemas/charts/query/query-item-schema.json +42 -0
- package/schemas/charts/settings/_common-settings-connect-null-schema.json +7 -0
- package/schemas/charts/settings/_common-settings-gradual-color-schema.json +72 -0
- package/schemas/charts/settings/_common-settings-groupby-schema.json +22 -0
- package/schemas/charts/settings/_common-settings-legend-position-schema.json +14 -0
- package/schemas/charts/settings/_common-settings-legend-values-schema.json +19 -0
- package/schemas/charts/settings/_common-settings-open-stack-schema.json +8 -0
- package/schemas/charts/settings/_common-settings-show-label-schema.json +8 -0
- package/schemas/charts/settings/_common-settings-show-line-schema.json +8 -0
- package/schemas/charts/settings/_common-settings-stack-content-schema.json +12 -0
- package/schemas/charts/settings/_common-settings-stack-type-schema.json +11 -0
- package/schemas/charts/settings/chart-alarm-settings-schema.json +48 -0
- package/schemas/charts/settings/chart-bar-settings-schema.json +69 -0
- package/schemas/charts/settings/chart-chinamap-settings-schema.json +102 -0
- package/schemas/charts/settings/chart-funnel-settings-schema.json +34 -0
- package/schemas/charts/settings/chart-gauge-settings-schema.json +65 -0
- package/schemas/charts/settings/chart-heatmap-settings-schema.json +50 -0
- package/schemas/charts/settings/chart-hexgon-settings-schema.json +90 -0
- package/schemas/charts/settings/chart-histogram-settings-schema.json +47 -0
- package/schemas/charts/settings/chart-iframe-settings-schema.json +24 -0
- package/schemas/charts/settings/chart-log-settings-schema.json +84 -0
- package/schemas/charts/settings/chart-object-settings-schema.json +52 -0
- package/schemas/charts/settings/chart-picture-settings-schema.json +46 -0
- package/schemas/charts/settings/chart-pie-settings-schema.json +90 -0
- package/schemas/charts/settings/chart-sankey-settings-schema.json +34 -0
- package/schemas/charts/settings/chart-scatter-bubble-settings-schema.json +31 -0
- package/schemas/charts/settings/chart-sequence-settings-schema.json +76 -0
- package/schemas/charts/settings/chart-singlestat-settings-schema.json +163 -0
- package/schemas/charts/settings/chart-table-settings-schema.json +184 -0
- package/schemas/charts/settings/chart-text-settings-schema.json +20 -0
- package/schemas/charts/settings/chart-toplist-settings-schema.json +117 -0
- package/schemas/charts/settings/chart-topology-settings-schema.json +71 -0
- package/schemas/charts/settings/chart-treemap-settings-schema.json +66 -0
- package/schemas/charts/settings/chart-worldmap-settings-schema.json +102 -0
- package/schemas/charts/settings/common-settings-schema.json +82 -0
- package/schemas/charts/settings/settings-alias-schema.json +47 -0
- package/schemas/charts/settings/settings-chart-type-schema.json +27 -0
- package/schemas/charts/settings/settings-colors-schema.json +46 -0
- package/schemas/charts/settings/settings-compare-schema.json +58 -0
- package/schemas/charts/settings/settings-fixed-time-schema.json +49 -0
- package/schemas/charts/settings/settings-levels-schema.json +33 -0
- package/schemas/charts/settings/settings-schema.json +79 -0
- package/schemas/charts/settings/settings-time-schema.json +47 -0
- package/schemas/charts/settings/settings-unit-items-schema.json +226 -0
- package/schemas/charts/settings/settings-units-schema.json +60 -0
- package/schemas/dashboard-schema.json +5 -0
- package/schemas/session-replay/browser/attribute-mutation-schema.json +21 -0
- package/schemas/session-replay/browser/attributes-schema.json +10 -0
- package/schemas/session-replay/browser/cdata-node-schema.json +19 -0
- package/schemas/session-replay/browser/creation-reason-schema.json +17 -0
- package/schemas/session-replay/browser/document-fragment-node-schema.json +35 -0
- package/schemas/session-replay/browser/document-node-schema.json +30 -0
- package/schemas/session-replay/browser/document-type-node-schema.json +28 -0
- package/schemas/session-replay/browser/element-node-schema.json +33 -0
- package/schemas/session-replay/browser/frustration-record-schema.json +49 -0
- package/schemas/session-replay/browser/full-snapshot-record-schema.json +26 -0
- package/schemas/session-replay/browser/incremental-data-schema.json +36 -0
- package/schemas/session-replay/browser/incremental-snapshot-record-schema.json +29 -0
- package/schemas/session-replay/browser/input-data-schema.json +27 -0
- package/schemas/session-replay/browser/input-state-schema.json +27 -0
- package/schemas/session-replay/browser/media-interaction-data-schema.json +23 -0
- package/schemas/session-replay/browser/media-interaction-schema.json +20 -0
- package/schemas/session-replay/browser/mouse-interaction-data-schema.json +23 -0
- package/schemas/session-replay/browser/mouse-interaction-schema.json +47 -0
- package/schemas/session-replay/browser/mouse-move-data-schema.json +23 -0
- package/schemas/session-replay/browser/mouse-position-schema.json +26 -0
- package/schemas/session-replay/browser/mutation-data-schema.json +23 -0
- package/schemas/session-replay/browser/mutation-payload-schema.json +42 -0
- package/schemas/session-replay/browser/node-added-mutation-schema.json +41 -0
- package/schemas/session-replay/browser/node-removed-mutation-schema.json +18 -0
- package/schemas/session-replay/browser/node-schema.json +28 -0
- package/schemas/session-replay/browser/record-schema.json +30 -0
- package/schemas/session-replay/browser/scroll-data-schema.json +23 -0
- package/schemas/session-replay/browser/scroll-position-schema.json +22 -0
- package/schemas/session-replay/browser/segment-metadata-schema.json +28 -0
- package/schemas/session-replay/browser/segment-schema.json +25 -0
- package/schemas/session-replay/browser/serialized-node-schema.json +15 -0
- package/schemas/session-replay/browser/serialized-node-with-id-schema.json +21 -0
- package/schemas/session-replay/browser/stylesheet-rule-add-schema.json +28 -0
- package/schemas/session-replay/browser/stylesheet-rule-data-schema.json +23 -0
- package/schemas/session-replay/browser/stylesheet-rule-delete-schema.json +24 -0
- package/schemas/session-replay/browser/stylesheet-rule-schema.json +29 -0
- package/schemas/session-replay/browser/stylesheet-schema.json +30 -0
- package/schemas/session-replay/browser/text-mutation-schema.json +27 -0
- package/schemas/session-replay/browser/text-node-schema.json +23 -0
- package/schemas/session-replay/common/_common-record-schema.json +14 -0
- package/schemas/session-replay/common/_common-segment-metadata-schema.json +30 -0
- package/schemas/session-replay/common/_slot-supported-common-record-schema.json +21 -0
- package/schemas/session-replay/common/focus-record-schema.json +34 -0
- package/schemas/session-replay/common/meta-record-schema.json +42 -0
- package/schemas/session-replay/common/pointer-interaction-data-schema.json +23 -0
- package/schemas/session-replay/common/pointer-interaction-schema.json +34 -0
- package/schemas/session-replay/common/segment-context-schema.json +46 -0
- package/schemas/session-replay/common/view-end-record-schema.json +23 -0
- package/schemas/session-replay/common/viewport-resize-data-schema.json +23 -0
- package/schemas/session-replay/common/viewport-resize-dimension-schema.json +18 -0
- package/schemas/session-replay/common/visual-viewport-record-schema.json +50 -0
- package/schemas/session-replay/full-snapshot-record-schema.json +14 -0
- package/schemas/session-replay/incremental-data-schema.json +14 -0
- package/schemas/session-replay/incremental-snapshot-record-schema.json +14 -0
- package/schemas/session-replay/mobile/_common-shape-wireframe-schema.json +22 -0
- package/schemas/session-replay/mobile/_common-shape-wireframe-update-schema.json +22 -0
- package/schemas/session-replay/mobile/_common-wireframe-schema.json +38 -0
- package/schemas/session-replay/mobile/_common-wireframe-update-schema.json +38 -0
- package/schemas/session-replay/mobile/full-snapshot-record-schema.json +38 -0
- package/schemas/session-replay/mobile/image-wireframe-schema.json +43 -0
- package/schemas/session-replay/mobile/image-wireframe-update-schema.json +43 -0
- package/schemas/session-replay/mobile/incremental-data-schema.json +21 -0
- package/schemas/session-replay/mobile/incremental-snapshot-record-schema.json +26 -0
- package/schemas/session-replay/mobile/mutation-data-schema.json +23 -0
- package/schemas/session-replay/mobile/mutation-payload-schema.json +55 -0
- package/schemas/session-replay/mobile/placeholder-wireframe-schema.json +28 -0
- package/schemas/session-replay/mobile/placeholder-wireframe-update-schema.json +28 -0
- package/schemas/session-replay/mobile/record-schema.json +27 -0
- package/schemas/session-replay/mobile/segment-metadata-schema.json +25 -0
- package/schemas/session-replay/mobile/segment-schema.json +25 -0
- package/schemas/session-replay/mobile/shape-border-schema.json +25 -0
- package/schemas/session-replay/mobile/shape-style-schema.json +29 -0
- package/schemas/session-replay/mobile/shape-wireframe-schema.json +23 -0
- package/schemas/session-replay/mobile/shape-wireframe-update-schema.json +23 -0
- package/schemas/session-replay/mobile/text-position-schema.json +57 -0
- package/schemas/session-replay/mobile/text-style-schema.json +31 -0
- package/schemas/session-replay/mobile/text-wireframe-schema.json +34 -0
- package/schemas/session-replay/mobile/text-wireframe-update-schema.json +34 -0
- package/schemas/session-replay/mobile/touch-data-schema.json +51 -0
- package/schemas/session-replay/mobile/webview-wireframe-schema.json +33 -0
- package/schemas/session-replay/mobile/webview-wireframe-update-schema.json +33 -0
- package/schemas/session-replay/mobile/wireframe-clip-schema.json +29 -0
- package/schemas/session-replay/mobile/wireframe-schema.json +24 -0
- package/schemas/session-replay/mobile/wireframe-update-mutation-schema.json +24 -0
- package/schemas/session-replay/mutation-data-schema.json +14 -0
- package/schemas/session-replay/mutation-payload-schema.json +14 -0
- package/schemas/session-replay/record-schema.json +14 -0
- package/schemas/session-replay/segment-metadata-schema.json +14 -0
- package/schemas/session-replay/segment-schema.json +15 -0
- package/schemas/session-replay-browser-schema.json +5 -0
- package/schemas/session-replay-mobile-schema.json +5 -0
- package/schemas/session-replay-schema.json +33 -0
- package/scripts/generate.mjs +96 -0
- package/scripts/utils.mjs +16 -0
- package/scripts/validate.mjs +144 -0
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +13 -0
- package/tsconfig.script.json +15 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/common/segment-context-schema.json",
|
|
4
|
+
"title": "SegmentContext",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of a Session Replay Segment context.",
|
|
7
|
+
"required": ["application", "session", "view"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"application": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"description": "Application properties",
|
|
12
|
+
"required": ["id"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "UUID of the application",
|
|
17
|
+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"session": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"description": "Session properties",
|
|
24
|
+
"required": ["id"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "UUID of the session",
|
|
29
|
+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"view": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"description": "View properties",
|
|
36
|
+
"required": ["id"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "UUID of the view",
|
|
41
|
+
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/common/view-end-record-schema.json",
|
|
4
|
+
"title": "ViewEndRecord",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of a Record which signifies that view lifecycle ended.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_slot-supported-common-record-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": ["type"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"description": "The type of this Record.",
|
|
17
|
+
"const": 7,
|
|
18
|
+
"readOnly": true
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/common/viewport-resize-data-schema.json",
|
|
4
|
+
"title": "ViewportResizeData",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of a ViewportResizeData.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"required": ["source"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"source": {
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"const": 4,
|
|
14
|
+
"description": "The source of this type of incremental data.",
|
|
15
|
+
"readOnly": true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"$ref": "viewport-resize-dimension-schema.json"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/common/viewport-resize-dimension-schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "ViewportResizeDimension",
|
|
6
|
+
"description": "Schema of a ViewportResizeDimension.",
|
|
7
|
+
"required": ["width", "height"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"width": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"description": "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."
|
|
12
|
+
},
|
|
13
|
+
"height": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"description": "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."
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/common/visual-viewport-record-schema.json",
|
|
4
|
+
"title": "VisualViewportRecord",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of a Record which signifies that the viewport properties have changed.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_slot-supported-common-record-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": ["data", "type"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"data": {
|
|
15
|
+
"required": ["height", "offsetLeft", "offsetTop", "pageLeft", "pageTop", "scale", "width"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"height": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"offsetLeft": {
|
|
21
|
+
"type": "number"
|
|
22
|
+
},
|
|
23
|
+
"offsetTop": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"pageLeft": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
"pageTop": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
},
|
|
32
|
+
"scale": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"width": {
|
|
36
|
+
"type": "number"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"type": "object"
|
|
40
|
+
},
|
|
41
|
+
"type": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"description": "The type of this Record.",
|
|
44
|
+
"const": 8,
|
|
45
|
+
"readOnly": true
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/full-snapshot-record-schema.json",
|
|
4
|
+
"title": "FullSnapshotRecord",
|
|
5
|
+
"description": "Schema of a Record type which contains the full snapshot of a screen.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "browser/full-snapshot-record-schema.json"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "mobile/full-snapshot-record-schema.json"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/incremental-data-schema.json",
|
|
4
|
+
"title": "IncrementalData",
|
|
5
|
+
"description": "Schema of a Session Replay IncrementalData type.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "browser/incremental-data-schema.json"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "mobile/incremental-data-schema.json"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/incremental-snapshot-record-schema.json",
|
|
4
|
+
"title": "IncrementalSnapshotRecord",
|
|
5
|
+
"description": "Schema of a Record type which contains mutations of a screen.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "browser/incremental-snapshot-record-schema.json"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "mobile/incremental-snapshot-record-schema.json"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/_common-shape-wireframe-schema.json",
|
|
4
|
+
"title": "CommonShapeWireframe",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of common properties for ShapeWireframe events type and all its sub - types.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_common-wireframe-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"properties": {
|
|
13
|
+
"shapeStyle": {
|
|
14
|
+
"$ref": "shape-style-schema.json"
|
|
15
|
+
},
|
|
16
|
+
"border": {
|
|
17
|
+
"$ref": "shape-border-schema.json"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/_common-shape-wireframe-update-schema.json",
|
|
4
|
+
"title": "CommonShapeWireframeUpdate",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of common properties for ShapeWireframeUpdate events type and all its sub - types.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_common-wireframe-update-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"properties": {
|
|
13
|
+
"shapeStyle": {
|
|
14
|
+
"$ref": "shape-style-schema.json"
|
|
15
|
+
},
|
|
16
|
+
"border": {
|
|
17
|
+
"$ref": "shape-border-schema.json"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/_common-wireframe-schema.json",
|
|
4
|
+
"title": "CommonWireframe",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of common properties for Wireframe events type.",
|
|
7
|
+
"required": ["id", "x", "y", "width", "height"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"description": "Defines the unique ID of the wireframe. This is persistent throughout the view lifetime.",
|
|
12
|
+
"readOnly": true
|
|
13
|
+
},
|
|
14
|
+
"x": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"description": "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.",
|
|
17
|
+
"readOnly": true
|
|
18
|
+
},
|
|
19
|
+
"y": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"description": "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.",
|
|
22
|
+
"readOnly": true
|
|
23
|
+
},
|
|
24
|
+
"width": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"description": "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.",
|
|
27
|
+
"readOnly": true
|
|
28
|
+
},
|
|
29
|
+
"height": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"description": "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.",
|
|
32
|
+
"readOnly": true
|
|
33
|
+
},
|
|
34
|
+
"clip": {
|
|
35
|
+
"$ref": "wireframe-clip-schema.json"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/_common-wireframe-update-schema.json",
|
|
4
|
+
"title": "CommonWireframeUpdate",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of common properties for WireframeUpdate events type.",
|
|
7
|
+
"required": ["id"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"description": "Defines the unique ID of the wireframe. This is persistent throughout the view lifetime.",
|
|
12
|
+
"readOnly": true
|
|
13
|
+
},
|
|
14
|
+
"x": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"description": "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.",
|
|
17
|
+
"readOnly": true
|
|
18
|
+
},
|
|
19
|
+
"y": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"description": "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.",
|
|
22
|
+
"readOnly": true
|
|
23
|
+
},
|
|
24
|
+
"width": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"description": "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.",
|
|
27
|
+
"readOnly": true
|
|
28
|
+
},
|
|
29
|
+
"height": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"description": "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.",
|
|
32
|
+
"readOnly": true
|
|
33
|
+
},
|
|
34
|
+
"clip": {
|
|
35
|
+
"$ref": "wireframe-clip-schema.json"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/full-snapshot-record-schema.json",
|
|
4
|
+
"title": "MobileFullSnapshotRecord",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Mobile-specific. Schema of a Record type which contains the full snapshot of a screen.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../common/_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": 10,
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"data": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"readOnly": true,
|
|
23
|
+
"required": ["wireframes"],
|
|
24
|
+
"properties": {
|
|
25
|
+
"wireframes": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"$ref": "wireframe-schema.json"
|
|
29
|
+
},
|
|
30
|
+
"description": "The Wireframes contained by this Record.",
|
|
31
|
+
"readOnly": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/image-wireframe-schema.json",
|
|
4
|
+
"title": "ImageWireframe",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of all properties of a ImageWireframe.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_common-shape-wireframe-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": ["type"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The type of the wireframe.",
|
|
17
|
+
"const": "image",
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"base64": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "base64 representation of the image. Not required as the ImageWireframe can be initialised without any base64",
|
|
23
|
+
"readOnly": false
|
|
24
|
+
},
|
|
25
|
+
"resourceId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Unique identifier of the image resource",
|
|
28
|
+
"readOnly": false
|
|
29
|
+
},
|
|
30
|
+
"mimeType": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "MIME type of the image file",
|
|
33
|
+
"readOnly": false
|
|
34
|
+
},
|
|
35
|
+
"isEmpty": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Flag describing an image wireframe that should render an empty state placeholder",
|
|
38
|
+
"readOnly": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/image-wireframe-update-schema.json",
|
|
4
|
+
"title": "ImageWireframeUpdate",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of all properties of a ImageWireframeUpdate.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_common-shape-wireframe-update-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": ["type"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The type of the wireframe.",
|
|
17
|
+
"const": "image",
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"base64": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "base64 representation of the image. Not required as the ImageWireframe can be initialised without any base64",
|
|
23
|
+
"readOnly": false
|
|
24
|
+
},
|
|
25
|
+
"resourceId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Unique identifier of the image resource",
|
|
28
|
+
"readOnly": false
|
|
29
|
+
},
|
|
30
|
+
"mimeType": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "MIME type of the image file",
|
|
33
|
+
"readOnly": false
|
|
34
|
+
},
|
|
35
|
+
"isEmpty": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "Flag describing an image wireframe that should render an empty state placeholder",
|
|
38
|
+
"readOnly": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/incremental-data-schema.json",
|
|
4
|
+
"title": "MobileIncrementalData",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Mobile-specific. Schema of a Session Replay IncrementalData type.",
|
|
7
|
+
"oneOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "mutation-data-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"$ref": "touch-data-schema.json"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"$ref": "../common/viewport-resize-data-schema.json"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"$ref": "../common/pointer-interaction-data-schema.json"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/incremental-snapshot-record-schema.json",
|
|
4
|
+
"title": "MobileIncrementalSnapshotRecord",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Mobile-specific. Schema of a Record type which contains mutations of a screen.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../common/_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": 11,
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"data": {
|
|
21
|
+
"$ref": "incremental-data-schema.json"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/mutation-data-schema.json",
|
|
4
|
+
"title": "MobileMutationData",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Mobile-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,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/mutation-payload-schema.json",
|
|
4
|
+
"title": "MobileMutationPayload",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Mobile-specific. Schema of a MutationPayload.",
|
|
7
|
+
"required": ["adds", "removes", "updates"],
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"properties": {
|
|
11
|
+
"adds": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"readOnly": true,
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": ["wireframe"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"previousId": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "The previous wireframe id next or after which this new wireframe is drawn or attached to, respectively."
|
|
21
|
+
},
|
|
22
|
+
"wireframe": {
|
|
23
|
+
"$ref": "wireframe-schema.json"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"description": "Contains the newly added wireframes."
|
|
28
|
+
},
|
|
29
|
+
"removes": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"readOnly": true,
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": ["id"],
|
|
35
|
+
"properties": {
|
|
36
|
+
"id": {
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"description": "The id of the wireframe that needs to be removed."
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"description": "Contains the removed wireframes as an array of ids."
|
|
43
|
+
},
|
|
44
|
+
"updates": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"readOnly": true,
|
|
47
|
+
"items": {
|
|
48
|
+
"$ref": "wireframe-update-mutation-schema.json"
|
|
49
|
+
},
|
|
50
|
+
"description": "Contains the updated wireframes mutations."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/placeholder-wireframe-schema.json",
|
|
4
|
+
"title": "PlaceholderWireframe",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of all properties of a PlaceholderWireframe.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_common-wireframe-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": ["type"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The type of the wireframe.",
|
|
17
|
+
"const": "placeholder",
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"label": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Label of the placeholder",
|
|
23
|
+
"readOnly": false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "session-replay/mobile/placeholder-wireframe-update-schema.json",
|
|
4
|
+
"title": "PlaceholderWireframeUpdate",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Schema of all properties of a PlaceholderWireframe.",
|
|
7
|
+
"allOf": [
|
|
8
|
+
{
|
|
9
|
+
"$ref": "_common-wireframe-update-schema.json"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"required": ["type"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"type": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The type of the wireframe.",
|
|
17
|
+
"const": "placeholder",
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"label": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Label of the placeholder",
|
|
23
|
+
"readOnly": false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|