Skip to content

Commit

Permalink
fix: update OpenAPI Schema with auxiliaryMobile method for VPN signal
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Sep 19, 2023
1 parent 4684316 commit 5422741
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/VpnResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**result** | **bool** | VPN or other anonymising service has been used when sending the request. | [optional]
**result** | **bool** | VPN or other anonymizing service has been used when sending the request. | [optional]
**methods** | [**VpnResultMethods**](VpnResultMethods.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions docs/VpnResultMethods.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**timezone_mismatch** | **bool** | User's browser timezone doesn't match the timezone from which the request was originally made. | [optional]
**public_vpn** | **bool** | Request IP address is owned and used by a public VPN service provider. | [optional]
**auxiliary_mobile** | **bool** | This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. | [optional]

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

4 changes: 2 additions & 2 deletions fingerprint_pro_server_api_sdk/models/vpn_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, result=None, methods=None): # noqa: E501
def result(self):
"""Gets the result of this VpnResult. # noqa: E501
VPN or other anonymising service has been used when sending the request. # noqa: E501
VPN or other anonymizing service has been used when sending the request. # noqa: E501
:return: The result of this VpnResult. # noqa: E501
:rtype: bool
Expand All @@ -62,7 +62,7 @@ def result(self):
def result(self, result):
"""Sets the result of this VpnResult.
VPN or other anonymising service has been used when sending the request. # noqa: E501
VPN or other anonymizing service has been used when sending the request. # noqa: E501
:param result: The result of this VpnResult. # noqa: E501
:type: bool
Expand Down
34 changes: 31 additions & 3 deletions fingerprint_pro_server_api_sdk/models/vpn_result_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,28 @@ class VpnResultMethods(object):
"""
swagger_types = {
'timezone_mismatch': 'bool',
'public_vpn': 'bool'
'public_vpn': 'bool',
'auxiliary_mobile': 'bool'
}

attribute_map = {
'timezone_mismatch': 'timezoneMismatch',
'public_vpn': 'publicVPN'
'public_vpn': 'publicVPN',
'auxiliary_mobile': 'auxiliaryMobile'
}

def __init__(self, timezone_mismatch=None, public_vpn=None): # noqa: E501
def __init__(self, timezone_mismatch=None, public_vpn=None, auxiliary_mobile=None): # noqa: E501
"""VpnResultMethods - a model defined in Swagger""" # noqa: E501
self._timezone_mismatch = None
self._public_vpn = None
self._auxiliary_mobile = None
self.discriminator = None
if timezone_mismatch is not None:
self.timezone_mismatch = timezone_mismatch
if public_vpn is not None:
self.public_vpn = public_vpn
if auxiliary_mobile is not None:
self.auxiliary_mobile = auxiliary_mobile

@property
def timezone_mismatch(self):
Expand Down Expand Up @@ -93,6 +98,29 @@ def public_vpn(self, public_vpn):

self._public_vpn = public_vpn

@property
def auxiliary_mobile(self):
"""Gets the auxiliary_mobile of this VpnResultMethods. # noqa: E501
This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501
:return: The auxiliary_mobile of this VpnResultMethods. # noqa: E501
:rtype: bool
"""
return self._auxiliary_mobile

@auxiliary_mobile.setter
def auxiliary_mobile(self, auxiliary_mobile):
"""Sets the auxiliary_mobile of this VpnResultMethods.
This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501
:param auxiliary_mobile: The auxiliary_mobile of this VpnResultMethods. # noqa: E501
:type: bool
"""

self._auxiliary_mobile = auxiliary_mobile

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
10 changes: 9 additions & 1 deletion res/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ paths:
methods:
timezoneMismatch: false
publicVPN: false
auxiliaryMobile: false
proxy:
data:
result: false
Expand Down Expand Up @@ -3812,6 +3813,7 @@ paths:
methods:
timezoneMismatch: false
publicVPN: false
auxiliaryMobile: false
proxy:
result: false
tampering:
Expand Down Expand Up @@ -4970,7 +4972,7 @@ components:
result:
type: boolean
description: >-
VPN or other anonymising service has been used when sending the
VPN or other anonymizing service has been used when sending the
request.
example: false
methods:
Expand All @@ -4988,6 +4990,12 @@ components:
Request IP address is owned and used by a public VPN service
provider.
example: false
auxiliaryMobile:
type: boolean
description: >-
This method applies to mobile devices only. Indicates the result
of additional methods used to detect a VPN in mobile devices.
example: false
TamperingResult:
type: object
properties:
Expand Down
3 changes: 2 additions & 1 deletion test/mocks/get_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@
"result": false,
"methods": {
"timezoneMismatch": false,
"publicVPN": false
"publicVPN": false,
"auxiliaryMobile": false
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion test/mocks/webhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
"result": false,
"methods": {
"timezoneMismatch": false,
"publicVPN": false
"publicVPN": false,
"auxiliaryMobile": false
}
},
"proxy": {
Expand Down

0 comments on commit 5422741

Please sign in to comment.