@zappie/verify 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,104 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://zappie.ai/schemas/verify-report.v1.json",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schema",
8
+ "id",
9
+ "suite",
10
+ "target",
11
+ "environment",
12
+ "startedAt",
13
+ "durationMs",
14
+ "result",
15
+ "summary",
16
+ "checks",
17
+ "metrics"
18
+ ],
19
+ "properties": {
20
+ "schema": { "const": "https://zappie.ai/schemas/verify-report.v1.json" },
21
+ "id": { "type": "string", "pattern": "^ver_" },
22
+ "suite": { "enum": ["standard", "extended"] },
23
+ "target": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": ["url", "origin", "store"],
27
+ "properties": {
28
+ "url": { "type": "string" },
29
+ "origin": { "type": "string" },
30
+ "store": { "type": "string" },
31
+ "siteId": { "type": "string" },
32
+ "deploymentId": { "type": "string" }
33
+ }
34
+ },
35
+ "environment": {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": ["runner", "verifyVersion", "sdkVersion", "browser"],
39
+ "properties": {
40
+ "runner": { "enum": ["build-worker", "sandbox", "cli", "ci"] },
41
+ "verifyVersion": { "type": "string" },
42
+ "sdkVersion": { "type": "string" },
43
+ "browser": { "type": "string" }
44
+ }
45
+ },
46
+ "startedAt": { "type": "string", "format": "date-time" },
47
+ "durationMs": { "type": "number", "minimum": 0 },
48
+ "result": { "enum": ["passed", "failed", "error"] },
49
+ "summary": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": ["passed", "failed", "skipped"],
53
+ "properties": {
54
+ "passed": { "type": "integer", "minimum": 0 },
55
+ "failed": { "type": "integer", "minimum": 0 },
56
+ "skipped": { "type": "integer", "minimum": 0 }
57
+ }
58
+ },
59
+ "checks": { "type": "array", "items": { "$ref": "#/$defs/check" } },
60
+ "metrics": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "properties": {
64
+ "menuJsKbGz": { "type": "number" },
65
+ "lcpMs": { "type": "number" },
66
+ "cls": { "type": "number" }
67
+ }
68
+ },
69
+ "signature": { "type": "string" }
70
+ },
71
+ "$defs": {
72
+ "check": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": ["id", "title", "result", "durationMs"],
76
+ "properties": {
77
+ "id": { "type": "string" },
78
+ "title": { "type": "string" },
79
+ "result": { "enum": ["passed", "failed", "skipped"] },
80
+ "durationMs": { "type": "number", "minimum": 0 },
81
+ "viewport": { "type": "string" },
82
+ "retried": { "type": "boolean" },
83
+ "error": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": ["code", "message", "hint"],
87
+ "properties": {
88
+ "code": { "type": "string" },
89
+ "message": { "type": "string" },
90
+ "hint": { "type": "string" }
91
+ }
92
+ },
93
+ "artifacts": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "properties": {
97
+ "screenshot": { "type": "string" },
98
+ "trace": { "type": "string" }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }