From cec3799b2c8e7e5f4661beb82e6e67df266df032 Mon Sep 17 00:00:00 2001 From: xnerhu Date: Tue, 16 Jul 2024 13:58:22 +0200 Subject: [PATCH 1/3] add devtools --- examples/get_event_200.json | 5 +++++ examples/get_event_200_all_errors.json | 6 ++++++ examples/webhook.json | 3 +++ schemas/fingerprint-server-api.yaml | 22 ++++++++++++++++++++++ 4 files changed, 36 insertions(+) diff --git a/examples/get_event_200.json b/examples/get_event_200.json index 1c82bcee..9579b39d 100644 --- a/examples/get_event_200.json +++ b/examples/get_event_200.json @@ -277,6 +277,11 @@ "data": { "result": false } + }, + "developerTools": { + "data": { + "result": false + } } } } diff --git a/examples/get_event_200_all_errors.json b/examples/get_event_200_all_errors.json index 3af20f39..555f88c8 100644 --- a/examples/get_event_200_all_errors.json +++ b/examples/get_event_200_all_errors.json @@ -141,6 +141,12 @@ "code": "Failed", "message": "internal server error" } + }, + "developerTools": { + "error": { + "code": "Failed", + "message": "internal server error" + } } } } diff --git a/examples/webhook.json b/examples/webhook.json index ac15bb4e..b06dc1ca 100644 --- a/examples/webhook.json +++ b/examples/webhook.json @@ -191,5 +191,8 @@ }, "remoteControl": { "result": false + }, + "developerTools": { + "result": false } } diff --git a/schemas/fingerprint-server-api.yaml b/schemas/fingerprint-server-api.yaml index f06ff4da..bcc9be73 100644 --- a/schemas/fingerprint-server-api.yaml +++ b/schemas/fingerprint-server-api.yaml @@ -918,6 +918,8 @@ components: $ref: '#/components/schemas/SuspectScoreResult' remoteControl: $ref: '#/components/schemas/RemoteControlResult' + developerTools: + $ref: '#/components/schemas/DeveloperToolsResult' required: - visitorId - $ref: '#/components/schemas/Visit' @@ -1414,6 +1416,15 @@ components: $ref: '#/components/schemas/RemoteControlResult' error: $ref: '#/components/schemas/ProductError' + developerTools: + title: SignalResponseDeveloperTools + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/DeveloperToolsResult' + error: + $ref: '#/components/schemas/ProductError' EventResponse: description: Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. type: object @@ -1868,6 +1879,17 @@ components: example: false required: - result + DeveloperToolsResult: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + `true` if browser has open devtools, `false` otherwise. + example: false + required: + - result EventUpdateRequest: type: object properties: From 9c7abb23e2033add125eef9f52a194c18190a590 Mon Sep 17 00:00:00 2001 From: xnerhu Date: Wed, 17 Jul 2024 09:49:00 +0200 Subject: [PATCH 2/3] update description --- schemas/fingerprint-server-api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/fingerprint-server-api.yaml b/schemas/fingerprint-server-api.yaml index bc76acf7..70bd39ce 100644 --- a/schemas/fingerprint-server-api.yaml +++ b/schemas/fingerprint-server-api.yaml @@ -1924,7 +1924,7 @@ components: result: type: boolean description: > - `true` if browser has open devtools, `false` otherwise. + `true` if browser has open devtools, `false` otherwise. Supports Chrome and Firefox. example: false required: - result From 0350ce79932b7ebd01db5f4b3ce2196a2b6c9f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Palkiewicz?= Date: Thu, 18 Jul 2024 18:45:29 +0200 Subject: [PATCH 3/3] Update schemas/fingerprint-server-api.yaml Co-authored-by: Juraj Uhlar --- schemas/fingerprint-server-api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/fingerprint-server-api.yaml b/schemas/fingerprint-server-api.yaml index 70bd39ce..1897e9b9 100644 --- a/schemas/fingerprint-server-api.yaml +++ b/schemas/fingerprint-server-api.yaml @@ -1924,7 +1924,7 @@ components: result: type: boolean description: > - `true` if browser has open devtools, `false` otherwise. Supports Chrome and Firefox. + `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. example: false required: - result