Skip to content
Closed
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
10 changes: 9 additions & 1 deletion .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ test/Model/SearchEventsIncrementalIdentificationStatus.php
test/Model/SearchEventsSdkPlatform.php
test/Model/SearchEventsVpnConfidence.php
test/Model/TamperingConfidence.php
test/Model/VpnConfidence.php
test/Model/VpnConfidence.php

# Ignore no-discriminator oneOf model files
docs/Model/SearchEventsEndParameter.md
docs/Model/SearchEventsStartParameter.md
src/Model/SearchEventsEndParameter.php
src/Model/SearchEventsStartParameter.php
test/Model/SearchEventsEndParameterTest.php
test/Model/SearchEventsStartParameterTest.php
8 changes: 4 additions & 4 deletions docs/Api/FingerprintApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ $url = 'url_example'; // string | Filter events by the URL (`url` property) asso
$bundle_id = 'bundle_id_example'; // string | Filter events by the Bundle ID (iOS) associated with the event.
$package_name = 'package_name_example'; // string | Filter events by the Package Name (Android) associated with the event.
$origin = 'origin_example'; // string | Filter events by the origin field of the event. This is applicable to web events only (e.g., https://example.com)
$start = 1767225600000; // int | Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed.
$end = 1769903999000; // int | Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed.
$start = 1767225600000; // int|\DateTime | Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value or RFC3339 timestamp). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed.
$end = 1769903999000; // int|\DateTime | Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value or RFC3339 timestamp). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed.
$reverse = True; // bool | When `true`, sort events oldest first (ascending timestamp order). Default is newest first (descending timestamp order).
$suspect = True; // bool | Filter events previously tagged as suspicious via the [Update API](https://docs.fingerprint.com/reference/server-api-v4-update-event). > 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.
$vpn = True; // bool | Filter events by VPN Detection result. > Note: When using this parameter, only events with the `vpn` property set to `true` or `false` are returned. Events without a `vpn` Smart Signal result are left out of the response.
Expand Down Expand Up @@ -293,8 +293,8 @@ try {
| **bundle_id** | **string** | Filter events by the Bundle ID (iOS) associated with the event. | [optional] |
| **package_name** | **string** | Filter events by the Package Name (Android) associated with the event. | [optional] |
| **origin** | **string** | Filter events by the origin field of the event. This is applicable to web events only (e.g., https://example.com) | [optional] |
| **start** | **int** | Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. | [optional] |
| **end** | **int** | Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. | [optional] |
| **start** | **int\|\DateTime** | Include events that happened after this point (with timestamp greater than or equal the provided `start` Unix milliseconds value or RFC3339 timestamp). Defaults to 7 days ago. Setting `start` does not change `end`'s default of `now` — adjust it separately if needed. | [optional] |
| **end** | **int\|\DateTime** | Include events that happened before this point (with timestamp less than or equal the provided `end` Unix milliseconds value or RFC3339 timestamp). Defaults to now. Setting `end` does not change `start`'s default of `7 days ago` — adjust it separately if needed. | [optional] |
| **reverse** | **bool** | When `true`, sort events oldest first (ascending timestamp order). Default is newest first (descending timestamp order). | [optional] |
| **suspect** | **bool** | Filter events previously tagged as suspicious via the [Update API](https://docs.fingerprint.com/reference/server-api-v4-update-event). > 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] |
| **vpn** | **bool** | Filter events by VPN Detection result. > Note: When using this parameter, only events with the `vpn` property set to `true` or `false` are returned. Events without a `vpn` Smart Signal result are left out of the response. | [optional] |
Expand Down
33 changes: 21 additions & 12 deletions res/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -379,25 +379,34 @@ paths:
- name: start
in: query
schema:
type: integer
format: int64
example: 1767225600000
oneOf:
- type: integer
format: int64
example: 1767225600000
- type: string
format: date-time
example: '2026-01-01T00:00:00Z'
description: >
Include events that happened after this point (with timestamp
greater than or equal the provided `start` Unix milliseconds value).
Defaults to 7 days ago. Setting `start` does not change `end`'s
default of `now` — adjust it separately if needed.
greater than or equal the provided `start` Unix milliseconds value
or RFC3339 timestamp). Defaults to 7 days ago. Setting `start` does
not change `end`'s default of `now` — adjust it separately if
needed.
- name: end
in: query
schema:
type: integer
format: int64
example: 1769903999000
oneOf:
- type: integer
format: int64
example: 1769903999000
- type: string
format: date-time
example: '2026-01-31T23:59:59Z'
description: >
Include events that happened before this point (with timestamp less
than or equal the provided `end` Unix milliseconds value). Defaults
to now. Setting `end` does not change `start`'s default of `7 days
ago` — adjust it separately if needed.
than or equal the provided `end` Unix milliseconds value or RFC3339
timestamp). Defaults to now. Setting `end` does not change `start`'s
default of `7 days ago` — adjust it separately if needed.
- name: reverse
in: query
schema:
Expand Down
2 changes: 1 addition & 1 deletion run_checks.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function env(string $key, ?string $default = null): ?string

// Check that old events still match expected format
try {
$oldEvents = $client->searchEvents(1, start: $start->getTimestamp() * 1000, end: $end->getTimestamp() * 1000, reverse: true);
$oldEvents = $client->searchEvents(1, start: $start->getTimestamp() * 1000, end: $end, reverse: true);
if (!is_countable($oldEvents->getEvents()) || count($oldEvents->getEvents()) === 0) {
throw new Exception('No old events found');
}
Expand Down
Loading
Loading