Skip to content

Commit 9ceb68c

Browse files
Merge pull request #105 from fingerprintjs/feat/open-api-v2.2.1
OpenAPI schema sync
2 parents 6fa12fd + 5d24075 commit 9ceb68c

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

.changeset/calm-parents-hunt.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': patch
3+
---
4+
5+
**events-search**: Improve parameter descriptions for `bot`, `suspect`

.changeset/pre.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"mode": "pre",
2+
"mode": "exit",
33
"tag": "rc",
44
"initialVersions": {
55
"fingerprint-pro-server-api-python-sdk": "8.2.1"

.schema-version

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

docs/FingerprintApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,13 @@ api_instance = fingerprint_pro_server_api_sdk.FingerprintApi(configuration)
241241

242242
limit = 56 # int | Limit the number of events returned.
243243
visitor_id = 'visitor_id_example' # str | Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. Filter for events matching this `visitor_id`. (optional)
244-
bot = 'bot_example' # str | Filter events by the bot detection result, specifically: - events where any kind of bot was detected. - events where a good bot was detected. - events where a bad bot was detected. - events where no bot was detected. (optional)
244+
bot = 'bot_example' # str | Filter events by the bot detection result, specifically: `all` - events where any kind of bot was detected. `good` - events where a good bot was detected. `bad` - events where a bad bot was detected. `none` - events where no bot was detected. (optional)
245245
ip_address = 'ip_address_example' # str | Filter events by IP address range. The range can be as specific as a single IP (/32 for IPv4 or /128 for IPv6) All ip_address filters must use CIDR notation, for example, 10.0.0.0/24, 192.168.0.1/32 (optional)
246246
linked_id = 'linked_id_example' # str | Filter events by your custom identifier. You can use [linked IDs](https://dev.fingerprint.com/reference/get-function#linkedid) to associate identification requests with your own identifier, for example, session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier. (optional)
247247
start = 789 # int | Filter events with a timestamp greater than the start time, in Unix time (milliseconds). (optional)
248248
end = 789 # int | Filter events with a timestamp smaller than the end time, in Unix time (milliseconds). (optional)
249249
reverse = true # bool | Sort events in reverse timestamp order. (optional)
250-
suspect = true # bool | Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). (optional)
250+
suspect = true # bool | Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). > Note: When using this parameter, only events with the `suspect` property explicitly set to `true` or `false` are returned. Events with undefined `suspect` property are left out of the response. (optional)
251251

252252
try:
253253
# Get events via search
@@ -263,13 +263,13 @@ Name | Type | Description | Notes
263263
------------- | ------------- | ------------- | -------------
264264
**limit** | **int**| Limit the number of events returned. |
265265
**visitor_id** | **str**| Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. Filter for events matching this `visitor_id`. | [optional]
266-
**bot** | **str**| Filter events by the bot detection result, specifically: - events where any kind of bot was detected. - events where a good bot was detected. - events where a bad bot was detected. - events where no bot was detected. | [optional]
266+
**bot** | **str**| Filter events by the bot detection result, specifically: `all` - events where any kind of bot was detected. `good` - events where a good bot was detected. `bad` - events where a bad bot was detected. `none` - events where no bot was detected. | [optional]
267267
**ip_address** | **str**| Filter events by IP address range. The range can be as specific as a single IP (/32 for IPv4 or /128 for IPv6) All ip_address filters must use CIDR notation, for example, 10.0.0.0/24, 192.168.0.1/32 | [optional]
268268
**linked_id** | **str**| Filter events by your custom identifier. You can use [linked IDs](https://dev.fingerprint.com/reference/get-function#linkedid) to associate identification requests with your own identifier, for example, session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier. | [optional]
269269
**start** | **int**| Filter events with a timestamp greater than the start time, in Unix time (milliseconds). | [optional]
270270
**end** | **int**| Filter events with a timestamp smaller than the end time, in Unix time (milliseconds). | [optional]
271271
**reverse** | **bool**| Sort events in reverse timestamp order. | [optional]
272-
**suspect** | **bool**| Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). | [optional]
272+
**suspect** | **bool**| Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). > Note: When using this parameter, only events with the `suspect` property explicitly set to `true` or `false` are returned. Events with undefined `suspect` property are left out of the response. | [optional]
273273

274274
### Return type
275275

fingerprint_pro_server_api_sdk/api/fingerprint_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,13 @@ def search_events(self, limit: int, **kwargs) -> Union[SearchEventsResponse, Asy
508508
:param async_req bool
509509
:param limit: Limit the number of events returned. (required)
510510
:param visitor_id: Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. Filter for events matching this `visitor_id`.
511-
:param bot: Filter events by the bot detection result, specifically: - events where any kind of bot was detected. - events where a good bot was detected. - events where a bad bot was detected. - events where no bot was detected.
511+
:param bot: Filter events by the bot detection result, specifically: `all` - events where any kind of bot was detected. `good` - events where a good bot was detected. `bad` - events where a bad bot was detected. `none` - events where no bot was detected.
512512
:param ip_address: Filter events by IP address range. The range can be as specific as a single IP (/32 for IPv4 or /128 for IPv6) All ip_address filters must use CIDR notation, for example, 10.0.0.0/24, 192.168.0.1/32
513513
:param linked_id: Filter events by your custom identifier. You can use [linked IDs](https://dev.fingerprint.com/reference/get-function#linkedid) to associate identification requests with your own identifier, for example, session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier.
514514
:param start: Filter events with a timestamp greater than the start time, in Unix time (milliseconds).
515515
:param end: Filter events with a timestamp smaller than the end time, in Unix time (milliseconds).
516516
:param reverse: Sort events in reverse timestamp order.
517-
:param suspect: Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent).
517+
:param suspect: Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). > Note: When using this parameter, only events with the `suspect` property explicitly set to `true` or `false` are returned. Events with undefined `suspect` property are left out of the response.
518518
:return: SearchEventsResponse
519519
If the method is called asynchronously,
520520
returns the request thread.
@@ -538,13 +538,13 @@ def search_events_with_http_info(self, limit: int, **kwargs): # noqa: E501
538538
:param async_req bool
539539
:param int limit: Limit the number of events returned. (required)
540540
:param str visitor_id: Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. Filter for events matching this `visitor_id`.
541-
:param str bot: Filter events by the bot detection result, specifically: - events where any kind of bot was detected. - events where a good bot was detected. - events where a bad bot was detected. - events where no bot was detected.
541+
:param str bot: Filter events by the bot detection result, specifically: `all` - events where any kind of bot was detected. `good` - events where a good bot was detected. `bad` - events where a bad bot was detected. `none` - events where no bot was detected.
542542
:param str ip_address: Filter events by IP address range. The range can be as specific as a single IP (/32 for IPv4 or /128 for IPv6) All ip_address filters must use CIDR notation, for example, 10.0.0.0/24, 192.168.0.1/32
543543
:param str linked_id: Filter events by your custom identifier. You can use [linked IDs](https://dev.fingerprint.com/reference/get-function#linkedid) to associate identification requests with your own identifier, for example, session ID, purchase ID, or transaction ID. You can then use this `linked_id` parameter to retrieve all events associated with your custom identifier.
544544
:param int start: Filter events with a timestamp greater than the start time, in Unix time (milliseconds).
545545
:param int end: Filter events with a timestamp smaller than the end time, in Unix time (milliseconds).
546546
:param bool reverse: Sort events in reverse timestamp order.
547-
:param bool suspect: Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent).
547+
:param bool suspect: Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent). > Note: When using this parameter, only events with the `suspect` property explicitly set to `true` or `false` are returned. Events with undefined `suspect` property are left out of the response.
548548
:return: SearchEventsResponse
549549
If the method is called asynchronously,
550550
returns the request thread.

res/fingerprint-server-api.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ paths:
189189
- none
190190
description: |
191191
Filter events by the bot detection result, specifically:
192-
- events where any kind of bot was detected.
193-
- events where a good bot was detected.
194-
- events where a bad bot was detected.
195-
- events where no bot was detected.
192+
`all` - events where any kind of bot was detected.
193+
`good` - events where a good bot was detected.
194+
`bad` - events where a bad bot was detected.
195+
`none` - events where no bot was detected.
196196
- name: ip_address
197197
in: query
198198
schema:
@@ -245,7 +245,11 @@ paths:
245245
type: boolean
246246
description: >
247247
Filter events previously tagged as suspicious via the [Update
248-
API](https://dev.fingerprint.com/reference/updateevent).
248+
API](https://dev.fingerprint.com/reference/updateevent).
249+
250+
> Note: When using this parameter, only events with the `suspect`
251+
property explicitly set to `true` or `false` are returned. Events
252+
with undefined `suspect` property are left out of the response.
249253
responses:
250254
'200':
251255
description: Events matching the filter(s).
@@ -1999,6 +2003,7 @@ components:
19992003
suspect:
20002004
type: boolean
20012005
description: Suspect flag indicating observed suspicious or fraudulent event
2006+
x-go-skip-omitempty: true
20022007
SearchEventsResponse:
20032008
type: object
20042009
description: >-

0 commit comments

Comments
 (0)