|
73 | 73 | "url": {"type": ["string", "null"]}, |
74 | 74 | "element_count": {"type": "integer"}, |
75 | 75 | "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 | + }, |
76 | 116 | "elements": { |
77 | 117 | "type": "array", |
78 | 118 | "items": { |
|
289 | 329 | "passed": {"type": "boolean"}, |
290 | 330 | "kind": { |
291 | 331 | "type": "string", |
292 | | - "enum": ["assert", "task_done"], |
| 332 | + "enum": ["assert", "task_done", "captcha"], |
293 | 333 | "description": "Type of verification event" |
294 | 334 | }, |
295 | 335 | "label": {"type": "string", "description": "Human-readable label for the assertion"}, |
|
0 commit comments