Skip to content

Commit be332f8

Browse files
authored
Merge pull request #140 from fingerprintjs/feat/open-api-v2.8.0
OpenAPI schema sync (v2.8.0)
2 parents 9ace44f + c25383b commit be332f8

9 files changed

Lines changed: 98 additions & 200 deletions

File tree

.changeset/silent-frogs-beam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'fingerprint-pro-server-api-python-sdk': minor
3+
---
4+
5+
add `replayed` field to `identification` in Events and Webhooks

.schema-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.7.0
1+
v2.8.0

docs/Identification.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**first_seen_at** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | |
2121
**last_seen_at** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | |
2222
**components** | [**RawDeviceAttributes**](RawDeviceAttributes.md) | | [optional]
23+
**replayed** | **bool** | `true` if we determined that this payload was replayed, `false` otherwise. | [optional]
2324

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

docs/Webhook.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Name | Type | Description | Notes
4545
**velocity** | [**WebhookVelocity**](WebhookVelocity.md) | | [optional]
4646
**developer_tools** | [**WebhookDeveloperTools**](WebhookDeveloperTools.md) | | [optional]
4747
**mitm_attack** | [**WebhookMitMAttack**](WebhookMitMAttack.md) | | [optional]
48+
**replayed** | **bool** | `true` if we determined that this payload was replayed, `false` otherwise. | [optional]
4849

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

fingerprint_pro_server_api_sdk/models/identification.py

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class Identification(BaseModel):
5252
'visitor_found': 'bool',
5353
'first_seen_at': 'IdentificationSeenAt',
5454
'last_seen_at': 'IdentificationSeenAt',
55-
'components': 'RawDeviceAttributes'
55+
'components': 'RawDeviceAttributes',
56+
'replayed': 'bool'
5657
}
5758

5859
nullable_map = {
@@ -72,7 +73,8 @@ class Identification(BaseModel):
7273
'visitor_found': False,
7374
'first_seen_at': False,
7475
'last_seen_at': False,
75-
'components': False
76+
'components': False,
77+
'replayed': False
7678
}
7779

7880
attribute_map = {
@@ -92,10 +94,11 @@ class Identification(BaseModel):
9294
'visitor_found': 'visitorFound',
9395
'first_seen_at': 'firstSeenAt',
9496
'last_seen_at': 'lastSeenAt',
95-
'components': 'components'
97+
'components': 'components',
98+
'replayed': 'replayed'
9699
}
97100

98-
def __init__(self, visitor_id=None, request_id=None, browser_details=None, incognito=None, ip=None, ip_location=None, linked_id=None, suspect=None, timestamp=None, time=None, url=None, tag=None, confidence=None, visitor_found=None, first_seen_at=None, last_seen_at=None, components=None): # noqa: E501
101+
def __init__(self, visitor_id=None, request_id=None, browser_details=None, incognito=None, ip=None, ip_location=None, linked_id=None, suspect=None, timestamp=None, time=None, url=None, tag=None, confidence=None, visitor_found=None, first_seen_at=None, last_seen_at=None, components=None, replayed=None): # noqa: E501
99102
"""Identification - a model defined in Swagger""" # noqa: E501
100103
self._visitor_id = None
101104
self._request_id = None
@@ -114,6 +117,7 @@ def __init__(self, visitor_id=None, request_id=None, browser_details=None, incog
114117
self._first_seen_at = None
115118
self._last_seen_at = None
116119
self._components = None
120+
self._replayed = None
117121
self.discriminator = None
118122
self.visitor_id = visitor_id
119123
self.request_id = request_id
@@ -137,6 +141,8 @@ def __init__(self, visitor_id=None, request_id=None, browser_details=None, incog
137141
self.last_seen_at = last_seen_at
138142
if components is not None:
139143
self.components = components
144+
if replayed is not None:
145+
self.replayed = replayed
140146

141147
@property
142148
def visitor_id(self) -> str:
@@ -505,3 +511,24 @@ def components(self, components: Optional[RawDeviceAttributes]):
505511

506512
self._components = components
507513

514+
@property
515+
def replayed(self) -> Optional[bool]:
516+
"""Gets the replayed of this Identification. # noqa: E501
517+
518+
`true` if we determined that this payload was replayed, `false` otherwise. # noqa: E501
519+
520+
:return: The replayed of this Identification. # noqa: E501
521+
"""
522+
return self._replayed
523+
524+
@replayed.setter
525+
def replayed(self, replayed: Optional[bool]):
526+
"""Sets the replayed of this Identification.
527+
528+
`true` if we determined that this payload was replayed, `false` otherwise. # noqa: E501
529+
530+
:param replayed: The replayed of this Identification. # noqa: E501
531+
"""
532+
533+
self._replayed = replayed
534+

fingerprint_pro_server_api_sdk/models/webhook.py

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class Webhook(BaseModel):
100100
'remote_control': 'WebhookRemoteControl',
101101
'velocity': 'WebhookVelocity',
102102
'developer_tools': 'WebhookDeveloperTools',
103-
'mitm_attack': 'WebhookMitMAttack'
103+
'mitm_attack': 'WebhookMitMAttack',
104+
'replayed': 'bool'
104105
}
105106

106107
nullable_map = {
@@ -145,7 +146,8 @@ class Webhook(BaseModel):
145146
'remote_control': False,
146147
'velocity': False,
147148
'developer_tools': False,
148-
'mitm_attack': False
149+
'mitm_attack': False,
150+
'replayed': False
149151
}
150152

151153
attribute_map = {
@@ -190,10 +192,11 @@ class Webhook(BaseModel):
190192
'remote_control': 'remoteControl',
191193
'velocity': 'velocity',
192194
'developer_tools': 'developerTools',
193-
'mitm_attack': 'mitmAttack'
195+
'mitm_attack': 'mitmAttack',
196+
'replayed': 'replayed'
194197
}
195198

196-
def __init__(self, request_id=None, url=None, ip=None, environment_id=None, tag=None, time=None, timestamp=None, ip_location=None, linked_id=None, visitor_id=None, visitor_found=None, confidence=None, first_seen_at=None, last_seen_at=None, browser_details=None, incognito=None, client_referrer=None, components=None, bot=None, user_agent=None, root_apps=None, emulator=None, ip_info=None, ip_blocklist=None, tor=None, vpn=None, proxy=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
199+
def __init__(self, request_id=None, url=None, ip=None, environment_id=None, tag=None, time=None, timestamp=None, ip_location=None, linked_id=None, visitor_id=None, visitor_found=None, confidence=None, first_seen_at=None, last_seen_at=None, browser_details=None, incognito=None, client_referrer=None, components=None, bot=None, user_agent=None, root_apps=None, emulator=None, ip_info=None, ip_blocklist=None, tor=None, vpn=None, proxy=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, replayed=None): # noqa: E501
197200
"""Webhook - a model defined in Swagger""" # noqa: E501
198201
self._request_id = None
199202
self._url = None
@@ -237,6 +240,7 @@ def __init__(self, request_id=None, url=None, ip=None, environment_id=None, tag=
237240
self._velocity = None
238241
self._developer_tools = None
239242
self._mitm_attack = None
243+
self._replayed = None
240244
self.discriminator = None
241245
self.request_id = request_id
242246
self.url = url
@@ -317,6 +321,8 @@ def __init__(self, request_id=None, url=None, ip=None, environment_id=None, tag=
317321
self.developer_tools = developer_tools
318322
if mitm_attack is not None:
319323
self.mitm_attack = mitm_attack
324+
if replayed is not None:
325+
self.replayed = replayed
320326

321327
@property
322328
def request_id(self) -> str:
@@ -1146,3 +1152,24 @@ def mitm_attack(self, mitm_attack: Optional[WebhookMitMAttack]):
11461152

11471153
self._mitm_attack = mitm_attack
11481154

1155+
@property
1156+
def replayed(self) -> Optional[bool]:
1157+
"""Gets the replayed of this Webhook. # noqa: E501
1158+
1159+
`true` if we determined that this payload was replayed, `false` otherwise. # noqa: E501
1160+
1161+
:return: The replayed of this Webhook. # noqa: E501
1162+
"""
1163+
return self._replayed
1164+
1165+
@replayed.setter
1166+
def replayed(self, replayed: Optional[bool]):
1167+
"""Sets the replayed of this Webhook.
1168+
1169+
`true` if we determined that this payload was replayed, `false` otherwise. # noqa: E501
1170+
1171+
:param replayed: The replayed of this Webhook. # noqa: E501
1172+
"""
1173+
1174+
self._replayed = replayed
1175+

0 commit comments

Comments
 (0)