Skip to content

Commit

Permalink
feat: add raw device attributes support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Jul 21, 2023
1 parent 28926b8 commit 6b81649
Show file tree
Hide file tree
Showing 14 changed files with 422 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ Class | Method | HTTP request | Description
- [ProductsResponseBotd](docs/ProductsResponseBotd.md)
- [ProductsResponseIdentification](docs/ProductsResponseIdentification.md)
- [ProductsResponseIdentificationData](docs/ProductsResponseIdentificationData.md)
- [RawDeviceAttributesResult](docs/RawDeviceAttributesResult.md)
- [Response](docs/Response.md)
- [ResponseVisits](docs/ResponseVisits.md)
- [SeenAt](docs/SeenAt.md)
Expand All @@ -198,6 +199,7 @@ Class | Method | HTTP request | Description
- [SignalResponsePrivacySettingsData](docs/SignalResponsePrivacySettingsData.md)
- [SignalResponseProxy](docs/SignalResponseProxy.md)
- [SignalResponseProxyData](docs/SignalResponseProxyData.md)
- [SignalResponseRawDeviceAttributes](docs/SignalResponseRawDeviceAttributes.md)
- [SignalResponseRootApps](docs/SignalResponseRootApps.md)
- [SignalResponseRootAppsData](docs/SignalResponseRootAppsData.md)
- [SignalResponseTampering](docs/SignalResponseTampering.md)
Expand Down
1 change: 1 addition & 0 deletions docs/ProductsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**vpn** | [**SignalResponseVpn**](SignalResponseVpn.md) | | [optional]
**proxy** | [**SignalResponseProxy**](SignalResponseProxy.md) | | [optional]
**tampering** | [**SignalResponseTampering**](SignalResponseTampering.md) | | [optional]
**raw_device_attributes** | [**SignalResponseRawDeviceAttributes**](SignalResponseRawDeviceAttributes.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)

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**RawDeviceAttributesResult**](RawDeviceAttributesResult.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)

1 change: 1 addition & 0 deletions docs/WebhookVisit.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Description | Notes
**vpn** | [**VpnResult**](VpnResult.md) | | [optional]
**proxy** | [**WebhookSignalResponseProxy**](WebhookSignalResponseProxy.md) | | [optional]
**tampering** | [**TamperingResult**](TamperingResult.md) | | [optional]
**raw_device_attributes** | [**RawDeviceAttributesResult**](RawDeviceAttributesResult.md) | | [optional]
**request_id** | **str** | Unique identifier of the user's identification request. |
**browser_details** | [**BrowserDetails**](BrowserDetails.md) | |
**ip** | **str** | |
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 @@ -45,6 +45,7 @@
from fingerprint_pro_server_api_sdk.models.products_response_botd import ProductsResponseBotd
from fingerprint_pro_server_api_sdk.models.products_response_identification import ProductsResponseIdentification
from fingerprint_pro_server_api_sdk.models.products_response_identification_data import ProductsResponseIdentificationData
from fingerprint_pro_server_api_sdk.models.raw_device_attributes_result import RawDeviceAttributesResult
from fingerprint_pro_server_api_sdk.models.response import Response
from fingerprint_pro_server_api_sdk.models.response_visits import ResponseVisits
from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt
Expand All @@ -66,6 +67,7 @@
from fingerprint_pro_server_api_sdk.models.signal_response_privacy_settings_data import SignalResponsePrivacySettingsData
from fingerprint_pro_server_api_sdk.models.signal_response_proxy import SignalResponseProxy
from fingerprint_pro_server_api_sdk.models.signal_response_proxy_data import SignalResponseProxyData
from fingerprint_pro_server_api_sdk.models.signal_response_raw_device_attributes import SignalResponseRawDeviceAttributes
from fingerprint_pro_server_api_sdk.models.signal_response_root_apps import SignalResponseRootApps
from fingerprint_pro_server_api_sdk.models.signal_response_root_apps_data import SignalResponseRootAppsData
from fingerprint_pro_server_api_sdk.models.signal_response_tampering import SignalResponseTampering
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 @@ -39,6 +39,7 @@
from fingerprint_pro_server_api_sdk.models.products_response_botd import ProductsResponseBotd
from fingerprint_pro_server_api_sdk.models.products_response_identification import ProductsResponseIdentification
from fingerprint_pro_server_api_sdk.models.products_response_identification_data import ProductsResponseIdentificationData
from fingerprint_pro_server_api_sdk.models.raw_device_attributes_result import RawDeviceAttributesResult
from fingerprint_pro_server_api_sdk.models.response import Response
from fingerprint_pro_server_api_sdk.models.response_visits import ResponseVisits
from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt
Expand All @@ -60,6 +61,7 @@
from fingerprint_pro_server_api_sdk.models.signal_response_privacy_settings_data import SignalResponsePrivacySettingsData
from fingerprint_pro_server_api_sdk.models.signal_response_proxy import SignalResponseProxy
from fingerprint_pro_server_api_sdk.models.signal_response_proxy_data import SignalResponseProxyData
from fingerprint_pro_server_api_sdk.models.signal_response_raw_device_attributes import SignalResponseRawDeviceAttributes
from fingerprint_pro_server_api_sdk.models.signal_response_root_apps import SignalResponseRootApps
from fingerprint_pro_server_api_sdk.models.signal_response_root_apps_data import SignalResponseRootAppsData
from fingerprint_pro_server_api_sdk.models.signal_response_tampering import SignalResponseTampering
Expand Down
32 changes: 29 additions & 3 deletions fingerprint_pro_server_api_sdk/models/products_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class ProductsResponse(object):
'virtual_machine': 'SignalResponseVirtualMachine',
'vpn': 'SignalResponseVpn',
'proxy': 'SignalResponseProxy',
'tampering': 'SignalResponseTampering'
'tampering': 'SignalResponseTampering',
'raw_device_attributes': 'SignalResponseRawDeviceAttributes'
}

attribute_map = {
Expand All @@ -64,10 +65,11 @@ class ProductsResponse(object):
'virtual_machine': 'virtualMachine',
'vpn': 'vpn',
'proxy': 'proxy',
'tampering': 'tampering'
'tampering': 'tampering',
'raw_device_attributes': 'rawDeviceAttributes'
}

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): # 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, raw_device_attributes=None): # noqa: E501
"""ProductsResponse - a model defined in Swagger""" # noqa: E501
self._identification = None
self._botd = None
Expand All @@ -86,6 +88,7 @@ def __init__(self, identification=None, botd=None, ip_info=None, incognito=None,
self._vpn = None
self._proxy = None
self._tampering = None
self._raw_device_attributes = None
self.discriminator = None
if identification is not None:
self.identification = identification
Expand Down Expand Up @@ -121,6 +124,8 @@ def __init__(self, identification=None, botd=None, ip_info=None, incognito=None,
self.proxy = proxy
if tampering is not None:
self.tampering = tampering
if raw_device_attributes is not None:
self.raw_device_attributes = raw_device_attributes

@property
def identification(self):
Expand Down Expand Up @@ -479,6 +484,27 @@ def tampering(self, tampering):

self._tampering = tampering

@property
def raw_device_attributes(self):
"""Gets the raw_device_attributes of this ProductsResponse. # noqa: E501
:return: The raw_device_attributes of this ProductsResponse. # noqa: E501
:rtype: SignalResponseRawDeviceAttributes
"""
return self._raw_device_attributes

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

self._raw_device_attributes = raw_device_attributes

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# 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 pprint
import re # noqa: F401

import six

class RawDeviceAttributesResult(object):
"""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 = {
}

attribute_map = {
}

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

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(RawDeviceAttributesResult, dict):
for key, value in self.items():
result[key] = value

return result

def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())

def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, RawDeviceAttributesResult):
return False

return self.to_dict() == other.to_dict()

def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, RawDeviceAttributesResult):
return True

return self.to_dict() != other.to_dict()
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# 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 pprint
import re # noqa: F401

import six

class SignalResponseRawDeviceAttributes(object):
"""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 = {
'data': 'RawDeviceAttributesResult'
}

attribute_map = {
'data': 'data'
}

def __init__(self, data=None): # noqa: E501
"""SignalResponseRawDeviceAttributes - a model defined in Swagger""" # noqa: E501
self._data = None
self.discriminator = None
if data is not None:
self.data = data

@property
def data(self):
"""Gets the data of this SignalResponseRawDeviceAttributes. # noqa: E501
:return: The data of this SignalResponseRawDeviceAttributes. # noqa: E501
:rtype: RawDeviceAttributesResult
"""
return self._data

@data.setter
def data(self, data):
"""Sets the data of this SignalResponseRawDeviceAttributes.
:param data: The data of this SignalResponseRawDeviceAttributes. # noqa: E501
:type: RawDeviceAttributesResult
"""

self._data = data

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(SignalResponseRawDeviceAttributes, dict):
for key, value in self.items():
result[key] = value

return result

def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())

def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, SignalResponseRawDeviceAttributes):
return False

return self.to_dict() == other.to_dict()

def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, SignalResponseRawDeviceAttributes):
return True

return self.to_dict() != other.to_dict()
Loading

0 comments on commit 6b81649

Please sign in to comment.