Coverage for fingerprint_pro_server_api_sdk/models/webhook_tampering.py: 50%
58 statements
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-22 14:27 +0000
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-22 14:27 +0000
1# coding: utf-8
3"""
4 Server API v3 (deprecated)
6 > 🚧 Deprecation Notice > > This version of Server API is marked as deprecated starting on **Jan 7th 2026** and will be fully defunct on **Jan 7th 2027** according to our [API Deprecation Policy](https://dev.fingerprint.com/reference/api-deprecation-policy). If you still use this version, please follow our [migration guide](https://dev.fingerprint.com/reference/migrating-from-server-api-v3-to-v4) to migrate from this deprecated version to the new one. 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. # noqa: E501
8 OpenAPI spec version: 3
9 Contact: support@fingerprint.com
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
13import re # noqa: F401
14from typing import Dict, List, Optional # noqa: F401
15from fingerprint_pro_server_api_sdk.base_model import BaseModel
18class WebhookTampering(BaseModel):
19 """NOTE: This class is auto generated by the swagger code generator program.
21 Do not edit the class manually.
22 """
23 """
24 Attributes:
25 swagger_types (dict): The key is attribute name
26 and the value is attribute type.
27 attribute_map (dict): The key is attribute name
28 and the value is json key in definition.
29 """
30 swagger_types = {
31 'result': 'bool',
32 'confidence': 'str',
33 'anomaly_score': 'float',
34 'ml_score': 'float',
35 'anti_detect_browser': 'bool'
36 }
38 nullable_map = {
39 'result': False,
40 'confidence': False,
41 'anomaly_score': False,
42 'ml_score': False,
43 'anti_detect_browser': False
44 }
46 attribute_map = {
47 'result': 'result',
48 'confidence': 'confidence',
49 'anomaly_score': 'anomalyScore',
50 'ml_score': 'mlScore',
51 'anti_detect_browser': 'antiDetectBrowser'
52 }
54 def __init__(self, result=None, confidence=None, anomaly_score=None, ml_score=None, anti_detect_browser=None): # noqa: E501
55 """WebhookTampering - a model defined in Swagger""" # noqa: E501
56 self._result = None
57 self._confidence = None
58 self._anomaly_score = None
59 self._ml_score = None
60 self._anti_detect_browser = None
61 self.discriminator = None
62 if result is not None:
63 self.result = result
64 if confidence is not None:
65 self.confidence = confidence
66 if anomaly_score is not None:
67 self.anomaly_score = anomaly_score
68 if ml_score is not None:
69 self.ml_score = ml_score
70 if anti_detect_browser is not None:
71 self.anti_detect_browser = anti_detect_browser
73 @property
74 def result(self) -> Optional[bool]:
75 """Gets the result of this WebhookTampering. # noqa: E501
77 Indicates if an identification request from a browser or an Android SDK has been tampered with. Not supported in the iOS SDK, is always `false` for iOS requests. * `true` - If the request meets either of the following conditions: * Contains anomalous browser or device attributes that could not have been legitimately produced by the JavaScript agent or the Android SDK (see `anomalyScore`). * Originated from an anti-detect browser like Incognition (see `antiDetectBrowser`). * `false` - If the request is considered genuine or was generated by the iOS SDK. # noqa: E501
79 :return: The result of this WebhookTampering. # noqa: E501
80 """
81 return self._result
83 @result.setter
84 def result(self, result: Optional[bool]):
85 """Sets the result of this WebhookTampering.
87 Indicates if an identification request from a browser or an Android SDK has been tampered with. Not supported in the iOS SDK, is always `false` for iOS requests. * `true` - If the request meets either of the following conditions: * Contains anomalous browser or device attributes that could not have been legitimately produced by the JavaScript agent or the Android SDK (see `anomalyScore`). * Originated from an anti-detect browser like Incognition (see `antiDetectBrowser`). * `false` - If the request is considered genuine or was generated by the iOS SDK. # noqa: E501
89 :param result: The result of this WebhookTampering. # noqa: E501
90 """
92 self._result = result
94 @property
95 def confidence(self) -> Optional[str]:
96 """Gets the confidence of this WebhookTampering. # noqa: E501
98 Confidence level of the tampering detection. If a tampering is not detected, confidence is \"high\". If it's detected, can be \"low\", \"medium\", or \"high\". # noqa: E501
100 :return: The confidence of this WebhookTampering. # noqa: E501
101 """
102 return self._confidence
104 @confidence.setter
105 def confidence(self, confidence: Optional[str]):
106 """Sets the confidence of this WebhookTampering.
108 Confidence level of the tampering detection. If a tampering is not detected, confidence is \"high\". If it's detected, can be \"low\", \"medium\", or \"high\". # noqa: E501
110 :param confidence: The confidence of this WebhookTampering. # noqa: E501
111 """
112 allowed_values = ["low", "medium", "high"] # noqa: E501
113 if (confidence not in allowed_values):
114 raise ValueError(
115 "Invalid value for `confidence` ({0}), must be one of {1}" # noqa: E501
116 .format(confidence, allowed_values)
117 )
119 self._confidence = confidence
121 @property
122 def anomaly_score(self) -> Optional[float]:
123 """Gets the anomaly_score of this WebhookTampering. # noqa: E501
125 A score that indicates the extent of anomalous data in the request. This field applies to requests originating from **both** browsers and Android SDKs. * Values above `0.5` indicate that the request has been tampered with. * Values below `0.5` indicate that the request is genuine. # noqa: E501
127 :return: The anomaly_score of this WebhookTampering. # noqa: E501
128 """
129 return self._anomaly_score
131 @anomaly_score.setter
132 def anomaly_score(self, anomaly_score: Optional[float]):
133 """Sets the anomaly_score of this WebhookTampering.
135 A score that indicates the extent of anomalous data in the request. This field applies to requests originating from **both** browsers and Android SDKs. * Values above `0.5` indicate that the request has been tampered with. * Values below `0.5` indicate that the request is genuine. # noqa: E501
137 :param anomaly_score: The anomaly_score of this WebhookTampering. # noqa: E501
138 """
140 self._anomaly_score = anomaly_score
142 @property
143 def ml_score(self) -> Optional[float]:
144 """Gets the ml_score of this WebhookTampering. # noqa: E501
146 A score that indicates the models calculated probability that an event is coming from an anti detect browser. * Values above `0.8` indicate that the request is an anti detect browser based on the ml model * Values below `0.8` indicate that the request is not an anti detect browser based on the ml model # noqa: E501
148 :return: The ml_score of this WebhookTampering. # noqa: E501
149 """
150 return self._ml_score
152 @ml_score.setter
153 def ml_score(self, ml_score: Optional[float]):
154 """Sets the ml_score of this WebhookTampering.
156 A score that indicates the models calculated probability that an event is coming from an anti detect browser. * Values above `0.8` indicate that the request is an anti detect browser based on the ml model * Values below `0.8` indicate that the request is not an anti detect browser based on the ml model # noqa: E501
158 :param ml_score: The ml_score of this WebhookTampering. # noqa: E501
159 """
161 self._ml_score = ml_score
163 @property
164 def anti_detect_browser(self) -> Optional[bool]:
165 """Gets the anti_detect_browser of this WebhookTampering. # noqa: E501
167 Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. This field does not apply to requests originating from mobile SDKs. * `true` - The browser resembles a known anti-detect browser, for example, Incognition. * `false` - The browser does not resemble an anti-detect browser or the request originates from a mobile SDK. # noqa: E501
169 :return: The anti_detect_browser of this WebhookTampering. # noqa: E501
170 """
171 return self._anti_detect_browser
173 @anti_detect_browser.setter
174 def anti_detect_browser(self, anti_detect_browser: Optional[bool]):
175 """Sets the anti_detect_browser of this WebhookTampering.
177 Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. This field does not apply to requests originating from mobile SDKs. * `true` - The browser resembles a known anti-detect browser, for example, Incognition. * `false` - The browser does not resemble an anti-detect browser or the request originates from a mobile SDK. # noqa: E501
179 :param anti_detect_browser: The anti_detect_browser of this WebhookTampering. # noqa: E501
180 """
182 self._anti_detect_browser = anti_detect_browser