Skip to content

OpenAPI schema sync #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/add-mitmattack-smartsignal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fingerprint-pro-server-api-python-sdk'": minor
---

Add `mitmAttack` (man-in-the-middle attack) Smart Signal.
2 changes: 1 addition & 1 deletion .schema-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.3.0
v2.4.0
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ Class | Method | HTTP request | Description
- [Incognito](docs/Incognito.md)
- [Jailbroken](docs/Jailbroken.md)
- [LocationSpoofing](docs/LocationSpoofing.md)
- [MitMAttack](docs/MitMAttack.md)
- [PrivacySettings](docs/PrivacySettings.md)
- [ProductBotd](docs/ProductBotd.md)
- [ProductClonedApp](docs/ProductClonedApp.md)
Expand All @@ -342,6 +343,7 @@ Class | Method | HTTP request | Description
- [ProductIncognito](docs/ProductIncognito.md)
- [ProductJailbroken](docs/ProductJailbroken.md)
- [ProductLocationSpoofing](docs/ProductLocationSpoofing.md)
- [ProductMitMAttack](docs/ProductMitMAttack.md)
- [ProductPrivacySettings](docs/ProductPrivacySettings.md)
- [ProductProxy](docs/ProductProxy.md)
- [ProductRawDeviceAttributes](docs/ProductRawDeviceAttributes.md)
Expand Down Expand Up @@ -388,6 +390,7 @@ Class | Method | HTTP request | Description
- [WebhookIPInfo](docs/WebhookIPInfo.md)
- [WebhookJailbroken](docs/WebhookJailbroken.md)
- [WebhookLocationSpoofing](docs/WebhookLocationSpoofing.md)
- [WebhookMitMAttack](docs/WebhookMitMAttack.md)
- [WebhookPrivacySettings](docs/WebhookPrivacySettings.md)
- [WebhookProxy](docs/WebhookProxy.md)
- [WebhookRawDeviceAttributes](docs/WebhookRawDeviceAttributes.md)
Expand Down
9 changes: 9 additions & 0 deletions docs/MitMAttack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# MitMAttack

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**result** | **bool** | * `true` - When requests made from your users' mobile devices to Fingerprint servers have been intercepted and potentially modified. * `false` - Otherwise or when the request originated from a browser. See [MitM Attack Detection](https://dev.fingerprint.com/docs/smart-signals-reference#mitm-attack-detection) to learn more about this Smart Signal. |

[[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/ProductMitMAttack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ProductMitMAttack

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**MitMAttack**](MitMAttack.md) | | [optional]
**error** | [**Error**](Error.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/Products.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Name | Type | Description | Notes
**remote_control** | [**ProductRemoteControl**](ProductRemoteControl.md) | | [optional]
**velocity** | [**ProductVelocity**](ProductVelocity.md) | | [optional]
**developer_tools** | [**ProductDeveloperTools**](ProductDeveloperTools.md) | | [optional]
**mitm_attack** | [**ProductMitMAttack**](ProductMitMAttack.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/Webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Name | Type | Description | Notes
**remote_control** | [**WebhookRemoteControl**](WebhookRemoteControl.md) | | [optional]
**velocity** | [**WebhookVelocity**](WebhookVelocity.md) | | [optional]
**developer_tools** | [**WebhookDeveloperTools**](WebhookDeveloperTools.md) | | [optional]
**mitm_attack** | [**WebhookMitMAttack**](WebhookMitMAttack.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)

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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**result** | **bool** | * `true` - When requests made from your users' mobile devices to Fingerprint servers have been intercepted and potentially modified. * `false` - Otherwise or when the request originated from a browser. See [MitM Attack Detection](https://dev.fingerprint.com/docs/smart-signals-overview#mitm-attack-detection) to learn more about this Smart Signal. | [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)

3 changes: 3 additions & 0 deletions fingerprint_pro_server_api_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from fingerprint_pro_server_api_sdk.models.incognito import Incognito
from fingerprint_pro_server_api_sdk.models.jailbroken import Jailbroken
from fingerprint_pro_server_api_sdk.models.location_spoofing import LocationSpoofing
from fingerprint_pro_server_api_sdk.models.mit_m_attack import MitMAttack
from fingerprint_pro_server_api_sdk.models.privacy_settings import PrivacySettings
from fingerprint_pro_server_api_sdk.models.product_botd import ProductBotd
from fingerprint_pro_server_api_sdk.models.product_cloned_app import ProductClonedApp
Expand All @@ -70,6 +71,7 @@
from fingerprint_pro_server_api_sdk.models.product_incognito import ProductIncognito
from fingerprint_pro_server_api_sdk.models.product_jailbroken import ProductJailbroken
from fingerprint_pro_server_api_sdk.models.product_location_spoofing import ProductLocationSpoofing
from fingerprint_pro_server_api_sdk.models.product_mit_m_attack import ProductMitMAttack
from fingerprint_pro_server_api_sdk.models.product_privacy_settings import ProductPrivacySettings
from fingerprint_pro_server_api_sdk.models.product_proxy import ProductProxy
from fingerprint_pro_server_api_sdk.models.product_raw_device_attributes import ProductRawDeviceAttributes
Expand Down Expand Up @@ -116,6 +118,7 @@
from fingerprint_pro_server_api_sdk.models.webhook_ip_info import WebhookIPInfo
from fingerprint_pro_server_api_sdk.models.webhook_jailbroken import WebhookJailbroken
from fingerprint_pro_server_api_sdk.models.webhook_location_spoofing import WebhookLocationSpoofing
from fingerprint_pro_server_api_sdk.models.webhook_mit_m_attack import WebhookMitMAttack
from fingerprint_pro_server_api_sdk.models.webhook_privacy_settings import WebhookPrivacySettings
from fingerprint_pro_server_api_sdk.models.webhook_proxy import WebhookProxy
from fingerprint_pro_server_api_sdk.models.webhook_raw_device_attributes import WebhookRawDeviceAttributes
Expand Down
3 changes: 3 additions & 0 deletions fingerprint_pro_server_api_sdk/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
from fingerprint_pro_server_api_sdk.models.incognito import Incognito
from fingerprint_pro_server_api_sdk.models.jailbroken import Jailbroken
from fingerprint_pro_server_api_sdk.models.location_spoofing import LocationSpoofing
from fingerprint_pro_server_api_sdk.models.mit_m_attack import MitMAttack
from fingerprint_pro_server_api_sdk.models.privacy_settings import PrivacySettings
from fingerprint_pro_server_api_sdk.models.product_botd import ProductBotd
from fingerprint_pro_server_api_sdk.models.product_cloned_app import ProductClonedApp
Expand All @@ -62,6 +63,7 @@
from fingerprint_pro_server_api_sdk.models.product_incognito import ProductIncognito
from fingerprint_pro_server_api_sdk.models.product_jailbroken import ProductJailbroken
from fingerprint_pro_server_api_sdk.models.product_location_spoofing import ProductLocationSpoofing
from fingerprint_pro_server_api_sdk.models.product_mit_m_attack import ProductMitMAttack
from fingerprint_pro_server_api_sdk.models.product_privacy_settings import ProductPrivacySettings
from fingerprint_pro_server_api_sdk.models.product_proxy import ProductProxy
from fingerprint_pro_server_api_sdk.models.product_raw_device_attributes import ProductRawDeviceAttributes
Expand Down Expand Up @@ -108,6 +110,7 @@
from fingerprint_pro_server_api_sdk.models.webhook_ip_info import WebhookIPInfo
from fingerprint_pro_server_api_sdk.models.webhook_jailbroken import WebhookJailbroken
from fingerprint_pro_server_api_sdk.models.webhook_location_spoofing import WebhookLocationSpoofing
from fingerprint_pro_server_api_sdk.models.webhook_mit_m_attack import WebhookMitMAttack
from fingerprint_pro_server_api_sdk.models.webhook_privacy_settings import WebhookPrivacySettings
from fingerprint_pro_server_api_sdk.models.webhook_proxy import WebhookProxy
from fingerprint_pro_server_api_sdk.models.webhook_raw_device_attributes import WebhookRawDeviceAttributes
Expand Down
70 changes: 70 additions & 0 deletions fingerprint_pro_server_api_sdk/models/mit_m_attack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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: support@fingerprint.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

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


class MitMAttack(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'
}

nullable_map = {
'result': False
}

attribute_map = {
'result': 'result'
}

def __init__(self, result=None): # noqa: E501
"""MitMAttack - 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 MitMAttack. # noqa: E501

* `true` - When requests made from your users' mobile devices to Fingerprint servers have been intercepted and potentially modified. * `false` - Otherwise or when the request originated from a browser. See [MitM Attack Detection](https://dev.fingerprint.com/docs/smart-signals-reference#mitm-attack-detection) to learn more about this Smart Signal. # noqa: E501

:return: The result of this MitMAttack. # noqa: E501
"""
return self._result

@result.setter
def result(self, result: bool):
"""Sets the result of this MitMAttack.

* `true` - When requests made from your users' mobile devices to Fingerprint servers have been intercepted and potentially modified. * `false` - Otherwise or when the request originated from a browser. See [MitM Attack Detection](https://dev.fingerprint.com/docs/smart-signals-reference#mitm-attack-detection) to learn more about this Smart Signal. # noqa: E501

:param result: The result of this MitMAttack. # noqa: E501
"""
if result is None:
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501

self._result = result

94 changes: 94 additions & 0 deletions fingerprint_pro_server_api_sdk/models/product_mit_m_attack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# 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: support@fingerprint.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import re # noqa: F401
from typing import Dict, List, Optional # noqa: F401
from fingerprint_pro_server_api_sdk.base_model import BaseModel
from fingerprint_pro_server_api_sdk.models.mit_m_attack import MitMAttack
from fingerprint_pro_server_api_sdk.models.error import Error


class ProductMitMAttack(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 = {
'data': 'MitMAttack',
'error': 'Error'
}

nullable_map = {
'data': False,
'error': False
}

attribute_map = {
'data': 'data',
'error': 'error'
}

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

@property
def data(self) -> Optional[MitMAttack]:
"""Gets the data of this ProductMitMAttack. # noqa: E501


:return: The data of this ProductMitMAttack. # noqa: E501
"""
return self._data

@data.setter
def data(self, data: Optional[MitMAttack]):
"""Sets the data of this ProductMitMAttack.


:param data: The data of this ProductMitMAttack. # noqa: E501
"""

self._data = data

@property
def error(self) -> Optional[Error]:
"""Gets the error of this ProductMitMAttack. # noqa: E501


:return: The error of this ProductMitMAttack. # noqa: E501
"""
return self._error

@error.setter
def error(self, error: Optional[Error]):
"""Sets the error of this ProductMitMAttack.


:param error: The error of this ProductMitMAttack. # noqa: E501
"""

self._error = error

34 changes: 30 additions & 4 deletions fingerprint_pro_server_api_sdk/models/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from fingerprint_pro_server_api_sdk.models.product_remote_control import ProductRemoteControl
from fingerprint_pro_server_api_sdk.models.product_velocity import ProductVelocity
from fingerprint_pro_server_api_sdk.models.product_developer_tools import ProductDeveloperTools
from fingerprint_pro_server_api_sdk.models.product_mit_m_attack import ProductMitMAttack


class Products(BaseModel):
Expand Down Expand Up @@ -78,7 +79,8 @@ class Products(BaseModel):
'suspect_score': 'ProductSuspectScore',
'remote_control': 'ProductRemoteControl',
'velocity': 'ProductVelocity',
'developer_tools': 'ProductDeveloperTools'
'developer_tools': 'ProductDeveloperTools',
'mitm_attack': 'ProductMitMAttack'
}

nullable_map = {
Expand All @@ -105,7 +107,8 @@ class Products(BaseModel):
'suspect_score': False,
'remote_control': False,
'velocity': False,
'developer_tools': False
'developer_tools': False,
'mitm_attack': False
}

attribute_map = {
Expand All @@ -132,10 +135,11 @@ class Products(BaseModel):
'suspect_score': 'suspectScore',
'remote_control': 'remoteControl',
'velocity': 'velocity',
'developer_tools': 'developerTools'
'developer_tools': 'developerTools',
'mitm_attack': 'mitmAttack'
}

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

@property
def identification(self) -> Optional[ProductIdentification]:
Expand Down Expand Up @@ -667,3 +674,22 @@ def developer_tools(self, developer_tools: Optional[ProductDeveloperTools]):

self._developer_tools = developer_tools

@property
def mitm_attack(self) -> Optional[ProductMitMAttack]:
"""Gets the mitm_attack of this Products. # noqa: E501


:return: The mitm_attack of this Products. # noqa: E501
"""
return self._mitm_attack

@mitm_attack.setter
def mitm_attack(self, mitm_attack: Optional[ProductMitMAttack]):
"""Sets the mitm_attack of this Products.


:param mitm_attack: The mitm_attack of this Products. # noqa: E501
"""

self._mitm_attack = mitm_attack

Loading
Loading