Skip to content

Commit 4306971

Browse files
authored
Merge pull request #143 from fingerprintjs/feat/open-api-v2.2.0
OpenAPI schema sync
2 parents aa0e28c + afcf2e9 commit 4306971

22 files changed

+496
-301
lines changed

.changeset/forty-seas-prove.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'fingerprint-pro-server-api-php-sdk': minor
3+
---
4+
5+
Add `relay` detection method to the VPN Detection Smart Signal

.changeset/orange-poets-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'fingerprint-pro-server-api-php-sdk': minor
3+
---
4+
5+
**events**: Add a `suspect` field to the `identification` product schema

.schema-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.1.0
1+
v2.2.0

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ Class | Method | HTTP request | Description
305305
- [ProductVirtualMachine](docs/Model/ProductVirtualMachine.md)
306306
- [Products](docs/Model/Products.md)
307307
- [Proxy](docs/Model/Proxy.md)
308-
- [RelatedVisitor](docs/Model/RelatedVisitor.md)
309308
- [RemoteControl](docs/Model/RemoteControl.md)
310309
- [RootApps](docs/Model/RootApps.md)
311310
- [SuspectScore](docs/Model/SuspectScore.md)

docs/Model/Identification.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**ip** | **string** | IP address of the requesting browser or bot. |
1111
**ip_location** | [**\Fingerprint\ServerAPI\Model\DeprecatedGeolocation**](DeprecatedGeolocation.md) | | [optional]
1212
**linked_id** | **string** | A customer-provided id that was sent with the request. | [optional]
13+
**suspect** | **bool** | Field is `true` if you have previously set the `suspect` flag for this event using the [Server API Update event endpoint](https://dev.fingerprint.com/reference/updateevent). | [optional]
1314
**timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. |
1415
**time** | [**\DateTime**](\DateTime.md) | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. |
1516
**url** | **string** | Page URL from which the request was sent. |

docs/Model/RelatedVisitor.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/Model/VPNMethods.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**public_vpn** | **bool** | Request IP address is owned and used by a public VPN service provider. |
88
**auxiliary_mobile** | **bool** | This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. |
99
**os_mismatch** | **bool** | The browser runs on a different operating system than the operating system inferred from the request network signature. |
10+
**relay** | **bool** | Request IP address belongs to a relay service provider, indicating the use of relay services like [Apple Private relay](https://support.apple.com/en-us/102602) or [Cloudflare Warp](https://developers.cloudflare.com/warp-client/). * Like VPNs, relay services anonymize the visitor's true IP address. * Unlike traditional VPNs, relay services don't let visitors spoof their location by choosing an exit node in a different country. This field allows you to differentiate VPN users and relay service users in your fraud prevention logic. |
1011

1112
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
1213

res/fingerprint-server-api.yaml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ paths:
527527
publicVPN: false
528528
auxiliaryMobile: false
529529
osMismatch: false
530+
relay: false
530531
proxy:
531532
result: false
532533
tampering:
@@ -848,6 +849,12 @@ components:
848849
linkedId:
849850
type: string
850851
description: A customer-provided id that was sent with the request.
852+
suspect:
853+
description: >-
854+
Field is `true` if you have previously set the `suspect` flag for
855+
this event using the [Server API Update event
856+
endpoint](https://dev.fingerprint.com/reference/updateevent).
857+
type: boolean
851858
timestamp:
852859
description: Timestamp of the event with millisecond precision in Unix time.
853860
type: integer
@@ -1218,6 +1225,7 @@ components:
12181225
- publicVPN
12191226
- auxiliaryMobile
12201227
- osMismatch
1228+
- relay
12211229
properties:
12221230
timezoneMismatch:
12231231
type: boolean
@@ -1239,6 +1247,23 @@ components:
12391247
description: >-
12401248
The browser runs on a different operating system than the operating
12411249
system inferred from the request network signature.
1250+
relay:
1251+
type: boolean
1252+
description: >
1253+
Request IP address belongs to a relay service provider, indicating
1254+
the use of relay services like [Apple Private
1255+
relay](https://support.apple.com/en-us/102602) or [Cloudflare
1256+
Warp](https://developers.cloudflare.com/warp-client/).
1257+
1258+
1259+
* Like VPNs, relay services anonymize the visitor's true IP address.
1260+
1261+
* Unlike traditional VPNs, relay services don't let visitors spoof
1262+
their location by choosing an exit node in a different country.
1263+
1264+
1265+
This field allows you to differentiate VPN users and relay service
1266+
users in your fraud prevention logic.
12421267
VPN:
12431268
type: object
12441269
additionalProperties: false
@@ -2290,14 +2315,3 @@ components:
22902315
$ref: '#/components/schemas/WebhookVelocity'
22912316
developerTools:
22922317
$ref: '#/components/schemas/WebhookDeveloperTools'
2293-
RelatedVisitor:
2294-
type: object
2295-
additionalProperties: false
2296-
required:
2297-
- visitorId
2298-
properties:
2299-
visitorId:
2300-
type: string
2301-
description: >-
2302-
Visitor ID of a browser that originates from the same mobile device
2303-
as the input visitor ID.

src/Model/Identification.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class Identification implements ModelInterface, \ArrayAccess
5959
'ip' => 'string',
6060
'ip_location' => '\Fingerprint\ServerAPI\Model\DeprecatedGeolocation',
6161
'linked_id' => 'string',
62+
'suspect' => 'bool',
6263
'timestamp' => 'int',
6364
'time' => '\DateTime',
6465
'url' => 'string',
@@ -82,6 +83,7 @@ class Identification implements ModelInterface, \ArrayAccess
8283
'ip' => null,
8384
'ip_location' => null,
8485
'linked_id' => null,
86+
'suspect' => null,
8587
'timestamp' => 'int64',
8688
'time' => 'date-time',
8789
'url' => null,
@@ -106,6 +108,7 @@ class Identification implements ModelInterface, \ArrayAccess
106108
'ip' => 'ip',
107109
'ip_location' => 'ipLocation',
108110
'linked_id' => 'linkedId',
111+
'suspect' => 'suspect',
109112
'timestamp' => 'timestamp',
110113
'time' => 'time',
111114
'url' => 'url',
@@ -129,6 +132,7 @@ class Identification implements ModelInterface, \ArrayAccess
129132
'ip' => 'setIp',
130133
'ip_location' => 'setIpLocation',
131134
'linked_id' => 'setLinkedId',
135+
'suspect' => 'setSuspect',
132136
'timestamp' => 'setTimestamp',
133137
'time' => 'setTime',
134138
'url' => 'setUrl',
@@ -152,6 +156,7 @@ class Identification implements ModelInterface, \ArrayAccess
152156
'ip' => 'getIp',
153157
'ip_location' => 'getIpLocation',
154158
'linked_id' => 'getLinkedId',
159+
'suspect' => 'getSuspect',
155160
'timestamp' => 'getTimestamp',
156161
'time' => 'getTime',
157162
'url' => 'getUrl',
@@ -184,6 +189,7 @@ public function __construct(?array $data = null)
184189
$this->container['ip'] = isset($data['ip']) ? $data['ip'] : null;
185190
$this->container['ip_location'] = isset($data['ip_location']) ? $data['ip_location'] : null;
186191
$this->container['linked_id'] = isset($data['linked_id']) ? $data['linked_id'] : null;
192+
$this->container['suspect'] = isset($data['suspect']) ? $data['suspect'] : null;
187193
$this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null;
188194
$this->container['time'] = isset($data['time']) ? $data['time'] : null;
189195
$this->container['url'] = isset($data['url']) ? $data['url'] : null;
@@ -467,6 +473,28 @@ public function setLinkedId(?string $linked_id): self
467473
return $this;
468474
}
469475

476+
/**
477+
* Gets suspect.
478+
*/
479+
public function getSuspect(): ?bool
480+
{
481+
return $this->container['suspect'];
482+
}
483+
484+
/**
485+
* Sets suspect.
486+
*
487+
* @param ?bool $suspect Field is `true` if you have previously set the `suspect` flag for this event using the [Server API Update event endpoint](https://dev.fingerprint.com/reference/updateevent).
488+
*
489+
* @return $this
490+
*/
491+
public function setSuspect(?bool $suspect): self
492+
{
493+
$this->container['suspect'] = $suspect;
494+
495+
return $this;
496+
}
497+
470498
/**
471499
* Gets timestamp.
472500
*/

0 commit comments

Comments
 (0)