Skip to content

Commit c370f3c

Browse files
committed
feat: sync OpenAPI schema to v2.7.0
1 parent bd5db3d commit c370f3c

15 files changed

+168
-28
lines changed

.changeset/modern-moons-pick.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 `confidence` property to the Proxy detection Smart Signal, which now supports both residential and public web proxies.

.schema-version

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ Class | Method | HTTP request | Description
318318
- [ProductVirtualMachine](docs/Model/ProductVirtualMachine.md)
319319
- [Products](docs/Model/Products.md)
320320
- [Proxy](docs/Model/Proxy.md)
321+
- [ProxyConfidence](docs/Model/ProxyConfidence.md)
321322
- [RelatedVisitor](docs/Model/RelatedVisitor.md)
322323
- [RelatedVisitorsResponse](docs/Model/RelatedVisitorsResponse.md)
323324
- [RemoteControl](docs/Model/RemoteControl.md)

docs/Model/Proxy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**result** | **bool** | `true` if the request IP address is used by a public proxy provider, `false` otherwise. |
6+
**result** | **bool** | IP address was used by a public proxy provider or belonged to a known recent residential proxy |
7+
**confidence** | [**\Fingerprint\ServerAPI\Model\ProxyConfidence**](ProxyConfidence.md) | |
78

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

docs/Model/ProxyConfidence.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ProxyConfidence
2+
Confidence level of the proxy detection.
3+
If a proxy is not detected, confidence is "high".
4+
If it's detected, can be "low", "medium", or "high".
5+
6+

docs/Model/WebhookProxy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**result** | **bool** | `true` if the request IP address is used by a public proxy provider, `false` otherwise. | [optional]
6+
**result** | **bool** | IP address was used by a public proxy provider or belonged to a known recent residential proxy | [optional]
7+
**confidence** | [**\Fingerprint\ServerAPI\Model\ProxyConfidence**](ProxyConfidence.md) | | [optional]
78

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

res/fingerprint-server-api.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ paths:
953953
relay: false
954954
proxy:
955955
result: false
956+
confidence: high
956957
tampering:
957958
result: false
958959
anomalyScore: 0
@@ -1724,17 +1725,30 @@ components:
17241725
$ref: '#/components/schemas/VPN'
17251726
error:
17261727
$ref: '#/components/schemas/Error'
1728+
ProxyConfidence:
1729+
type: string
1730+
enum:
1731+
- low
1732+
- medium
1733+
- high
1734+
description: |
1735+
Confidence level of the proxy detection.
1736+
If a proxy is not detected, confidence is "high".
1737+
If it's detected, can be "low", "medium", or "high".
17271738
Proxy:
17281739
type: object
17291740
additionalProperties: false
17301741
required:
17311742
- result
1743+
- confidence
17321744
properties:
17331745
result:
17341746
type: boolean
17351747
description: >
1736-
`true` if the request IP address is used by a public proxy provider,
1737-
`false` otherwise.
1748+
IP address was used by a public proxy provider or belonged to a
1749+
known recent residential proxy
1750+
confidence:
1751+
$ref: '#/components/schemas/ProxyConfidence'
17381752
ProductProxy:
17391753
type: object
17401754
additionalProperties: false
@@ -2485,8 +2499,10 @@ components:
24852499
result:
24862500
type: boolean
24872501
description: >
2488-
`true` if the request IP address is used by a public proxy provider,
2489-
`false` otherwise.
2502+
IP address was used by a public proxy provider or belonged to a
2503+
known recent residential proxy
2504+
confidence:
2505+
$ref: '#/components/schemas/ProxyConfidence'
24902506
WebhookTampering:
24912507
type: object
24922508
additionalProperties: false

src/Model/Proxy.php

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ class Proxy implements ModelInterface, \ArrayAccess
5252
* @var string[]
5353
*/
5454
protected static array $swaggerTypes = [
55-
'result' => 'bool'];
55+
'result' => 'bool',
56+
'confidence' => '\Fingerprint\ServerAPI\Model\ProxyConfidence'];
5657

5758
/**
5859
* Array of property to format mappings. Used for (de)serialization.
5960
*
6061
* @var string[]
6162
*/
6263
protected static array $swaggerFormats = [
63-
'result' => null];
64+
'result' => null,
65+
'confidence' => null];
6466

6567
/**
6668
* Array of attributes where the key is the local name,
@@ -69,23 +71,26 @@ class Proxy implements ModelInterface, \ArrayAccess
6971
* @var string[]
7072
*/
7173
protected static array $attributeMap = [
72-
'result' => 'result'];
74+
'result' => 'result',
75+
'confidence' => 'confidence'];
7376

7477
/**
7578
* Array of attributes to setter functions (for deserialization of responses).
7679
*
7780
* @var string[]
7881
*/
7982
protected static array $setters = [
80-
'result' => 'setResult'];
83+
'result' => 'setResult',
84+
'confidence' => 'setConfidence'];
8185

8286
/**
8387
* Array of attributes to getter functions (for serialization of requests).
8488
*
8589
* @var string[]
8690
*/
8791
protected static array $getters = [
88-
'result' => 'getResult'];
92+
'result' => 'getResult',
93+
'confidence' => 'getConfidence'];
8994

9095
/**
9196
* Associative array for storing property values.
@@ -103,6 +108,7 @@ class Proxy implements ModelInterface, \ArrayAccess
103108
public function __construct(?array $data = null)
104109
{
105110
$this->container['result'] = isset($data['result']) ? $data['result'] : null;
111+
$this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null;
106112
}
107113

108114
/**
@@ -175,6 +181,9 @@ public function listInvalidProperties(): array
175181
if (null === $this->container['result']) {
176182
$invalidProperties[] = "'result' can't be null";
177183
}
184+
if (null === $this->container['confidence']) {
185+
$invalidProperties[] = "'confidence' can't be null";
186+
}
178187

179188
return $invalidProperties;
180189
}
@@ -201,7 +210,7 @@ public function getResult(): bool
201210
/**
202211
* Sets result.
203212
*
204-
* @param bool $result `true` if the request IP address is used by a public proxy provider, `false` otherwise
213+
* @param bool $result IP address was used by a public proxy provider or belonged to a known recent residential proxy
205214
*
206215
* @return $this
207216
*/
@@ -212,6 +221,28 @@ public function setResult(bool $result): self
212221
return $this;
213222
}
214223

224+
/**
225+
* Gets confidence.
226+
*/
227+
public function getConfidence(): ProxyConfidence
228+
{
229+
return $this->container['confidence'];
230+
}
231+
232+
/**
233+
* Sets confidence.
234+
*
235+
* @param ProxyConfidence $confidence confidence
236+
*
237+
* @return $this
238+
*/
239+
public function setConfidence(ProxyConfidence $confidence): self
240+
{
241+
$this->container['confidence'] = $confidence;
242+
243+
return $this;
244+
}
245+
215246
/**
216247
* Returns true if offset exists. False otherwise.
217248
*

src/Model/ProxyConfidence.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* ProxyConfidence.
4+
*
5+
* @category Class
6+
*
7+
* @author Swagger Codegen team
8+
*
9+
* @see https://github.com/swagger-api/swagger-codegen
10+
*/
11+
12+
/**
13+
* Fingerprint Server API.
14+
*
15+
* Fingerprint Server API allows you to search, update, and delete identification events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.
16+
*
17+
* OpenAPI spec version: 3
18+
* Contact: support@fingerprint.com
19+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
20+
* Swagger Codegen version: 3.0.34
21+
*/
22+
/**
23+
* NOTE: This class is auto generated by the swagger code generator program.
24+
* https://github.com/swagger-api/swagger-codegen
25+
* Do not edit the class manually.
26+
*/
27+
28+
namespace Fingerprint\ServerAPI\Model;
29+
30+
/**
31+
* ProxyConfidence Class Doc Comment.
32+
*
33+
* @category Class
34+
*
35+
* @description Confidence level of the proxy detection. If a proxy is not detected, confidence is \"high\". If it's detected, can be \"low\", \"medium\", or \"high\".
36+
*
37+
* @author Swagger Codegen team
38+
*
39+
* @see https://github.com/swagger-api/swagger-codegen
40+
*/
41+
enum ProxyConfidence: string
42+
{
43+
case LOW = 'low';
44+
case MEDIUM = 'medium';
45+
case HIGH = 'high';
46+
}

src/Model/WebhookProxy.php

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ class WebhookProxy implements ModelInterface, \ArrayAccess
5252
* @var string[]
5353
*/
5454
protected static array $swaggerTypes = [
55-
'result' => 'bool'];
55+
'result' => 'bool',
56+
'confidence' => '\Fingerprint\ServerAPI\Model\ProxyConfidence'];
5657

5758
/**
5859
* Array of property to format mappings. Used for (de)serialization.
5960
*
6061
* @var string[]
6162
*/
6263
protected static array $swaggerFormats = [
63-
'result' => null];
64+
'result' => null,
65+
'confidence' => null];
6466

6567
/**
6668
* Array of attributes where the key is the local name,
@@ -69,23 +71,26 @@ class WebhookProxy implements ModelInterface, \ArrayAccess
6971
* @var string[]
7072
*/
7173
protected static array $attributeMap = [
72-
'result' => 'result'];
74+
'result' => 'result',
75+
'confidence' => 'confidence'];
7376

7477
/**
7578
* Array of attributes to setter functions (for deserialization of responses).
7679
*
7780
* @var string[]
7881
*/
7982
protected static array $setters = [
80-
'result' => 'setResult'];
83+
'result' => 'setResult',
84+
'confidence' => 'setConfidence'];
8185

8286
/**
8387
* Array of attributes to getter functions (for serialization of requests).
8488
*
8589
* @var string[]
8690
*/
8791
protected static array $getters = [
88-
'result' => 'getResult'];
92+
'result' => 'getResult',
93+
'confidence' => 'getConfidence'];
8994

9095
/**
9196
* Associative array for storing property values.
@@ -103,6 +108,7 @@ class WebhookProxy implements ModelInterface, \ArrayAccess
103108
public function __construct(?array $data = null)
104109
{
105110
$this->container['result'] = isset($data['result']) ? $data['result'] : null;
111+
$this->container['confidence'] = isset($data['confidence']) ? $data['confidence'] : null;
106112
}
107113

108114
/**
@@ -195,7 +201,7 @@ public function getResult(): ?bool
195201
/**
196202
* Sets result.
197203
*
198-
* @param ?bool $result `true` if the request IP address is used by a public proxy provider, `false` otherwise
204+
* @param ?bool $result IP address was used by a public proxy provider or belonged to a known recent residential proxy
199205
*
200206
* @return $this
201207
*/
@@ -206,6 +212,28 @@ public function setResult(?bool $result): self
206212
return $this;
207213
}
208214

215+
/**
216+
* Gets confidence.
217+
*/
218+
public function getConfidence(): ?ProxyConfidence
219+
{
220+
return $this->container['confidence'];
221+
}
222+
223+
/**
224+
* Sets confidence.
225+
*
226+
* @param ?\Fingerprint\ServerAPI\Model\ProxyConfidence $confidence confidence
227+
*
228+
* @return $this
229+
*/
230+
public function setConfidence(?ProxyConfidence $confidence): self
231+
{
232+
$this->container['confidence'] = $confidence;
233+
234+
return $this;
235+
}
236+
209237
/**
210238
* Returns true if offset exists. False otherwise.
211239
*

0 commit comments

Comments
 (0)