Skip to content

Commit

Permalink
Merge pull request #112 from fingerprintjs/SMSI-694/devtools
Browse files Browse the repository at this point in the history
SMSI-694: Add developer tools smart signal
  • Loading branch information
xnerhu authored Jul 22, 2024
2 parents 23fc00b + 0350ce7 commit ecb4e5f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/get_event_200.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@
}
}
}
},
"developerTools": {
"data": {
"result": false
}
}
}
}
}
6 changes: 6 additions & 0 deletions examples/get_event_200_all_errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@
"code": "Failed",
"message": "internal server error"
}
},
"developerTools": {
"error": {
"code": "Failed",
"message": "internal server error"
}
}
}
}
3 changes: 3 additions & 0 deletions examples/webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,8 @@
"24h": 5
}
}
},
"developerTools": {
"result": false
}
}
22 changes: 22 additions & 0 deletions schemas/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,8 @@ components:
$ref: '#/components/schemas/RemoteControlResult'
velocity:
$ref: '#/components/schemas/VelocityResult'
developerTools:
$ref: '#/components/schemas/DeveloperToolsResult'
required:
- visitorId
- $ref: '#/components/schemas/Visit'
Expand Down Expand Up @@ -1426,6 +1428,15 @@ components:
$ref: '#/components/schemas/VelocityResult'
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
Expand Down Expand Up @@ -1907,6 +1918,17 @@ components:
example: false
required:
- result
DeveloperToolsResult:
type: object
additionalProperties: false
properties:
result:
type: boolean
description: >
`true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise.
example: false
required:
- result
EventUpdateRequest:
type: object
properties:
Expand Down

0 comments on commit ecb4e5f

Please sign in to comment.