Skip to content

Commit

Permalink
Merge pull request #62 from fingerprintjs/INTER-773-update-schema
Browse files Browse the repository at this point in the history
Update schema
  • Loading branch information
ilfa authored Aug 6, 2024
2 parents 89d18e3 + e8a28f6 commit 745ca2b
Show file tree
Hide file tree
Showing 19 changed files with 306 additions and 31 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Class | Method | HTTP request | Description
- [DataCenter](docs/DataCenter.md)
- [DeprecatedIPLocation](docs/DeprecatedIPLocation.md)
- [DeprecatedIPLocationCity](docs/DeprecatedIPLocationCity.md)
- [DeveloperToolsResult](docs/DeveloperToolsResult.md)
- [EmulatorResult](docs/EmulatorResult.md)
- [ErrorCommon403Response](docs/ErrorCommon403Response.md)
- [ErrorCommon429Response](docs/ErrorCommon429Response.md)
Expand Down Expand Up @@ -272,6 +273,7 @@ Class | Method | HTTP request | Description
- [RootAppsResult](docs/RootAppsResult.md)
- [SeenAt](docs/SeenAt.md)
- [SignalResponseClonedApp](docs/SignalResponseClonedApp.md)
- [SignalResponseDeveloperTools](docs/SignalResponseDeveloperTools.md)
- [SignalResponseEmulator](docs/SignalResponseEmulator.md)
- [SignalResponseFactoryReset](docs/SignalResponseFactoryReset.md)
- [SignalResponseFrida](docs/SignalResponseFrida.md)
Expand Down
9 changes: 9 additions & 0 deletions docs/DeveloperToolsResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# DeveloperToolsResult

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**result** | **bool** | `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. |

[[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 docs/FactoryResetResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**time** | **datetime** | Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. |
**timestamp** | **int** | Same value as it's in the `time` field but represented in timestamp format. |
**time** | **datetime** | Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. |
**timestamp** | **int** | This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. |

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

1 change: 1 addition & 0 deletions docs/ProductsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Name | Type | Description | Notes
**raw_device_attributes** | [**SignalResponseRawDeviceAttributes**](SignalResponseRawDeviceAttributes.md) | | [optional]
**remote_control** | [**SignalResponseRemoteControl**](SignalResponseRemoteControl.md) | | [optional]
**velocity** | [**SignalResponseVelocity**](SignalResponseVelocity.md) | | [optional]
**developer_tools** | [**SignalResponseDeveloperTools**](SignalResponseDeveloperTools.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)

10 changes: 10 additions & 0 deletions docs/SignalResponseDeveloperTools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SignalResponseDeveloperTools

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**DeveloperToolsResult**](DeveloperToolsResult.md) | | [optional]
**error** | [**ProductError**](ProductError.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)

2 changes: 1 addition & 1 deletion docs/Visit.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Name | Type | Description | Notes
**timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. |
**time** | **datetime** | Time expressed according to ISO 8601 in UTC format. |
**url** | **str** | Page URL from which the identification request was sent. |
**tag** | **dict(str, object)** | A customer-provided value or an object that was sent with identification request. |
**tag** | **dict(str, object)** | A customer-provided value or an object that was sent with identification request. | [optional]
**linked_id** | **str** | A customer-provided id that was sent with identification request. | [optional]
**confidence** | [**Confidence**](Confidence.md) | | [optional]
**visitor_found** | **bool** | Attribute represents if a visitor had been identified before. |
Expand Down
3 changes: 2 additions & 1 deletion docs/WebhookVisit.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ Name | Type | Description | Notes
**suspect_score** | [**SuspectScoreResult**](SuspectScoreResult.md) | | [optional]
**remote_control** | [**RemoteControlResult**](RemoteControlResult.md) | | [optional]
**velocity** | [**VelocityResult**](VelocityResult.md) | | [optional]
**developer_tools** | [**DeveloperToolsResult**](DeveloperToolsResult.md) | | [optional]
**request_id** | **str** | Unique identifier of the user's identification request. |
**browser_details** | [**BrowserDetails**](BrowserDetails.md) | |
**ip** | **str** | |
**ip_location** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional]
**timestamp** | **int** | Timestamp of the event with millisecond precision in Unix time. |
**time** | **datetime** | Time expressed according to ISO 8601 in UTC format. |
**url** | **str** | Page URL from which the identification request was sent. |
**tag** | **dict(str, object)** | A customer-provided value or an object that was sent with identification request. |
**tag** | **dict(str, object)** | A customer-provided value or an object that was sent with identification request. | [optional]
**linked_id** | **str** | A customer-provided id that was sent with identification request. | [optional]
**confidence** | [**Confidence**](Confidence.md) | | [optional]
**visitor_found** | **bool** | Attribute represents if a visitor had been identified before. |
Expand Down
2 changes: 2 additions & 0 deletions fingerprint_pro_server_api_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from fingerprint_pro_server_api_sdk.models.data_center import DataCenter
from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation
from fingerprint_pro_server_api_sdk.models.deprecated_ip_location_city import DeprecatedIPLocationCity
from fingerprint_pro_server_api_sdk.models.developer_tools_result import DeveloperToolsResult
from fingerprint_pro_server_api_sdk.models.emulator_result import EmulatorResult
from fingerprint_pro_server_api_sdk.models.error_common403_response import ErrorCommon403Response
from fingerprint_pro_server_api_sdk.models.error_common429_response import ErrorCommon429Response
Expand Down Expand Up @@ -76,6 +77,7 @@
from fingerprint_pro_server_api_sdk.models.root_apps_result import RootAppsResult
from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt
from fingerprint_pro_server_api_sdk.models.signal_response_cloned_app import SignalResponseClonedApp
from fingerprint_pro_server_api_sdk.models.signal_response_developer_tools import SignalResponseDeveloperTools
from fingerprint_pro_server_api_sdk.models.signal_response_emulator import SignalResponseEmulator
from fingerprint_pro_server_api_sdk.models.signal_response_factory_reset import SignalResponseFactoryReset
from fingerprint_pro_server_api_sdk.models.signal_response_frida import SignalResponseFrida
Expand Down
2 changes: 2 additions & 0 deletions fingerprint_pro_server_api_sdk/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from fingerprint_pro_server_api_sdk.models.data_center import DataCenter
from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation
from fingerprint_pro_server_api_sdk.models.deprecated_ip_location_city import DeprecatedIPLocationCity
from fingerprint_pro_server_api_sdk.models.developer_tools_result import DeveloperToolsResult
from fingerprint_pro_server_api_sdk.models.emulator_result import EmulatorResult
from fingerprint_pro_server_api_sdk.models.error_common403_response import ErrorCommon403Response
from fingerprint_pro_server_api_sdk.models.error_common429_response import ErrorCommon429Response
Expand Down Expand Up @@ -68,6 +69,7 @@
from fingerprint_pro_server_api_sdk.models.root_apps_result import RootAppsResult
from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt
from fingerprint_pro_server_api_sdk.models.signal_response_cloned_app import SignalResponseClonedApp
from fingerprint_pro_server_api_sdk.models.signal_response_developer_tools import SignalResponseDeveloperTools
from fingerprint_pro_server_api_sdk.models.signal_response_emulator import SignalResponseEmulator
from fingerprint_pro_server_api_sdk.models.signal_response_factory_reset import SignalResponseFactoryReset
from fingerprint_pro_server_api_sdk.models.signal_response_frida import SignalResponseFrida
Expand Down
66 changes: 66 additions & 0 deletions fingerprint_pro_server_api_sdk/models/developer_tools_result.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# coding: utf-8

"""
Fingerprint Pro Server API
Fingerprint Pro Server API allows you to get information about visitors and about individual 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. # noqa: E501
OpenAPI spec version: 3
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import re # noqa: F401
from typing import Dict, List # noqa: F401
from fingerprint_pro_server_api_sdk.base_model import BaseModel


class DeveloperToolsResult(BaseModel):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'result': 'bool'
}

attribute_map = {
'result': 'result'
}

def __init__(self, result=None): # noqa: E501
"""DeveloperToolsResult - a model defined in Swagger""" # noqa: E501
self._result = None
self.discriminator = None
self.result = result

@property
def result(self) -> bool:
"""Gets the result of this DeveloperToolsResult. # noqa: E501
`true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. # noqa: E501
:return: The result of this DeveloperToolsResult. # noqa: E501
"""
return self._result

@result.setter
def result(self, result: bool):
"""Sets the result of this DeveloperToolsResult.
`true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. # noqa: E501
:param result: The result of this DeveloperToolsResult. # noqa: E501
"""
if result is None:
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501

self._result = result

8 changes: 4 additions & 4 deletions fingerprint_pro_server_api_sdk/models/factory_reset_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, time=None, timestamp=None): # noqa: E501
def time(self) -> datetime:
"""Gets the time of this FactoryResetResult. # noqa: E501
Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. # noqa: E501
Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. # noqa: E501
:return: The time of this FactoryResetResult. # noqa: E501
"""
Expand All @@ -60,7 +60,7 @@ def time(self) -> datetime:
def time(self, time: datetime):
"""Sets the time of this FactoryResetResult.
Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. # noqa: E501
Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. # noqa: E501
:param time: The time of this FactoryResetResult. # noqa: E501
"""
Expand All @@ -73,7 +73,7 @@ def time(self, time: datetime):
def timestamp(self) -> int:
"""Gets the timestamp of this FactoryResetResult. # noqa: E501
Same value as it's in the `time` field but represented in timestamp format. # noqa: E501
This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. # noqa: E501
:return: The timestamp of this FactoryResetResult. # noqa: E501
"""
Expand All @@ -83,7 +83,7 @@ def timestamp(self) -> int:
def timestamp(self, timestamp: int):
"""Sets the timestamp of this FactoryResetResult.
Same value as it's in the `time` field but represented in timestamp format. # noqa: E501
This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. # noqa: E501
:param timestamp: The timestamp of this FactoryResetResult. # noqa: E501
"""
Expand Down
31 changes: 28 additions & 3 deletions fingerprint_pro_server_api_sdk/models/products_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from fingerprint_pro_server_api_sdk.models.signal_response_raw_device_attributes import SignalResponseRawDeviceAttributes
from fingerprint_pro_server_api_sdk.models.signal_response_remote_control import SignalResponseRemoteControl
from fingerprint_pro_server_api_sdk.models.signal_response_velocity import SignalResponseVelocity
from fingerprint_pro_server_api_sdk.models.signal_response_developer_tools import SignalResponseDeveloperTools


class ProductsResponse(BaseModel):
Expand Down Expand Up @@ -76,7 +77,8 @@ class ProductsResponse(BaseModel):
'suspect_score': 'SignalResponseSuspectScore',
'raw_device_attributes': 'SignalResponseRawDeviceAttributes',
'remote_control': 'SignalResponseRemoteControl',
'velocity': 'SignalResponseVelocity'
'velocity': 'SignalResponseVelocity',
'developer_tools': 'SignalResponseDeveloperTools'
}

attribute_map = {
Expand All @@ -102,10 +104,11 @@ class ProductsResponse(BaseModel):
'suspect_score': 'suspectScore',
'raw_device_attributes': 'rawDeviceAttributes',
'remote_control': 'remoteControl',
'velocity': 'velocity'
'velocity': 'velocity',
'developer_tools': 'developerTools'
}

def __init__(self, identification=None, botd=None, ip_info=None, incognito=None, root_apps=None, emulator=None, cloned_app=None, factory_reset=None, jailbroken=None, frida=None, ip_blocklist=None, tor=None, privacy_settings=None, virtual_machine=None, vpn=None, proxy=None, tampering=None, high_activity=None, location_spoofing=None, suspect_score=None, raw_device_attributes=None, remote_control=None, velocity=None): # noqa: E501
def __init__(self, identification=None, botd=None, ip_info=None, incognito=None, root_apps=None, emulator=None, cloned_app=None, factory_reset=None, jailbroken=None, frida=None, ip_blocklist=None, tor=None, privacy_settings=None, virtual_machine=None, vpn=None, proxy=None, tampering=None, high_activity=None, location_spoofing=None, suspect_score=None, raw_device_attributes=None, remote_control=None, velocity=None, developer_tools=None): # noqa: E501
"""ProductsResponse - a model defined in Swagger""" # noqa: E501
self._identification = None
self._botd = None
Expand All @@ -130,6 +133,7 @@ def __init__(self, identification=None, botd=None, ip_info=None, incognito=None,
self._raw_device_attributes = None
self._remote_control = None
self._velocity = None
self._developer_tools = None
self.discriminator = None
if identification is not None:
self.identification = identification
Expand Down Expand Up @@ -177,6 +181,8 @@ def __init__(self, identification=None, botd=None, ip_info=None, incognito=None,
self.remote_control = remote_control
if velocity is not None:
self.velocity = velocity
if developer_tools is not None:
self.developer_tools = developer_tools

@property
def identification(self) -> ProductsResponseIdentification:
Expand Down Expand Up @@ -615,3 +621,22 @@ def velocity(self, velocity: SignalResponseVelocity):

self._velocity = velocity

@property
def developer_tools(self) -> SignalResponseDeveloperTools:
"""Gets the developer_tools of this ProductsResponse. # noqa: E501
:return: The developer_tools of this ProductsResponse. # noqa: E501
"""
return self._developer_tools

@developer_tools.setter
def developer_tools(self, developer_tools: SignalResponseDeveloperTools):
"""Sets the developer_tools of this ProductsResponse.
:param developer_tools: The developer_tools of this ProductsResponse. # noqa: E501
"""

self._developer_tools = developer_tools

Loading

0 comments on commit 745ca2b

Please sign in to comment.