Skip to content

Commit 9576f5e

Browse files
author
SentienceDEV
committed
updated trace_v1 schema
1 parent 2a8b016 commit 9576f5e

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

sentience/schemas/trace_v1.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,46 @@
7373
"url": {"type": ["string", "null"]},
7474
"element_count": {"type": "integer"},
7575
"timestamp": {"type": ["string", "null"]},
76+
"diagnostics": {
77+
"type": ["object", "null"],
78+
"properties": {
79+
"confidence": {"type": ["number", "null"]},
80+
"reasons": {"type": "array", "items": {"type": "string"}},
81+
"metrics": {
82+
"type": ["object", "null"],
83+
"properties": {
84+
"ready_state": {"type": ["string", "null"]},
85+
"quiet_ms": {"type": ["number", "null"]},
86+
"node_count": {"type": ["integer", "null"]},
87+
"interactive_count": {"type": ["integer", "null"]},
88+
"raw_elements_count": {"type": ["integer", "null"]}
89+
},
90+
"additionalProperties": true
91+
},
92+
"captcha": {
93+
"type": ["object", "null"],
94+
"properties": {
95+
"detected": {"type": "boolean"},
96+
"provider_hint": {
97+
"type": ["string", "null"],
98+
"enum": ["recaptcha", "hcaptcha", "turnstile", "arkose", "awswaf", "unknown", null]
99+
},
100+
"confidence": {"type": "number"},
101+
"evidence": {
102+
"type": "object",
103+
"properties": {
104+
"text_hits": {"type": "array", "items": {"type": "string"}},
105+
"selector_hits": {"type": "array", "items": {"type": "string"}},
106+
"iframe_src_hits": {"type": "array", "items": {"type": "string"}},
107+
"url_hits": {"type": "array", "items": {"type": "string"}}
108+
}
109+
}
110+
},
111+
"required": ["detected", "confidence", "evidence"]
112+
}
113+
},
114+
"additionalProperties": true
115+
},
76116
"elements": {
77117
"type": "array",
78118
"items": {
@@ -289,7 +329,7 @@
289329
"passed": {"type": "boolean"},
290330
"kind": {
291331
"type": "string",
292-
"enum": ["assert", "task_done"],
332+
"enum": ["assert", "task_done", "captcha"],
293333
"description": "Type of verification event"
294334
},
295335
"label": {"type": "string", "description": "Human-readable label for the assertion"},

0 commit comments

Comments
 (0)