diff --git a/.changeset/fuzzy-apes-talk.md b/.changeset/fuzzy-apes-talk.md new file mode 100644 index 00000000..dd04eff7 --- /dev/null +++ b/.changeset/fuzzy-apes-talk.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-java-sdk': minor +--- + +Added new `ipEvents`, `distinctIpByLinkedId`, and `distinctVisitorIdByLinkedId` fields to the `velocity` Smart Signal. diff --git a/.changeset/khaki-results-help.md b/.changeset/khaki-results-help.md new file mode 100644 index 00000000..801c580f --- /dev/null +++ b/.changeset/khaki-results-help.md @@ -0,0 +1,15 @@ +--- +'fingerprint-pro-server-api-java-sdk': minor +--- + +- Make the `GeolocationCity` field `name` **required**. +- Make the `GeolocationSubdivision` field `isoCode` **required**. +- Make the `GeolocationSubdivision` field `name` **required**. +- Make the `IPInfoASN` field `name` **required** . +- Make the `IPInfoDataCenter` field `name` **required**. +- Add **optional** `IdentificationConfidence` field `comment`. +- **events**: Add **optional** `Botd` field `meta`. +- **events**: Add **optional** `Identification` field `components`. +- **events**: Make the `VPN` field `originCountry` **required**. +- **visitors**: Add **optional** `Visit` field `components`. +- **webhook**: Add **optional** `Webhook` field `components`. diff --git a/.changeset/large-lights-push.md b/.changeset/large-lights-push.md new file mode 100644 index 00000000..a878f583 --- /dev/null +++ b/.changeset/large-lights-push.md @@ -0,0 +1,33 @@ +--- +'fingerprint-pro-server-api-java-sdk': major +--- + +- Remove the `BrowserDetails` field `botProbability`. +- Update the `IdentificationConfidence` field `score` type format: `float` -> `double`. +- Make the `RawDeviceAttributeError` field `name` **optional** . +- Make the `RawDeviceAttributeError` field `message` **optional** . +- **events**: Remove the `EventsResponse` field `error`. + - [note]: The errors are represented by `ErrorResponse` model. +- **events**: Update the `HighActivity` field `dailyRequests` type format: `number` -> `int64`. +- **events**: Specify the `Tampering` field `anomalyScore` type format: `double`. +- **webhook**: Make the `Webhook` fields **optional**: `visitorId`, `visitorFound`, `firstSeenAt`, `lastSeenAt`, `browserDetails`, `incognito`. +- **webhook**: Make the `WebhookClonedApp` field `result` **optional**. +- **webhook**: Make the `WebhookDeveloperTools` field `result` **optional**. +- **webhook**: Make the `WebhookEmulator` field `result` **optional**. +- **webhook**: Make the `WebhookFactoryReset` fields `time` and `timestamp` **optional**. +- **webhook**: Make the `WebhookFrida` field `result` **optional**. +- **webhook**: Update the `WebhookHighActivity` field `dailyRequests` type format: `number` -> `int64`. +- **webhook**: Make the `WebhookIPBlocklist` fields `result` and `details` **optional**. +- **webhook**: Make the `WebhookJailbroken` field `result` **optional**. +- **webhook**: Make the `WebhookLocationSpoofing` field `result` **optional**. +- **webhook**: Make the `WebhookPrivacySettings` field `result` **optional**. +- **webhook**: Make the `WebhookProxy` field `result` **optional**. +- **webhook**: Make the `WebhookRemoteControl` field `result` **optional**. +- **webhook**: Make the `WebhookRootApps` field `result` **optional**. +- **webhook**: Make the `WebhookSuspectScore` field `result` **optional**. +- **webhook**: Make the `WebhookTampering` fields `result`, `anomalyScore` and `antiDetectBrowser` **optional**. +- **webhook**: Specify the `WebhookTampering` field `anomalyScore` type format: `double`. +- **webhook**: Make the `WebhookTor` field `result` **optional**. +- **webhook**: Make the `WebhookVelocity` fields **optional**: `distinctIp`, `distinctLinkedId`, `distinctCountry`, `events`, `ipEvents`, `distinctIpByLinkedId`, `distinctVisitorIdByLinkedId`. +- **webhook**: Make the `WebhookVirtualMachine` field `result` **optional**. +- **webhook**: Make the `WebhookVPN` fields **optional**: `result`, `confidence`, `originTimezone`, `methods`. diff --git a/.changeset/quiet-parrots-stick.md b/.changeset/quiet-parrots-stick.md new file mode 100644 index 00000000..054dc19f --- /dev/null +++ b/.changeset/quiet-parrots-stick.md @@ -0,0 +1,65 @@ +--- +'fingerprint-pro-server-api-java-sdk': major +--- + +- Rename `BotdResult` -> `Botd`. +- Rename `BotdDetectionResult` -> `BotdBot`: + - Extract `result` type as `BotdBotResult`. +- Rename `ClonedAppResult` -> `ClonedApp`. +- Rename `DeveloperToolsResult` -> `DeveloperTools`. +- Rename `EmulatorResult` -> `Emulator`. +- Refactor error models: + - Remove `ErrorCommon403Response`, `ErrorCommon429Response`, `ErrorEvent404Response`, `TooManyRequestsResponse`, `ErrorVisits403`, `ErrorUpdateEvent400Response`, `ErrorUpdateEvent409Response`, `ErrorVisitor400Response`, `ErrorVisitor404Response`, `IdentificationError`, `ProductError`. + - Introduce `ErrorResponse` and `ErrorPlainResponse`. + - [note]: `ErrorPlainResponse` has a different format `{ "error": string }` and it is used only in `GET /visitors`. + - Extract `error` type as `Error`. + - Extract `error.code` type as `ErrorCode`. +- Rename `EventResponse` -> `EventsGetResponse`. +- Rename `EventUpdateRequest` -> `EventsUpdateRequest`. +- Rename `FactoryResetResult` -> `FactoryReset`. +- Rename `FridaResult` -> `Frida`. +- Rename `IPLocation` -> `Geolocation`: + - Rename `IPLocationCity` -> `GeolocationCity`. + - Extract `subdivisions` type as `GeolocationSubdivisions`. + - Rename `Location` -> `GeolocationContinent`: + - Introduce a dedicated type `GeolocationCountry`. + - Rename `Subdivision` -> `GeolocationSubdivision`. +- Rename `HighActivityResult` -> `HighActivity`. +- Rename `Confidence` -> `IdentificationConfidence`. +- Rename `SeenAt` -> `IdentificationSeenAt`. +- Rename `IncognitoResult` -> `Incognito`. +- Rename `IpBlockListResult` -> `IPBlocklist`: + - Extract `details` type as `IPBlocklistDetails`. +- Rename `IpInfoResult` -> `IPInfo`: + - Rename `IpInfoResultV4` -> `IPInfoV4`. + - Rename `IpInfoResultV6` -> `IPInfoV6`. + - Rename `ASN` -> `IPInfoASN`. + - Rename `DataCenter` -> `IPInfoDataCenter`. +- Rename `JailbrokenResult` -> `Jailbroken`. +- Rename `LocationSpoofingResult` -> `LocationSpoofing`. +- Rename `PrivacySettingsResult` -> `PrivacySettings`. +- Rename `ProductsResponse` -> `Products`: + - Rename inner types: `ProductsResponseIdentification` -> `ProductIdentification`, `ProductsResponseIdentificationData` -> `Identification`, `ProductsResponseBotd` -> `ProductBotd`, `SignalResponseRootApps` -> `ProductRootApps`, `SignalResponseEmulator` -> `ProductEmulator`, `SignalResponseIpInfo` -> `ProductIPInfo`, `SignalResponseIpBlocklist` -> `ProductIPBlocklist`, `SignalResponseTor` -> `ProductTor`, `SignalResponseVpn` -> `ProductVPN`, `SignalResponseProxy` -> `ProductProxy`, `ProxyResult` -> `Proxy`, `SignalResponseIncognito` -> `ProductIncognito`, `SignalResponseTampering` -> `ProductTampering`, `SignalResponseClonedApp` -> `ProductClonedApp`, `SignalResponseFactoryReset` -> `ProductFactoryReset`, `SignalResponseJailbroken` -> `ProductJailbroken`, `SignalResponseFrida` -> `ProductFrida`, `SignalResponsePrivacySettings` -> `ProductPrivacySettings`, `SignalResponseVirtualMachine` -> `ProductVirtualMachine`, `SignalResponseRawDeviceAttributes` -> `ProductRawDeviceAttributes`, `RawDeviceAttributesResultValue` -> `RawDeviceAttributes`, `SignalResponseHighActivity` -> `ProductHighActivity`, `SignalResponseLocationSpoofing` -> `ProductLocationSpoofing`, `SignalResponseSuspectScore` -> `ProductSuspectScore`, `SignalResponseRemoteControl` -> `ProductRemoteControl`, `SignalResponseVelocity` -> `ProductVelocity`, `SignalResponseDeveloperTools` -> `ProductDeveloperTools`. + - Extract `identification.data` type as `Identification`. +- Rename `RawDeviceAttributesResult` -> `RawDeviceAttributes`: + - Extract item type as `RawDeviceAttribute`. + - Extract `error` type as `RawDeviceAttributeError`. +- Rename `RemoteControlResult` -> `RemoteControl`. +- Rename `RootAppsResult` -> `RootApps`. +- Rename `SuspectScoreResult` -> `SuspectScore`. +- Extract new model `Tag`. +- Rename `TamperingResult` -> `Tampering`. +- Rename `TorResult` -> `Tor`. +- Rename `VelocityResult` -> `Velocity`: + - Rename `VelocityIntervals` -> `VelocityData`. + - Rename `VelocityIntervalResult` -> `VelocityIntervals`. +- Rename `VirtualMachineResult` -> `VirtualMachine`. +- Rename the `Visit` field `ipLocation` type `DeprecatedIPLocation` -> `DeprecatedGeolocation`. + - Instead of `DeprecatedIPLocationCity` use common `GeolocationCity` +- Rename `Response` -> `VisitorsGetResponse`. + - Omit extra inner type `ResponseVisits` +- Rename `VpnResult` -> `VPN`. + - Extract `confidence` type as `VPNConfidence`. + - Extract `methods` type as `VPNMethods`. +- Rename `WebhookVisit` -> `Webhook`. + - Introduce new inner types: `WebhookRootApps`, `WebhookEmulator`, `WebhookIPInfo`, `WebhookIPBlocklist`, `WebhookTor`, `WebhookVPN`, `WebhookProxy`, `WebhookTampering`, `WebhookClonedApp`, `WebhookFactoryReset`, `WebhookJailbroken`, `WebhookFrida`, `WebhookPrivacySettings`, `WebhookVirtualMachine`, `WebhookRawDeviceAttributes`, `WebhookHighActivity`, `WebhookLocationSpoofing`, `WebhookSuspectScore`, `WebhookRemoteControl`, `WebhookVelocity`, `WebhookDeveloperTools`. \ No newline at end of file diff --git a/.changeset/short-icons-wish.md b/.changeset/short-icons-wish.md new file mode 100644 index 00000000..bd05b415 --- /dev/null +++ b/.changeset/short-icons-wish.md @@ -0,0 +1,8 @@ +--- +'fingerprint-pro-server-api-java-sdk': patch +--- + +- Fix descriptions formatting: + - Remove extra line breaks. + - Fix block styles. +- Fix links in descriptions. \ No newline at end of file diff --git a/.changeset/tender-bottles-kneel.md b/.changeset/tender-bottles-kneel.md new file mode 100644 index 00000000..9bb9c579 --- /dev/null +++ b/.changeset/tender-bottles-kneel.md @@ -0,0 +1,7 @@ +--- +'fingerprint-pro-server-api-java-sdk': patch +--- + +- Replace GET /events TooManyRequests examples with a single `get_event_200_too_many_requests_error.json`. +- Update `products.identification.error.message` in `get_event_200_<...>.json` examples. +- Rename GET /visitors example files. diff --git a/.changeset/three-files-kneel.md b/.changeset/three-files-kneel.md new file mode 100644 index 00000000..33893629 --- /dev/null +++ b/.changeset/three-files-kneel.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-java-sdk': minor +--- + +**events**: Add `antiDetectBrowser` detection method to the `tampering` Smart Signal. diff --git a/.schema-version b/.schema-version index 0408c30b..6eaf8943 100644 --- a/.schema-version +++ b/.schema-version @@ -1 +1 @@ -v1.2.0 \ No newline at end of file +v2.0.0 \ No newline at end of file diff --git a/README.md b/README.md index 56d7a916..d11ad8bd 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,9 @@ Please follow the [installation](#installation) instruction and execute the foll package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -145,7 +146,7 @@ public class FingerprintApiExample { // Get an event with a given requestId try { // Fetch the event with a given requestId - EventResponse response = api.getEvent(FPJS_REQUEST_ID); + EventsGetResponse response = api.getEvent(FPJS_REQUEST_ID); System.out.println(response.getProducts().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getEvent:" + e.getMessage()); @@ -153,7 +154,7 @@ public class FingerprintApiExample { // Update an event with a given requestId try { - EventUpdateRequest request = new EventUpdateRequest(); + EventsUpdateRequest request = new EventsUpdateRequest(); request.setLinkedId("myNewLinkedId"); api.updateEvent(FPJS_REQUEST_ID, request); } catch (ApiException e) { @@ -163,7 +164,7 @@ public class FingerprintApiExample { // Get a specific visitor's all visits try { // Fetch all visits with a given visitorId, with a page limit - Response response = api.getVisits(FPJS_VISITOR_ID, null, null, LIMIT, null, null); + VisitorsGetResponse response = api.getVisits(FPJS_VISITOR_ID, null, null, LIMIT, null, null); System.out.println(response.getVisits().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -172,7 +173,7 @@ public class FingerprintApiExample { // Get a specific visitor's all visits with a linkedId try { // Fetch all visits with a given visitorId, with a page limit, skipping the first visit - Response response = api.getVisits(FPJS_VISITOR_ID, null, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); + VisitorsGetResponse response = api.getVisits(FPJS_VISITOR_ID, null, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); System.out.println(response.getVisits().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -181,7 +182,7 @@ public class FingerprintApiExample { // Use all the parameters on getVisits try { // Fetch the visitor's all visits with a given requestId and linkedId with a page limit while skipping the first visit - Response response = api.getVisits(FPJS_VISITOR_ID, FPJS_REQUEST_ID, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); + VisitorsGetResponse response = api.getVisits(FPJS_VISITOR_ID, FPJS_REQUEST_ID, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); System.out.println(response.getVisits().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -204,7 +205,7 @@ This SDK provides utility methods for decoding [sealed results](https://dev.fing package com.fingerprint.example; import com.fingerprint.Sealed; -import com.fingerprint.model.EventResponse; +import com.fingerprint.model.EventsGetResponse; import java.util.Base64; @@ -216,7 +217,7 @@ public class SealedResults { // Base64 encoded key generated in the dashboard. String SEALED_KEY = System.getenv("BASE64_KEY"); - final EventResponse event = Sealed.unsealEventResponse( + final EventsGetResponse event = Sealed.unsealEventResponse( Base64.getDecoder().decode(SEALED_RESULT), // You can provide more than one key to support key rotation. The SDK will try to decrypt the result with each key. new Sealed.DecryptionKey[]{ @@ -237,7 +238,7 @@ To learn more, refer to example located in [src/examples/java/com/fingerprint/ex ## Webhook signature validation This SDK provides utility method for verifying the HMAC signature of the incoming webhook request. -Here is an example implementation using Spring Boot: +Here is an example implementation using Spring Boot: ```java import com.fingerprint.sdk.Webhook; @@ -281,97 +282,105 @@ Class | Method | HTTP request | Description ## Documentation for Models - - [ASN](docs/ASN.md) - - [BotdDetectionResult](docs/BotdDetectionResult.md) - - [BotdResult](docs/BotdResult.md) + - [Botd](docs/Botd.md) + - [BotdBot](docs/BotdBot.md) + - [BotdBotResult](docs/BotdBotResult.md) - [BrowserDetails](docs/BrowserDetails.md) - - [ClonedAppResult](docs/ClonedAppResult.md) - - [Common403ErrorResponse](docs/Common403ErrorResponse.md) - - [Confidence](docs/Confidence.md) - - [DataCenter](docs/DataCenter.md) - - [DeprecatedIPLocation](docs/DeprecatedIPLocation.md) - - [DeprecatedIPLocationCity](docs/DeprecatedIPLocationCity.md) - - [DeveloperToolsResult](docs/DeveloperToolsResult.md) - - [EmulatorResult](docs/EmulatorResult.md) + - [ClonedApp](docs/ClonedApp.md) + - [DeprecatedGeolocation](docs/DeprecatedGeolocation.md) + - [DeveloperTools](docs/DeveloperTools.md) + - [Emulator](docs/Emulator.md) - [Error](docs/Error.md) - - [ErrorCommon403Response](docs/ErrorCommon403Response.md) - - [ErrorCommon429Response](docs/ErrorCommon429Response.md) - - [ErrorCommon429ResponseError](docs/ErrorCommon429ResponseError.md) - - [ErrorEvent404Response](docs/ErrorEvent404Response.md) - - [ErrorEvent404ResponseError](docs/ErrorEvent404ResponseError.md) - - [ErrorUpdateEvent400Response](docs/ErrorUpdateEvent400Response.md) - - [ErrorUpdateEvent400ResponseError](docs/ErrorUpdateEvent400ResponseError.md) - - [ErrorUpdateEvent409Response](docs/ErrorUpdateEvent409Response.md) - - [ErrorUpdateEvent409ResponseError](docs/ErrorUpdateEvent409ResponseError.md) - - [ErrorVisitor400Response](docs/ErrorVisitor400Response.md) - - [ErrorVisitor400ResponseError](docs/ErrorVisitor400ResponseError.md) - - [ErrorVisitor404Response](docs/ErrorVisitor404Response.md) - - [ErrorVisitor404ResponseError](docs/ErrorVisitor404ResponseError.md) - - [ErrorVisits403](docs/ErrorVisits403.md) - - [EventResponse](docs/EventResponse.md) - - [EventUpdateRequest](docs/EventUpdateRequest.md) - - [FactoryResetResult](docs/FactoryResetResult.md) - - [FridaResult](docs/FridaResult.md) - - [HighActivityResult](docs/HighActivityResult.md) - - [IPLocation](docs/IPLocation.md) - - [IPLocationCity](docs/IPLocationCity.md) - - [IdentificationError](docs/IdentificationError.md) - - [IncognitoResult](docs/IncognitoResult.md) - - [IpBlockListResult](docs/IpBlockListResult.md) - - [IpBlockListResultDetails](docs/IpBlockListResultDetails.md) - - [IpInfoResult](docs/IpInfoResult.md) - - [IpInfoResultV4](docs/IpInfoResultV4.md) - - [IpInfoResultV6](docs/IpInfoResultV6.md) - - [JailbrokenResult](docs/JailbrokenResult.md) - - [Location](docs/Location.md) - - [LocationSpoofingResult](docs/LocationSpoofingResult.md) - - [PrivacySettingsResult](docs/PrivacySettingsResult.md) - - [ProductError](docs/ProductError.md) - - [ProductsResponse](docs/ProductsResponse.md) - - [ProductsResponseBotd](docs/ProductsResponseBotd.md) - - [ProductsResponseIdentification](docs/ProductsResponseIdentification.md) - - [ProductsResponseIdentificationData](docs/ProductsResponseIdentificationData.md) - - [ProxyResult](docs/ProxyResult.md) - - [RawDeviceAttributesResultValue](docs/RawDeviceAttributesResultValue.md) - - [RemoteControlResult](docs/RemoteControlResult.md) - - [Response](docs/Response.md) - - [ResponseVisits](docs/ResponseVisits.md) - - [RootAppsResult](docs/RootAppsResult.md) - - [SeenAt](docs/SeenAt.md) - - [SignalResponseClonedApp](docs/SignalResponseClonedApp.md) - - [SignalResponseDeveloperTools](docs/SignalResponseDeveloperTools.md) - - [SignalResponseEmulator](docs/SignalResponseEmulator.md) - - [SignalResponseFactoryReset](docs/SignalResponseFactoryReset.md) - - [SignalResponseFrida](docs/SignalResponseFrida.md) - - [SignalResponseHighActivity](docs/SignalResponseHighActivity.md) - - [SignalResponseIncognito](docs/SignalResponseIncognito.md) - - [SignalResponseIpBlocklist](docs/SignalResponseIpBlocklist.md) - - [SignalResponseIpInfo](docs/SignalResponseIpInfo.md) - - [SignalResponseJailbroken](docs/SignalResponseJailbroken.md) - - [SignalResponseLocationSpoofing](docs/SignalResponseLocationSpoofing.md) - - [SignalResponsePrivacySettings](docs/SignalResponsePrivacySettings.md) - - [SignalResponseProxy](docs/SignalResponseProxy.md) - - [SignalResponseRawDeviceAttributes](docs/SignalResponseRawDeviceAttributes.md) - - [SignalResponseRemoteControl](docs/SignalResponseRemoteControl.md) - - [SignalResponseRootApps](docs/SignalResponseRootApps.md) - - [SignalResponseSuspectScore](docs/SignalResponseSuspectScore.md) - - [SignalResponseTampering](docs/SignalResponseTampering.md) - - [SignalResponseTor](docs/SignalResponseTor.md) - - [SignalResponseVelocity](docs/SignalResponseVelocity.md) - - [SignalResponseVirtualMachine](docs/SignalResponseVirtualMachine.md) - - [SignalResponseVpn](docs/SignalResponseVpn.md) - - [Subdivision](docs/Subdivision.md) - - [SuspectScoreResult](docs/SuspectScoreResult.md) - - [TamperingResult](docs/TamperingResult.md) - - [TooManyRequestsResponse](docs/TooManyRequestsResponse.md) - - [TorResult](docs/TorResult.md) - - [VelocityIntervalResult](docs/VelocityIntervalResult.md) + - [ErrorCode](docs/ErrorCode.md) + - [ErrorPlainResponse](docs/ErrorPlainResponse.md) + - [ErrorResponse](docs/ErrorResponse.md) + - [EventsGetResponse](docs/EventsGetResponse.md) + - [EventsUpdateRequest](docs/EventsUpdateRequest.md) + - [FactoryReset](docs/FactoryReset.md) + - [Frida](docs/Frida.md) + - [Geolocation](docs/Geolocation.md) + - [GeolocationCity](docs/GeolocationCity.md) + - [GeolocationContinent](docs/GeolocationContinent.md) + - [GeolocationCountry](docs/GeolocationCountry.md) + - [GeolocationSubdivision](docs/GeolocationSubdivision.md) + - [HighActivity](docs/HighActivity.md) + - [IPBlocklist](docs/IPBlocklist.md) + - [IPBlocklistDetails](docs/IPBlocklistDetails.md) + - [IPInfo](docs/IPInfo.md) + - [IPInfoASN](docs/IPInfoASN.md) + - [IPInfoDataCenter](docs/IPInfoDataCenter.md) + - [IPInfoV4](docs/IPInfoV4.md) + - [IPInfoV6](docs/IPInfoV6.md) + - [Identification](docs/Identification.md) + - [IdentificationConfidence](docs/IdentificationConfidence.md) + - [IdentificationSeenAt](docs/IdentificationSeenAt.md) + - [Incognito](docs/Incognito.md) + - [Jailbroken](docs/Jailbroken.md) + - [LocationSpoofing](docs/LocationSpoofing.md) + - [PrivacySettings](docs/PrivacySettings.md) + - [ProductBotd](docs/ProductBotd.md) + - [ProductClonedApp](docs/ProductClonedApp.md) + - [ProductDeveloperTools](docs/ProductDeveloperTools.md) + - [ProductEmulator](docs/ProductEmulator.md) + - [ProductFactoryReset](docs/ProductFactoryReset.md) + - [ProductFrida](docs/ProductFrida.md) + - [ProductHighActivity](docs/ProductHighActivity.md) + - [ProductIPBlocklist](docs/ProductIPBlocklist.md) + - [ProductIPInfo](docs/ProductIPInfo.md) + - [ProductIdentification](docs/ProductIdentification.md) + - [ProductIncognito](docs/ProductIncognito.md) + - [ProductJailbroken](docs/ProductJailbroken.md) + - [ProductLocationSpoofing](docs/ProductLocationSpoofing.md) + - [ProductPrivacySettings](docs/ProductPrivacySettings.md) + - [ProductProxy](docs/ProductProxy.md) + - [ProductRawDeviceAttributes](docs/ProductRawDeviceAttributes.md) + - [ProductRemoteControl](docs/ProductRemoteControl.md) + - [ProductRootApps](docs/ProductRootApps.md) + - [ProductSuspectScore](docs/ProductSuspectScore.md) + - [ProductTampering](docs/ProductTampering.md) + - [ProductTor](docs/ProductTor.md) + - [ProductVPN](docs/ProductVPN.md) + - [ProductVelocity](docs/ProductVelocity.md) + - [ProductVirtualMachine](docs/ProductVirtualMachine.md) + - [Products](docs/Products.md) + - [Proxy](docs/Proxy.md) + - [RawDeviceAttribute](docs/RawDeviceAttribute.md) + - [RawDeviceAttributeError](docs/RawDeviceAttributeError.md) + - [RemoteControl](docs/RemoteControl.md) + - [RootApps](docs/RootApps.md) + - [SuspectScore](docs/SuspectScore.md) + - [Tampering](docs/Tampering.md) + - [Tor](docs/Tor.md) + - [VPN](docs/VPN.md) + - [VPNConfidence](docs/VPNConfidence.md) + - [VPNMethods](docs/VPNMethods.md) + - [Velocity](docs/Velocity.md) + - [VelocityData](docs/VelocityData.md) - [VelocityIntervals](docs/VelocityIntervals.md) - - [VelocityResult](docs/VelocityResult.md) - - [VirtualMachineResult](docs/VirtualMachineResult.md) - - [VpnResult](docs/VpnResult.md) - - [VpnResultMethods](docs/VpnResultMethods.md) - - [WebhookVisit](docs/WebhookVisit.md) + - [VirtualMachine](docs/VirtualMachine.md) + - [Visit](docs/Visit.md) + - [VisitorsGetResponse](docs/VisitorsGetResponse.md) + - [Webhook](docs/Webhook.md) + - [WebhookClonedApp](docs/WebhookClonedApp.md) + - [WebhookDeveloperTools](docs/WebhookDeveloperTools.md) + - [WebhookEmulator](docs/WebhookEmulator.md) + - [WebhookFactoryReset](docs/WebhookFactoryReset.md) + - [WebhookFrida](docs/WebhookFrida.md) + - [WebhookHighActivity](docs/WebhookHighActivity.md) + - [WebhookIPBlocklist](docs/WebhookIPBlocklist.md) + - [WebhookIPInfo](docs/WebhookIPInfo.md) + - [WebhookJailbroken](docs/WebhookJailbroken.md) + - [WebhookLocationSpoofing](docs/WebhookLocationSpoofing.md) + - [WebhookPrivacySettings](docs/WebhookPrivacySettings.md) + - [WebhookProxy](docs/WebhookProxy.md) + - [WebhookRemoteControl](docs/WebhookRemoteControl.md) + - [WebhookRootApps](docs/WebhookRootApps.md) + - [WebhookSuspectScore](docs/WebhookSuspectScore.md) + - [WebhookTampering](docs/WebhookTampering.md) + - [WebhookTor](docs/WebhookTor.md) + - [WebhookVPN](docs/WebhookVPN.md) + - [WebhookVelocity](docs/WebhookVelocity.md) + - [WebhookVirtualMachine](docs/WebhookVirtualMachine.md) ## Documentation for Authorization diff --git a/bin/test/mocks/get_event_all_errors.json b/bin/test/mocks/get_event_all_errors.json deleted file mode 100644 index 89663915..00000000 --- a/bin/test/mocks/get_event_all_errors.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "products": { - "identification": { - "error": { - "code": "Failed", - "message": "failed" - } - }, - "botd": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "ipInfo": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "incognito": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "rootApps": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "emulator": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "ipBlocklist": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "tor": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "vpn": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "proxy": { - "error": { - "code": "Failed", - "message": "internal server error" - } - }, - "tampering": { - "error": { - "code": "Failed", - "message": "internal server error" - } - } - } -} diff --git a/bin/test/mocks/get_event_botd_failed_error.json b/bin/test/mocks/get_event_botd_failed_error.json deleted file mode 100644 index 362f969a..00000000 --- a/bin/test/mocks/get_event_botd_failed_error.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "products": { - "identification": { - "data": { - "visitorId": "Ibk1527CUFmcnjLwIs4A9", - "requestId": "0KSh65EnVoB85JBmloQK", - "incognito": true, - "linkedId": "somelinkedId", - "time": "2019-05-21T16:40:13Z", - "timestamp": 1582299576512, - "url": "https://www.example.com/login", - "ip": "61.127.217.15", - "ipLocation": { - "accuracyRadius": 10, - "latitude": 49.982, - "longitude": 36.2566, - "postalCode": "61202", - "timezone": "Europe/Dusseldorf", - "city": { - "name": "Dusseldorf" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "subdivisions": [ - { - "isoCode": "63", - "name": "North Rhine-Westphalia" - } - ] - }, - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "74", - "browserFullVersion": "74.0.3729", - "os": "Windows", - "osVersion": "7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) ...." - }, - "confidence": { - "score": 0.97 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-03-16T11:26:45.362Z", - "subscription": "2022-03-16T11:31:01.101Z" - }, - "lastSeenAt": { - "global": "2022-03-16T11:28:34.023Z", - "subscription": null - } - } - }, - "botd": { - "error": { - "code": "Failed", - "message": "internal server error" - } - } - } -} diff --git a/bin/test/mocks/get_event_botd_too_many_requests_error.json b/bin/test/mocks/get_event_botd_too_many_requests_error.json deleted file mode 100644 index 55c561b3..00000000 --- a/bin/test/mocks/get_event_botd_too_many_requests_error.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "products": { - "identification": { - "data": { - "visitorId": "Ibk1527CUFmcnjLwIs4A9", - "requestId": "0KSh65EnVoB85JBmloQK", - "incognito": true, - "linkedId": "somelinkedId", - "time": "2019-05-21T16:40:13Z", - "timestamp": 1582299576512, - "url": "https://www.example.com/login", - "ip": "61.127.217.15", - "ipLocation": { - "accuracyRadius": 10, - "latitude": 49.982, - "longitude": 36.2566, - "postalCode": "61202", - "timezone": "Europe/Dusseldorf", - "city": { - "name": "Dusseldorf" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "subdivisions": [ - { - "isoCode": "63", - "name": "North Rhine-Westphalia" - } - ] - }, - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "74", - "browserFullVersion": "74.0.3729", - "os": "Windows", - "osVersion": "7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) ...." - }, - "confidence": { - "score": 0.97 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-03-16T11:26:45.362Z", - "subscription": "2022-03-16T11:31:01.101Z" - }, - "lastSeenAt": { - "global": "2022-03-16T11:28:34.023Z", - "subscription": null - } - } - }, - "botd": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - } - } -} diff --git a/bin/test/mocks/get_event_extra_fields.json b/bin/test/mocks/get_event_extra_fields.json deleted file mode 100644 index 03e50c01..00000000 --- a/bin/test/mocks/get_event_extra_fields.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "products": { - "identification": { - "data": { - "visitorId": "Ibk1527CUFmcnjLwIs4A9", - "requestId": "0KSh65EnVoB85JBmloQK", - "incognito": true, - "linkedId": "somelinkedId", - "time": "2019-05-21T16:40:13Z", - "timestamp": 1582299576512, - "url": "https://www.example.com/login", - "ip": "61.127.217.15", - "ipLocation": { - "accuracyRadius": 10, - "latitude": 49.982, - "longitude": 36.2566, - "postalCode": "61202", - "timezone": "Europe/Dusseldorf", - "city": { - "name": "Dusseldorf" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "subdivisions": [ - { - "isoCode": "63", - "name": "North Rhine-Westphalia" - } - ] - }, - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "74", - "browserFullVersion": "74.0.3729", - "os": "Windows", - "osVersion": "7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) ...." - }, - "confidence": { - "score": 0.97 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-03-16T11:26:45.362Z", - "subscription": "2022-03-16T11:31:01.101Z" - }, - "lastSeenAt": { - "global": "2022-03-16T11:28:34.023Z", - "subscription": null - } - } - }, - "botd": { - "data": { - "bot": { - "result": "notDetected" - }, - "url": "https://www.example.com/login", - "ip": "61.127.217.15", - "time": "2019-05-21T16:40:13Z" - } - }, - "product3": { - "data": { - "result": false - } - }, - "product4": { - "data": { - "result": true, - "details": { - "detail1": true, - "detail2": "detail description", - "detail3": 42 - } - } - } - } -} diff --git a/bin/test/mocks/get_event_identification_failed_error.json b/bin/test/mocks/get_event_identification_failed_error.json deleted file mode 100644 index 22d79def..00000000 --- a/bin/test/mocks/get_event_identification_failed_error.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "products": { - "identification": { - "error": { - "code": "Failed", - "message": "failed" - } - }, - "botd": { - "data": { - "url": "https://example.com/login", - "bot": { - "result": "notDetected" - }, - "ip": "61.127.217.15", - "time": "2019-05-21T16:40:13Z" - } - } - } -} \ No newline at end of file diff --git a/bin/test/mocks/get_event_identification_too_many_requests_error.json b/bin/test/mocks/get_event_identification_too_many_requests_error.json deleted file mode 100644 index 26d31728..00000000 --- a/bin/test/mocks/get_event_identification_too_many_requests_error.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "products": { - "identification": { - "error": { - "code": "429 Too Many Requests", - "message": "too many requests" - } - }, - "botd": { - "data": { - "url": "https://example.com/login", - "bot": { - "result": "notDetected" - }, - "ip": "61.127.217.15", - "time": "2019-05-21T16:40:13Z" - } - } - } -} \ No newline at end of file diff --git a/docs/BotdResult.md b/docs/Botd.md similarity index 50% rename from docs/BotdResult.md rename to docs/Botd.md index fae7c660..2e78eb33 100644 --- a/docs/BotdResult.md +++ b/docs/Botd.md @@ -1,6 +1,6 @@ -# BotdResult +# Botd Contains all the information from Bot Detection product @@ -8,13 +8,14 @@ Contains all the information from Bot Detection product | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**bot** | [**BotdBot**](BotdBot.md) | | | +|**meta** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | [optional] | +|**linkedId** | **String** | A customer-provided id that was sent with the request. | [optional] | +|**url** | **String** | Page URL from which the request was sent. | | |**ip** | **String** | IP address of the requesting browser or bot. | | -|**time** | **OffsetDateTime** | Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible | | -|**url** | **String** | Page URL from which identification request was sent. | | +|**time** | **OffsetDateTime** | Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | | |**userAgent** | **String** | | | -|**requestId** | **String** | | | -|**linkedId** | **String** | | [optional] | -|**bot** | [**BotdDetectionResult**](BotdDetectionResult.md) | | | +|**requestId** | **String** | Unique identifier of the user's request. | | diff --git a/docs/BotdBot.md b/docs/BotdBot.md new file mode 100644 index 00000000..84fc5aef --- /dev/null +++ b/docs/BotdBot.md @@ -0,0 +1,15 @@ + + +# BotdBot + +Stores bot detection result + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | [**BotdBotResult**](BotdBotResult.md) | | | +|**type** | **String** | | [optional] | + + + diff --git a/docs/BotdBotResult.md b/docs/BotdBotResult.md new file mode 100644 index 00000000..3439ac9a --- /dev/null +++ b/docs/BotdBotResult.md @@ -0,0 +1,15 @@ + + +# BotdBotResult + +## Enum + + +* `NOT_DETECTED` (value: `"notDetected"`) + +* `GOOD` (value: `"good"`) + +* `BAD` (value: `"bad"`) + + + diff --git a/docs/BotdDetectionResult.md b/docs/BotdDetectionResult.md deleted file mode 100644 index 0dc0f054..00000000 --- a/docs/BotdDetectionResult.md +++ /dev/null @@ -1,24 +0,0 @@ - - -# BotdDetectionResult - -Stores bot detection result - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | [**ResultEnum**](#ResultEnum) | Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on | | -|**type** | **String** | | [optional] | - - -## Enum: ResultEnum - -| Name | Value | -|---- | ----- | -| NOT_DETECTED | "notDetected" | -| GOOD | "good" | -| BAD | "bad" | - - - diff --git a/docs/BrowserDetails.md b/docs/BrowserDetails.md index 1c926d75..ba4fa973 100644 --- a/docs/BrowserDetails.md +++ b/docs/BrowserDetails.md @@ -14,7 +14,6 @@ |**osVersion** | **String** | | | |**device** | **String** | | | |**userAgent** | **String** | | | -|**botProbability** | **Integer** | | [optional] | diff --git a/docs/ClonedApp.md b/docs/ClonedApp.md new file mode 100644 index 00000000..c38777f0 --- /dev/null +++ b/docs/ClonedApp.md @@ -0,0 +1,13 @@ + + +# ClonedApp + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Android specific cloned application detection. There are 2 values: * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android. | | + + + diff --git a/docs/ClonedAppResult.md b/docs/ClonedAppResult.md deleted file mode 100644 index 26bf5e8b..00000000 --- a/docs/ClonedAppResult.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ClonedAppResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. | | - - - diff --git a/docs/Common403ErrorResponse.md b/docs/Common403ErrorResponse.md deleted file mode 100644 index c1ebd3c4..00000000 --- a/docs/Common403ErrorResponse.md +++ /dev/null @@ -1,25 +0,0 @@ - - -# Common403ErrorResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| TOKEN_REQUIRED | "TokenRequired" | -| TOKEN_NOT_FOUND | "TokenNotFound" | -| SUBSCRIPTION_NOT_ACTIVE | "SubscriptionNotActive" | -| WRONG_REGION | "WrongRegion" | -| FEATURE_NOT_ENABLED | "FeatureNotEnabled" | - - - diff --git a/docs/DeprecatedGeolocation.md b/docs/DeprecatedGeolocation.md new file mode 100644 index 00000000..3c42d3dd --- /dev/null +++ b/docs/DeprecatedGeolocation.md @@ -0,0 +1,22 @@ + + +# DeprecatedGeolocation + +This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**accuracyRadius** | **Integer** | The IP address is likely to be within this radius (in km) of the specified location. | [optional] | +|**latitude** | **Double** | | [optional] | +|**longitude** | **Double** | | [optional] | +|**postalCode** | **String** | | [optional] | +|**timezone** | **String** | | [optional] | +|**city** | [**GeolocationCity**](GeolocationCity.md) | | [optional] | +|**country** | [**GeolocationCountry**](GeolocationCountry.md) | | [optional] | +|**continent** | [**GeolocationContinent**](GeolocationContinent.md) | | [optional] | +|**subdivisions** | [**List<GeolocationSubdivision>**](GeolocationSubdivision.md) | | [optional] | + + + diff --git a/docs/DeprecatedIPLocation.md b/docs/DeprecatedIPLocation.md deleted file mode 100644 index c559c1ed..00000000 --- a/docs/DeprecatedIPLocation.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# DeprecatedIPLocation - -This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**accuracyRadius** | **Integer** | The IP address is likely to be within this radius (in km) of the specified location. | [optional] | -|**latitude** | **Double** | | [optional] | -|**longitude** | **Double** | | [optional] | -|**postalCode** | **String** | | [optional] | -|**timezone** | **String** | | [optional] | -|**city** | [**DeprecatedIPLocationCity**](DeprecatedIPLocationCity.md) | | [optional] | -|**country** | [**Location**](Location.md) | | [optional] | -|**continent** | [**Location**](Location.md) | | [optional] | -|**subdivisions** | [**List<Subdivision>**](Subdivision.md) | | [optional] | - - - diff --git a/docs/DeveloperToolsResult.md b/docs/DeveloperTools.md similarity index 92% rename from docs/DeveloperToolsResult.md rename to docs/DeveloperTools.md index 7ab5ba1a..13e48048 100644 --- a/docs/DeveloperToolsResult.md +++ b/docs/DeveloperTools.md @@ -1,6 +1,6 @@ -# DeveloperToolsResult +# DeveloperTools ## Properties diff --git a/docs/Emulator.md b/docs/Emulator.md new file mode 100644 index 00000000..fe6f39f0 --- /dev/null +++ b/docs/Emulator.md @@ -0,0 +1,13 @@ + + +# Emulator + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Android specific emulator detection. There are 2 values: * `true` - Emulated environment detected (e.g. launch inside of AVD). * `false` - No signs of emulated environment detected or the client is not Android. | | + + + diff --git a/docs/EmulatorResult.md b/docs/EmulatorResult.md deleted file mode 100644 index 559aa525..00000000 --- a/docs/EmulatorResult.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# EmulatorResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. | | - - - diff --git a/docs/Error.md b/docs/Error.md index fb0a35f8..e1aa14df 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | | | +|**code** | [**ErrorCode**](ErrorCode.md) | | | |**message** | **String** | | | diff --git a/docs/ErrorCode.md b/docs/ErrorCode.md new file mode 100644 index 00000000..e118c89a --- /dev/null +++ b/docs/ErrorCode.md @@ -0,0 +1,33 @@ + + +# ErrorCode + +## Enum + + +* `REQUEST_CANNOT_BE_PARSED` (value: `"RequestCannotBeParsed"`) + +* `TOKEN_REQUIRED` (value: `"TokenRequired"`) + +* `TOKEN_NOT_FOUND` (value: `"TokenNotFound"`) + +* `SUBSCRIPTION_NOT_ACTIVE` (value: `"SubscriptionNotActive"`) + +* `WRONG_REGION` (value: `"WrongRegion"`) + +* `FEATURE_NOT_ENABLED` (value: `"FeatureNotEnabled"`) + +* `REQUEST_NOT_FOUND` (value: `"RequestNotFound"`) + +* `VISITOR_NOT_FOUND` (value: `"VisitorNotFound"`) + +* `TOO_MANY_REQUESTS` (value: `"TooManyRequests"`) + +* `_429_TOO_MANY_REQUESTS` (value: `"429 Too Many Requests"`) + +* `STATE_NOT_READY` (value: `"StateNotReady"`) + +* `FAILED` (value: `"Failed"`) + + + diff --git a/docs/ErrorCommon429Response.md b/docs/ErrorCommon429Response.md deleted file mode 100644 index c403a9a9..00000000 --- a/docs/ErrorCommon429Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ErrorCommon429Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**ErrorCommon429ResponseError**](ErrorCommon429ResponseError.md) | | [optional] | - - - diff --git a/docs/ErrorCommon429ResponseError.md b/docs/ErrorCommon429ResponseError.md deleted file mode 100644 index cb5e2af1..00000000 --- a/docs/ErrorCommon429ResponseError.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ErrorCommon429ResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `TooManyRequests` - The request is throttled. | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| TOO_MANY_REQUESTS | "TooManyRequests" | - - - diff --git a/docs/ErrorEvent404Response.md b/docs/ErrorEvent404Response.md deleted file mode 100644 index 93424a4f..00000000 --- a/docs/ErrorEvent404Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ErrorEvent404Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**ErrorEvent404ResponseError**](ErrorEvent404ResponseError.md) | | [optional] | - - - diff --git a/docs/ErrorEvent404ResponseError.md b/docs/ErrorEvent404ResponseError.md deleted file mode 100644 index f8806401..00000000 --- a/docs/ErrorEvent404ResponseError.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ErrorEvent404ResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| REQUEST_NOT_FOUND | "RequestNotFound" | - - - diff --git a/docs/IPLocationCity.md b/docs/ErrorPlainResponse.md similarity index 67% rename from docs/IPLocationCity.md rename to docs/ErrorPlainResponse.md index a0e2891f..76ddeb83 100644 --- a/docs/IPLocationCity.md +++ b/docs/ErrorPlainResponse.md @@ -1,13 +1,13 @@ -# IPLocationCity +# ErrorPlainResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | | [optional] | +|**error** | **String** | | | diff --git a/docs/ErrorVisits403.md b/docs/ErrorResponse.md similarity index 67% rename from docs/ErrorVisits403.md rename to docs/ErrorResponse.md index dd14c3ae..e7120b7a 100644 --- a/docs/ErrorVisits403.md +++ b/docs/ErrorResponse.md @@ -1,13 +1,13 @@ -# ErrorVisits403 +# ErrorResponse ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**error** | **String** | Error text. | | +|**error** | [**Error**](Error.md) | | | diff --git a/docs/ErrorUpdateEvent400Response.md b/docs/ErrorUpdateEvent400Response.md deleted file mode 100644 index f9b75139..00000000 --- a/docs/ErrorUpdateEvent400Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ErrorUpdateEvent400Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**ErrorUpdateEvent400ResponseError**](ErrorUpdateEvent400ResponseError.md) | | [optional] | - - - diff --git a/docs/ErrorUpdateEvent400ResponseError.md b/docs/ErrorUpdateEvent400ResponseError.md deleted file mode 100644 index 441aede4..00000000 --- a/docs/ErrorUpdateEvent400ResponseError.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# ErrorUpdateEvent400ResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated | | -|**message** | **String** | Details about the underlying issue with the input payload | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| REQUEST_CANNOT_BE_PARSED | "RequestCannotBeParsed" | -| FAILED | "Failed" | - - - diff --git a/docs/ErrorUpdateEvent409Response.md b/docs/ErrorUpdateEvent409Response.md deleted file mode 100644 index b9568d8d..00000000 --- a/docs/ErrorUpdateEvent409Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ErrorUpdateEvent409Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**ErrorUpdateEvent409ResponseError**](ErrorUpdateEvent409ResponseError.md) | | [optional] | - - - diff --git a/docs/ErrorUpdateEvent409ResponseError.md b/docs/ErrorUpdateEvent409ResponseError.md deleted file mode 100644 index 31dcdd1f..00000000 --- a/docs/ErrorUpdateEvent409ResponseError.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ErrorUpdateEvent409ResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| STATE_NOT_READY | "StateNotReady" | - - - diff --git a/docs/ErrorVisitor400Response.md b/docs/ErrorVisitor400Response.md deleted file mode 100644 index 43ae04fe..00000000 --- a/docs/ErrorVisitor400Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ErrorVisitor400Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**ErrorVisitor400ResponseError**](ErrorVisitor400ResponseError.md) | | [optional] | - - - diff --git a/docs/ErrorVisitor400ResponseError.md b/docs/ErrorVisitor400ResponseError.md deleted file mode 100644 index 0a942e64..00000000 --- a/docs/ErrorVisitor400ResponseError.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ErrorVisitor400ResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| REQUEST_CANNOT_BE_PARSED | "RequestCannotBeParsed" | - - - diff --git a/docs/ErrorVisitor404Response.md b/docs/ErrorVisitor404Response.md deleted file mode 100644 index 8d98e46d..00000000 --- a/docs/ErrorVisitor404Response.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# ErrorVisitor404Response - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | [**ErrorVisitor404ResponseError**](ErrorVisitor404ResponseError.md) | | [optional] | - - - diff --git a/docs/ErrorVisitor404ResponseError.md b/docs/ErrorVisitor404ResponseError.md deleted file mode 100644 index a6e16588..00000000 --- a/docs/ErrorVisitor404ResponseError.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# ErrorVisitor404ResponseError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| VISITOR_NOT_FOUND | "VisitorNotFound" | - - - diff --git a/docs/EventResponse.md b/docs/EventsGetResponse.md similarity index 58% rename from docs/EventResponse.md rename to docs/EventsGetResponse.md index 35309791..50fa1961 100644 --- a/docs/EventResponse.md +++ b/docs/EventsGetResponse.md @@ -1,6 +1,6 @@ -# EventResponse +# EventsGetResponse Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. @@ -8,8 +8,7 @@ Contains results from all activated products - Fingerprint Pro, Bot Detection, a | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**products** | [**ProductsResponse**](ProductsResponse.md) | | | -|**error** | [**ProductError**](ProductError.md) | | [optional] | +|**products** | [**Products**](Products.md) | | | diff --git a/docs/EventUpdateRequest.md b/docs/EventsUpdateRequest.md similarity index 66% rename from docs/EventUpdateRequest.md rename to docs/EventsUpdateRequest.md index 1628721b..8eb30788 100644 --- a/docs/EventUpdateRequest.md +++ b/docs/EventsUpdateRequest.md @@ -1,6 +1,6 @@ -# EventUpdateRequest +# EventsUpdateRequest ## Properties @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**linkedId** | **String** | LinkedID value to assign to the existing event | [optional] | -|**tag** | **Object** | Full `tag` value to be set to the existing event. Replaces any existing `tag` payload completely. | [optional] | +|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | [optional] | |**suspect** | **Boolean** | Suspect flag indicating observed suspicious or fraudulent event | [optional] | diff --git a/docs/FactoryResetResult.md b/docs/FactoryReset.md similarity index 60% rename from docs/FactoryResetResult.md rename to docs/FactoryReset.md index 384483ee..96b05127 100644 --- a/docs/FactoryResetResult.md +++ b/docs/FactoryReset.md @@ -1,14 +1,14 @@ -# FactoryResetResult +# FactoryReset ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**time** | **OffsetDateTime** | Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. | | -|**timestamp** | **Long** | This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. | | +|**time** | **OffsetDateTime** | Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. | | +|**timestamp** | **Long** | This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. | | diff --git a/docs/FingerprintApi.md b/docs/FingerprintApi.md index e193c4e8..87f04440 100644 --- a/docs/FingerprintApi.md +++ b/docs/FingerprintApi.md @@ -49,8 +49,9 @@ Please [contact our support team](https://fingerprint.com/support/) to enable it package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -71,7 +72,7 @@ public class FingerprintApiExample { */ ApiClient client = Configuration.getDefaultApiClient(FPJS_API_SECRET, Region.EUROPE); FingerprintApi api = new FingerprintApi(client); - String visitorId = "visitorId_example"; // String | The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. + String visitorId = "visitorId_example"; // String | The [visitor ID](https://dev.fingerprint.com/reference/get-function#visitorid) you want to delete. try { apiInstance.deleteVisitorData(visitorId); } catch (ApiException e) { @@ -87,7 +88,7 @@ public class FingerprintApiExample { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **visitorId** | **String**| The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. | | +| **visitorId** | **String**| The [visitor ID](https://dev.fingerprint.com/reference/get-function#visitorid) you want to delete. | | ### Return type @@ -114,7 +115,7 @@ null (empty response body) ## getEvent -> EventResponse getEvent(requestId) +> EventsGetResponse getEvent(requestId) Get event by request ID @@ -131,8 +132,9 @@ Use `requestId` as the URL path parameter. This API method is scoped to a reques package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -153,9 +155,9 @@ public class FingerprintApiExample { */ ApiClient client = Configuration.getDefaultApiClient(FPJS_API_SECRET, Region.EUROPE); FingerprintApi api = new FingerprintApi(client); - String requestId = "requestId_example"; // String | The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. + String requestId = "requestId_example"; // String | The unique [identifier](https://dev.fingerprint.com/reference/get-function#requestid) of each identification request. try { - EventResponse result = apiInstance.getEvent(requestId); + EventsGetResponse result = apiInstance.getEvent(requestId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getEvent:" + e.getMessage()); @@ -170,11 +172,11 @@ public class FingerprintApiExample { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **requestId** | **String**| The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. | | +| **requestId** | **String**| The unique [identifier](https://dev.fingerprint.com/reference/get-function#requestid) of each identification request. | | ### Return type -[**EventResponse**](EventResponse.md) +[**EventsGetResponse**](EventsGetResponse.md) ### Authorization @@ -188,14 +190,14 @@ public class FingerprintApiExample { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | OK | - | -| **403** | Forbidden | - | -| **404** | Not found | - | +| **200** | OK. | - | +| **403** | Forbidden. Access to this API is denied. | - | +| **404** | Not found. The request ID cannot be found in this application's data. | - | ## getVisits -> Response getVisits(visitorId, requestId, linkedId, limit, paginationKey, before) +> VisitorsGetResponse getVisits(visitorId, requestId, linkedId, limit, paginationKey, before) Get visits by visitor ID @@ -213,8 +215,9 @@ Only information from the _Identification_ product is returned. package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -235,14 +238,14 @@ public class FingerprintApiExample { */ ApiClient client = Configuration.getDefaultApiClient(FPJS_API_SECRET, Region.EUROPE); FingerprintApi api = new FingerprintApi(client); - String visitorId = "uYIm7Ksp5rf00SllPhFp"; // String | Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. - String requestId = "requestId_example"; // String | Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. - String linkedId = "linkedId_example"; // String | Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#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. + String visitorId = "visitorId_example"; // String | Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. + String requestId = "requestId_example"; // String | Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/reference/get-function#requestid). When you filter visits by `requestId`, only one visit will be returned. + String linkedId = "linkedId_example"; // String | Filter visits by your custom identifier. You can use [`linkedId`](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. Integer limit = 56; // Integer | Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. String paginationKey = "paginationKey_example"; // String | Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. Long before = 56L; // Long | ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. try { - Response result = apiInstance.getVisits(visitorIdrequestIdlinkedIdlimitpaginationKeybefore); + VisitorsGetResponse result = apiInstance.getVisits(visitorId, requestId, linkedId, limit, paginationKey, before); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -257,16 +260,16 @@ public class FingerprintApiExample { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **visitorId** | **String**| Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. | | -| **requestId** | **String**| Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. | [optional] | -| **linkedId** | **String**| Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#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] | +| **visitorId** | **String**| Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. | | +| **requestId** | **String**| Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/reference/get-function#requestid). When you filter visits by `requestId`, only one visit will be returned. | [optional] | +| **linkedId** | **String**| Filter visits by your custom identifier. You can use [`linkedId`](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] | | **limit** | **Integer**| Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. | [optional] | | **paginationKey** | **String**| Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. | [optional] | | **before** | **Long**| ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. | [optional] | ### Return type -[**Response**](Response.md) +[**VisitorsGetResponse**](VisitorsGetResponse.md) ### Authorization @@ -280,14 +283,15 @@ public class FingerprintApiExample { ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | OK | - | -| **403** | Forbidden. The API Key is probably missing or incorrect. | - | -| **429** | Too Many Requests | * Retry-After - Indicates how many seconds you should wait before attempting the next request.
| +| **200** | OK. | - | +| **400** | Bad request. The visitor ID or query parameters are missing or in the wrong format. | - | +| **403** | Forbidden. Access to this API is denied. | - | +| **429** | Too Many Requests. The request is throttled. | * Retry-After - Indicates how many seconds you should wait before attempting the next request.
| ## updateEvent -> updateEvent(requestId, eventUpdateRequest) +> updateEvent(requestId, eventsUpdateRequest) Update an event with a given request ID @@ -304,8 +308,9 @@ When an event is created, it is assigned `linkedId` and `tag` submitted through package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -326,10 +331,10 @@ public class FingerprintApiExample { */ ApiClient client = Configuration.getDefaultApiClient(FPJS_API_SECRET, Region.EUROPE); FingerprintApi api = new FingerprintApi(client); - String requestId = "requestId_example"; // String | The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). - EventUpdateRequest eventUpdateRequest = new EventUpdateRequest(); // EventUpdateRequest | + String requestId = "requestId_example"; // String | The unique event [identifier](https://dev.fingerprint.com/reference/get-function#requestid). + EventsUpdateRequest eventsUpdateRequest = new EventsUpdateRequest(); // EventsUpdateRequest | try { - apiInstance.updateEvent(requestIdeventUpdateRequest); + apiInstance.updateEvent(requestId, eventsUpdateRequest); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.updateEvent:" + e.getMessage()); } @@ -343,8 +348,8 @@ public class FingerprintApiExample { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **requestId** | **String**| The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). | | -| **eventUpdateRequest** | [**EventUpdateRequest**](EventUpdateRequest.md)| | | +| **requestId** | **String**| The unique event [identifier](https://dev.fingerprint.com/reference/get-function#requestid). | | +| **eventsUpdateRequest** | [**EventsUpdateRequest**](EventsUpdateRequest.md)| | | ### Return type @@ -362,16 +367,16 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | OK | - | -| **400** | Bad request | - | -| **403** | Forbidden | - | -| **404** | Not found | - | -| **409** | Conflict | - | +| **200** | OK. | - | +| **400** | Bad request. The request payload is not valid. | - | +| **403** | Forbidden. Access to this API is denied. | - | +| **404** | Not found. The request ID cannot be found in this application's data. | - | +| **409** | Conflict. The event is not mutable yet. | - | ## webhookTrace -> webhookTrace() +> webhookTrace(webhook) @@ -383,8 +388,9 @@ Fake path to describe webhook format. More information about webhooks can be fou package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -405,8 +411,9 @@ public class FingerprintApiExample { */ ApiClient client = Configuration.getDefaultApiClient(FPJS_API_SECRET, Region.EUROPE); FingerprintApi api = new FingerprintApi(client); + Webhook webhook = new Webhook(); // Webhook | try { - apiInstance.webhookTrace(); + apiInstance.webhookTrace(webhook); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.webhookTrace:" + e.getMessage()); } @@ -417,7 +424,10 @@ public class FingerprintApiExample { ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **webhook** | [**Webhook**](Webhook.md)| | [optional] | ### Return type @@ -429,7 +439,7 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details diff --git a/docs/FridaResult.md b/docs/Frida.md similarity index 60% rename from docs/FridaResult.md rename to docs/Frida.md index 44609078..b40662af 100644 --- a/docs/FridaResult.md +++ b/docs/Frida.md @@ -1,13 +1,13 @@ -# FridaResult +# Frida ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. | | +|**result** | **Boolean** | [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device. | | diff --git a/docs/IPLocation.md b/docs/Geolocation.md similarity index 55% rename from docs/IPLocation.md rename to docs/Geolocation.md index e1186a75..0d2fde5d 100644 --- a/docs/IPLocation.md +++ b/docs/Geolocation.md @@ -1,6 +1,6 @@ -# IPLocation +# Geolocation ## Properties @@ -12,10 +12,10 @@ |**longitude** | **Double** | | [optional] | |**postalCode** | **String** | | [optional] | |**timezone** | **String** | | [optional] | -|**city** | [**IPLocationCity**](IPLocationCity.md) | | [optional] | -|**country** | [**Location**](Location.md) | | [optional] | -|**continent** | [**Location**](Location.md) | | [optional] | -|**subdivisions** | [**List<Subdivision>**](Subdivision.md) | | [optional] | +|**city** | [**GeolocationCity**](GeolocationCity.md) | | [optional] | +|**country** | [**GeolocationCountry**](GeolocationCountry.md) | | [optional] | +|**continent** | [**GeolocationContinent**](GeolocationContinent.md) | | [optional] | +|**subdivisions** | [**List<GeolocationSubdivision>**](GeolocationSubdivision.md) | | [optional] | diff --git a/docs/GeolocationCity.md b/docs/GeolocationCity.md new file mode 100644 index 00000000..6998820f --- /dev/null +++ b/docs/GeolocationCity.md @@ -0,0 +1,13 @@ + + +# GeolocationCity + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | | + + + diff --git a/docs/GeolocationContinent.md b/docs/GeolocationContinent.md new file mode 100644 index 00000000..e2ac3c9c --- /dev/null +++ b/docs/GeolocationContinent.md @@ -0,0 +1,14 @@ + + +# GeolocationContinent + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | | | +|**name** | **String** | | | + + + diff --git a/docs/Location.md b/docs/GeolocationCountry.md similarity index 89% rename from docs/Location.md rename to docs/GeolocationCountry.md index 092ec5fd..480af7e9 100644 --- a/docs/Location.md +++ b/docs/GeolocationCountry.md @@ -1,6 +1,6 @@ -# Location +# GeolocationCountry ## Properties diff --git a/docs/GeolocationSubdivision.md b/docs/GeolocationSubdivision.md new file mode 100644 index 00000000..82f695bb --- /dev/null +++ b/docs/GeolocationSubdivision.md @@ -0,0 +1,14 @@ + + +# GeolocationSubdivision + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isoCode** | **String** | | | +|**name** | **String** | | | + + + diff --git a/docs/HighActivity.md b/docs/HighActivity.md new file mode 100644 index 00000000..c7be21e1 --- /dev/null +++ b/docs/HighActivity.md @@ -0,0 +1,14 @@ + + +# HighActivity + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Flag indicating if the request came from a high-activity visitor. | | +|**dailyRequests** | **Long** | Number of requests from the same visitor in the previous day. | [optional] | + + + diff --git a/docs/HighActivityResult.md b/docs/HighActivityResult.md deleted file mode 100644 index bdbb3d27..00000000 --- a/docs/HighActivityResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# HighActivityResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | Flag indicating whether the request came from a high activity visitor. | | -|**dailyRequests** | [**BigDecimal**](BigDecimal.md) | Number of requests from the same visitor in the previous day. | [optional] | - - - diff --git a/docs/IpBlockListResult.md b/docs/IPBlocklist.md similarity index 73% rename from docs/IpBlockListResult.md rename to docs/IPBlocklist.md index 5d98451d..450a001a 100644 --- a/docs/IpBlockListResult.md +++ b/docs/IPBlocklist.md @@ -1,6 +1,6 @@ -# IpBlockListResult +# IPBlocklist ## Properties @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**result** | **Boolean** | `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. | | -|**details** | [**IpBlockListResultDetails**](IpBlockListResultDetails.md) | | | +|**details** | [**IPBlocklistDetails**](IPBlocklistDetails.md) | | | diff --git a/docs/IpBlockListResultDetails.md b/docs/IPBlocklistDetails.md similarity index 92% rename from docs/IpBlockListResultDetails.md rename to docs/IPBlocklistDetails.md index f46f12c5..a4a3d137 100644 --- a/docs/IpBlockListResultDetails.md +++ b/docs/IPBlocklistDetails.md @@ -1,6 +1,6 @@ -# IpBlockListResultDetails +# IPBlocklistDetails ## Properties diff --git a/docs/IpInfoResult.md b/docs/IPInfo.md similarity index 58% rename from docs/IpInfoResult.md rename to docs/IPInfo.md index 53131e2e..c8912e6c 100644 --- a/docs/IpInfoResult.md +++ b/docs/IPInfo.md @@ -1,6 +1,6 @@ -# IpInfoResult +# IPInfo Details about the request IP address. Has separate fields for v4 and v6 IP address versions. @@ -8,8 +8,8 @@ Details about the request IP address. Has separate fields for v4 and v6 IP addre | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**v4** | [**IpInfoResultV4**](IpInfoResultV4.md) | | [optional] | -|**v6** | [**IpInfoResultV6**](IpInfoResultV6.md) | | [optional] | +|**v4** | [**IPInfoV4**](IPInfoV4.md) | | [optional] | +|**v6** | [**IPInfoV6**](IPInfoV6.md) | | [optional] | diff --git a/docs/ASN.md b/docs/IPInfoASN.md similarity index 79% rename from docs/ASN.md rename to docs/IPInfoASN.md index f0b60575..a8200b5b 100644 --- a/docs/ASN.md +++ b/docs/IPInfoASN.md @@ -1,6 +1,6 @@ -# ASN +# IPInfoASN ## Properties @@ -8,8 +8,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**asn** | **String** | | | +|**name** | **String** | | | |**network** | **String** | | | -|**name** | **String** | | [optional] | diff --git a/docs/DataCenter.md b/docs/IPInfoDataCenter.md similarity index 74% rename from docs/DataCenter.md rename to docs/IPInfoDataCenter.md index de111a56..53df7442 100644 --- a/docs/DataCenter.md +++ b/docs/IPInfoDataCenter.md @@ -1,6 +1,6 @@ -# DataCenter +# IPInfoDataCenter ## Properties @@ -8,7 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**result** | **Boolean** | | | -|**name** | **String** | | [optional] | +|**name** | **String** | | | diff --git a/docs/IPInfoV4.md b/docs/IPInfoV4.md new file mode 100644 index 00000000..d1a46304 --- /dev/null +++ b/docs/IPInfoV4.md @@ -0,0 +1,16 @@ + + +# IPInfoV4 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**address** | **String** | | | +|**geolocation** | [**Geolocation**](Geolocation.md) | | | +|**asn** | [**IPInfoASN**](IPInfoASN.md) | | [optional] | +|**datacenter** | [**IPInfoDataCenter**](IPInfoDataCenter.md) | | [optional] | + + + diff --git a/docs/IPInfoV6.md b/docs/IPInfoV6.md new file mode 100644 index 00000000..b585069c --- /dev/null +++ b/docs/IPInfoV6.md @@ -0,0 +1,16 @@ + + +# IPInfoV6 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**address** | **String** | | | +|**geolocation** | [**Geolocation**](Geolocation.md) | | | +|**asn** | [**IPInfoASN**](IPInfoASN.md) | | [optional] | +|**datacenter** | [**IPInfoDataCenter**](IPInfoDataCenter.md) | | [optional] | + + + diff --git a/docs/Identification.md b/docs/Identification.md new file mode 100644 index 00000000..31817124 --- /dev/null +++ b/docs/Identification.md @@ -0,0 +1,28 @@ + + +# Identification + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**visitorId** | **String** | String of 20 characters that uniquely identifies the visitor's browser. | | +|**requestId** | **String** | Unique identifier of the user's request. | | +|**browserDetails** | [**BrowserDetails**](BrowserDetails.md) | | | +|**incognito** | **Boolean** | Flag if user used incognito session. | | +|**ip** | **String** | IP address of the requesting browser or bot. | | +|**ipLocation** | [**DeprecatedGeolocation**](DeprecatedGeolocation.md) | | [optional] | +|**linkedId** | **String** | A customer-provided id that was sent with the request. | [optional] | +|**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | | +|**url** | **String** | Page URL from which the request was sent. | | +|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | +|**confidence** | [**IdentificationConfidence**](IdentificationConfidence.md) | | [optional] | +|**visitorFound** | **Boolean** | Attribute represents if a visitor had been identified before. | | +|**firstSeenAt** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | | | +|**lastSeenAt** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | | | +|**components** | [**Map<String, RawDeviceAttribute>**](RawDeviceAttribute.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | + + + diff --git a/docs/Confidence.md b/docs/IdentificationConfidence.md similarity index 59% rename from docs/Confidence.md rename to docs/IdentificationConfidence.md index a914dd29..33db85c1 100644 --- a/docs/Confidence.md +++ b/docs/IdentificationConfidence.md @@ -1,14 +1,15 @@ -# Confidence +# IdentificationConfidence ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**score** | **Float** | The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. | | +|**score** | **Double** | The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. | | |**revision** | **String** | The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. | [optional] | +|**comment** | **String** | | [optional] | diff --git a/docs/IdentificationError.md b/docs/IdentificationError.md deleted file mode 100644 index 090fb7e6..00000000 --- a/docs/IdentificationError.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# IdentificationError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| _429_TOO_MANY_REQUESTS | "429 Too Many Requests" | -| FAILED | "Failed" | - - - diff --git a/docs/SeenAt.md b/docs/IdentificationSeenAt.md similarity index 90% rename from docs/SeenAt.md rename to docs/IdentificationSeenAt.md index 83b0a1eb..c7956617 100644 --- a/docs/SeenAt.md +++ b/docs/IdentificationSeenAt.md @@ -1,6 +1,6 @@ -# SeenAt +# IdentificationSeenAt ## Properties diff --git a/docs/IncognitoResult.md b/docs/Incognito.md similarity index 92% rename from docs/IncognitoResult.md rename to docs/Incognito.md index f0f52270..6485d880 100644 --- a/docs/IncognitoResult.md +++ b/docs/Incognito.md @@ -1,6 +1,6 @@ -# IncognitoResult +# Incognito ## Properties diff --git a/docs/IpInfoResultV4.md b/docs/IpInfoResultV4.md deleted file mode 100644 index 74e749a4..00000000 --- a/docs/IpInfoResultV4.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# IpInfoResultV4 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**address** | **String** | | | -|**geolocation** | [**IPLocation**](IPLocation.md) | | | -|**asn** | [**ASN**](ASN.md) | | [optional] | -|**datacenter** | [**DataCenter**](DataCenter.md) | | [optional] | - - - diff --git a/docs/IpInfoResultV6.md b/docs/IpInfoResultV6.md deleted file mode 100644 index c1317dcc..00000000 --- a/docs/IpInfoResultV6.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# IpInfoResultV6 - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**address** | **String** | | | -|**geolocation** | [**IPLocation**](IPLocation.md) | | | -|**asn** | [**ASN**](ASN.md) | | [optional] | -|**datacenter** | [**DataCenter**](DataCenter.md) | | [optional] | - - - diff --git a/docs/JailbrokenResult.md b/docs/Jailbroken.md similarity index 57% rename from docs/JailbrokenResult.md rename to docs/Jailbroken.md index dbf2d600..a246db60 100644 --- a/docs/JailbrokenResult.md +++ b/docs/Jailbroken.md @@ -1,13 +1,13 @@ -# JailbrokenResult +# Jailbroken ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. | | +|**result** | **Boolean** | iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. | | diff --git a/docs/LocationSpoofingResult.md b/docs/LocationSpoofing.md similarity index 90% rename from docs/LocationSpoofingResult.md rename to docs/LocationSpoofing.md index a94ef7dd..99c1cbcd 100644 --- a/docs/LocationSpoofingResult.md +++ b/docs/LocationSpoofing.md @@ -1,6 +1,6 @@ -# LocationSpoofingResult +# LocationSpoofing ## Properties diff --git a/docs/PrivacySettingsResult.md b/docs/PrivacySettings.md similarity index 92% rename from docs/PrivacySettingsResult.md rename to docs/PrivacySettings.md index a72f7da8..67e0b377 100644 --- a/docs/PrivacySettingsResult.md +++ b/docs/PrivacySettings.md @@ -1,6 +1,6 @@ -# PrivacySettingsResult +# PrivacySettings ## Properties diff --git a/docs/RawDeviceAttributesResultValue.md b/docs/ProductBotd.md similarity index 69% rename from docs/RawDeviceAttributesResultValue.md rename to docs/ProductBotd.md index 8e2ef55a..2a3ff6c3 100644 --- a/docs/RawDeviceAttributesResultValue.md +++ b/docs/ProductBotd.md @@ -1,14 +1,14 @@ -# RawDeviceAttributesResultValue +# ProductBotd ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**data** | [**Botd**](Botd.md) | | [optional] | |**error** | [**Error**](Error.md) | | [optional] | -|**value** | **Object** | | [optional] | diff --git a/docs/ProductClonedApp.md b/docs/ProductClonedApp.md new file mode 100644 index 00000000..7170618c --- /dev/null +++ b/docs/ProductClonedApp.md @@ -0,0 +1,14 @@ + + +# ProductClonedApp + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ClonedApp**](ClonedApp.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductDeveloperTools.md b/docs/ProductDeveloperTools.md new file mode 100644 index 00000000..1693f2e7 --- /dev/null +++ b/docs/ProductDeveloperTools.md @@ -0,0 +1,14 @@ + + +# ProductDeveloperTools + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DeveloperTools**](DeveloperTools.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductEmulator.md b/docs/ProductEmulator.md new file mode 100644 index 00000000..fe3f2b78 --- /dev/null +++ b/docs/ProductEmulator.md @@ -0,0 +1,14 @@ + + +# ProductEmulator + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Emulator**](Emulator.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductError.md b/docs/ProductError.md deleted file mode 100644 index 7c6d8f5e..00000000 --- a/docs/ProductError.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# ProductError - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error | | -|**message** | **String** | | | - - -## Enum: CodeEnum - -| Name | Value | -|---- | ----- | -| TOO_MANY_REQUESTS | "TooManyRequests" | -| FAILED | "Failed" | - - - diff --git a/docs/ProductFactoryReset.md b/docs/ProductFactoryReset.md new file mode 100644 index 00000000..2fb75fc0 --- /dev/null +++ b/docs/ProductFactoryReset.md @@ -0,0 +1,14 @@ + + +# ProductFactoryReset + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**FactoryReset**](FactoryReset.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductFrida.md b/docs/ProductFrida.md new file mode 100644 index 00000000..8ad060cd --- /dev/null +++ b/docs/ProductFrida.md @@ -0,0 +1,14 @@ + + +# ProductFrida + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Frida**](Frida.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductHighActivity.md b/docs/ProductHighActivity.md new file mode 100644 index 00000000..9bf6e6d1 --- /dev/null +++ b/docs/ProductHighActivity.md @@ -0,0 +1,14 @@ + + +# ProductHighActivity + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**HighActivity**](HighActivity.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductIPBlocklist.md b/docs/ProductIPBlocklist.md new file mode 100644 index 00000000..72c5bc32 --- /dev/null +++ b/docs/ProductIPBlocklist.md @@ -0,0 +1,14 @@ + + +# ProductIPBlocklist + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**IPBlocklist**](IPBlocklist.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductIPInfo.md b/docs/ProductIPInfo.md new file mode 100644 index 00000000..58e5c5a8 --- /dev/null +++ b/docs/ProductIPInfo.md @@ -0,0 +1,14 @@ + + +# ProductIPInfo + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**IPInfo**](IPInfo.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductIdentification.md b/docs/ProductIdentification.md new file mode 100644 index 00000000..d7b49679 --- /dev/null +++ b/docs/ProductIdentification.md @@ -0,0 +1,14 @@ + + +# ProductIdentification + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Identification**](Identification.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductIncognito.md b/docs/ProductIncognito.md new file mode 100644 index 00000000..2b94f4a1 --- /dev/null +++ b/docs/ProductIncognito.md @@ -0,0 +1,14 @@ + + +# ProductIncognito + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Incognito**](Incognito.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductJailbroken.md b/docs/ProductJailbroken.md new file mode 100644 index 00000000..eb91019b --- /dev/null +++ b/docs/ProductJailbroken.md @@ -0,0 +1,14 @@ + + +# ProductJailbroken + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Jailbroken**](Jailbroken.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductLocationSpoofing.md b/docs/ProductLocationSpoofing.md new file mode 100644 index 00000000..ed155319 --- /dev/null +++ b/docs/ProductLocationSpoofing.md @@ -0,0 +1,14 @@ + + +# ProductLocationSpoofing + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**LocationSpoofing**](LocationSpoofing.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductPrivacySettings.md b/docs/ProductPrivacySettings.md new file mode 100644 index 00000000..82ea35cf --- /dev/null +++ b/docs/ProductPrivacySettings.md @@ -0,0 +1,14 @@ + + +# ProductPrivacySettings + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PrivacySettings**](PrivacySettings.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductProxy.md b/docs/ProductProxy.md new file mode 100644 index 00000000..2b53dd2d --- /dev/null +++ b/docs/ProductProxy.md @@ -0,0 +1,14 @@ + + +# ProductProxy + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Proxy**](Proxy.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductRawDeviceAttributes.md b/docs/ProductRawDeviceAttributes.md new file mode 100644 index 00000000..248a9739 --- /dev/null +++ b/docs/ProductRawDeviceAttributes.md @@ -0,0 +1,14 @@ + + +# ProductRawDeviceAttributes + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Map<String, RawDeviceAttribute>**](RawDeviceAttribute.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductRemoteControl.md b/docs/ProductRemoteControl.md new file mode 100644 index 00000000..c5051356 --- /dev/null +++ b/docs/ProductRemoteControl.md @@ -0,0 +1,14 @@ + + +# ProductRemoteControl + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RemoteControl**](RemoteControl.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductRootApps.md b/docs/ProductRootApps.md new file mode 100644 index 00000000..769cb2f2 --- /dev/null +++ b/docs/ProductRootApps.md @@ -0,0 +1,14 @@ + + +# ProductRootApps + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RootApps**](RootApps.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductSuspectScore.md b/docs/ProductSuspectScore.md new file mode 100644 index 00000000..61093d49 --- /dev/null +++ b/docs/ProductSuspectScore.md @@ -0,0 +1,14 @@ + + +# ProductSuspectScore + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SuspectScore**](SuspectScore.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductTampering.md b/docs/ProductTampering.md new file mode 100644 index 00000000..f058d250 --- /dev/null +++ b/docs/ProductTampering.md @@ -0,0 +1,14 @@ + + +# ProductTampering + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Tampering**](Tampering.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ErrorCommon403Response.md b/docs/ProductTor.md similarity index 51% rename from docs/ErrorCommon403Response.md rename to docs/ProductTor.md index 6df4b00f..45bd6c21 100644 --- a/docs/ErrorCommon403Response.md +++ b/docs/ProductTor.md @@ -1,13 +1,14 @@ -# ErrorCommon403Response +# ProductTor ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**error** | [**Common403ErrorResponse**](Common403ErrorResponse.md) | | [optional] | +|**data** | [**Tor**](Tor.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | diff --git a/docs/ProductVPN.md b/docs/ProductVPN.md new file mode 100644 index 00000000..e2f77524 --- /dev/null +++ b/docs/ProductVPN.md @@ -0,0 +1,14 @@ + + +# ProductVPN + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**VPN**](VPN.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductVelocity.md b/docs/ProductVelocity.md new file mode 100644 index 00000000..f4b506fe --- /dev/null +++ b/docs/ProductVelocity.md @@ -0,0 +1,14 @@ + + +# ProductVelocity + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Velocity**](Velocity.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/ProductVirtualMachine.md b/docs/ProductVirtualMachine.md new file mode 100644 index 00000000..ba583fba --- /dev/null +++ b/docs/ProductVirtualMachine.md @@ -0,0 +1,14 @@ + + +# ProductVirtualMachine + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**VirtualMachine**](VirtualMachine.md) | | [optional] | +|**error** | [**Error**](Error.md) | | [optional] | + + + diff --git a/docs/Products.md b/docs/Products.md new file mode 100644 index 00000000..00d9ea97 --- /dev/null +++ b/docs/Products.md @@ -0,0 +1,37 @@ + + +# Products + +Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise) + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**identification** | [**ProductIdentification**](ProductIdentification.md) | | [optional] | +|**botd** | [**ProductBotd**](ProductBotd.md) | | [optional] | +|**rootApps** | [**ProductRootApps**](ProductRootApps.md) | | [optional] | +|**emulator** | [**ProductEmulator**](ProductEmulator.md) | | [optional] | +|**ipInfo** | [**ProductIPInfo**](ProductIPInfo.md) | | [optional] | +|**ipBlocklist** | [**ProductIPBlocklist**](ProductIPBlocklist.md) | | [optional] | +|**tor** | [**ProductTor**](ProductTor.md) | | [optional] | +|**vpn** | [**ProductVPN**](ProductVPN.md) | | [optional] | +|**proxy** | [**ProductProxy**](ProductProxy.md) | | [optional] | +|**incognito** | [**ProductIncognito**](ProductIncognito.md) | | [optional] | +|**tampering** | [**ProductTampering**](ProductTampering.md) | | [optional] | +|**clonedApp** | [**ProductClonedApp**](ProductClonedApp.md) | | [optional] | +|**factoryReset** | [**ProductFactoryReset**](ProductFactoryReset.md) | | [optional] | +|**jailbroken** | [**ProductJailbroken**](ProductJailbroken.md) | | [optional] | +|**frida** | [**ProductFrida**](ProductFrida.md) | | [optional] | +|**privacySettings** | [**ProductPrivacySettings**](ProductPrivacySettings.md) | | [optional] | +|**virtualMachine** | [**ProductVirtualMachine**](ProductVirtualMachine.md) | | [optional] | +|**rawDeviceAttributes** | [**ProductRawDeviceAttributes**](ProductRawDeviceAttributes.md) | | [optional] | +|**highActivity** | [**ProductHighActivity**](ProductHighActivity.md) | | [optional] | +|**locationSpoofing** | [**ProductLocationSpoofing**](ProductLocationSpoofing.md) | | [optional] | +|**suspectScore** | [**ProductSuspectScore**](ProductSuspectScore.md) | | [optional] | +|**remoteControl** | [**ProductRemoteControl**](ProductRemoteControl.md) | | [optional] | +|**velocity** | [**ProductVelocity**](ProductVelocity.md) | | [optional] | +|**developerTools** | [**ProductDeveloperTools**](ProductDeveloperTools.md) | | [optional] | + + + diff --git a/docs/ProductsResponse.md b/docs/ProductsResponse.md deleted file mode 100644 index a56b80bb..00000000 --- a/docs/ProductsResponse.md +++ /dev/null @@ -1,37 +0,0 @@ - - -# ProductsResponse - -Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise) - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**identification** | [**ProductsResponseIdentification**](ProductsResponseIdentification.md) | | [optional] | -|**botd** | [**ProductsResponseBotd**](ProductsResponseBotd.md) | | [optional] | -|**ipInfo** | [**SignalResponseIpInfo**](SignalResponseIpInfo.md) | | [optional] | -|**incognito** | [**SignalResponseIncognito**](SignalResponseIncognito.md) | | [optional] | -|**rootApps** | [**SignalResponseRootApps**](SignalResponseRootApps.md) | | [optional] | -|**emulator** | [**SignalResponseEmulator**](SignalResponseEmulator.md) | | [optional] | -|**clonedApp** | [**SignalResponseClonedApp**](SignalResponseClonedApp.md) | | [optional] | -|**factoryReset** | [**SignalResponseFactoryReset**](SignalResponseFactoryReset.md) | | [optional] | -|**jailbroken** | [**SignalResponseJailbroken**](SignalResponseJailbroken.md) | | [optional] | -|**frida** | [**SignalResponseFrida**](SignalResponseFrida.md) | | [optional] | -|**ipBlocklist** | [**SignalResponseIpBlocklist**](SignalResponseIpBlocklist.md) | | [optional] | -|**tor** | [**SignalResponseTor**](SignalResponseTor.md) | | [optional] | -|**privacySettings** | [**SignalResponsePrivacySettings**](SignalResponsePrivacySettings.md) | | [optional] | -|**virtualMachine** | [**SignalResponseVirtualMachine**](SignalResponseVirtualMachine.md) | | [optional] | -|**vpn** | [**SignalResponseVpn**](SignalResponseVpn.md) | | [optional] | -|**proxy** | [**SignalResponseProxy**](SignalResponseProxy.md) | | [optional] | -|**tampering** | [**SignalResponseTampering**](SignalResponseTampering.md) | | [optional] | -|**highActivity** | [**SignalResponseHighActivity**](SignalResponseHighActivity.md) | | [optional] | -|**locationSpoofing** | [**SignalResponseLocationSpoofing**](SignalResponseLocationSpoofing.md) | | [optional] | -|**suspectScore** | [**SignalResponseSuspectScore**](SignalResponseSuspectScore.md) | | [optional] | -|**rawDeviceAttributes** | [**SignalResponseRawDeviceAttributes**](SignalResponseRawDeviceAttributes.md) | | [optional] | -|**remoteControl** | [**SignalResponseRemoteControl**](SignalResponseRemoteControl.md) | | [optional] | -|**velocity** | [**SignalResponseVelocity**](SignalResponseVelocity.md) | | [optional] | -|**developerTools** | [**SignalResponseDeveloperTools**](SignalResponseDeveloperTools.md) | | [optional] | - - - diff --git a/docs/ProductsResponseBotd.md b/docs/ProductsResponseBotd.md deleted file mode 100644 index b4b15601..00000000 --- a/docs/ProductsResponseBotd.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ProductsResponseBotd - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**BotdResult**](BotdResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/ProductsResponseIdentification.md b/docs/ProductsResponseIdentification.md deleted file mode 100644 index f2658716..00000000 --- a/docs/ProductsResponseIdentification.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# ProductsResponseIdentification - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ProductsResponseIdentificationData**](ProductsResponseIdentificationData.md) | | [optional] | -|**error** | [**IdentificationError**](IdentificationError.md) | | [optional] | - - - diff --git a/docs/ProductsResponseIdentificationData.md b/docs/ProductsResponseIdentificationData.md deleted file mode 100644 index 169c35b0..00000000 --- a/docs/ProductsResponseIdentificationData.md +++ /dev/null @@ -1,27 +0,0 @@ - - -# ProductsResponseIdentificationData - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**requestId** | **String** | Unique identifier of the user's identification request. | | -|**browserDetails** | [**BrowserDetails**](BrowserDetails.md) | | | -|**incognito** | **Boolean** | Flag if user used incognito session. | | -|**ip** | **String** | | | -|**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | -|**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | -|**url** | **String** | Page URL from which the identification request was sent. | | -|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | -|**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | -|**confidence** | [**Confidence**](Confidence.md) | | [optional] | -|**visitorFound** | **Boolean** | Attribute represents if a visitor had been identified before. | | -|**firstSeenAt** | [**SeenAt**](SeenAt.md) | | | -|**lastSeenAt** | [**SeenAt**](SeenAt.md) | | | -|**visitorId** | **String** | String of 20 characters that uniquely identifies the visitor's browser. | | - - - diff --git a/docs/ProxyResult.md b/docs/Proxy.md similarity index 94% rename from docs/ProxyResult.md rename to docs/Proxy.md index 6acf556f..b1b2d5d7 100644 --- a/docs/ProxyResult.md +++ b/docs/Proxy.md @@ -1,6 +1,6 @@ -# ProxyResult +# Proxy ## Properties diff --git a/docs/RawDeviceAttribute.md b/docs/RawDeviceAttribute.md new file mode 100644 index 00000000..9c74412f --- /dev/null +++ b/docs/RawDeviceAttribute.md @@ -0,0 +1,14 @@ + + +# RawDeviceAttribute + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Object** | | [optional] | +|**error** | [**RawDeviceAttributeError**](RawDeviceAttributeError.md) | | [optional] | + + + diff --git a/docs/DeprecatedIPLocationCity.md b/docs/RawDeviceAttributeError.md similarity index 69% rename from docs/DeprecatedIPLocationCity.md rename to docs/RawDeviceAttributeError.md index 187e102b..6467d521 100644 --- a/docs/DeprecatedIPLocationCity.md +++ b/docs/RawDeviceAttributeError.md @@ -1,6 +1,6 @@ -# DeprecatedIPLocationCity +# RawDeviceAttributeError ## Properties @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | | [optional] | +|**message** | **String** | | [optional] | diff --git a/docs/RemoteControlResult.md b/docs/RemoteControl.md similarity index 92% rename from docs/RemoteControlResult.md rename to docs/RemoteControl.md index 9607f95f..4c609535 100644 --- a/docs/RemoteControlResult.md +++ b/docs/RemoteControl.md @@ -1,6 +1,6 @@ -# RemoteControlResult +# RemoteControl ## Properties diff --git a/docs/ResponseVisits.md b/docs/ResponseVisits.md deleted file mode 100644 index 42707f11..00000000 --- a/docs/ResponseVisits.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# ResponseVisits - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**requestId** | **String** | Unique identifier of the user's identification request. | | -|**browserDetails** | [**BrowserDetails**](BrowserDetails.md) | | | -|**incognito** | **Boolean** | Flag if user used incognito session. | | -|**ip** | **String** | | | -|**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | -|**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | -|**url** | **String** | Page URL from which the identification request was sent. | | -|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | -|**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | -|**confidence** | [**Confidence**](Confidence.md) | | [optional] | -|**visitorFound** | **Boolean** | Attribute represents if a visitor had been identified before. | | -|**firstSeenAt** | [**SeenAt**](SeenAt.md) | | | -|**lastSeenAt** | [**SeenAt**](SeenAt.md) | | | - - - diff --git a/docs/RootApps.md b/docs/RootApps.md new file mode 100644 index 00000000..1e0d2932 --- /dev/null +++ b/docs/RootApps.md @@ -0,0 +1,13 @@ + + +# RootApps + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Android specific root management apps detection. There are 2 values: * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android. | | + + + diff --git a/docs/RootAppsResult.md b/docs/RootAppsResult.md deleted file mode 100644 index f75b7629..00000000 --- a/docs/RootAppsResult.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RootAppsResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. | | - - - diff --git a/docs/Sealed.md b/docs/Sealed.md index e7dcdb26..467272ff 100644 --- a/docs/Sealed.md +++ b/docs/Sealed.md @@ -1,7 +1,7 @@ # Sealed ## **UnsealEventsResponse** -> EventResponse unsealEventResponse(sealed []byte, keys DecryptionKey[]) +> EventsGetResponse unsealEventResponse(sealed []byte, keys DecryptionKey[]) Decrypts the sealed response with provided keys. ### Required Parameters diff --git a/docs/SignalResponseClonedApp.md b/docs/SignalResponseClonedApp.md deleted file mode 100644 index a3bce6fc..00000000 --- a/docs/SignalResponseClonedApp.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseClonedApp - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ClonedAppResult**](ClonedAppResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseDeveloperTools.md b/docs/SignalResponseDeveloperTools.md deleted file mode 100644 index 80bd2ebe..00000000 --- a/docs/SignalResponseDeveloperTools.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseDeveloperTools - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**DeveloperToolsResult**](DeveloperToolsResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseEmulator.md b/docs/SignalResponseEmulator.md deleted file mode 100644 index fec2dd46..00000000 --- a/docs/SignalResponseEmulator.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseEmulator - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**EmulatorResult**](EmulatorResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseFactoryReset.md b/docs/SignalResponseFactoryReset.md deleted file mode 100644 index a79865b5..00000000 --- a/docs/SignalResponseFactoryReset.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseFactoryReset - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**FactoryResetResult**](FactoryResetResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseFrida.md b/docs/SignalResponseFrida.md deleted file mode 100644 index c16885a1..00000000 --- a/docs/SignalResponseFrida.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseFrida - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**FridaResult**](FridaResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseHighActivity.md b/docs/SignalResponseHighActivity.md deleted file mode 100644 index 97e01459..00000000 --- a/docs/SignalResponseHighActivity.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseHighActivity - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**HighActivityResult**](HighActivityResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseIncognito.md b/docs/SignalResponseIncognito.md deleted file mode 100644 index aad3f848..00000000 --- a/docs/SignalResponseIncognito.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseIncognito - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**IncognitoResult**](IncognitoResult.md) | | [optional] | -|**error** | [**IdentificationError**](IdentificationError.md) | | [optional] | - - - diff --git a/docs/SignalResponseIpBlocklist.md b/docs/SignalResponseIpBlocklist.md deleted file mode 100644 index 12c4b77b..00000000 --- a/docs/SignalResponseIpBlocklist.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseIpBlocklist - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**IpBlockListResult**](IpBlockListResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseIpInfo.md b/docs/SignalResponseIpInfo.md deleted file mode 100644 index c488b50a..00000000 --- a/docs/SignalResponseIpInfo.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseIpInfo - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**IpInfoResult**](IpInfoResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseJailbroken.md b/docs/SignalResponseJailbroken.md deleted file mode 100644 index 14524f1f..00000000 --- a/docs/SignalResponseJailbroken.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseJailbroken - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**JailbrokenResult**](JailbrokenResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseLocationSpoofing.md b/docs/SignalResponseLocationSpoofing.md deleted file mode 100644 index 23cbdd4f..00000000 --- a/docs/SignalResponseLocationSpoofing.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseLocationSpoofing - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**LocationSpoofingResult**](LocationSpoofingResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponsePrivacySettings.md b/docs/SignalResponsePrivacySettings.md deleted file mode 100644 index c71f48a3..00000000 --- a/docs/SignalResponsePrivacySettings.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponsePrivacySettings - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**PrivacySettingsResult**](PrivacySettingsResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseProxy.md b/docs/SignalResponseProxy.md deleted file mode 100644 index 5366bc4c..00000000 --- a/docs/SignalResponseProxy.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseProxy - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**ProxyResult**](ProxyResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseRawDeviceAttributes.md b/docs/SignalResponseRawDeviceAttributes.md deleted file mode 100644 index fde65c49..00000000 --- a/docs/SignalResponseRawDeviceAttributes.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseRawDeviceAttributes - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**Map<String, RawDeviceAttributesResultValue>**](RawDeviceAttributesResultValue.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | -|**error** | [**IdentificationError**](IdentificationError.md) | | [optional] | - - - diff --git a/docs/SignalResponseRemoteControl.md b/docs/SignalResponseRemoteControl.md deleted file mode 100644 index 6e982c5f..00000000 --- a/docs/SignalResponseRemoteControl.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseRemoteControl - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**RemoteControlResult**](RemoteControlResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseRootApps.md b/docs/SignalResponseRootApps.md deleted file mode 100644 index 1d4ebea0..00000000 --- a/docs/SignalResponseRootApps.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseRootApps - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**RootAppsResult**](RootAppsResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseSuspectScore.md b/docs/SignalResponseSuspectScore.md deleted file mode 100644 index 9536e1c6..00000000 --- a/docs/SignalResponseSuspectScore.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseSuspectScore - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**SuspectScoreResult**](SuspectScoreResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseTampering.md b/docs/SignalResponseTampering.md deleted file mode 100644 index e06e4c27..00000000 --- a/docs/SignalResponseTampering.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseTampering - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**TamperingResult**](TamperingResult.md) | | [optional] | -|**error** | [**IdentificationError**](IdentificationError.md) | | [optional] | - - - diff --git a/docs/SignalResponseTor.md b/docs/SignalResponseTor.md deleted file mode 100644 index 58065933..00000000 --- a/docs/SignalResponseTor.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseTor - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**TorResult**](TorResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseVelocity.md b/docs/SignalResponseVelocity.md deleted file mode 100644 index 628a3729..00000000 --- a/docs/SignalResponseVelocity.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseVelocity - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**VelocityResult**](VelocityResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseVirtualMachine.md b/docs/SignalResponseVirtualMachine.md deleted file mode 100644 index 8f9b4da8..00000000 --- a/docs/SignalResponseVirtualMachine.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseVirtualMachine - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**VirtualMachineResult**](VirtualMachineResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/SignalResponseVpn.md b/docs/SignalResponseVpn.md deleted file mode 100644 index 65bdd968..00000000 --- a/docs/SignalResponseVpn.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# SignalResponseVpn - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**data** | [**VpnResult**](VpnResult.md) | | [optional] | -|**error** | [**ProductError**](ProductError.md) | | [optional] | - - - diff --git a/docs/Subdivision.md b/docs/Subdivision.md deleted file mode 100644 index 7c33a17f..00000000 --- a/docs/Subdivision.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# Subdivision - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**isoCode** | **String** | | [optional] | -|**name** | **String** | | [optional] | - - - diff --git a/docs/SuspectScoreResult.md b/docs/SuspectScore.md similarity index 96% rename from docs/SuspectScoreResult.md rename to docs/SuspectScore.md index e828bae5..1b36c89d 100644 --- a/docs/SuspectScoreResult.md +++ b/docs/SuspectScore.md @@ -1,6 +1,6 @@ -# SuspectScoreResult +# SuspectScore ## Properties diff --git a/docs/Tampering.md b/docs/Tampering.md new file mode 100644 index 00000000..efed1fb8 --- /dev/null +++ b/docs/Tampering.md @@ -0,0 +1,15 @@ + + +# Tampering + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). | | +|**anomalyScore** | **Double** | Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt. * Values below `0.5` indicate genuine browsers. | | +|**antiDetectBrowser** | **Boolean** | Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. | | + + + diff --git a/docs/TamperingResult.md b/docs/TamperingResult.md deleted file mode 100644 index facff019..00000000 --- a/docs/TamperingResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# TamperingResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | Flag indicating whether browser tampering was detected according to our internal thresholds. | | -|**anomalyScore** | [**BigDecimal**](BigDecimal.md) | Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers. | | - - - diff --git a/docs/TooManyRequestsResponse.md b/docs/TooManyRequestsResponse.md deleted file mode 100644 index 28d566d2..00000000 --- a/docs/TooManyRequestsResponse.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# TooManyRequestsResponse - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**error** | **String** | Error text. | | - - - diff --git a/docs/TorResult.md b/docs/Tor.md similarity index 95% rename from docs/TorResult.md rename to docs/Tor.md index 592cd8c5..c75164a9 100644 --- a/docs/TorResult.md +++ b/docs/Tor.md @@ -1,6 +1,6 @@ -# TorResult +# Tor ## Properties diff --git a/docs/VPN.md b/docs/VPN.md new file mode 100644 index 00000000..fb82f54e --- /dev/null +++ b/docs/VPN.md @@ -0,0 +1,17 @@ + + +# VPN + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | VPN or other anonymizing service has been used when sending the request. | | +|**confidence** | [**VPNConfidence**](VPNConfidence.md) | | | +|**originTimezone** | **String** | Local timezone which is used in timezoneMismatch method. | | +|**originCountry** | **String** | Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). | | +|**methods** | [**VPNMethods**](VPNMethods.md) | | | + + + diff --git a/docs/VPNConfidence.md b/docs/VPNConfidence.md new file mode 100644 index 00000000..6c6cfe38 --- /dev/null +++ b/docs/VPNConfidence.md @@ -0,0 +1,15 @@ + + +# VPNConfidence + +## Enum + + +* `LOW` (value: `"low"`) + +* `MEDIUM` (value: `"medium"`) + +* `HIGH` (value: `"high"`) + + + diff --git a/docs/VpnResultMethods.md b/docs/VPNMethods.md similarity index 83% rename from docs/VpnResultMethods.md rename to docs/VPNMethods.md index 1c8e7d5a..0c6debb4 100644 --- a/docs/VpnResultMethods.md +++ b/docs/VPNMethods.md @@ -1,6 +1,6 @@ -# VpnResultMethods +# VPNMethods ## Properties @@ -10,7 +10,7 @@ |**timezoneMismatch** | **Boolean** | The browser timezone doesn't match the timezone inferred from the request IP address. | | |**publicVPN** | **Boolean** | Request IP address is owned and used by a public VPN service provider. | | |**auxiliaryMobile** | **Boolean** | This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. | | -|**osMismatch** | **Boolean** | The browser runs on a different operating system than the operating system inferred from the request network signature. | | +|**osMismatch** | **Boolean** | The browser runs on a different operating system than the operating system inferred from the request network signature. | | diff --git a/docs/Velocity.md b/docs/Velocity.md new file mode 100644 index 00000000..2343fc65 --- /dev/null +++ b/docs/Velocity.md @@ -0,0 +1,20 @@ + + +# Velocity + +Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinctIp** | [**VelocityData**](VelocityData.md) | | | +|**distinctLinkedId** | [**VelocityData**](VelocityData.md) | | | +|**distinctCountry** | [**VelocityData**](VelocityData.md) | | | +|**events** | [**VelocityData**](VelocityData.md) | | | +|**ipEvents** | [**VelocityData**](VelocityData.md) | | | +|**distinctIpByLinkedId** | [**VelocityData**](VelocityData.md) | | | +|**distinctVisitorIdByLinkedId** | [**VelocityData**](VelocityData.md) | | | + + + diff --git a/docs/VelocityData.md b/docs/VelocityData.md new file mode 100644 index 00000000..dbd33213 --- /dev/null +++ b/docs/VelocityData.md @@ -0,0 +1,13 @@ + + +# VelocityData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**intervals** | [**VelocityIntervals**](VelocityIntervals.md) | | [optional] | + + + diff --git a/docs/VelocityIntervalResult.md b/docs/VelocityIntervalResult.md deleted file mode 100644 index 3a15072f..00000000 --- a/docs/VelocityIntervalResult.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# VelocityIntervalResult - -Is absent if the velocity data could not be generated for the visitor ID. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**_5m** | **Integer** | | | -|**_1h** | **Integer** | | | -|**_24h** | **Integer** | The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. | [optional] | - - - diff --git a/docs/VelocityIntervals.md b/docs/VelocityIntervals.md index 3291b284..e4ed630e 100644 --- a/docs/VelocityIntervals.md +++ b/docs/VelocityIntervals.md @@ -2,12 +2,15 @@ # VelocityIntervals +Is absent if the velocity data could not be generated for the visitor ID. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**intervals** | [**VelocityIntervalResult**](VelocityIntervalResult.md) | | [optional] | +|**_5m** | **Integer** | | | +|**_1h** | **Integer** | | | +|**_24h** | **Integer** | The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. | [optional] | diff --git a/docs/VelocityResult.md b/docs/VelocityResult.md deleted file mode 100644 index be6de4ef..00000000 --- a/docs/VelocityResult.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# VelocityResult - -Sums key data points for a specific `visitorId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of identification events attributed to the visitor ID - Number of distinct IP addresses associated to the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of distinct `linkedId`s associated with the visitor ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**distinctIp** | [**VelocityIntervals**](VelocityIntervals.md) | | | -|**distinctLinkedId** | [**VelocityIntervals**](VelocityIntervals.md) | | | -|**distinctCountry** | [**VelocityIntervals**](VelocityIntervals.md) | | | -|**events** | [**VelocityIntervals**](VelocityIntervals.md) | | | - - - diff --git a/docs/VirtualMachineResult.md b/docs/VirtualMachine.md similarity index 92% rename from docs/VirtualMachineResult.md rename to docs/VirtualMachine.md index 672fc222..633cc7be 100644 --- a/docs/VirtualMachineResult.md +++ b/docs/VirtualMachine.md @@ -1,6 +1,6 @@ -# VirtualMachineResult +# VirtualMachine ## Properties diff --git a/docs/Visit.md b/docs/Visit.md new file mode 100644 index 00000000..81beeb4a --- /dev/null +++ b/docs/Visit.md @@ -0,0 +1,27 @@ + + +# Visit + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestId** | **String** | Unique identifier of the user's request. | | +|**browserDetails** | [**BrowserDetails**](BrowserDetails.md) | | | +|**incognito** | **Boolean** | Flag if user used incognito session. | | +|**ip** | **String** | IP address of the requesting browser or bot. | | +|**ipLocation** | [**DeprecatedGeolocation**](DeprecatedGeolocation.md) | | [optional] | +|**linkedId** | **String** | A customer-provided id that was sent with the request. | [optional] | +|**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format, when the request from the client agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | | +|**url** | **String** | Page URL from which the request was sent. | | +|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | | +|**confidence** | [**IdentificationConfidence**](IdentificationConfidence.md) | | [optional] | +|**visitorFound** | **Boolean** | Attribute represents if a visitor had been identified before. | | +|**firstSeenAt** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | | | +|**lastSeenAt** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | | | +|**components** | [**Map<String, RawDeviceAttribute>**](RawDeviceAttribute.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | + + + diff --git a/docs/Response.md b/docs/VisitorsGetResponse.md similarity index 67% rename from docs/Response.md rename to docs/VisitorsGetResponse.md index a9cd1651..80559367 100644 --- a/docs/Response.md +++ b/docs/VisitorsGetResponse.md @@ -1,15 +1,15 @@ -# Response +# VisitorsGetResponse -Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show +Pagination-related fields `lastTimestamp` and `paginationKey` are included if you use a pagination parameter like `limit` or `before` and there is more data available on the next page. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**visitorId** | **String** | | | -|**visits** | [**List<ResponseVisits>**](ResponseVisits.md) | | | +|**visits** | [**List<Visit>**](Visit.md) | | | |**lastTimestamp** | **Long** | ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. | [optional] | |**paginationKey** | **String** | Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results. | [optional] | diff --git a/docs/VpnResult.md b/docs/VpnResult.md deleted file mode 100644 index 8e5ebed0..00000000 --- a/docs/VpnResult.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# VpnResult - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**result** | **Boolean** | VPN or other anonymizing service has been used when sending the request. | | -|**originTimezone** | **String** | Local timezone which is used in timezoneMismatch method. | | -|**originCountry** | **String** | Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). | [optional] | -|**methods** | [**VpnResultMethods**](VpnResultMethods.md) | | | -|**confidence** | [**ConfidenceEnum**](#ConfidenceEnum) | A confidence rating for the VPN detection result — \"low\", \"medium\", or \"high\". Depends on the combination of results returned from all VPN detection methods. | | - - -## Enum: ConfidenceEnum - -| Name | Value | -|---- | ----- | -| LOW | "low" | -| MEDIUM | "medium" | -| HIGH | "high" | - - - diff --git a/docs/Webhook.md b/docs/Webhook.md new file mode 100644 index 00000000..df7b4ea3 --- /dev/null +++ b/docs/Webhook.md @@ -0,0 +1,52 @@ + + +# Webhook + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestId** | **String** | Unique identifier of the user's request. | | +|**url** | **String** | Page URL from which the request was sent. | | +|**ip** | **String** | IP address of the requesting browser or bot. | | +|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | [optional] | +|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. | | +|**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | +|**ipLocation** | [**DeprecatedGeolocation**](DeprecatedGeolocation.md) | | [optional] | +|**linkedId** | **String** | A customer-provided id that was sent with the request. | [optional] | +|**visitorId** | **String** | String of 20 characters that uniquely identifies the visitor's browser. | [optional] | +|**visitorFound** | **Boolean** | Attribute represents if a visitor had been identified before. | [optional] | +|**confidence** | [**IdentificationConfidence**](IdentificationConfidence.md) | | [optional] | +|**firstSeenAt** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | | [optional] | +|**lastSeenAt** | [**IdentificationSeenAt**](IdentificationSeenAt.md) | | [optional] | +|**browserDetails** | [**BrowserDetails**](BrowserDetails.md) | | [optional] | +|**incognito** | **Boolean** | Flag if user used incognito session. | [optional] | +|**clientReferrer** | **String** | | [optional] | +|**components** | [**Map<String, RawDeviceAttribute>**](RawDeviceAttribute.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | +|**bot** | [**BotdBot**](BotdBot.md) | | [optional] | +|**userAgent** | **String** | | [optional] | +|**rootApps** | [**WebhookRootApps**](WebhookRootApps.md) | | [optional] | +|**emulator** | [**WebhookEmulator**](WebhookEmulator.md) | | [optional] | +|**ipInfo** | [**WebhookIPInfo**](WebhookIPInfo.md) | | [optional] | +|**ipBlocklist** | [**WebhookIPBlocklist**](WebhookIPBlocklist.md) | | [optional] | +|**tor** | [**WebhookTor**](WebhookTor.md) | | [optional] | +|**vpn** | [**WebhookVPN**](WebhookVPN.md) | | [optional] | +|**proxy** | [**WebhookProxy**](WebhookProxy.md) | | [optional] | +|**tampering** | [**WebhookTampering**](WebhookTampering.md) | | [optional] | +|**clonedApp** | [**WebhookClonedApp**](WebhookClonedApp.md) | | [optional] | +|**factoryReset** | [**WebhookFactoryReset**](WebhookFactoryReset.md) | | [optional] | +|**jailbroken** | [**WebhookJailbroken**](WebhookJailbroken.md) | | [optional] | +|**frida** | [**WebhookFrida**](WebhookFrida.md) | | [optional] | +|**privacySettings** | [**WebhookPrivacySettings**](WebhookPrivacySettings.md) | | [optional] | +|**virtualMachine** | [**WebhookVirtualMachine**](WebhookVirtualMachine.md) | | [optional] | +|**rawDeviceAttributes** | [**Map<String, RawDeviceAttribute>**](RawDeviceAttribute.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | +|**highActivity** | [**WebhookHighActivity**](WebhookHighActivity.md) | | [optional] | +|**locationSpoofing** | [**WebhookLocationSpoofing**](WebhookLocationSpoofing.md) | | [optional] | +|**suspectScore** | [**WebhookSuspectScore**](WebhookSuspectScore.md) | | [optional] | +|**remoteControl** | [**WebhookRemoteControl**](WebhookRemoteControl.md) | | [optional] | +|**velocity** | [**WebhookVelocity**](WebhookVelocity.md) | | [optional] | +|**developerTools** | [**WebhookDeveloperTools**](WebhookDeveloperTools.md) | | [optional] | + + + diff --git a/docs/WebhookClonedApp.md b/docs/WebhookClonedApp.md new file mode 100644 index 00000000..d15e65e0 --- /dev/null +++ b/docs/WebhookClonedApp.md @@ -0,0 +1,13 @@ + + +# WebhookClonedApp + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Android specific cloned application detection. There are 2 values: * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android. | [optional] | + + + diff --git a/docs/WebhookDeveloperTools.md b/docs/WebhookDeveloperTools.md new file mode 100644 index 00000000..81e5e4fd --- /dev/null +++ b/docs/WebhookDeveloperTools.md @@ -0,0 +1,13 @@ + + +# WebhookDeveloperTools + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. | [optional] | + + + diff --git a/docs/WebhookEmulator.md b/docs/WebhookEmulator.md new file mode 100644 index 00000000..133c1dab --- /dev/null +++ b/docs/WebhookEmulator.md @@ -0,0 +1,13 @@ + + +# WebhookEmulator + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Android specific emulator detection. There are 2 values: * `true` - Emulated environment detected (e.g. launch inside of AVD). * `false` - No signs of emulated environment detected or the client is not Android. | [optional] | + + + diff --git a/docs/WebhookFactoryReset.md b/docs/WebhookFactoryReset.md new file mode 100644 index 00000000..415d60ca --- /dev/null +++ b/docs/WebhookFactoryReset.md @@ -0,0 +1,14 @@ + + +# WebhookFactoryReset + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**time** | **OffsetDateTime** | Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. | [optional] | +|**timestamp** | **Long** | This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. | [optional] | + + + diff --git a/docs/WebhookFrida.md b/docs/WebhookFrida.md new file mode 100644 index 00000000..fad02995 --- /dev/null +++ b/docs/WebhookFrida.md @@ -0,0 +1,13 @@ + + +# WebhookFrida + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device. | [optional] | + + + diff --git a/docs/WebhookHighActivity.md b/docs/WebhookHighActivity.md new file mode 100644 index 00000000..3be18dcb --- /dev/null +++ b/docs/WebhookHighActivity.md @@ -0,0 +1,14 @@ + + +# WebhookHighActivity + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Flag indicating if the request came from a high-activity visitor. | | +|**dailyRequests** | **Long** | Number of requests from the same visitor in the previous day. | [optional] | + + + diff --git a/docs/WebhookIPBlocklist.md b/docs/WebhookIPBlocklist.md new file mode 100644 index 00000000..a18363a7 --- /dev/null +++ b/docs/WebhookIPBlocklist.md @@ -0,0 +1,14 @@ + + +# WebhookIPBlocklist + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. | [optional] | +|**details** | [**IPBlocklistDetails**](IPBlocklistDetails.md) | | [optional] | + + + diff --git a/docs/WebhookIPInfo.md b/docs/WebhookIPInfo.md new file mode 100644 index 00000000..cd052030 --- /dev/null +++ b/docs/WebhookIPInfo.md @@ -0,0 +1,15 @@ + + +# WebhookIPInfo + +Details about the request IP address. Has separate fields for v4 and v6 IP address versions. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**v4** | [**IPInfoV4**](IPInfoV4.md) | | [optional] | +|**v6** | [**IPInfoV6**](IPInfoV6.md) | | [optional] | + + + diff --git a/docs/WebhookJailbroken.md b/docs/WebhookJailbroken.md new file mode 100644 index 00000000..b8071a8e --- /dev/null +++ b/docs/WebhookJailbroken.md @@ -0,0 +1,13 @@ + + +# WebhookJailbroken + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. | [optional] | + + + diff --git a/docs/WebhookLocationSpoofing.md b/docs/WebhookLocationSpoofing.md new file mode 100644 index 00000000..a3d360f3 --- /dev/null +++ b/docs/WebhookLocationSpoofing.md @@ -0,0 +1,13 @@ + + +# WebhookLocationSpoofing + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Flag indicating whether the request came from a mobile device with location spoofing enabled. | [optional] | + + + diff --git a/docs/WebhookPrivacySettings.md b/docs/WebhookPrivacySettings.md new file mode 100644 index 00000000..81b6f1a9 --- /dev/null +++ b/docs/WebhookPrivacySettings.md @@ -0,0 +1,13 @@ + + +# WebhookPrivacySettings + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. | [optional] | + + + diff --git a/docs/WebhookProxy.md b/docs/WebhookProxy.md new file mode 100644 index 00000000..f7cd5dbc --- /dev/null +++ b/docs/WebhookProxy.md @@ -0,0 +1,13 @@ + + +# WebhookProxy + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if the request IP address is used by a public proxy provider, `false` otherwise. | [optional] | + + + diff --git a/docs/WebhookRemoteControl.md b/docs/WebhookRemoteControl.md new file mode 100644 index 00000000..22270f01 --- /dev/null +++ b/docs/WebhookRemoteControl.md @@ -0,0 +1,13 @@ + + +# WebhookRemoteControl + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. | [optional] | + + + diff --git a/docs/WebhookRootApps.md b/docs/WebhookRootApps.md new file mode 100644 index 00000000..c9fa82d9 --- /dev/null +++ b/docs/WebhookRootApps.md @@ -0,0 +1,13 @@ + + +# WebhookRootApps + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Android specific root management apps detection. There are 2 values: * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android. | [optional] | + + + diff --git a/docs/WebhookSuspectScore.md b/docs/WebhookSuspectScore.md new file mode 100644 index 00000000..e1f2cba6 --- /dev/null +++ b/docs/WebhookSuspectScore.md @@ -0,0 +1,13 @@ + + +# WebhookSuspectScore + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Integer** | Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score | [optional] | + + + diff --git a/docs/WebhookTampering.md b/docs/WebhookTampering.md new file mode 100644 index 00000000..008564d5 --- /dev/null +++ b/docs/WebhookTampering.md @@ -0,0 +1,15 @@ + + +# WebhookTampering + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). | [optional] | +|**anomalyScore** | **Double** | Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt * Values below `0.5` indicate genuine browsers. | [optional] | +|**antiDetectBrowser** | **Boolean** | Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. | [optional] | + + + diff --git a/docs/WebhookTor.md b/docs/WebhookTor.md new file mode 100644 index 00000000..09c12955 --- /dev/null +++ b/docs/WebhookTor.md @@ -0,0 +1,13 @@ + + +# WebhookTor + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if the request IP address is a known tor exit node, `false` otherwise. | [optional] | + + + diff --git a/docs/WebhookVPN.md b/docs/WebhookVPN.md new file mode 100644 index 00000000..a59a4f00 --- /dev/null +++ b/docs/WebhookVPN.md @@ -0,0 +1,17 @@ + + +# WebhookVPN + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | VPN or other anonymizing service has been used when sending the request. | [optional] | +|**confidence** | [**VPNConfidence**](VPNConfidence.md) | | [optional] | +|**originTimezone** | **String** | Local timezone which is used in timezoneMismatch method. | [optional] | +|**originCountry** | **String** | Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). | [optional] | +|**methods** | [**VPNMethods**](VPNMethods.md) | | [optional] | + + + diff --git a/docs/WebhookVelocity.md b/docs/WebhookVelocity.md new file mode 100644 index 00000000..41c49475 --- /dev/null +++ b/docs/WebhookVelocity.md @@ -0,0 +1,20 @@ + + +# WebhookVelocity + +Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinctIp** | [**VelocityData**](VelocityData.md) | | [optional] | +|**distinctLinkedId** | [**VelocityData**](VelocityData.md) | | [optional] | +|**distinctCountry** | [**VelocityData**](VelocityData.md) | | [optional] | +|**events** | [**VelocityData**](VelocityData.md) | | [optional] | +|**ipEvents** | [**VelocityData**](VelocityData.md) | | [optional] | +|**distinctIpByLinkedId** | [**VelocityData**](VelocityData.md) | | [optional] | +|**distinctVisitorIdByLinkedId** | [**VelocityData**](VelocityData.md) | | [optional] | + + + diff --git a/docs/WebhookVirtualMachine.md b/docs/WebhookVirtualMachine.md new file mode 100644 index 00000000..5f4fa7a1 --- /dev/null +++ b/docs/WebhookVirtualMachine.md @@ -0,0 +1,13 @@ + + +# WebhookVirtualMachine + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **Boolean** | `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. | [optional] | + + + diff --git a/docs/WebhookVisit.md b/docs/WebhookVisit.md deleted file mode 100644 index 861902f4..00000000 --- a/docs/WebhookVisit.md +++ /dev/null @@ -1,51 +0,0 @@ - - -# WebhookVisit - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**visitorId** | **String** | | | -|**clientReferrer** | **String** | | [optional] | -|**userAgent** | **String** | | [optional] | -|**bot** | [**BotdDetectionResult**](BotdDetectionResult.md) | | [optional] | -|**ipInfo** | [**IpInfoResult**](IpInfoResult.md) | | [optional] | -|**incognito** | **Boolean** | Flag if user used incognito session. | | -|**rootApps** | [**RootAppsResult**](RootAppsResult.md) | | [optional] | -|**emulator** | [**EmulatorResult**](EmulatorResult.md) | | [optional] | -|**clonedApp** | [**ClonedAppResult**](ClonedAppResult.md) | | [optional] | -|**factoryReset** | [**FactoryResetResult**](FactoryResetResult.md) | | [optional] | -|**jailbroken** | [**JailbrokenResult**](JailbrokenResult.md) | | [optional] | -|**frida** | [**FridaResult**](FridaResult.md) | | [optional] | -|**ipBlocklist** | [**IpBlockListResult**](IpBlockListResult.md) | | [optional] | -|**tor** | [**TorResult**](TorResult.md) | | [optional] | -|**privacySettings** | [**PrivacySettingsResult**](PrivacySettingsResult.md) | | [optional] | -|**virtualMachine** | [**VirtualMachineResult**](VirtualMachineResult.md) | | [optional] | -|**vpn** | [**VpnResult**](VpnResult.md) | | [optional] | -|**proxy** | [**ProxyResult**](ProxyResult.md) | | [optional] | -|**tampering** | [**TamperingResult**](TamperingResult.md) | | [optional] | -|**rawDeviceAttributes** | [**Map<String, RawDeviceAttributesResultValue>**](RawDeviceAttributesResultValue.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] | -|**highActivity** | [**HighActivityResult**](HighActivityResult.md) | | [optional] | -|**locationSpoofing** | [**LocationSpoofingResult**](LocationSpoofingResult.md) | | [optional] | -|**suspectScore** | [**SuspectScoreResult**](SuspectScoreResult.md) | | [optional] | -|**remoteControl** | [**RemoteControlResult**](RemoteControlResult.md) | | [optional] | -|**velocity** | [**VelocityResult**](VelocityResult.md) | | [optional] | -|**developerTools** | [**DeveloperToolsResult**](DeveloperToolsResult.md) | | [optional] | -|**requestId** | **String** | Unique identifier of the user's identification request. | | -|**browserDetails** | [**BrowserDetails**](BrowserDetails.md) | | | -|**ip** | **String** | | | -|**ipLocation** | [**DeprecatedIPLocation**](DeprecatedIPLocation.md) | | [optional] | -|**timestamp** | **Long** | Timestamp of the event with millisecond precision in Unix time. | | -|**time** | **OffsetDateTime** | Time expressed according to ISO 8601 in UTC format. | | -|**url** | **String** | Page URL from which the identification request was sent. | | -|**tag** | **Map<String, Object>** | A customer-provided value or an object that was sent with identification request. | [optional] | -|**linkedId** | **String** | A customer-provided id that was sent with identification request. | [optional] | -|**confidence** | [**Confidence**](Confidence.md) | | [optional] | -|**visitorFound** | **Boolean** | Attribute represents if a visitor had been identified before. | | -|**firstSeenAt** | [**SeenAt**](SeenAt.md) | | | -|**lastSeenAt** | [**SeenAt**](SeenAt.md) | | | - - - diff --git a/examples/examples.gradle.kts b/examples/examples.gradle.kts index a5896e21..3f99fc29 100644 --- a/examples/examples.gradle.kts +++ b/examples/examples.gradle.kts @@ -25,13 +25,30 @@ sourceSets { } } +fun loadEnv(): Map { + val envFile = rootProject.file(".env") + val envMap = mutableMapOf() + + if (envFile.exists()) { + envFile.forEachLine { line -> + val trimmedLine = line.trim() + if (trimmedLine.isNotEmpty() && !trimmedLine.startsWith("#") && trimmedLine.contains("=")) { + val (key, value) = trimmedLine.split("=", limit = 2) + envMap[key.trim()] = value.trim() + } + } + } + return envMap +} + tasks.register("runFunctionalTests") { group = "execute" description = "Run the Functional Tests" mainClass = "com.fingerprint.example.FunctionalTests" classpath = sourceSets["main"].runtimeClasspath + environment(loadEnv()) } tasks.named("runFunctionalTests") { dependsOn("build") -} \ No newline at end of file +} diff --git a/examples/src/main/java/com/fingerprint/example/FunctionalTests.java b/examples/src/main/java/com/fingerprint/example/FunctionalTests.java index c2ebede9..c8313a34 100644 --- a/examples/src/main/java/com/fingerprint/example/FunctionalTests.java +++ b/examples/src/main/java/com/fingerprint/example/FunctionalTests.java @@ -1,16 +1,23 @@ package com.fingerprint.example; import com.fingerprint.api.FingerprintApi; +import com.fingerprint.model.EventsUpdateRequest; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; +import java.sql.Timestamp; +import java.util.Date; +import java.util.HashMap; + public class FunctionalTests { public static void main(String... args) { String FPJS_API_SECRET = System.getenv("FPJS_API_SECRET"); String FPJS_VISITOR_ID = System.getenv("FPJS_VISITOR_ID"); String FPJS_REQUEST_ID = System.getenv("FPJS_REQUEST_ID"); String FPJS_API_REGION = System.getenv("FPJS_API_REGION"); + String FPJS_REQUEST_ID_TO_UPDATE = System.getenv("FPJS_REQUEST_ID_TO_UPDATE"); + String FPJS_VISITOR_ID_TO_DELETE = System.getenv("FPJS_VISITOR_ID_TO_DELETE"); // Create a new instance of the API client ApiClient client = Configuration.getDefaultApiClient(FPJS_API_SECRET, FPJS_API_REGION != null ? FPJS_API_REGION : "us"); @@ -35,7 +42,32 @@ public static void main(String... args) { System.exit(1); } + // Update identification event + + if (FPJS_REQUEST_ID_TO_UPDATE != null) { + try { + final HashMap tags = new HashMap() {{ + put("timestamp", new Timestamp(new Date().getTime())); + }}; + api.updateEvent(FPJS_REQUEST_ID_TO_UPDATE, new EventsUpdateRequest().tag(tags)); + } catch (ApiException e) { + System.err.println("Exception when calling FingerprintApi.updateEvent:" + e.getMessage()); + System.exit(1); + } + } + + // Delete visitor data + + if (FPJS_VISITOR_ID_TO_DELETE != null) { + try { + api.deleteVisitorData(FPJS_VISITOR_ID_TO_DELETE); + } catch (ApiException e) { + System.err.println("Exception when calling FingerprintApi.deleteVisitor:" + e.getMessage()); + System.exit(1); + } + } + System.out.println("Checks Passed"); System.exit(0); } -} \ No newline at end of file +} diff --git a/examples/src/main/java/com/fingerprint/example/SealedResults.java b/examples/src/main/java/com/fingerprint/example/SealedResults.java index 7b4413aa..4e1d007a 100644 --- a/examples/src/main/java/com/fingerprint/example/SealedResults.java +++ b/examples/src/main/java/com/fingerprint/example/SealedResults.java @@ -1,7 +1,7 @@ package com.fingerprint.example; import com.fingerprint.Sealed; -import com.fingerprint.model.EventResponse; +import com.fingerprint.model.EventsGetResponse; import java.util.Base64; @@ -10,7 +10,7 @@ public static void main(String... args) throws Exception { String SEALED_RESULT = System.getenv("BASE64_SEALED_RESULT"); String SEALED_KEY = System.getenv("BASE64_KEY"); - final EventResponse event = Sealed.unsealEventResponse( + final EventsGetResponse event = Sealed.unsealEventResponse( Base64.getDecoder().decode(SEALED_RESULT), new Sealed.DecryptionKey[]{ new Sealed.DecryptionKey( @@ -23,4 +23,4 @@ public static void main(String... args) throws Exception { System.out.println(event); System.exit(0); } -} \ No newline at end of file +} diff --git a/res/fingerprint-server-api.yaml b/res/fingerprint-server-api.yaml index 3ee7eb49..fc8d487f 100644 --- a/res/fingerprint-server-api.yaml +++ b/res/fingerprint-server-api.yaml @@ -53,32 +53,34 @@ paths: parameters: - name: request_id in: path - description: >- - The unique - [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of - each identification request. required: true schema: type: string + description: >- + The unique + [identifier](https://dev.fingerprint.com/reference/get-function#requestid) + of each identification request. responses: '200': - description: OK + description: OK. content: application/json: schema: - $ref: '#/components/schemas/EventResponse' + $ref: '#/components/schemas/EventsGetResponse' '403': - description: Forbidden + description: Forbidden. Access to this API is denied. content: application/json: schema: - $ref: '#/components/schemas/ErrorCommon403Response' + $ref: '#/components/schemas/ErrorResponse' '404': - description: Not found + description: >- + Not found. The request ID cannot be found in this application's + data. content: application/json: schema: - $ref: '#/components/schemas/ErrorEvent404Response' + $ref: '#/components/schemas/ErrorResponse' put: tags: - Fingerprint @@ -99,45 +101,47 @@ paths: parameters: - name: request_id in: path - description: >- - The unique event - [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). required: true schema: type: string + description: >- + The unique event + [identifier](https://dev.fingerprint.com/reference/get-function#requestid). requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/EventUpdateRequest' + $ref: '#/components/schemas/EventsUpdateRequest' responses: '200': - description: OK + description: OK. '400': - description: Bad request + description: Bad request. The request payload is not valid. content: application/json: schema: - $ref: '#/components/schemas/ErrorUpdateEvent400Response' + $ref: '#/components/schemas/ErrorResponse' '403': - description: Forbidden + description: Forbidden. Access to this API is denied. content: application/json: schema: - $ref: '#/components/schemas/ErrorCommon403Response' + $ref: '#/components/schemas/ErrorResponse' '404': - description: Not found + description: >- + Not found. The request ID cannot be found in this application's + data. content: application/json: schema: - $ref: '#/components/schemas/ErrorEvent404Response' + $ref: '#/components/schemas/ErrorResponse' '409': - description: Conflict + description: Conflict. The event is not mutable yet. content: application/json: schema: - $ref: '#/components/schemas/ErrorUpdateEvent409Response' + $ref: '#/components/schemas/ErrorResponse' /visitors/{visitor_id}: get: tags: @@ -160,16 +164,18 @@ paths: response is received. parameters: - name: visitor_id - description: >- - Unique [visitor - identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) - issued by Fingerprint Pro. in: path required: true schema: type: string - example: uYIm7Ksp5rf00SllPhFp + description: >- + Unique [visitor + identifier](https://dev.fingerprint.com/reference/get-function#visitorid) + issued by Fingerprint Pro. - name: request_id + in: query + schema: + type: string description: > Filter visits by `requestId`. @@ -177,27 +183,29 @@ paths: Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification - [result](https://dev.fingerprint.com/docs/js-agent#requestid). When - you filter visits by `requestId`, only one visit will be returned. + [result](https://dev.fingerprint.com/reference/get-function#requestid). + When you filter visits by `requestId`, only one visit will be + returned. + - name: linked_id in: query schema: type: string - - name: linked_id description: > Filter visits by your custom identifier. You can use - [`linkedId`](https://dev.fingerprint.com/docs/js-agent#linkedid) to - associate identification requests with your own identifier, for + [`linkedId`](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. + - name: limit in: query schema: - type: string - required: false - - name: limit + type: integer + format: int32 + minimum: 0 description: > Limit scanned results. @@ -210,12 +218,10 @@ paths: By default, the most recent 100 visits are scanned, the maximum is 500. + - name: paginationKey in: query schema: - type: integer - format: int32 - minimum: 0 - - name: paginationKey + type: string description: > Use `paginationKey` to get the next page of results. @@ -240,34 +246,39 @@ paths: get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. - in: query - schema: - type: string - required: false - name: before - description: > - ⚠️ Deprecated pagination method, please use `paginationKey` instead. - Timestamp (in milliseconds since epoch) used to paginate results. in: query + deprecated: true schema: type: integer format: int64 minimum: 0 + description: > + ⚠️ Deprecated pagination method, please use `paginationKey` instead. + Timestamp (in milliseconds since epoch) used to paginate results. responses: '200': - description: OK + description: OK. + content: + application/json: + schema: + $ref: '#/components/schemas/VisitorsGetResponse' + '400': + description: >- + Bad request. The visitor ID or query parameters are missing or in + the wrong format. content: application/json: schema: - $ref: '#/components/schemas/Response' + $ref: '#/components/schemas/ErrorPlainResponse' '403': - description: Forbidden. The API Key is probably missing or incorrect. + description: Forbidden. Access to this API is denied. content: application/json: schema: - $ref: '#/components/schemas/ErrorVisits403' + $ref: '#/components/schemas/ErrorPlainResponse' '429': - description: Too Many Requests + description: Too Many Requests. The request is throttled. headers: Retry-After: description: >- @@ -280,7 +291,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TooManyRequestsResponse' + $ref: '#/components/schemas/ErrorPlainResponse' delete: tags: - Fingerprint @@ -345,13 +356,13 @@ paths: parameters: - name: visitor_id in: path - description: >- - The [visitor - ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to - delete. required: true schema: type: string + description: >- + The [visitor + ID](https://dev.fingerprint.com/reference/get-function#visitorid) + you want to delete. responses: '200': description: OK. The visitor ID is scheduled for deletion. @@ -362,13 +373,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ErrorVisitor400Response' + $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden. Access to this API is denied. content: application/json: schema: - $ref: '#/components/schemas/ErrorCommon403Response' + $ref: '#/components/schemas/ErrorResponse' '404': description: >- Not found. The visitor ID cannot be found in this application's @@ -376,13 +387,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ErrorVisitor404Response' + $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests. The request is throttled. content: application/json: schema: - $ref: '#/components/schemas/ErrorCommon429Response' + $ref: '#/components/schemas/ErrorResponse' /webhook: trace: tags: @@ -391,6 +402,11 @@ paths: Fake path to describe webhook format. More information about webhooks can be found in the [documentation](https://dev.fingerprint.com/docs/webhooks) + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Webhook' responses: default: description: Dummy for the schema @@ -406,22 +422,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebhookVisit' + $ref: '#/components/schemas/Webhook' example: value: requestId: Px6VxbRC6WBkA39yeNH3 + url: https://banking.example.com/signup + ip: 216.3.128.12 tag: requestType: signup yourCustomId: 45321 - linkedId: any-string - visitorId: 3HNey93AkBW6CRbxV6xP - visitorFound: true - timestamp: 1554910997788 time: '2019-10-12T07:20:50.52Z' - incognito: false - url: https://banking.example.com/signup - clientReferrer: https://google.com?search=banking+services - ip: 216.3.128.12 + timestamp: 1554910997788 ipLocation: accuracyRadius: 1 city: @@ -439,6 +450,17 @@ paths: - isoCode: IL name: Illinois timezone: America/Chicago + linkedId: any-string + visitorId: 3HNey93AkBW6CRbxV6xP + visitorFound: true + confidence: + score: 0.97 + firstSeenAt: + global: '2022-03-16T11:26:45.362Z' + subscription: '2022-03-16T11:31:01.101Z' + lastSeenAt: + global: '2022-03-16T11:28:34.023Z' + subscription: null browserDetails: browserName: Chrome browserFullVersion: 73.0.3683.86 @@ -449,20 +471,18 @@ paths: userAgent: >- (Macintosh; Intel Mac OS X 10_14_3) Chrome/73.0.3683.86 - confidence: - score: 0.97 - firstSeenAt: - global: '2022-03-16T11:26:45.362Z' - subscription: '2022-03-16T11:31:01.101Z' - lastSeenAt: - global: '2022-03-16T11:28:34.023Z' - subscription: null + incognito: false + clientReferrer: https://google.com?search=banking+services bot: result: bad type: selenium userAgent: >- (Macintosh; Intel Mac OS X 10_14_3) Chrome/73.0.3683.86 + rootApps: + result: false + emulator: + result: false ipInfo: v4: address: 94.142.239.124 @@ -490,10 +510,6 @@ paths: datacenter: result: true name: DediPath - rootApps: - result: false - emulator: - result: false ipBlocklist: result: false details: @@ -503,6 +519,7 @@ paths: result: false vpn: result: false + confidence: high originTimezone: Europe/Berlin originCountry: unknown methods: @@ -510,12 +527,12 @@ paths: publicVPN: false auxiliaryMobile: false osMismatch: false - confidence: high proxy: result: false tampering: result: false anomalyScore: 0 + antiDetectBrowser: false clonedApp: result: false factoryReset: @@ -572,6 +589,21 @@ paths: 5m: 1 1h: 5 24h: 5 + ipEvents: + intervals: + 5m: 1 + 1h: 5 + 24h: 5 + distinctIpByLinkedId: + intervals: + 5m: 1 + 1h: 5 + 24h: 5 + distinctVisitorIdByLinkedId: + intervals: + 5m: 1 + 1h: 5 + 24h: 5 developerTools: result: false responses: @@ -591,187 +623,338 @@ components: BrowserDetails: type: object additionalProperties: false + required: + - browserName + - browserFullVersion + - browserMajorVersion + - os + - osVersion + - device + - userAgent properties: browserName: type: string - example: Chrome browserMajorVersion: type: string - example: '101' browserFullVersion: type: string - example: 101.0.4951 os: type: string - example: Windows osVersion: type: string - example: '10' device: type: string - example: Other userAgent: type: string - example: >- - Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/101.0.4951.41 Safari/537.36 - botProbability: - type: integer + GeolocationCity: + type: object + additionalProperties: false required: - - browserFullVersion - - browserMajorVersion - - browserName - - device - - os - - osVersion - - userAgent - title: BrowserDetails - Location: + - name + properties: + name: + type: string + GeolocationCountry: type: object additionalProperties: false + required: + - code + - name properties: code: type: string minLength: 2 maxLength: 2 - example: US name: type: string - example: United States + GeolocationContinent: + type: object + additionalProperties: false required: - code - name - title: Location - Subdivision: + properties: + code: + type: string + minLength: 2 + maxLength: 2 + name: + type: string + GeolocationSubdivision: type: object additionalProperties: false + required: + - isoCode + - name properties: isoCode: type: string - example: '10' name: type: string - example: Hlavni mesto Praha - Confidence: + GeolocationSubdivisions: + type: array + items: + $ref: '#/components/schemas/GeolocationSubdivision' + DeprecatedGeolocation: + deprecated: true type: object + description: >- + This field is **deprecated** and will not return a result for + **applications created after January 23rd, 2024**. Please use the [IP + Geolocation Smart + signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) + for geolocation information. additionalProperties: false properties: - score: + accuracyRadius: + type: integer + minimum: 0 description: >- - The confidence score is a floating-point number between 0 and 1 that - represents the probability of accurate identification. + The IP address is likely to be within this radius (in km) of the + specified location. + latitude: + type: number + format: double + minimum: -90 + maximum: 90 + longitude: + type: number + format: double + minimum: -180 + maximum: 180 + postalCode: + type: string + timezone: + type: string + format: timezone + city: + $ref: '#/components/schemas/GeolocationCity' + country: + $ref: '#/components/schemas/GeolocationCountry' + continent: + $ref: '#/components/schemas/GeolocationContinent' + subdivisions: + $ref: '#/components/schemas/GeolocationSubdivisions' + Tag: + type: object + description: >- + A customer-provided value or an object that was sent with identification + request. + additionalProperties: true + IdentificationConfidence: + type: object + additionalProperties: false + required: + - score + properties: + score: type: number - format: float + format: double minimum: 0 maximum: 1 + description: >- + The confidence score is a floating-point number between 0 and 1 that + represents the probability of accurate identification. revision: + type: string description: >- The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. + comment: type: string - required: - - score - title: Confidence - SeenAt: + IdentificationSeenAt: type: object additionalProperties: false + required: + - global + - subscription properties: global: type: string nullable: true format: date-time - example: '2022-05-05T18:28:54.535Z' subscription: type: string nullable: true format: date-time - example: '2022-06-09T22:58:05.576Z' - required: - - global - - subscription - title: SeenAt - example: - global: '2022-05-05T18:28:54.535Z' - subscription: null - IdentificationError: + RawDeviceAttributeError: type: object additionalProperties: false properties: - code: + name: type: string - description: | - Error code: - * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded - * `Failed` - internal server error - enum: - - 429 Too Many Requests - - Failed - example: 429 Too Many Requests message: type: string - example: too many requests - required: - - code - - message - BotdDetectionResult: + RawDeviceAttribute: type: object additionalProperties: false - description: Stores bot detection result properties: - result: - type: string - description: | - Bot detection result: - * `notDetected` - the visitor is not a bot - * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on - * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on - enum: - - notDetected - - good - - bad - example: bad - type: - type: string - example: selenium - required: - - result - BotdResult: + value: + title: value + error: + $ref: '#/components/schemas/RawDeviceAttributeError' + RawDeviceAttributes: + type: object + description: > + It includes 35+ raw browser identification attributes to provide + Fingerprint users with even more information than our standard visitor + ID provides. This enables Fingerprint users to not have to run our + open-source product in conjunction with Fingerprint Pro Plus and + Enterprise to get those additional attributes. + + Warning: The raw signals data can change at any moment as we improve the + product. We cannot guarantee the internal shape of raw device attributes + to be stable, so typical semantic versioning rules do not apply here. + Use this data with caution without assuming a specific structure beyond + the generic type provided here. + additionalProperties: + $ref: '#/components/schemas/RawDeviceAttribute' + Identification: type: object additionalProperties: false - description: Contains all the information from Bot Detection product + required: + - visitorId + - requestId + - browserDetails + - incognito + - ip + - timestamp + - time + - url + - tag + - visitorFound + - firstSeenAt + - lastSeenAt properties: - ip: + visitorId: type: string - format: ipv4 - example: 8.8.8.8 - description: IP address of the requesting browser or bot. - time: - title: Time description: >- - Time in UTC when the request from the JS agent was made. We - recommend to treat requests that are older than 2 minutes as - malicious. Otherwise, request replay attacks are possible - type: string - format: date-time - example: '2022-06-09T22:58:36Z' - url: - description: Page URL from which identification request was sent. - type: string - example: https://example.com/login - userAgent: - type: string - example: >- - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 - (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 + String of 20 characters that uniquely identifies the visitor's + browser. requestId: type: string - example: 1681392853693.lRiBBD + description: Unique identifier of the user's request. + browserDetails: + $ref: '#/components/schemas/BrowserDetails' + incognito: + description: Flag if user used incognito session. + type: boolean + ip: + type: string + description: IP address of the requesting browser or bot. + ipLocation: + $ref: '#/components/schemas/DeprecatedGeolocation' linkedId: type: string - example: Automatic tests bot - bot: - $ref: '#/components/schemas/BotdDetectionResult' + description: A customer-provided id that was sent with the request. + timestamp: + description: Timestamp of the event with millisecond precision in Unix time. + type: integer + format: int64 + time: + type: string + format: date-time + description: >- + Time expressed according to ISO 8601 in UTC format, when the request + from the JS agent was made. We recommend to treat requests that are + older than 2 minutes as malicious. Otherwise, request replay attacks + are possible. + url: + type: string + description: Page URL from which the request was sent. + tag: + $ref: '#/components/schemas/Tag' + confidence: + $ref: '#/components/schemas/IdentificationConfidence' + visitorFound: + type: boolean + description: Attribute represents if a visitor had been identified before. + firstSeenAt: + $ref: '#/components/schemas/IdentificationSeenAt' + lastSeenAt: + $ref: '#/components/schemas/IdentificationSeenAt' + components: + $ref: '#/components/schemas/RawDeviceAttributes' + ErrorCode: + type: string + enum: + - RequestCannotBeParsed + - TokenRequired + - TokenNotFound + - SubscriptionNotActive + - WrongRegion + - FeatureNotEnabled + - RequestNotFound + - VisitorNotFound + - TooManyRequests + - 429 Too Many Requests + - StateNotReady + - Failed + description: | + Error code: + * `RequestCannotBeParsed` - the query parameters or JSON payload contains some errors + that prevented us from parsing it (wrong type/surpassed limits). + * `TokenRequired` - `Auth-API-Key` header is missing or empty. + * `TokenNotFound` - no Fingerprint application found for specified secret key. + * `SubscriptionNotActive` - Fingerprint application is not active. + * `WrongRegion` - server and application region differ. + * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application. + * `RequestNotFound` - the specified request ID was not found. It never existed, expired, or it has been deleted. + * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. + * `TooManyRequests` - the limit on secret API key requests per second has been exceeded. + * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded. + * `StateNotReady` - The event specified with request id is + not ready for updates yet. Try again. + This error happens in rare cases when update API is called immediately + after receiving the request id on the client. In case you need to send + information right away, we recommend using the JS agent API instead. + * `Failed` - internal server error. + Error: + type: object + additionalProperties: false + required: + - code + - message + properties: + code: + $ref: '#/components/schemas/ErrorCode' + message: + type: string + ProductIdentification: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Identification' + error: + $ref: '#/components/schemas/Error' + BotdBotResult: + type: string + enum: + - notDetected + - good + - bad + description: | + Bot detection result: + * `notDetected` - the visitor is not a bot + * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on + * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on + BotdBot: + type: object + description: Stores bot detection result + additionalProperties: false + required: + - result + properties: + result: + $ref: '#/components/schemas/BotdBotResult' + type: + type: string + Botd: + type: object + description: Contains all the information from Bot Detection product + additionalProperties: false required: - bot - url @@ -779,103 +962,172 @@ components: - time - userAgent - requestId - ProductError: - type: object - additionalProperties: false properties: - code: + bot: + $ref: '#/components/schemas/BotdBot' + meta: + $ref: '#/components/schemas/Tag' + linkedId: type: string - description: | - Error code: - * `TooManyRequests` - the limit on secret API key requests per second has been exceeded - * `Failed` - internal server error - enum: - - TooManyRequests - - Failed - example: TooManyRequests - message: + description: A customer-provided id that was sent with the request. + url: + type: string + description: Page URL from which the request was sent. + ip: + type: string + description: IP address of the requesting browser or bot. + time: + type: string + format: date-time + description: >- + Time in UTC when the request from the JS agent was made. We + recommend to treat requests that are older than 2 minutes as + malicious. Otherwise, request replay attacks are possible. + userAgent: + type: string + requestId: type: string - example: too many requests + description: Unique identifier of the user's request. + ProductBotd: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Botd' + error: + $ref: '#/components/schemas/Error' + RootApps: + type: object + additionalProperties: false required: - - code - - message - IPLocation: + - result + properties: + result: + type: boolean + description: > + Android specific root management apps detection. There are 2 + values: + * `true` - Root Management Apps detected (e.g. Magisk). + * `false` - No Root Management Apps detected or the client isn't Android. + ProductRootApps: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/RootApps' + error: + $ref: '#/components/schemas/Error' + Emulator: + type: object + additionalProperties: false + required: + - result + properties: + result: + type: boolean + description: | + Android specific emulator detection. There are 2 values: + * `true` - Emulated environment detected (e.g. launch inside of AVD). + * `false` - No signs of emulated environment detected or the client is not Android. + ProductEmulator: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Emulator' + error: + $ref: '#/components/schemas/Error' + Geolocation: type: object additionalProperties: false properties: accuracyRadius: + type: integer + minimum: 0 description: >- The IP address is likely to be within this radius (in km) of the specified location. - type: integer - minimum: 0 - example: 1000 latitude: type: number format: double minimum: -90 maximum: 90 - example: 37.75 longitude: type: number format: double minimum: -180 maximum: 180 - example: -97.82 postalCode: type: string - example: 130 00 timezone: type: string format: timezone - example: America/Chicago city: - type: object - additionalProperties: false - title: IPLocationCity - properties: - name: - type: string - example: Prague + $ref: '#/components/schemas/GeolocationCity' country: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/GeolocationCountry' continent: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/GeolocationContinent' subdivisions: - type: array - items: - $ref: '#/components/schemas/Subdivision' - title: IPLocation - ASN: + $ref: '#/components/schemas/GeolocationSubdivisions' + IPInfoASN: type: object additionalProperties: false + required: + - asn + - name + - network properties: asn: type: string - example: '7922' - network: - type: string - example: 73.136.0.0/13 name: type: string - example: COMCAST-7922 - required: - - asn - - network - title: ASN - DataCenter: + network: + type: string + IPInfoDataCenter: type: object additionalProperties: false + required: + - result + - name properties: result: type: boolean name: type: string - example: DediPath + IPInfoV4: + type: object + additionalProperties: false required: - - result - title: DataCenter - IpInfoResult: + - address + - geolocation + properties: + address: + type: string + format: ipv4 + geolocation: + $ref: '#/components/schemas/Geolocation' + asn: + $ref: '#/components/schemas/IPInfoASN' + datacenter: + $ref: '#/components/schemas/IPInfoDataCenter' + IPInfoV6: + type: object + additionalProperties: false + required: + - address + - geolocation + properties: + address: + type: string + format: ipv6 + geolocation: + $ref: '#/components/schemas/Geolocation' + asn: + $ref: '#/components/schemas/IPInfoASN' + datacenter: + $ref: '#/components/schemas/IPInfoDataCenter' + IPInfo: type: object description: >- Details about the request IP address. Has separate fields for v4 and v6 @@ -883,351 +1135,414 @@ components: additionalProperties: false properties: v4: - type: object - additionalProperties: false - properties: - address: - type: string - format: ipv4 - example: 94.142.239.124 - geolocation: - $ref: '#/components/schemas/IPLocation' - asn: - $ref: '#/components/schemas/ASN' - datacenter: - $ref: '#/components/schemas/DataCenter' - required: - - address - - geolocation + $ref: '#/components/schemas/IPInfoV4' v6: - type: object - additionalProperties: false - properties: - address: - type: string - format: ipv6 - example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 - geolocation: - $ref: '#/components/schemas/IPLocation' - asn: - $ref: '#/components/schemas/ASN' - datacenter: - $ref: '#/components/schemas/DataCenter' - required: - - address - - geolocation - IncognitoResult: + $ref: '#/components/schemas/IPInfoV6' + ProductIPInfo: type: object additionalProperties: false properties: - result: - type: boolean - description: > - `true` if we detected incognito mode used in the browser, `false` - otherwise. - example: false - required: - - result - RootAppsResult: + data: + $ref: '#/components/schemas/IPInfo' + error: + $ref: '#/components/schemas/Error' + IPBlocklistDetails: type: object additionalProperties: false - properties: - result: - type: boolean - description: > - Android specific root management apps detection. There are 2 values: - • `true` - Root Management Apps detected (e.g. Magisk) • `false` - - No Root Management Apps detected or the client isn't Android. - example: false required: - - result - EmulatorResult: - type: object - additionalProperties: false + - emailSpam + - attackSource properties: - result: + emailSpam: type: boolean - description: > - Android specific emulator detection. There are 2 values: • `true` - - Emulated environment detected (e.g. launch inside of AVD) • `false` - - No signs of emulated environment detected or the client is not - Android. - example: false - required: - - result - ClonedAppResult: - type: object - additionalProperties: false - properties: - result: + description: IP address was part of a known email spam attack (SMTP). + attackSource: type: boolean - description: > - Android specific cloned application detection. There are 2 values: • - `true` - Presence of app cloners work detected (e.g. fully cloned - application found or launch of it inside of a not main working - profile detected). • `false` - No signs of cloned application - detected or the client is not Android. - example: false - required: - - result - FactoryResetResult: + description: IP address was part of a known network attack (SSH/HTTPS). + IPBlocklist: type: object additionalProperties: false - properties: - time: - description: > - Indicates the time (in UTC) of the most recent factory reset that - happened on the **mobile device**. - - When a factory reset cannot be detected on the mobile device or when - the request is initiated from a browser, this field will correspond - to the *epoch* time (i.e 1 Jan 1970 UTC). - - See [Factory Reset - Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) - to learn more about this Smart Signal. - type: string - format: date-time - example: '2022-06-09T22:58:36Z' - timestamp: - description: > - This field is just another representation of the value in the `time` - field. - - The time of the most recent factory reset that happened on the - **mobile device** is expressed as Unix epoch time. - type: integer - format: int64 - example: 1654815517198 required: - - time - - timestamp - JailbrokenResult: - type: object - additionalProperties: false + - result + - details properties: result: type: boolean description: > - iOS specific jailbreak detection. There are 2 values: • `true` - - Jailbreak detected • `false` - No signs of jailbreak or the client - is not iOS. - example: false - required: - - result - FridaResult: + `true` if request IP address is part of any database that we use to + search for known malicious actors, `false` otherwise. + details: + $ref: '#/components/schemas/IPBlocklistDetails' + ProductIPBlocklist: type: object additionalProperties: false properties: - result: - type: boolean - description: > - [Frida](https://frida.re/docs/) detection for Android and iOS - devices. There are 2 values: • `true` - Frida detected • `false` - - No signs of Frida or the client is not a mobile device. - example: false - required: - - result - IpBlockListResult: + data: + $ref: '#/components/schemas/IPBlocklist' + error: + $ref: '#/components/schemas/Error' + Tor: type: object additionalProperties: false - properties: - result: - type: boolean - description: > - `true` if request IP address is part of any database that we use to - search for known malicious actors, `false` otherwise. - example: false - details: - type: object - additionalProperties: false - properties: - emailSpam: - type: boolean - description: IP address was part of a known email spam attack (SMTP). - example: false - attackSource: - type: boolean - description: IP address was part of a known network attack (SSH/HTTPS). - example: false - required: - - emailSpam - - attackSource required: - result - - details - TorResult: - type: object - additionalProperties: false properties: result: type: boolean description: > `true` if the request IP address is a known tor exit node, `false` otherwise. - example: false - required: - - result - PrivacySettingsResult: + ProductTor: type: object additionalProperties: false properties: - result: - type: boolean - description: > - `true` if the request is from a privacy aware browser (e.g. Tor) or - from a browser in which fingerprinting is blocked. Otherwise - `false`. - example: false - required: - - result - VirtualMachineResult: + data: + $ref: '#/components/schemas/Tor' + error: + $ref: '#/components/schemas/Error' + VPNConfidence: + type: string + enum: + - low + - medium + - high + description: >- + A confidence rating for the VPN detection result — "low", "medium", or + "high". Depends on the combination of results returned from all VPN + detection methods. + VPNMethods: type: object additionalProperties: false + required: + - timezoneMismatch + - publicVPN + - auxiliaryMobile + - osMismatch properties: - result: + timezoneMismatch: type: boolean - description: > - `true` if the request came from a browser running inside a virtual - machine (e.g. VMWare), `false` otherwise. - example: false - required: - - result - VpnResult: + description: >- + The browser timezone doesn't match the timezone inferred from the + request IP address. + publicVPN: + type: boolean + description: >- + Request IP address is owned and used by a public VPN service + provider. + auxiliaryMobile: + type: boolean + description: >- + This method applies to mobile devices only. Indicates the result of + additional methods used to detect a VPN in mobile devices. + osMismatch: + type: boolean + description: >- + The browser runs on a different operating system than the operating + system inferred from the request network signature. + VPN: type: object additionalProperties: false + required: + - result + - confidence + - originTimezone + - originCountry + - methods properties: result: type: boolean description: >- VPN or other anonymizing service has been used when sending the request. - example: false + confidence: + $ref: '#/components/schemas/VPNConfidence' originTimezone: type: string description: Local timezone which is used in timezoneMismatch method. - example: Europe/Berlin originCountry: type: string description: >- Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). - example: unknown methods: - type: object - additionalProperties: false - properties: - timezoneMismatch: - type: boolean - description: >- - The browser timezone doesn't match the timezone inferred from - the request IP address. - example: false - publicVPN: - type: boolean - description: >- - Request IP address is owned and used by a public VPN service - provider. - example: false - auxiliaryMobile: - type: boolean - description: >- - This method applies to mobile devices only. Indicates the result - of additional methods used to detect a VPN in mobile devices. - example: false - osMismatch: - type: boolean - description: >- - The browser runs on a different operating system than the - operating system inferred from the request network signature. - example: false - required: - - timezoneMismatch - - publicVPN - - auxiliaryMobile - - osMismatch - confidence: - type: string - enum: - - low - - medium - - high - description: >- - A confidence rating for the VPN detection result — "low", "medium", - or "high". Depends on the combination of results returned from all - VPN detection methods. - example: low - required: - - result - - originTimezone - - methods - - confidence - ProxyResult: + $ref: '#/components/schemas/VPNMethods' + ProductVPN: type: object additionalProperties: false properties: - result: + data: + $ref: '#/components/schemas/VPN' + error: + $ref: '#/components/schemas/Error' + Proxy: + type: object + additionalProperties: false + required: + - result + properties: + result: type: boolean description: > `true` if the request IP address is used by a public proxy provider, `false` otherwise. - example: false + ProductProxy: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Proxy' + error: + $ref: '#/components/schemas/Error' + Incognito: + type: object + additionalProperties: false required: - result - TamperingResult: + properties: + result: + type: boolean + description: > + `true` if we detected incognito mode used in the browser, `false` + otherwise. + ProductIncognito: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Incognito' + error: + $ref: '#/components/schemas/Error' + Tampering: type: object additionalProperties: false + required: + - result + - anomalyScore + - antiDetectBrowser properties: result: type: boolean - description: >- - Flag indicating whether browser tampering was detected according to - our internal thresholds. - example: false + description: > + Flag indicating browser tampering was detected. This happens when + either of these conditions is true: + * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). + * The browser signature resembles one of "anti-detect" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). anomalyScore: type: number - description: >- - Confidence score (`0.0 - 1.0`) for the tampering detection. Values - above `0.5` suggest that we're reasonably sure there was a tampering - attempt. Values below `0.5` are genuine browsers. - example: 0 + format: double minimum: 0 maximum: 1 + description: | + Confidence score (`0.0 - 1.0`) for tampering detection: + * Values above `0.5` indicate that there was a tampering attempt. + * Values below `0.5` indicate genuine browsers. + antiDetectBrowser: + type: boolean + description: >- + Is `true` if the identified browser resembles one of "anti-detect" + browsers, for example, Incognition. Anti-detect browsers try to + evade identification by masking or manipulating their fingerprint to + imitate legitimate browser configurations. + ProductTampering: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Tampering' + error: + $ref: '#/components/schemas/Error' + ClonedApp: + type: object + additionalProperties: false required: - result - - anomalyScore - HighActivityResult: + properties: + result: + type: boolean + description: | + Android specific cloned application detection. There are 2 values: + * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). + * `false` - No signs of cloned application detected or the client is not Android. + ProductClonedApp: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/ClonedApp' + error: + $ref: '#/components/schemas/Error' + FactoryReset: + type: object + additionalProperties: false + required: + - time + - timestamp + properties: + time: + type: string + format: date-time + description: > + Indicates the time (in UTC) of the most recent factory reset that + happened on the **mobile device**. + + When a factory reset cannot be detected on the mobile device or when + the request is initiated from a browser, this field will correspond + to the *epoch* time (i.e 1 Jan 1970 UTC). + + See [Factory Reset + Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) + to learn more about this Smart Signal. + timestamp: + type: integer + format: int64 + description: > + This field is just another representation of the value in the `time` + field. + + The time of the most recent factory reset that happened on the + **mobile device** is expressed as Unix epoch time. + ProductFactoryReset: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/FactoryReset' + error: + $ref: '#/components/schemas/Error' + Jailbroken: type: object additionalProperties: false + required: + - result properties: result: type: boolean - description: >- - Flag indicating whether the request came from a high activity - visitor. - example: false - dailyRequests: - type: number - description: Number of requests from the same visitor in the previous day. - example: 10 - minimum: 1 + description: | + iOS specific jailbreak detection. There are 2 values: + * `true` - Jailbreak detected. + * `false` - No signs of jailbreak or the client is not iOS. + ProductJailbroken: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Jailbroken' + error: + $ref: '#/components/schemas/Error' + Frida: + type: object + additionalProperties: false + required: + - result + properties: + result: + type: boolean + description: > + [Frida](https://frida.re/docs/) detection for Android and iOS + devices. There are 2 values: + * `true` - Frida detected + * `false` - No signs of Frida or the client is not a mobile device. + ProductFrida: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Frida' + error: + $ref: '#/components/schemas/Error' + PrivacySettings: + type: object + additionalProperties: false + required: + - result + properties: + result: + type: boolean + description: > + `true` if the request is from a privacy aware browser (e.g. Tor) or + from a browser in which fingerprinting is blocked. Otherwise + `false`. + ProductPrivacySettings: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/PrivacySettings' + error: + $ref: '#/components/schemas/Error' + VirtualMachine: + type: object + additionalProperties: false + required: + - result + properties: + result: + type: boolean + description: > + `true` if the request came from a browser running inside a virtual + machine (e.g. VMWare), `false` otherwise. + ProductVirtualMachine: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/VirtualMachine' + error: + $ref: '#/components/schemas/Error' + ProductRawDeviceAttributes: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/RawDeviceAttributes' + error: + $ref: '#/components/schemas/Error' + HighActivity: + type: object + additionalProperties: false required: - result - LocationSpoofingResult: + properties: + result: + type: boolean + description: Flag indicating if the request came from a high-activity visitor. + dailyRequests: + type: integer + format: int64 + minimum: 1 + description: Number of requests from the same visitor in the previous day. + ProductHighActivity: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/HighActivity' + error: + $ref: '#/components/schemas/Error' + LocationSpoofing: type: object additionalProperties: false + required: + - result properties: result: type: boolean description: >- Flag indicating whether the request came from a mobile device with location spoofing enabled. - example: false - required: - - result - SuspectScoreResult: + ProductLocationSpoofing: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/LocationSpoofing' + error: + $ref: '#/components/schemas/Error' + SuspectScore: type: object additionalProperties: false + required: + - result properties: result: type: integer @@ -1238,126 +1553,148 @@ components: activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score - example: 0 - required: - - result - RawDeviceAttributesResult: + ProductSuspectScore: type: object - description: > - It includes 35+ raw browser identification attributes to provide - Fingerprint users with even more information than our standard visitor - ID provides. This enables Fingerprint users to not have to run our - open-source product in conjunction with Fingerprint Pro Plus and - Enterprise to get those additional attributes. - - Warning: The raw signals data can change at any moment as we improve the - product. We cannot guarantee the internal shape of raw device attributes - to be stable, so typical semantic versioning rules do not apply here. - Use this data with caution without assuming a specific structure beyond - the generic type provided here. - additionalProperties: - type: object - properties: - error: - properties: - name: - title: error.name - type: string - message: - title: error.message - type: string - required: - - name - - message - title: error - type: object - value: - title: value - RemoteControlResult: + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/SuspectScore' + error: + $ref: '#/components/schemas/Error' + RemoteControl: type: object additionalProperties: false + required: + - result properties: result: type: boolean description: > `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. - example: false - required: - - result - VelocityIntervalResult: + ProductRemoteControl: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/RemoteControl' + error: + $ref: '#/components/schemas/Error' + VelocityIntervals: type: object description: > Is absent if the velocity data could not be generated for the visitor ID. additionalProperties: false + required: + - 5m + - 1h properties: 5m: type: integer - example: 1 1h: type: integer - example: 1 24h: type: integer description: > - The `24h` interval of `distinctIp`, `distinctLinkedId`, and - `distinctCountry` will be omitted if the number of `events`` for the - visitor ID in the last 24 hours (`events.intervals.['24h']`) is - higher than 20.000. - example: 1 - required: - - 5m - - 1h - VelocityIntervals: + The `24h` interval of `distinctIp`, `distinctLinkedId`, + `distinctCountry`, `distinctIpByLinkedId` and + `distinctVisitorIdByLinkedId` will be omitted if the number of + `events`` for the visitor ID in the last 24 hours + (`events.intervals.['24h']`) is higher than 20.000. + VelocityData: type: object additionalProperties: false properties: intervals: - $ref: '#/components/schemas/VelocityIntervalResult' - VelocityResult: + $ref: '#/components/schemas/VelocityIntervals' + Velocity: type: object description: > - Sums key data points for a specific `visitorId` at three distinct time + Sums key data points for a specific `visitorId`, `ipAddress` and + `linkedId` at three distinct time + intervals: 5 minutes, 1 hour, and 24 hours as follows: - - Number of identification events attributed to the visitor ID - Number - of distinct IP addresses associated to the visitor ID. - Number of - distinct countries associated with the visitor ID. - Number of distinct - `linkedId`s associated with the visitor ID. - The `24h` interval of `distinctIp`, `distinctLinkedId`, and - `distinctCountry` will be omitted if the number of `events` for the - visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher - than 20.000. + - Number of distinct IP addresses associated to the visitor ID. + + - Number of distinct linked IDs associated with the visitor ID. + + - Number of distinct countries associated with the visitor ID. + + - Number of identification events associated with the visitor ID. + + - Number of identification events associated with the detected IP + address. + + - Number of distinct IP addresses associated with the provided linked + ID. + + - Number of distinct visitor IDs associated with the provided linked ID. + + + The `24h` interval of `distinctIp`, `distinctLinkedId`, + `distinctCountry`, + + `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be + omitted + + if the number of `events` for the visitor ID in the last 24 + + hours (`events.intervals.['24h']`) is higher than 20.000. additionalProperties: false - properties: - distinctIp: - $ref: '#/components/schemas/VelocityIntervals' - distinctLinkedId: - $ref: '#/components/schemas/VelocityIntervals' - distinctCountry: - $ref: '#/components/schemas/VelocityIntervals' - events: - $ref: '#/components/schemas/VelocityIntervals' required: - distinctIp - distinctLinkedId - distinctCountry - events - DeveloperToolsResult: + - ipEvents + - distinctIpByLinkedId + - distinctVisitorIdByLinkedId + properties: + distinctIp: + $ref: '#/components/schemas/VelocityData' + distinctLinkedId: + $ref: '#/components/schemas/VelocityData' + distinctCountry: + $ref: '#/components/schemas/VelocityData' + events: + $ref: '#/components/schemas/VelocityData' + ipEvents: + $ref: '#/components/schemas/VelocityData' + distinctIpByLinkedId: + $ref: '#/components/schemas/VelocityData' + distinctVisitorIdByLinkedId: + $ref: '#/components/schemas/VelocityData' + ProductVelocity: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/Velocity' + error: + $ref: '#/components/schemas/Error' + DeveloperTools: type: object additionalProperties: false + required: + - result properties: result: type: boolean description: > `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. - example: false - required: - - result - ProductsResponse: + ProductDeveloperTools: + type: object + additionalProperties: false + properties: + data: + $ref: '#/components/schemas/DeveloperTools' + error: + $ref: '#/components/schemas/Error' + Products: type: object description: >- Contains all information about the request identified by `requestId`, @@ -1365,875 +1702,591 @@ components: additionalProperties: false properties: identification: - type: object - additionalProperties: false - title: ProductsResponseIdentification - properties: - data: - title: ProductsResponseIdentificationData - type: object - properties: - requestId: - description: Unique identifier of the user's identification request. - type: string - example: 1654815516083.OX6kx8 - browserDetails: - $ref: '#/components/schemas/BrowserDetails' - incognito: - description: Flag if user used incognito session. - type: boolean - ip: - type: string - format: ipv4 - example: 8.8.8.8 - ipLocation: - type: object - additionalProperties: false - deprecated: true - description: >- - This field is **deprecated** and will not return a result - for **applications created after January 23rd, 2024**. - Please use the [IP Geolocation Smart - signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) - for geolocation information. - properties: - accuracyRadius: - description: >- - The IP address is likely to be within this radius (in - km) of the specified location. - type: integer - minimum: 0 - latitude: - type: number - format: double - minimum: -90 - maximum: 90 - longitude: - type: number - format: double - minimum: -180 - maximum: 180 - postalCode: - type: string - timezone: - type: string - format: timezone - city: - type: object - additionalProperties: false - title: DeprecatedIPLocationCity - properties: - name: - type: string - country: - $ref: '#/components/schemas/Location' - continent: - $ref: '#/components/schemas/Location' - subdivisions: - type: array - items: - $ref: '#/components/schemas/Subdivision' - title: DeprecatedIPLocation - timestamp: - description: >- - Timestamp of the event with millisecond precision in Unix - time. - type: integer - format: int64 - example: 1654815516086 - time: - title: Time - description: Time expressed according to ISO 8601 in UTC format. - type: string - format: date-time - example: '2022-06-09T22:58:36Z' - url: - description: Page URL from which the identification request was sent. - type: string - example: https://some.website/path?query=params - tag: - description: >- - A customer-provided value or an object that was sent with - identification request. - type: object - additionalProperties: true - linkedId: - description: >- - A customer-provided id that was sent with identification - request. - type: string - example: someID - confidence: - $ref: '#/components/schemas/Confidence' - visitorFound: - description: >- - Attribute represents if a visitor had been identified - before. - type: boolean - firstSeenAt: - $ref: '#/components/schemas/SeenAt' - lastSeenAt: - $ref: '#/components/schemas/SeenAt' - visitorId: - type: string - description: > - String of 20 characters that uniquely identifies the - visitor's browser. - example: - - Ibk1527CUFmcnjLwIs4A - additionalProperties: false - required: - - browserDetails - - firstSeenAt - - incognito - - ip - - lastSeenAt - - requestId - - time - - timestamp - - url - - visitorFound - - visitorId - - tag - error: - $ref: '#/components/schemas/IdentificationError' + $ref: '#/components/schemas/ProductIdentification' botd: - title: ProductsResponseBotd - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/BotdResult' - error: - $ref: '#/components/schemas/ProductError' - ipInfo: - title: SignalResponseIpInfo - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/IpInfoResult' - error: - $ref: '#/components/schemas/ProductError' - incognito: - title: SignalResponseIncognito - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/IncognitoResult' - error: - $ref: '#/components/schemas/IdentificationError' + $ref: '#/components/schemas/ProductBotd' rootApps: - title: SignalResponseRootApps - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/RootAppsResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductRootApps' emulator: - title: SignalResponseEmulator - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/EmulatorResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductEmulator' + ipInfo: + $ref: '#/components/schemas/ProductIPInfo' + ipBlocklist: + $ref: '#/components/schemas/ProductIPBlocklist' + tor: + $ref: '#/components/schemas/ProductTor' + vpn: + $ref: '#/components/schemas/ProductVPN' + proxy: + $ref: '#/components/schemas/ProductProxy' + incognito: + $ref: '#/components/schemas/ProductIncognito' + tampering: + $ref: '#/components/schemas/ProductTampering' clonedApp: - title: SignalResponseClonedApp - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/ClonedAppResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductClonedApp' factoryReset: - title: SignalResponseFactoryReset - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/FactoryResetResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductFactoryReset' jailbroken: - title: SignalResponseJailbroken - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/JailbrokenResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductJailbroken' frida: - title: SignalResponseFrida - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/FridaResult' - error: - $ref: '#/components/schemas/ProductError' - ipBlocklist: - title: SignalResponseIpBlocklist - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/IpBlockListResult' - error: - $ref: '#/components/schemas/ProductError' - tor: - title: SignalResponseTor - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/TorResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductFrida' privacySettings: - title: SignalResponsePrivacySettings - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/PrivacySettingsResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductPrivacySettings' virtualMachine: - title: SignalResponseVirtualMachine - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/VirtualMachineResult' - error: - $ref: '#/components/schemas/ProductError' - vpn: - title: SignalResponseVpn - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/VpnResult' - error: - $ref: '#/components/schemas/ProductError' - proxy: - title: SignalResponseProxy - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/ProxyResult' - error: - $ref: '#/components/schemas/ProductError' - tampering: - title: SignalResponseTampering - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/TamperingResult' - error: - $ref: '#/components/schemas/IdentificationError' + $ref: '#/components/schemas/ProductVirtualMachine' + rawDeviceAttributes: + $ref: '#/components/schemas/ProductRawDeviceAttributes' highActivity: - title: SignalResponseHighActivity - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/HighActivityResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductHighActivity' locationSpoofing: - title: SignalResponseLocationSpoofing - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/LocationSpoofingResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductLocationSpoofing' suspectScore: - title: SignalResponseSuspectScore - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/SuspectScoreResult' - error: - $ref: '#/components/schemas/ProductError' - rawDeviceAttributes: - title: SignalResponseRawDeviceAttributes - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/RawDeviceAttributesResult' - error: - $ref: '#/components/schemas/IdentificationError' + $ref: '#/components/schemas/ProductSuspectScore' remoteControl: - title: SignalResponseRemoteControl - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/RemoteControlResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductRemoteControl' velocity: - title: SignalResponseVelocity - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/VelocityResult' - error: - $ref: '#/components/schemas/ProductError' + $ref: '#/components/schemas/ProductVelocity' developerTools: - title: SignalResponseDeveloperTools - type: object - additionalProperties: false - properties: - data: - $ref: '#/components/schemas/DeveloperToolsResult' - error: - $ref: '#/components/schemas/ProductError' - EventResponse: + $ref: '#/components/schemas/ProductDeveloperTools' + EventsGetResponse: + type: object description: >- Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. - type: object additionalProperties: false - properties: - products: - $ref: '#/components/schemas/ProductsResponse' - error: - $ref: '#/components/schemas/ProductError' required: - products - ErrorCommon403Response: - type: object - additionalProperties: false properties: - error: - type: object - additionalProperties: false - title: Common403ErrorResponse - properties: - code: - type: string - description: | - Error code: - * `TokenRequired` - `Auth-API-Key` header is missing or empty - * `TokenNotFound` - No Fingerprint application found for specified secret key - * `SubscriptionNotActive` - Fingerprint application is not active - * `WrongRegion` - server and application region differ - * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application - enum: - - TokenRequired - - TokenNotFound - - SubscriptionNotActive - - WrongRegion - - FeatureNotEnabled - example: TokenRequired - message: - type: string - example: secret key is required - required: - - code - - message - ErrorEvent404Response: + products: + $ref: '#/components/schemas/Products' + ErrorResponse: type: object additionalProperties: false + required: + - error properties: error: - type: object - additionalProperties: false - title: ErrorEvent404ResponseError - properties: - code: - type: string - description: | - Error code: - * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. - enum: - - RequestNotFound - example: RequestNotFound - message: - type: string - example: request id is not found - required: - - code - - message - EventUpdateRequest: + $ref: '#/components/schemas/Error' + EventsUpdateRequest: type: object properties: linkedId: type: string description: LinkedID value to assign to the existing event tag: - type: object - description: >- - Full `tag` value to be set to the existing event. Replaces any - existing `tag` payload completely. + $ref: '#/components/schemas/Tag' suspect: type: boolean description: Suspect flag indicating observed suspicious or fraudulent event - ErrorUpdateEvent400Response: - type: object - additionalProperties: false - properties: - error: - type: object - additionalProperties: false - title: ErrorUpdateEvent400ResponseError - properties: - code: - type: string - description: > - Error code: * `RequestCannotBeParsed` - the JSON content of the - request contains some errors that prevented us from parsing it - (wrong type/surpassed limits) * `Failed` - the event is more - than 10 days old and cannot be updated - enum: - - RequestCannotBeParsed - - Failed - example: RequestCannotBeParsed - message: - type: string - description: Details about the underlying issue with the input payload - example: suspect flag must be a boolean - required: - - code - - message - ErrorUpdateEvent409Response: + Visit: type: object additionalProperties: false + required: + - requestId + - browserDetails + - incognito + - ip + - timestamp + - time + - url + - tag + - visitorFound + - firstSeenAt + - lastSeenAt properties: - error: - type: object - additionalProperties: false - title: ErrorUpdateEvent409ResponseError - properties: - code: - type: string - description: > - Error code: * `StateNotReady` - The event specified with request - id is not ready for updates yet. Try again. - - This error happens in rare cases when update API is called - immediately after receiving the request id on the client. In - case you need to send information right away, we recommend using - the JS agent API instead. - enum: - - StateNotReady - example: StateNotReady - message: - type: string - example: resource is not mutable yet, try again - required: - - code - - message - Response: + requestId: + type: string + description: Unique identifier of the user's request. + browserDetails: + $ref: '#/components/schemas/BrowserDetails' + incognito: + type: boolean + description: Flag if user used incognito session. + ip: + type: string + description: IP address of the requesting browser or bot. + ipLocation: + $ref: '#/components/schemas/DeprecatedGeolocation' + linkedId: + type: string + description: A customer-provided id that was sent with the request. + timestamp: + type: integer + format: int64 + description: Timestamp of the event with millisecond precision in Unix time. + time: + type: string + format: date-time + description: >- + Time expressed according to ISO 8601 in UTC format, when the request + from the client agent was made. We recommend to treat requests that + are older than 2 minutes as malicious. Otherwise, request replay + attacks are possible. + url: + type: string + description: Page URL from which the request was sent. + tag: + $ref: '#/components/schemas/Tag' + confidence: + $ref: '#/components/schemas/IdentificationConfidence' + visitorFound: + type: boolean + description: Attribute represents if a visitor had been identified before. + firstSeenAt: + $ref: '#/components/schemas/IdentificationSeenAt' + lastSeenAt: + $ref: '#/components/schemas/IdentificationSeenAt' + components: + $ref: '#/components/schemas/RawDeviceAttributes' + VisitorsGetResponse: type: object + description: >- + Pagination-related fields `lastTimestamp` and `paginationKey` are + included if you use a pagination parameter like `limit` or `before` and + there is more data available on the next page. additionalProperties: false + required: + - visitorId + - visits properties: visitorId: type: string visits: type: array items: - title: ResponseVisits - type: object - properties: - requestId: - description: Unique identifier of the user's identification request. - type: string - example: 1654815516083.OX6kx8 - browserDetails: - $ref: '#/components/schemas/BrowserDetails' - incognito: - description: Flag if user used incognito session. - type: boolean - ip: - type: string - format: ipv4 - example: 8.8.8.8 - ipLocation: - type: object - additionalProperties: false - deprecated: true - description: >- - This field is **deprecated** and will not return a result for - **applications created after January 23rd, 2024**. Please use - the [IP Geolocation Smart - signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) - for geolocation information. - properties: - accuracyRadius: - description: >- - The IP address is likely to be within this radius (in km) - of the specified location. - type: integer - minimum: 0 - latitude: - type: number - format: double - minimum: -90 - maximum: 90 - longitude: - type: number - format: double - minimum: -180 - maximum: 180 - postalCode: - type: string - timezone: - type: string - format: timezone - city: - type: object - additionalProperties: false - title: DeprecatedIPLocationCity - properties: - name: - type: string - country: - $ref: '#/components/schemas/Location' - continent: - $ref: '#/components/schemas/Location' - subdivisions: - type: array - items: - $ref: '#/components/schemas/Subdivision' - title: DeprecatedIPLocation - timestamp: - description: >- - Timestamp of the event with millisecond precision in Unix - time. - type: integer - format: int64 - example: 1654815516086 - time: - title: Time - description: Time expressed according to ISO 8601 in UTC format. - type: string - format: date-time - example: '2022-06-09T22:58:36Z' - url: - description: Page URL from which the identification request was sent. - type: string - example: https://some.website/path?query=params - tag: - description: >- - A customer-provided value or an object that was sent with - identification request. - type: object - additionalProperties: true - linkedId: - description: >- - A customer-provided id that was sent with identification - request. - type: string - example: someID - confidence: - $ref: '#/components/schemas/Confidence' - visitorFound: - description: Attribute represents if a visitor had been identified before. - type: boolean - firstSeenAt: - $ref: '#/components/schemas/SeenAt' - lastSeenAt: - $ref: '#/components/schemas/SeenAt' - additionalProperties: false - required: - - browserDetails - - firstSeenAt - - incognito - - ip - - lastSeenAt - - requestId - - time - - timestamp - - url - - visitorFound - - tag + $ref: '#/components/schemas/Visit' lastTimestamp: + deprecated: true + type: integer + format: int64 description: > ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. - type: integer - format: int64 - example: 1654815517198 paginationKey: + type: string description: >- Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results. - type: string - example: 1654815517198.azN4IZ + ErrorPlainResponse: + type: object + additionalProperties: false required: - - visitorId - - visits - title: PaginatedResponse + - error + properties: + error: + type: string + WebhookRootApps: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + Android specific root management apps detection. There are 2 + values: + * `true` - Root Management Apps detected (e.g. Magisk). + * `false` - No Root Management Apps detected or the client isn't Android. + WebhookEmulator: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: | + Android specific emulator detection. There are 2 values: + * `true` - Emulated environment detected (e.g. launch inside of AVD). + * `false` - No signs of emulated environment detected or the client is not Android. + WebhookIPInfo: + type: object description: >- - Fields `lastTimestamp` and `paginationKey` added when `limit` or - `before` parameter provided and there is more data to show - ErrorVisits403: + Details about the request IP address. Has separate fields for v4 and v6 + IP address versions. + additionalProperties: false + properties: + v4: + $ref: '#/components/schemas/IPInfoV4' + v6: + $ref: '#/components/schemas/IPInfoV6' + WebhookIPBlocklist: type: object additionalProperties: false properties: - error: + result: + type: boolean + description: > + `true` if request IP address is part of any database that we use to + search for known malicious actors, `false` otherwise. + details: + $ref: '#/components/schemas/IPBlocklistDetails' + WebhookTor: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + `true` if the request IP address is a known tor exit node, `false` + otherwise. + WebhookVPN: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: >- + VPN or other anonymizing service has been used when sending the + request. + confidence: + $ref: '#/components/schemas/VPNConfidence' + originTimezone: type: string - description: Error text. - example: Forbidden (HTTP 403) - required: - - error - TooManyRequestsResponse: + description: Local timezone which is used in timezoneMismatch method. + originCountry: + type: string + description: >- + Country of the request (only for Android SDK version >= 2.4.0, ISO + 3166 format or unknown). + methods: + $ref: '#/components/schemas/VPNMethods' + WebhookProxy: type: object additionalProperties: false properties: - error: + result: + type: boolean + description: > + `true` if the request IP address is used by a public proxy provider, + `false` otherwise. + WebhookTampering: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + Flag indicating browser tampering was detected. This happens when + either of these conditions is true: + * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). + * The browser signature resembles one of "anti-detect" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). + anomalyScore: + type: number + format: double + minimum: 0 + maximum: 1 + description: | + Confidence score (`0.0 - 1.0`) for tampering detection: + * Values above `0.5` indicate that there was a tampering attempt + * Values below `0.5` indicate genuine browsers. + antiDetectBrowser: + type: boolean + description: >- + Is `true` if the identified browser resembles one of "anti-detect" + browsers, for example, Incognition. Anti-detect browsers try to + evade identification by masking or manipulating their fingerprint to + imitate legitimate browser configurations. + WebhookClonedApp: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: | + Android specific cloned application detection. There are 2 values: + * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). + * `false` - No signs of cloned application detected or the client is not Android. + WebhookFactoryReset: + type: object + additionalProperties: false + properties: + time: type: string - description: Error text. - example: request throttled + format: date-time + description: > + Indicates the time (in UTC) of the most recent factory reset that + happened on the **mobile device**. + + When a factory reset cannot be detected on the mobile device or when + the request is initiated from a browser, this field will correspond + to the *epoch* time (i.e 1 Jan 1970 UTC). + + See [Factory Reset + Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) + to learn more about this Smart Signal. + timestamp: + type: integer + format: int64 + description: > + This field is just another representation of the value in the `time` + field. + + The time of the most recent factory reset that happened on the + **mobile device** is expressed as Unix epoch time. + WebhookJailbroken: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: | + iOS specific jailbreak detection. There are 2 values: + * `true` - Jailbreak detected. + * `false` - No signs of jailbreak or the client is not iOS. + WebhookFrida: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + [Frida](https://frida.re/docs/) detection for Android and iOS + devices. There are 2 values: + * `true` - Frida detected + * `false` - No signs of Frida or the client is not a mobile device. + WebhookPrivacySettings: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + `true` if the request is from a privacy aware browser (e.g. Tor) or + from a browser in which fingerprinting is blocked. Otherwise + `false`. + WebhookVirtualMachine: + type: object + additionalProperties: false + properties: + result: + type: boolean + description: > + `true` if the request came from a browser running inside a virtual + machine (e.g. VMWare), `false` otherwise. + WebhookRawDeviceAttributes: + type: object + description: > + It includes 35+ raw browser identification attributes to provide + Fingerprint users with even more information than our standard visitor + ID provides. This enables Fingerprint users to not have to run our + open-source product in conjunction with Fingerprint Pro Plus and + Enterprise to get those additional attributes. + + Warning: The raw signals data can change at any moment as we improve the + product. We cannot guarantee the internal shape of raw device attributes + to be stable, so typical semantic versioning rules do not apply here. + Use this data with caution without assuming a specific structure beyond + the generic type provided here. + additionalProperties: + $ref: '#/components/schemas/RawDeviceAttribute' + WebhookHighActivity: + type: object + additionalProperties: false required: - - error - ErrorVisitor400Response: + - result + properties: + result: + type: boolean + description: Flag indicating if the request came from a high-activity visitor. + dailyRequests: + type: integer + format: int64 + minimum: 1 + description: Number of requests from the same visitor in the previous day. + WebhookLocationSpoofing: type: object additionalProperties: false properties: - error: - type: object - additionalProperties: false - properties: - code: - type: string - description: > - Error code: * `RequestCannotBeParsed` - The visitor ID parameter - is missing or in the wrong format. - enum: - - RequestCannotBeParsed - example: RequestCannotBeParsed - message: - type: string - example: invalid visitor id - required: - - code - - message - ErrorVisitor404Response: + result: + type: boolean + description: >- + Flag indicating whether the request came from a mobile device with + location spoofing enabled. + WebhookSuspectScore: type: object additionalProperties: false properties: - error: - type: object - additionalProperties: false - title: ErrorVisitor404ResponseError - properties: - code: - type: string - description: > - Error code: * `VisitorNotFound` - The specified visitor ID was - not found. It never existed or it may have already been deleted. - enum: - - VisitorNotFound - example: VisitorNotFound - message: - type: string - example: visitor not found - required: - - code - - message - ErrorCommon429Response: + result: + type: integer + description: > + Suspect Score is an easy way to integrate Smart Signals into your + fraud protection work flow. It is a weighted representation of all + Smart Signals present in the payload that helps identify suspicious + activity. The value range is [0; S] where S is sum of all Smart + Signals weights. See more details here: + https://dev.fingerprint.com/docs/suspect-score + WebhookRemoteControl: type: object additionalProperties: false properties: - error: - type: object - additionalProperties: false - properties: - code: - type: string - description: | - Error code: * `TooManyRequests` - The request is throttled. - enum: - - TooManyRequests - example: TooManyRequests - message: - type: string - example: request throttled - required: - - code - - message - WebhookVisit: + result: + type: boolean + description: > + `true` if the request came from a machine being remotely controlled + (e.g. TeamViewer), `false` otherwise. + WebhookVelocity: + type: object + description: > + Sums key data points for a specific `visitorId`, `ipAddress` and + `linkedId` at three distinct time + + intervals: 5 minutes, 1 hour, and 24 hours as follows: + + + - Number of distinct IP addresses associated to the visitor ID. + + - Number of distinct linked IDs associated with the visitor ID. + + - Number of distinct countries associated with the visitor ID. + + - Number of identification events associated with the visitor ID. + + - Number of identification events associated with the detected IP + address. + + - Number of distinct IP addresses associated with the provided linked + ID. + + - Number of distinct visitor IDs associated with the provided linked ID. + + + The `24h` interval of `distinctIp`, `distinctLinkedId`, + `distinctCountry`, + + `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be + omitted + + if the number of `events` for the visitor ID in the last 24 + + hours (`events.intervals.['24h']`) is higher than 20.000. + additionalProperties: false + properties: + distinctIp: + $ref: '#/components/schemas/VelocityData' + distinctLinkedId: + $ref: '#/components/schemas/VelocityData' + distinctCountry: + $ref: '#/components/schemas/VelocityData' + events: + $ref: '#/components/schemas/VelocityData' + ipEvents: + $ref: '#/components/schemas/VelocityData' + distinctIpByLinkedId: + $ref: '#/components/schemas/VelocityData' + distinctVisitorIdByLinkedId: + $ref: '#/components/schemas/VelocityData' + WebhookDeveloperTools: type: object + additionalProperties: false properties: + result: + type: boolean + description: > + `true` if the browser is Chrome with DevTools open or Firefox with + Developer Tools open, `false` otherwise. + Webhook: + type: object + required: + - requestId + - url + - ip + - time + - timestamp + properties: + requestId: + type: string + description: Unique identifier of the user's request. + url: + type: string + description: Page URL from which the request was sent. + ip: + type: string + description: IP address of the requesting browser or bot. + tag: + $ref: '#/components/schemas/Tag' + time: + type: string + format: date-time + description: >- + Time expressed according to ISO 8601 in UTC format, when the request + from the JS agent was made. We recommend to treat requests that are + older than 2 minutes as malicious. Otherwise, request replay attacks + are possible. + timestamp: + type: integer + format: int64 + description: Timestamp of the event with millisecond precision in Unix time. + ipLocation: + $ref: '#/components/schemas/DeprecatedGeolocation' + linkedId: + type: string + description: A customer-provided id that was sent with the request. visitorId: type: string - example: 3HNey93AkBW6CRbxV6xP + description: >- + String of 20 characters that uniquely identifies the visitor's + browser. + visitorFound: + type: boolean + description: Attribute represents if a visitor had been identified before. + confidence: + $ref: '#/components/schemas/IdentificationConfidence' + firstSeenAt: + $ref: '#/components/schemas/IdentificationSeenAt' + lastSeenAt: + $ref: '#/components/schemas/IdentificationSeenAt' + browserDetails: + $ref: '#/components/schemas/BrowserDetails' + incognito: + type: boolean + description: Flag if user used incognito session. clientReferrer: type: string - example: https://google.com?search=banking+services + components: + $ref: '#/components/schemas/RawDeviceAttributes' + bot: + $ref: '#/components/schemas/BotdBot' userAgent: type: string - example: >- - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 - (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 - bot: - $ref: '#/components/schemas/BotdDetectionResult' - ipInfo: - $ref: '#/components/schemas/IpInfoResult' - incognito: - description: Flag if user used incognito session. - type: boolean rootApps: - $ref: '#/components/schemas/RootAppsResult' + $ref: '#/components/schemas/WebhookRootApps' emulator: - $ref: '#/components/schemas/EmulatorResult' + $ref: '#/components/schemas/WebhookEmulator' + ipInfo: + $ref: '#/components/schemas/WebhookIPInfo' + ipBlocklist: + $ref: '#/components/schemas/WebhookIPBlocklist' + tor: + $ref: '#/components/schemas/WebhookTor' + vpn: + $ref: '#/components/schemas/WebhookVPN' + proxy: + $ref: '#/components/schemas/WebhookProxy' + tampering: + $ref: '#/components/schemas/WebhookTampering' clonedApp: - $ref: '#/components/schemas/ClonedAppResult' + $ref: '#/components/schemas/WebhookClonedApp' factoryReset: - $ref: '#/components/schemas/FactoryResetResult' + $ref: '#/components/schemas/WebhookFactoryReset' jailbroken: - $ref: '#/components/schemas/JailbrokenResult' + $ref: '#/components/schemas/WebhookJailbroken' frida: - $ref: '#/components/schemas/FridaResult' - ipBlocklist: - $ref: '#/components/schemas/IpBlockListResult' - tor: - $ref: '#/components/schemas/TorResult' + $ref: '#/components/schemas/WebhookFrida' privacySettings: - $ref: '#/components/schemas/PrivacySettingsResult' + $ref: '#/components/schemas/WebhookPrivacySettings' virtualMachine: - $ref: '#/components/schemas/VirtualMachineResult' - vpn: - $ref: '#/components/schemas/VpnResult' - proxy: - $ref: '#/components/schemas/ProxyResult' - tampering: - $ref: '#/components/schemas/TamperingResult' + $ref: '#/components/schemas/WebhookVirtualMachine' rawDeviceAttributes: - $ref: '#/components/schemas/RawDeviceAttributesResult' + $ref: '#/components/schemas/WebhookRawDeviceAttributes' highActivity: - $ref: '#/components/schemas/HighActivityResult' + $ref: '#/components/schemas/WebhookHighActivity' locationSpoofing: - $ref: '#/components/schemas/LocationSpoofingResult' + $ref: '#/components/schemas/WebhookLocationSpoofing' suspectScore: - $ref: '#/components/schemas/SuspectScoreResult' + $ref: '#/components/schemas/WebhookSuspectScore' remoteControl: - $ref: '#/components/schemas/RemoteControlResult' + $ref: '#/components/schemas/WebhookRemoteControl' velocity: - $ref: '#/components/schemas/VelocityResult' + $ref: '#/components/schemas/WebhookVelocity' developerTools: - $ref: '#/components/schemas/DeveloperToolsResult' - requestId: - description: Unique identifier of the user's identification request. - type: string - example: 1654815516083.OX6kx8 - browserDetails: - $ref: '#/components/schemas/BrowserDetails' - ip: - type: string - format: ipv4 - example: 8.8.8.8 - ipLocation: - type: object - additionalProperties: false - deprecated: true - description: >- - This field is **deprecated** and will not return a result for - **applications created after January 23rd, 2024**. Please use the - [IP Geolocation Smart - signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) - for geolocation information. - properties: - accuracyRadius: - description: >- - The IP address is likely to be within this radius (in km) of the - specified location. - type: integer - minimum: 0 - latitude: - type: number - format: double - minimum: -90 - maximum: 90 - longitude: - type: number - format: double - minimum: -180 - maximum: 180 - postalCode: - type: string - timezone: - type: string - format: timezone - city: - type: object - additionalProperties: false - title: DeprecatedIPLocationCity - properties: - name: - type: string - country: - $ref: '#/components/schemas/Location' - continent: - $ref: '#/components/schemas/Location' - subdivisions: - type: array - items: - $ref: '#/components/schemas/Subdivision' - title: DeprecatedIPLocation - timestamp: - description: Timestamp of the event with millisecond precision in Unix time. - type: integer - format: int64 - example: 1654815516086 - time: - title: Time - description: Time expressed according to ISO 8601 in UTC format. - type: string - format: date-time - example: '2022-06-09T22:58:36Z' - url: - description: Page URL from which the identification request was sent. - type: string - example: https://some.website/path?query=params - tag: - description: >- - A customer-provided value or an object that was sent with - identification request. - type: object - additionalProperties: true - linkedId: - description: A customer-provided id that was sent with identification request. - type: string - example: someID - confidence: - $ref: '#/components/schemas/Confidence' - visitorFound: - description: Attribute represents if a visitor had been identified before. - type: boolean - firstSeenAt: - $ref: '#/components/schemas/SeenAt' - lastSeenAt: - $ref: '#/components/schemas/SeenAt' - additionalProperties: false - required: - - visitorId - - browserDetails - - firstSeenAt - - incognito - - ip - - lastSeenAt - - requestId - - time - - timestamp - - url - - visitorFound + $ref: '#/components/schemas/WebhookDeveloperTools' diff --git a/sdk/src/main/java/com/fingerprint/Sealed.java b/sdk/src/main/java/com/fingerprint/Sealed.java index e759276b..f0c0ea38 100644 --- a/sdk/src/main/java/com/fingerprint/Sealed.java +++ b/sdk/src/main/java/com/fingerprint/Sealed.java @@ -1,7 +1,7 @@ package com.fingerprint; import com.fasterxml.jackson.databind.ObjectMapper; -import com.fingerprint.model.EventResponse; +import com.fingerprint.model.EventsGetResponse; import com.fingerprint.sdk.JSON; import javax.crypto.Cipher; @@ -115,18 +115,18 @@ public static byte[] unseal(byte[] sealed, DecryptionKey[] keys) throws IllegalA * * @param sealed Base64 encoded sealed data * @param keys Decryption keys. The SDK will try to decrypt the result with each key until it succeeds. - * @return EventResponse + * @return EventsGetResponse * * @throws IllegalArgumentException if invalid decryption algorithm is provided in any of the keys * @throws UnsealAggregateException if the sealed data cannot be decrypted with any of the keys. The exception contains the list of exceptions thrown by each key. * @throws IOException if the sealed data un-compression fails */ - public static EventResponse unsealEventResponse(byte[] sealed, DecryptionKey[] keys) throws IllegalArgumentException, UnsealAggregateException, IOException { + public static EventsGetResponse unsealEventResponse(byte[] sealed, DecryptionKey[] keys) throws IllegalArgumentException, UnsealAggregateException, IOException { byte[] unsealed = unseal(sealed, keys); ObjectMapper mapper = JSON.getDefault().getMapper(); - EventResponse value = mapper.readValue(unsealed, EventResponse.class); + EventsGetResponse value = mapper.readValue(unsealed, EventsGetResponse.class); if (value.getProducts() == null) { throw new InvalidSealedDataException(); diff --git a/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java b/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java index 4fe69611..d8dcb212 100644 --- a/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java +++ b/sdk/src/main/java/com/fingerprint/api/FingerprintApi.java @@ -9,18 +9,12 @@ import jakarta.ws.rs.core.GenericType; -import com.fingerprint.model.ErrorCommon403Response; -import com.fingerprint.model.ErrorCommon429Response; -import com.fingerprint.model.ErrorEvent404Response; -import com.fingerprint.model.ErrorUpdateEvent400Response; -import com.fingerprint.model.ErrorUpdateEvent409Response; -import com.fingerprint.model.ErrorVisitor400Response; -import com.fingerprint.model.ErrorVisitor404Response; -import com.fingerprint.model.ErrorVisits403; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.EventUpdateRequest; -import com.fingerprint.model.Response; -import com.fingerprint.model.TooManyRequestsResponse; +import com.fingerprint.model.ErrorPlainResponse; +import com.fingerprint.model.ErrorResponse; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; +import com.fingerprint.model.Webhook; import java.util.ArrayList; import java.util.HashMap; @@ -69,7 +63,7 @@ public void setApiClient(ApiClient apiClient) { /** * Delete data by visitor ID * Request deleting all data associated with the specified visitor ID. This API is useful for compliance with privacy regulations. ### Which data is deleted? - Browser (or device) properties - Identification requests made from this browser (or device) #### Browser (or device) properties - Represents the data that Fingerprint collected from this specific browser (or device) and everything inferred and derived from it. - Upon request to delete, this data is deleted asynchronously (typically within a few minutes) and it will no longer be used to identify this browser (or device) for your [Fingerprint Application](https://dev.fingerprint.com/docs/glossary#fingerprint-application). #### Identification requests made from this browser (or device) - Fingerprint stores the identification requests made from a browser (or device) for up to 30 (or 90) days depending on your plan. To learn more, see [Data Retention](https://dev.fingerprint.com/docs/regions#data-retention). - Upon request to delete, the identification requests that were made by this browser - Within the past 10 days are deleted within 24 hrs. - Outside of 10 days are allowed to purge as per your data retention period. ### Corollary After requesting to delete a visitor ID, - If the same browser (or device) requests to identify, it will receive a different visitor ID. - If you request [`/events` API](https://dev.fingerprint.com/reference/getevent) with a `request_id` that was made outside of the 10 days, you will still receive a valid response. - If you request [`/visitors` API](https://dev.fingerprint.com/reference/getvisits) for the deleted visitor ID, the response will include identification requests that were made outside of those 10 days. ### Interested? Please [contact our support team](https://fingerprint.com/support/) to enable it for you. Otherwise, you will receive a 403. - * @param visitorId The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. (required) + * @param visitorId The [visitor ID](https://dev.fingerprint.com/reference/get-function#visitorid) you want to delete. (required) * @throws ApiException if fails to make API call * @http.response.details @@ -88,7 +82,7 @@ public void deleteVisitorData(String visitorId) throws ApiException { /** * Delete data by visitor ID * Request deleting all data associated with the specified visitor ID. This API is useful for compliance with privacy regulations. ### Which data is deleted? - Browser (or device) properties - Identification requests made from this browser (or device) #### Browser (or device) properties - Represents the data that Fingerprint collected from this specific browser (or device) and everything inferred and derived from it. - Upon request to delete, this data is deleted asynchronously (typically within a few minutes) and it will no longer be used to identify this browser (or device) for your [Fingerprint Application](https://dev.fingerprint.com/docs/glossary#fingerprint-application). #### Identification requests made from this browser (or device) - Fingerprint stores the identification requests made from a browser (or device) for up to 30 (or 90) days depending on your plan. To learn more, see [Data Retention](https://dev.fingerprint.com/docs/regions#data-retention). - Upon request to delete, the identification requests that were made by this browser - Within the past 10 days are deleted within 24 hrs. - Outside of 10 days are allowed to purge as per your data retention period. ### Corollary After requesting to delete a visitor ID, - If the same browser (or device) requests to identify, it will receive a different visitor ID. - If you request [`/events` API](https://dev.fingerprint.com/reference/getevent) with a `request_id` that was made outside of the 10 days, you will still receive a valid response. - If you request [`/visitors` API](https://dev.fingerprint.com/reference/getvisits) for the deleted visitor ID, the response will include identification requests that were made outside of those 10 days. ### Interested? Please [contact our support team](https://fingerprint.com/support/) to enable it for you. Otherwise, you will receive a 403. - * @param visitorId The [visitor ID](https://dev.fingerprint.com/docs/js-agent#visitorid) you want to delete. (required) + * @param visitorId The [visitor ID](https://dev.fingerprint.com/reference/get-function#visitorid) you want to delete. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -144,36 +138,36 @@ public ApiResponse deleteVisitorDataWithHttpInfo(String visitorId) throws /** * Get event by request ID * Get a detailed analysis of an individual identification event, including Smart Signals. Please note that the response includes mobile signals (e.g. `rootApps`) even if the request originated from a non-mobile platform. It is highly recommended that you **ignore** the mobile signals for such requests. Use `requestId` as the URL path parameter. This API method is scoped to a request, i.e. all returned information is by `requestId`. - * @param requestId The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) - * @return EventResponse + * @param requestId The unique [identifier](https://dev.fingerprint.com/reference/get-function#requestid) of each identification request. (required) + * @return EventsGetResponse * @throws ApiException if fails to make API call * @http.response.details
- - - + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
404 Not found -
200 OK. -
403 Forbidden. Access to this API is denied. -
404 Not found. The request ID cannot be found in this application's data. -
*/ - public EventResponse getEvent(String requestId) throws ApiException { + public EventsGetResponse getEvent(String requestId) throws ApiException { return getEventWithHttpInfo(requestId).getData(); } /** * Get event by request ID * Get a detailed analysis of an individual identification event, including Smart Signals. Please note that the response includes mobile signals (e.g. `rootApps`) even if the request originated from a non-mobile platform. It is highly recommended that you **ignore** the mobile signals for such requests. Use `requestId` as the URL path parameter. This API method is scoped to a request, i.e. all returned information is by `requestId`. - * @param requestId The unique [identifier](https://dev.fingerprint.com/docs/js-agent#requestid) of each identification request. (required) - * @return ApiResponse<EventResponse> + * @param requestId The unique [identifier](https://dev.fingerprint.com/reference/get-function#requestid) of each identification request. (required) + * @return ApiResponse<EventsGetResponse> * @throws ApiException if fails to make API call * @http.response.details - - - + + +
Status Code Description Response Headers
200 OK -
403 Forbidden -
404 Not found -
200 OK. -
403 Forbidden. Access to this API is denied. -
404 Not found. The request ID cannot be found in this application's data. -
*/ - public ApiResponse getEventWithHttpInfo(String requestId) throws ApiException { + public ApiResponse getEventWithHttpInfo(String requestId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'requestId' is set @@ -209,7 +203,7 @@ public ApiResponse getEventWithHttpInfo(String requestId) throws String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("FingerprintApi.getEvent", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -218,46 +212,48 @@ public ApiResponse getEventWithHttpInfo(String requestId) throws /** * Get visits by visitor ID * Get a history of visits (identification events) for a specific `visitorId`. Use the `visitorId` as a URL path parameter. Only information from the _Identification_ product is returned. #### Headers * `Retry-After` — Present in case of `429 Too many requests`. Indicates how long you should wait before making a follow-up request. The value is non-negative decimal integer indicating the seconds to delay after the response is received. - * @param visitorId Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. (required) - * @param requestId Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) - * @param linkedId Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#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) + * @param visitorId Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. (required) + * @param requestId Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/reference/get-function#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) + * @param linkedId Filter visits by your custom identifier. You can use [`linkedId`](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) * @param limit Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. (optional) * @param paginationKey Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. (optional) * @param before ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. (optional) - * @return Response + * @return VisitorsGetResponse * @throws ApiException if fails to make API call * @http.response.details - - - + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden. The API Key is probably missing or incorrect. -
429 Too Many Requests * Retry-After - Indicates how many seconds you should wait before attempting the next request.
200 OK. -
400 Bad request. The visitor ID or query parameters are missing or in the wrong format. -
403 Forbidden. Access to this API is denied. -
429 Too Many Requests. The request is throttled. * Retry-After - Indicates how many seconds you should wait before attempting the next request.
*/ - public Response getVisits(String visitorId, String requestId, String linkedId, Integer limit, String paginationKey, Long before) throws ApiException { + public VisitorsGetResponse getVisits(String visitorId, String requestId, String linkedId, Integer limit, String paginationKey, Long before) throws ApiException { return getVisitsWithHttpInfo(visitorId, requestId, linkedId, limit, paginationKey, before).getData(); } /** * Get visits by visitor ID * Get a history of visits (identification events) for a specific `visitorId`. Use the `visitorId` as a URL path parameter. Only information from the _Identification_ product is returned. #### Headers * `Retry-After` — Present in case of `429 Too many requests`. Indicates how long you should wait before making a follow-up request. The value is non-negative decimal integer indicating the seconds to delay after the response is received. - * @param visitorId Unique [visitor identifier](https://dev.fingerprint.com/docs/js-agent#visitorid) issued by Fingerprint Pro. (required) - * @param requestId Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/docs/js-agent#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) - * @param linkedId Filter visits by your custom identifier. You can use [`linkedId`](https://dev.fingerprint.com/docs/js-agent#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) + * @param visitorId Unique [visitor identifier](https://dev.fingerprint.com/reference/get-function#visitorid) issued by Fingerprint Pro. (required) + * @param requestId Filter visits by `requestId`. Every identification request has a unique identifier associated with it called `requestId`. This identifier is returned to the client in the identification [result](https://dev.fingerprint.com/reference/get-function#requestid). When you filter visits by `requestId`, only one visit will be returned. (optional) + * @param linkedId Filter visits by your custom identifier. You can use [`linkedId`](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) * @param limit Limit scanned results. For performance reasons, the API first scans some number of events before filtering them. Use `limit` to specify how many events are scanned before they are filtered by `requestId` or `linkedId`. Results are always returned sorted by the timestamp (most recent first). By default, the most recent 100 visits are scanned, the maximum is 500. (optional) * @param paginationKey Use `paginationKey` to get the next page of results. When more results are available (e.g., you requested 200 results using `limit` parameter, but a total of 600 results are available), the `paginationKey` top-level attribute is added to the response. The key corresponds to the `requestId` of the last returned event. In the following request, use that value in the `paginationKey` parameter to get the next page of results: 1. First request, returning most recent 200 events: `GET api-base-url/visitors/:visitorId?limit=200` 2. Use `response.paginationKey` to get the next page of results: `GET api-base-url/visitors/:visitorId?limit=200&paginationKey=1683900801733.Ogvu1j` Pagination happens during scanning and before filtering, so you can get less visits than the `limit` you specified with more available on the next page. When there are no more results available for scanning, the `paginationKey` attribute is not returned. (optional) * @param before ⚠️ Deprecated pagination method, please use `paginationKey` instead. Timestamp (in milliseconds since epoch) used to paginate results. (optional) - * @return ApiResponse<Response> + * @return ApiResponse<VisitorsGetResponse> * @throws ApiException if fails to make API call * @http.response.details - - - + + + +
Status Code Description Response Headers
200 OK -
403 Forbidden. The API Key is probably missing or incorrect. -
429 Too Many Requests * Retry-After - Indicates how many seconds you should wait before attempting the next request.
200 OK. -
400 Bad request. The visitor ID or query parameters are missing or in the wrong format. -
403 Forbidden. Access to this API is denied. -
429 Too Many Requests. The request is throttled. * Retry-After - Indicates how many seconds you should wait before attempting the next request.
*/ - public ApiResponse getVisitsWithHttpInfo(String visitorId, String requestId, String linkedId, Integer limit, String paginationKey, Long before) throws ApiException { + public ApiResponse getVisitsWithHttpInfo(String visitorId, String requestId, String linkedId, Integer limit, String paginationKey, Long before) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'visitorId' is set @@ -298,7 +294,7 @@ public ApiResponse getVisitsWithHttpInfo(String visitorId, String requ String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("FingerprintApi.getVisits", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -307,51 +303,51 @@ public ApiResponse getVisitsWithHttpInfo(String visitorId, String requ /** * Update an event with a given request ID * Change information in existing events specified by `requestId` or *flag suspicious events*. When an event is created, it is assigned `linkedId` and `tag` submitted through the JS agent parameters. This information might not be available on the client so the Server API allows for updating the attributes after the fact. **Warning** It's not possible to update events older than 10 days. - * @param requestId The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). (required) - * @param eventUpdateRequest (required) + * @param requestId The unique event [identifier](https://dev.fingerprint.com/reference/get-function#requestid). (required) + * @param eventsUpdateRequest (required) * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
403 Forbidden -
404 Not found -
409 Conflict -
200 OK. -
400 Bad request. The request payload is not valid. -
403 Forbidden. Access to this API is denied. -
404 Not found. The request ID cannot be found in this application's data. -
409 Conflict. The event is not mutable yet. -
*/ - public void updateEvent(String requestId, EventUpdateRequest eventUpdateRequest) throws ApiException { - updateEventWithHttpInfo(requestId, eventUpdateRequest); + public void updateEvent(String requestId, EventsUpdateRequest eventsUpdateRequest) throws ApiException { + updateEventWithHttpInfo(requestId, eventsUpdateRequest); } /** * Update an event with a given request ID * Change information in existing events specified by `requestId` or *flag suspicious events*. When an event is created, it is assigned `linkedId` and `tag` submitted through the JS agent parameters. This information might not be available on the client so the Server API allows for updating the attributes after the fact. **Warning** It's not possible to update events older than 10 days. - * @param requestId The unique event [identifier](https://dev.fingerprint.com/docs/js-agent#requestid). (required) - * @param eventUpdateRequest (required) + * @param requestId The unique event [identifier](https://dev.fingerprint.com/reference/get-function#requestid). (required) + * @param eventsUpdateRequest (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - - - - - + + + + +
Status Code Description Response Headers
200 OK -
400 Bad request -
403 Forbidden -
404 Not found -
409 Conflict -
200 OK. -
400 Bad request. The request payload is not valid. -
403 Forbidden. Access to this API is denied. -
404 Not found. The request ID cannot be found in this application's data. -
409 Conflict. The event is not mutable yet. -
*/ - public ApiResponse updateEventWithHttpInfo(String requestId, EventUpdateRequest eventUpdateRequest) throws ApiException { - Object localVarPostBody = eventUpdateRequest; + public ApiResponse updateEventWithHttpInfo(String requestId, EventsUpdateRequest eventsUpdateRequest) throws ApiException { + Object localVarPostBody = eventsUpdateRequest; // verify the required parameter 'requestId' is set if (requestId == null) { throw new ApiException(400, "Missing the required parameter 'requestId' when calling updateEvent"); } - // verify the required parameter 'eventUpdateRequest' is set - if (eventUpdateRequest == null) { - throw new ApiException(400, "Missing the required parameter 'eventUpdateRequest' when calling updateEvent"); + // verify the required parameter 'eventsUpdateRequest' is set + if (eventsUpdateRequest == null) { + throw new ApiException(400, "Missing the required parameter 'eventsUpdateRequest' when calling updateEvent"); } // create path and map variables @@ -389,6 +385,7 @@ public ApiResponse updateEventWithHttpInfo(String requestId, EventUpdateRe /** * * Fake path to describe webhook format. More information about webhooks can be found in the [documentation](https://dev.fingerprint.com/docs/webhooks) + * @param webhook (optional) * @throws ApiException if fails to make API call * @http.response.details @@ -396,13 +393,14 @@ public ApiResponse updateEventWithHttpInfo(String requestId, EventUpdateRe
0 Dummy for the schema -
*/ - public void webhookTrace() throws ApiException { - webhookTraceWithHttpInfo(); + public void webhookTrace(Webhook webhook) throws ApiException { + webhookTraceWithHttpInfo(webhook); } /** * * Fake path to describe webhook format. More information about webhooks can be found in the [documentation](https://dev.fingerprint.com/docs/webhooks) + * @param webhook (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -411,8 +409,8 @@ public void webhookTrace() throws ApiException { 0 Dummy for the schema - */ - public ApiResponse webhookTraceWithHttpInfo() throws ApiException { - Object localVarPostBody = null; + public ApiResponse webhookTraceWithHttpInfo(Webhook webhook) throws ApiException { + Object localVarPostBody = webhook; // create path and map variables String localVarPath = "/webhook"; @@ -435,7 +433,7 @@ public ApiResponse webhookTraceWithHttpInfo() throws ApiException { final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); diff --git a/sdk/src/main/java/com/fingerprint/model/BotdResult.java b/sdk/src/main/java/com/fingerprint/model/Botd.java similarity index 63% rename from sdk/src/main/java/com/fingerprint/model/BotdResult.java rename to sdk/src/main/java/com/fingerprint/model/Botd.java index b3798ee9..a9c9066a 100644 --- a/sdk/src/main/java/com/fingerprint/model/BotdResult.java +++ b/sdk/src/main/java/com/fingerprint/model/Botd.java @@ -6,9 +6,11 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.BotdDetectionResult; +import com.fingerprint.model.BotdBot; import java.time.OffsetDateTime; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; @@ -19,103 +21,141 @@ @Schema(description = "Contains all the information from Bot Detection product") @JsonPropertyOrder({ - BotdResult.JSON_PROPERTY_IP, - BotdResult.JSON_PROPERTY_TIME, - BotdResult.JSON_PROPERTY_URL, - BotdResult.JSON_PROPERTY_USER_AGENT, - BotdResult.JSON_PROPERTY_REQUEST_ID, - BotdResult.JSON_PROPERTY_LINKED_ID, - BotdResult.JSON_PROPERTY_BOT + Botd.JSON_PROPERTY_BOT, + Botd.JSON_PROPERTY_META, + Botd.JSON_PROPERTY_LINKED_ID, + Botd.JSON_PROPERTY_URL, + Botd.JSON_PROPERTY_IP, + Botd.JSON_PROPERTY_TIME, + Botd.JSON_PROPERTY_USER_AGENT, + Botd.JSON_PROPERTY_REQUEST_ID }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class BotdResult { +public class Botd { + public static final String JSON_PROPERTY_BOT = "bot"; + private BotdBot bot; + + public static final String JSON_PROPERTY_META = "meta"; + private Map meta = null; + + public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; + private String linkedId; + + public static final String JSON_PROPERTY_URL = "url"; + private String url; + public static final String JSON_PROPERTY_IP = "ip"; private String ip; public static final String JSON_PROPERTY_TIME = "time"; private OffsetDateTime time; - public static final String JSON_PROPERTY_URL = "url"; - private String url; - public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; - public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; - private String linkedId; - - public static final String JSON_PROPERTY_BOT = "bot"; - private BotdDetectionResult bot; - - public BotdResult() { + public Botd() { } - public BotdResult ip(String ip) { - this.ip = ip; + public Botd bot(BotdBot bot) { + this.bot = bot; return this; } /** - * IP address of the requesting browser or bot. - * @return ip + * Get bot + * @return bot **/ @jakarta.annotation.Nonnull - @Schema(example = "8.8.8.8", required = true, description = "IP address of the requesting browser or bot.") - @JsonProperty(JSON_PROPERTY_IP) + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_BOT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getIp() { - return ip; + public BotdBot getBot() { + return bot; } - @JsonProperty(JSON_PROPERTY_IP) + @JsonProperty(JSON_PROPERTY_BOT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIp(String ip) { - this.ip = ip; + public void setBot(BotdBot bot) { + this.bot = bot; } - public BotdResult time(OffsetDateTime time) { - this.time = time; + public Botd meta(Map meta) { + this.meta = meta; + return this; + } + + public Botd putmetaItem(String key, Object metaItem) { + if (this.meta == null) { + this.meta = new HashMap<>(); + } + this.meta.put(key, metaItem); return this; } /** - * Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible - * @return time + * A customer-provided value or an object that was sent with identification request. + * @return meta **/ - @jakarta.annotation.Nonnull - @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible") - @JsonProperty(JSON_PROPERTY_TIME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "A customer-provided value or an object that was sent with identification request.") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getTime() { - return time; + public Map getMeta() { + return meta; } - @JsonProperty(JSON_PROPERTY_TIME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTime(OffsetDateTime time) { - this.time = time; + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(Map meta) { + this.meta = meta; + } + + + public Botd linkedId(String linkedId) { + this.linkedId = linkedId; + return this; + } + + /** + * A customer-provided id that was sent with the request. + * @return linkedId + **/ + @jakarta.annotation.Nullable + @Schema(description = "A customer-provided id that was sent with the request.") + @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLinkedId() { + return linkedId; } - public BotdResult url(String url) { + @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLinkedId(String linkedId) { + this.linkedId = linkedId; + } + + + public Botd url(String url) { this.url = url; return this; } /** - * Page URL from which identification request was sent. + * Page URL from which the request was sent. * @return url **/ @jakarta.annotation.Nonnull - @Schema(example = "https://example.com/login", required = true, description = "Page URL from which identification request was sent.") + @Schema(required = true, description = "Page URL from which the request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -131,112 +171,112 @@ public void setUrl(String url) { } - public BotdResult userAgent(String userAgent) { - this.userAgent = userAgent; + public Botd ip(String ip) { + this.ip = ip; return this; } /** - * Get userAgent - * @return userAgent + * IP address of the requesting browser or bot. + * @return ip **/ @jakarta.annotation.Nonnull - @Schema(example = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", required = true, description = "") - @JsonProperty(JSON_PROPERTY_USER_AGENT) + @Schema(required = true, description = "IP address of the requesting browser or bot.") + @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUserAgent() { - return userAgent; + public String getIp() { + return ip; } - @JsonProperty(JSON_PROPERTY_USER_AGENT) + @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUserAgent(String userAgent) { - this.userAgent = userAgent; + public void setIp(String ip) { + this.ip = ip; } - public BotdResult requestId(String requestId) { - this.requestId = requestId; + public Botd time(OffsetDateTime time) { + this.time = time; return this; } /** - * Get requestId - * @return requestId + * Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. + * @return time **/ @jakarta.annotation.Nonnull - @Schema(example = "1681392853693.lRiBBD", required = true, description = "") - @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @Schema(required = true, description = "Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible.") + @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRequestId() { - return requestId; + public OffsetDateTime getTime() { + return time; } - @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequestId(String requestId) { - this.requestId = requestId; + public void setTime(OffsetDateTime time) { + this.time = time; } - public BotdResult linkedId(String linkedId) { - this.linkedId = linkedId; + public Botd userAgent(String userAgent) { + this.userAgent = userAgent; return this; } /** - * Get linkedId - * @return linkedId + * Get userAgent + * @return userAgent **/ - @jakarta.annotation.Nullable - @Schema(example = "Automatic tests bot", description = "") - @JsonProperty(JSON_PROPERTY_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_USER_AGENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLinkedId() { - return linkedId; + public String getUserAgent() { + return userAgent; } - @JsonProperty(JSON_PROPERTY_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkedId(String linkedId) { - this.linkedId = linkedId; + @JsonProperty(JSON_PROPERTY_USER_AGENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserAgent(String userAgent) { + this.userAgent = userAgent; } - public BotdResult bot(BotdDetectionResult bot) { - this.bot = bot; + public Botd requestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get bot - * @return bot + * Unique identifier of the user's request. + * @return requestId **/ @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_BOT) + @Schema(required = true, description = "Unique identifier of the user's request.") + @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BotdDetectionResult getBot() { - return bot; + public String getRequestId() { + return requestId; } - @JsonProperty(JSON_PROPERTY_BOT) + @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBot(BotdDetectionResult bot) { - this.bot = bot; + public void setRequestId(String requestId) { + this.requestId = requestId; } /** - * Return true if this BotdResult object is equal to o. + * Return true if this Botd object is equal to o. */ @Override public boolean equals(Object o) { @@ -246,32 +286,34 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - BotdResult botdResult = (BotdResult) o; - return Objects.equals(this.ip, botdResult.ip) && - Objects.equals(this.time, botdResult.time) && - Objects.equals(this.url, botdResult.url) && - Objects.equals(this.userAgent, botdResult.userAgent) && - Objects.equals(this.requestId, botdResult.requestId) && - Objects.equals(this.linkedId, botdResult.linkedId) && - Objects.equals(this.bot, botdResult.bot); + Botd botd = (Botd) o; + return Objects.equals(this.bot, botd.bot) && + Objects.equals(this.meta, botd.meta) && + Objects.equals(this.linkedId, botd.linkedId) && + Objects.equals(this.url, botd.url) && + Objects.equals(this.ip, botd.ip) && + Objects.equals(this.time, botd.time) && + Objects.equals(this.userAgent, botd.userAgent) && + Objects.equals(this.requestId, botd.requestId); } @Override public int hashCode() { - return Objects.hash(ip, time, url, userAgent, requestId, linkedId, bot); + return Objects.hash(bot, meta, linkedId, url, ip, time, userAgent, requestId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class BotdResult {\n"); + sb.append("class Botd {\n"); + sb.append(" bot: ").append(toIndentedString(bot)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); - sb.append(" bot: ").append(toIndentedString(bot)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/EmulatorResult.java b/sdk/src/main/java/com/fingerprint/model/BotdBot.java similarity index 56% rename from sdk/src/main/java/com/fingerprint/model/EmulatorResult.java rename to sdk/src/main/java/com/fingerprint/model/BotdBot.java index 6f6cba98..6d1999ad 100644 --- a/sdk/src/main/java/com/fingerprint/model/EmulatorResult.java +++ b/sdk/src/main/java/com/fingerprint/model/BotdBot.java @@ -6,55 +6,86 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.BotdBotResult; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * EmulatorResult + * Stores bot detection result */ - +@Schema(description = "Stores bot detection result") @JsonPropertyOrder({ - EmulatorResult.JSON_PROPERTY_RESULT + BotdBot.JSON_PROPERTY_RESULT, + BotdBot.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class EmulatorResult { +public class BotdBot { public static final String JSON_PROPERTY_RESULT = "result"; - private Boolean result; + private BotdBotResult result; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; - public EmulatorResult() { + public BotdBot() { } - public EmulatorResult result(Boolean result) { + public BotdBot result(BotdBotResult result) { this.result = result; return this; } /** - * Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. + * Get result * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. ") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getResult() { + public BotdBotResult getResult() { return result; } @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult(Boolean result) { + public void setResult(BotdBotResult result) { this.result = result; } + public BotdBot type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + /** - * Return true if this EmulatorResult object is equal to o. + * Return true if this BotdBot object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,20 +95,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - EmulatorResult emulatorResult = (EmulatorResult) o; - return Objects.equals(this.result, emulatorResult.result); + BotdBot botdBot = (BotdBot) o; + return Objects.equals(this.result, botdBot.result) && + Objects.equals(this.type, botdBot.type); } @Override public int hashCode() { - return Objects.hash(result); + return Objects.hash(result, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class EmulatorResult {\n"); + sb.append("class BotdBot {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/BotdBotResult.java b/sdk/src/main/java/com/fingerprint/model/BotdBotResult.java new file mode 100644 index 00000000..6ed3ff0c --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/BotdBotResult.java @@ -0,0 +1,48 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on + */ +public enum BotdBotResult { + + NOT_DETECTED("notDetected"), + + GOOD("good"), + + BAD("bad"); + + private String value; + + BotdBotResult(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BotdBotResult fromValue(String value) { + for (BotdBotResult b : BotdBotResult.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } +} + diff --git a/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java b/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java deleted file mode 100644 index 4344286c..00000000 --- a/sdk/src/main/java/com/fingerprint/model/BotdDetectionResult.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * Stores bot detection result - */ - -@Schema(description = "Stores bot detection result") -@JsonPropertyOrder({ - BotdDetectionResult.JSON_PROPERTY_RESULT, - BotdDetectionResult.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class BotdDetectionResult { - /** - * Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on - */ - public enum ResultEnum { - NOT_DETECTED("notDetected"), - - GOOD("good"), - - BAD("bad"); - - private String value; - - ResultEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ResultEnum fromValue(String value) { - for (ResultEnum b : ResultEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_RESULT = "result"; - private ResultEnum result; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public BotdDetectionResult() { - } - - public BotdDetectionResult result(ResultEnum result) { - this.result = result; - return this; - } - - /** - * Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on - * @return result - **/ - @jakarta.annotation.Nonnull - @Schema(example = "bad", required = true, description = "Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on ") - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public ResultEnum getResult() { - return result; - } - - - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult(ResultEnum result) { - this.result = result; - } - - - public BotdDetectionResult type(String type) { - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @jakarta.annotation.Nullable - @Schema(example = "selenium", description = "") - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { - this.type = type; - } - - - /** - * Return true if this BotdDetectionResult object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BotdDetectionResult botdDetectionResult = (BotdDetectionResult) o; - return Objects.equals(this.result, botdDetectionResult.result) && - Objects.equals(this.type, botdDetectionResult.type); - } - - @Override - public int hashCode() { - return Objects.hash(result, type); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class BotdDetectionResult {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java b/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java index 96531855..172cf681 100644 --- a/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java +++ b/sdk/src/main/java/com/fingerprint/model/BrowserDetails.java @@ -23,8 +23,7 @@ BrowserDetails.JSON_PROPERTY_OS, BrowserDetails.JSON_PROPERTY_OS_VERSION, BrowserDetails.JSON_PROPERTY_DEVICE, - BrowserDetails.JSON_PROPERTY_USER_AGENT, - BrowserDetails.JSON_PROPERTY_BOT_PROBABILITY + BrowserDetails.JSON_PROPERTY_USER_AGENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class BrowserDetails { @@ -49,9 +48,6 @@ public class BrowserDetails { public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; - public static final String JSON_PROPERTY_BOT_PROBABILITY = "botProbability"; - private Integer botProbability; - public BrowserDetails() { } @@ -65,7 +61,7 @@ public BrowserDetails browserName(String browserName) { * @return browserName **/ @jakarta.annotation.Nonnull - @Schema(example = "Chrome", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -91,7 +87,7 @@ public BrowserDetails browserMajorVersion(String browserMajorVersion) { * @return browserMajorVersion **/ @jakarta.annotation.Nonnull - @Schema(example = "101", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_MAJOR_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -117,7 +113,7 @@ public BrowserDetails browserFullVersion(String browserFullVersion) { * @return browserFullVersion **/ @jakarta.annotation.Nonnull - @Schema(example = "101.0.4951", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_BROWSER_FULL_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -143,7 +139,7 @@ public BrowserDetails os(String os) { * @return os **/ @jakarta.annotation.Nonnull - @Schema(example = "Windows", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_OS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -169,7 +165,7 @@ public BrowserDetails osVersion(String osVersion) { * @return osVersion **/ @jakarta.annotation.Nonnull - @Schema(example = "10", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_OS_VERSION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -195,7 +191,7 @@ public BrowserDetails device(String device) { * @return device **/ @jakarta.annotation.Nonnull - @Schema(example = "Other", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -221,7 +217,7 @@ public BrowserDetails userAgent(String userAgent) { * @return userAgent **/ @jakarta.annotation.Nonnull - @Schema(example = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_USER_AGENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -237,32 +233,6 @@ public void setUserAgent(String userAgent) { } - public BrowserDetails botProbability(Integer botProbability) { - this.botProbability = botProbability; - return this; - } - - /** - * Get botProbability - * @return botProbability - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_BOT_PROBABILITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getBotProbability() { - return botProbability; - } - - - @JsonProperty(JSON_PROPERTY_BOT_PROBABILITY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBotProbability(Integer botProbability) { - this.botProbability = botProbability; - } - - /** * Return true if this BrowserDetails object is equal to o. */ @@ -281,13 +251,12 @@ public boolean equals(Object o) { Objects.equals(this.os, browserDetails.os) && Objects.equals(this.osVersion, browserDetails.osVersion) && Objects.equals(this.device, browserDetails.device) && - Objects.equals(this.userAgent, browserDetails.userAgent) && - Objects.equals(this.botProbability, browserDetails.botProbability); + Objects.equals(this.userAgent, browserDetails.userAgent); } @Override public int hashCode() { - return Objects.hash(browserName, browserMajorVersion, browserFullVersion, os, osVersion, device, userAgent, botProbability); + return Objects.hash(browserName, browserMajorVersion, browserFullVersion, os, osVersion, device, userAgent); } @Override @@ -301,7 +270,6 @@ public String toString() { sb.append(" osVersion: ").append(toIndentedString(osVersion)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n"); - sb.append(" botProbability: ").append(toIndentedString(botProbability)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java b/sdk/src/main/java/com/fingerprint/model/ClonedApp.java similarity index 65% rename from sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java rename to sdk/src/main/java/com/fingerprint/model/ClonedApp.java index 3f92763f..b7b3cb4d 100644 --- a/sdk/src/main/java/com/fingerprint/model/ClonedAppResult.java +++ b/sdk/src/main/java/com/fingerprint/model/ClonedApp.java @@ -12,32 +12,32 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * ClonedAppResult + * ClonedApp */ @JsonPropertyOrder({ - ClonedAppResult.JSON_PROPERTY_RESULT + ClonedApp.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ClonedAppResult { +public class ClonedApp { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public ClonedAppResult() { + public ClonedApp() { } - public ClonedAppResult result(Boolean result) { + public ClonedApp result(Boolean result) { this.result = result; return this; } /** - * Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. + * Android specific cloned application detection. There are 2 values: * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android. * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. ") + @Schema(required = true, description = "Android specific cloned application detection. There are 2 values: * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this ClonedAppResult object is equal to o. + * Return true if this ClonedApp object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ClonedAppResult clonedAppResult = (ClonedAppResult) o; - return Objects.equals(this.result, clonedAppResult.result); + ClonedApp clonedApp = (ClonedApp) o; + return Objects.equals(this.result, clonedApp.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ClonedAppResult {\n"); + sb.append("class ClonedApp {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java b/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java deleted file mode 100644 index 17cf8bcf..00000000 --- a/sdk/src/main/java/com/fingerprint/model/Common403ErrorResponse.java +++ /dev/null @@ -1,170 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * Common403ErrorResponse - */ - - -@JsonPropertyOrder({ - Common403ErrorResponse.JSON_PROPERTY_CODE, - Common403ErrorResponse.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class Common403ErrorResponse { - /** - * Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application - */ - public enum CodeEnum { - TOKEN_REQUIRED("TokenRequired"), - - TOKEN_NOT_FOUND("TokenNotFound"), - - SUBSCRIPTION_NOT_ACTIVE("SubscriptionNotActive"), - - WRONG_REGION("WrongRegion"), - - FEATURE_NOT_ENABLED("FeatureNotEnabled"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public Common403ErrorResponse() { - } - - public Common403ErrorResponse code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "TokenRequired", required = true, description = "Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public Common403ErrorResponse message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "secret key is required", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this Common403ErrorResponse object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Common403ErrorResponse common403ErrorResponse = (Common403ErrorResponse) o; - return Objects.equals(this.code, common403ErrorResponse.code) && - Objects.equals(this.message, common403ErrorResponse.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Common403ErrorResponse {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java b/sdk/src/main/java/com/fingerprint/model/DeprecatedGeolocation.java similarity index 70% rename from sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java rename to sdk/src/main/java/com/fingerprint/model/DeprecatedGeolocation.java index fc4d496c..a2b638fe 100644 --- a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocation.java +++ b/sdk/src/main/java/com/fingerprint/model/DeprecatedGeolocation.java @@ -6,9 +6,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.DeprecatedIPLocationCity; -import com.fingerprint.model.Location; -import com.fingerprint.model.Subdivision; +import com.fingerprint.model.GeolocationCity; +import com.fingerprint.model.GeolocationContinent; +import com.fingerprint.model.GeolocationCountry; +import com.fingerprint.model.GeolocationSubdivision; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -17,24 +18,24 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. + * This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information. * @deprecated */ @Deprecated -@Schema(description = "This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information.") +@Schema(description = "This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information.") @JsonPropertyOrder({ - DeprecatedIPLocation.JSON_PROPERTY_ACCURACY_RADIUS, - DeprecatedIPLocation.JSON_PROPERTY_LATITUDE, - DeprecatedIPLocation.JSON_PROPERTY_LONGITUDE, - DeprecatedIPLocation.JSON_PROPERTY_POSTAL_CODE, - DeprecatedIPLocation.JSON_PROPERTY_TIMEZONE, - DeprecatedIPLocation.JSON_PROPERTY_CITY, - DeprecatedIPLocation.JSON_PROPERTY_COUNTRY, - DeprecatedIPLocation.JSON_PROPERTY_CONTINENT, - DeprecatedIPLocation.JSON_PROPERTY_SUBDIVISIONS + DeprecatedGeolocation.JSON_PROPERTY_ACCURACY_RADIUS, + DeprecatedGeolocation.JSON_PROPERTY_LATITUDE, + DeprecatedGeolocation.JSON_PROPERTY_LONGITUDE, + DeprecatedGeolocation.JSON_PROPERTY_POSTAL_CODE, + DeprecatedGeolocation.JSON_PROPERTY_TIMEZONE, + DeprecatedGeolocation.JSON_PROPERTY_CITY, + DeprecatedGeolocation.JSON_PROPERTY_COUNTRY, + DeprecatedGeolocation.JSON_PROPERTY_CONTINENT, + DeprecatedGeolocation.JSON_PROPERTY_SUBDIVISIONS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class DeprecatedIPLocation { +public class DeprecatedGeolocation { public static final String JSON_PROPERTY_ACCURACY_RADIUS = "accuracyRadius"; private Integer accuracyRadius; @@ -51,21 +52,21 @@ public class DeprecatedIPLocation { private String timezone; public static final String JSON_PROPERTY_CITY = "city"; - private DeprecatedIPLocationCity city; + private GeolocationCity city; public static final String JSON_PROPERTY_COUNTRY = "country"; - private Location country; + private GeolocationCountry country; public static final String JSON_PROPERTY_CONTINENT = "continent"; - private Location continent; + private GeolocationContinent continent; public static final String JSON_PROPERTY_SUBDIVISIONS = "subdivisions"; - private List subdivisions = null; + private List subdivisions = null; - public DeprecatedIPLocation() { + public DeprecatedGeolocation() { } - public DeprecatedIPLocation accuracyRadius(Integer accuracyRadius) { + public DeprecatedGeolocation accuracyRadius(Integer accuracyRadius) { this.accuracyRadius = accuracyRadius; return this; } @@ -92,7 +93,7 @@ public void setAccuracyRadius(Integer accuracyRadius) { } - public DeprecatedIPLocation latitude(Double latitude) { + public DeprecatedGeolocation latitude(Double latitude) { this.latitude = latitude; return this; } @@ -120,7 +121,7 @@ public void setLatitude(Double latitude) { } - public DeprecatedIPLocation longitude(Double longitude) { + public DeprecatedGeolocation longitude(Double longitude) { this.longitude = longitude; return this; } @@ -148,7 +149,7 @@ public void setLongitude(Double longitude) { } - public DeprecatedIPLocation postalCode(String postalCode) { + public DeprecatedGeolocation postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -174,7 +175,7 @@ public void setPostalCode(String postalCode) { } - public DeprecatedIPLocation timezone(String timezone) { + public DeprecatedGeolocation timezone(String timezone) { this.timezone = timezone; return this; } @@ -200,7 +201,7 @@ public void setTimezone(String timezone) { } - public DeprecatedIPLocation city(DeprecatedIPLocationCity city) { + public DeprecatedGeolocation city(GeolocationCity city) { this.city = city; return this; } @@ -214,19 +215,19 @@ public DeprecatedIPLocation city(DeprecatedIPLocationCity city) { @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeprecatedIPLocationCity getCity() { + public GeolocationCity getCity() { return city; } @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCity(DeprecatedIPLocationCity city) { + public void setCity(GeolocationCity city) { this.city = city; } - public DeprecatedIPLocation country(Location country) { + public DeprecatedGeolocation country(GeolocationCountry country) { this.country = country; return this; } @@ -240,19 +241,19 @@ public DeprecatedIPLocation country(Location country) { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Location getCountry() { + public GeolocationCountry getCountry() { return country; } @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(Location country) { + public void setCountry(GeolocationCountry country) { this.country = country; } - public DeprecatedIPLocation continent(Location continent) { + public DeprecatedGeolocation continent(GeolocationContinent continent) { this.continent = continent; return this; } @@ -266,24 +267,24 @@ public DeprecatedIPLocation continent(Location continent) { @JsonProperty(JSON_PROPERTY_CONTINENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Location getContinent() { + public GeolocationContinent getContinent() { return continent; } @JsonProperty(JSON_PROPERTY_CONTINENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinent(Location continent) { + public void setContinent(GeolocationContinent continent) { this.continent = continent; } - public DeprecatedIPLocation subdivisions(List subdivisions) { + public DeprecatedGeolocation subdivisions(List subdivisions) { this.subdivisions = subdivisions; return this; } - public DeprecatedIPLocation addsubdivisionsItem(Subdivision subdivisionsItem) { + public DeprecatedGeolocation addsubdivisionsItem(GeolocationSubdivision subdivisionsItem) { if (this.subdivisions == null) { this.subdivisions = new ArrayList<>(); } @@ -300,20 +301,20 @@ public DeprecatedIPLocation addsubdivisionsItem(Subdivision subdivisionsItem) { @JsonProperty(JSON_PROPERTY_SUBDIVISIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSubdivisions() { + public List getSubdivisions() { return subdivisions; } @JsonProperty(JSON_PROPERTY_SUBDIVISIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubdivisions(List subdivisions) { + public void setSubdivisions(List subdivisions) { this.subdivisions = subdivisions; } /** - * Return true if this DeprecatedIPLocation object is equal to o. + * Return true if this DeprecatedGeolocation object is equal to o. */ @Override public boolean equals(Object o) { @@ -323,16 +324,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeprecatedIPLocation deprecatedIPLocation = (DeprecatedIPLocation) o; - return Objects.equals(this.accuracyRadius, deprecatedIPLocation.accuracyRadius) && - Objects.equals(this.latitude, deprecatedIPLocation.latitude) && - Objects.equals(this.longitude, deprecatedIPLocation.longitude) && - Objects.equals(this.postalCode, deprecatedIPLocation.postalCode) && - Objects.equals(this.timezone, deprecatedIPLocation.timezone) && - Objects.equals(this.city, deprecatedIPLocation.city) && - Objects.equals(this.country, deprecatedIPLocation.country) && - Objects.equals(this.continent, deprecatedIPLocation.continent) && - Objects.equals(this.subdivisions, deprecatedIPLocation.subdivisions); + DeprecatedGeolocation deprecatedGeolocation = (DeprecatedGeolocation) o; + return Objects.equals(this.accuracyRadius, deprecatedGeolocation.accuracyRadius) && + Objects.equals(this.latitude, deprecatedGeolocation.latitude) && + Objects.equals(this.longitude, deprecatedGeolocation.longitude) && + Objects.equals(this.postalCode, deprecatedGeolocation.postalCode) && + Objects.equals(this.timezone, deprecatedGeolocation.timezone) && + Objects.equals(this.city, deprecatedGeolocation.city) && + Objects.equals(this.country, deprecatedGeolocation.country) && + Objects.equals(this.continent, deprecatedGeolocation.continent) && + Objects.equals(this.subdivisions, deprecatedGeolocation.subdivisions); } @Override @@ -343,7 +344,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeprecatedIPLocation {\n"); + sb.append("class DeprecatedGeolocation {\n"); sb.append(" accuracyRadius: ").append(toIndentedString(accuracyRadius)).append("\n"); sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/DeveloperToolsResult.java b/sdk/src/main/java/com/fingerprint/model/DeveloperTools.java similarity index 76% rename from sdk/src/main/java/com/fingerprint/model/DeveloperToolsResult.java rename to sdk/src/main/java/com/fingerprint/model/DeveloperTools.java index c083d3a4..353cb5e4 100644 --- a/sdk/src/main/java/com/fingerprint/model/DeveloperToolsResult.java +++ b/sdk/src/main/java/com/fingerprint/model/DeveloperTools.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * DeveloperToolsResult + * DeveloperTools */ @JsonPropertyOrder({ - DeveloperToolsResult.JSON_PROPERTY_RESULT + DeveloperTools.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class DeveloperToolsResult { +public class DeveloperTools { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public DeveloperToolsResult() { + public DeveloperTools() { } - public DeveloperToolsResult result(Boolean result) { + public DeveloperTools result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public DeveloperToolsResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. ") + @Schema(required = true, description = "`true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this DeveloperToolsResult object is equal to o. + * Return true if this DeveloperTools object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeveloperToolsResult developerToolsResult = (DeveloperToolsResult) o; - return Objects.equals(this.result, developerToolsResult.result); + DeveloperTools developerTools = (DeveloperTools) o; + return Objects.equals(this.result, developerTools.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeveloperToolsResult {\n"); + sb.append("class DeveloperTools {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java b/sdk/src/main/java/com/fingerprint/model/Emulator.java similarity index 69% rename from sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java rename to sdk/src/main/java/com/fingerprint/model/Emulator.java index 4e326771..df59c86b 100644 --- a/sdk/src/main/java/com/fingerprint/model/JailbrokenResult.java +++ b/sdk/src/main/java/com/fingerprint/model/Emulator.java @@ -12,32 +12,32 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * JailbrokenResult + * Emulator */ @JsonPropertyOrder({ - JailbrokenResult.JSON_PROPERTY_RESULT + Emulator.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class JailbrokenResult { +public class Emulator { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public JailbrokenResult() { + public Emulator() { } - public JailbrokenResult result(Boolean result) { + public Emulator result(Boolean result) { this.result = result; return this; } /** - * iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. + * Android specific emulator detection. There are 2 values: * `true` - Emulated environment detected (e.g. launch inside of AVD). * `false` - No signs of emulated environment detected or the client is not Android. * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. ") + @Schema(required = true, description = "Android specific emulator detection. There are 2 values: * `true` - Emulated environment detected (e.g. launch inside of AVD). * `false` - No signs of emulated environment detected or the client is not Android. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this JailbrokenResult object is equal to o. + * Return true if this Emulator object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - JailbrokenResult jailbrokenResult = (JailbrokenResult) o; - return Objects.equals(this.result, jailbrokenResult.result); + Emulator emulator = (Emulator) o; + return Objects.equals(this.result, emulator.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class JailbrokenResult {\n"); + sb.append("class Emulator {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/Error.java b/sdk/src/main/java/com/fingerprint/model/Error.java index 891f5076..2974cb79 100644 --- a/sdk/src/main/java/com/fingerprint/model/Error.java +++ b/sdk/src/main/java/com/fingerprint/model/Error.java @@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.ErrorCode; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; @@ -17,14 +18,13 @@ @JsonPropertyOrder({ - Error.JSON_PROPERTY_NAME, + Error.JSON_PROPERTY_CODE, Error.JSON_PROPERTY_MESSAGE }) -@JsonTypeName("error") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class Error { - public static final String JSON_PROPERTY_NAME = "name"; - private String name; + public static final String JSON_PROPERTY_CODE = "code"; + private ErrorCode code; public static final String JSON_PROPERTY_MESSAGE = "message"; private String message; @@ -32,29 +32,29 @@ public class Error { public Error() { } - public Error name(String name) { - this.name = name; + public Error code(ErrorCode code) { + this.code = code; return this; } /** - * Get name - * @return name + * Get code + * @return code **/ @jakarta.annotation.Nonnull @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; + public ErrorCode getCode() { + return code; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { - this.name = name; + public void setCode(ErrorCode code) { + this.code = code; } @@ -85,7 +85,7 @@ public void setMessage(String message) { /** - * Return true if this error object is equal to o. + * Return true if this Error object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,20 +96,20 @@ public boolean equals(Object o) { return false; } Error error = (Error) o; - return Objects.equals(this.name, error.name) && + return Objects.equals(this.code, error.code) && Objects.equals(this.message, error.message); } @Override public int hashCode() { - return Objects.hash(name, message); + return Objects.hash(code, message); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCode.java b/sdk/src/main/java/com/fingerprint/model/ErrorCode.java new file mode 100644 index 00000000..fe8f5f99 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ErrorCode.java @@ -0,0 +1,66 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Error code: * `RequestCannotBeParsed` - the query parameters or JSON payload contains some errors that prevented us from parsing it (wrong type/surpassed limits). * `TokenRequired` - `Auth-API-Key` header is missing or empty. * `TokenNotFound` - no Fingerprint application found for specified secret key. * `SubscriptionNotActive` - Fingerprint application is not active. * `WrongRegion` - server and application region differ. * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application. * `RequestNotFound` - the specified request ID was not found. It never existed, expired, or it has been deleted. * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. * `TooManyRequests` - the limit on secret API key requests per second has been exceeded. * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded. * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. * `Failed` - internal server error. + */ +public enum ErrorCode { + + REQUEST_CANNOT_BE_PARSED("RequestCannotBeParsed"), + + TOKEN_REQUIRED("TokenRequired"), + + TOKEN_NOT_FOUND("TokenNotFound"), + + SUBSCRIPTION_NOT_ACTIVE("SubscriptionNotActive"), + + WRONG_REGION("WrongRegion"), + + FEATURE_NOT_ENABLED("FeatureNotEnabled"), + + REQUEST_NOT_FOUND("RequestNotFound"), + + VISITOR_NOT_FOUND("VisitorNotFound"), + + TOO_MANY_REQUESTS("TooManyRequests"), + + _429_TOO_MANY_REQUESTS("429 Too Many Requests"), + + STATE_NOT_READY("StateNotReady"), + + FAILED("Failed"); + + private String value; + + ErrorCode(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ErrorCode fromValue(String value) { + for (ErrorCode b : ErrorCode.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java deleted file mode 100644 index 9f8db8f2..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorCommon403Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.Common403ErrorResponse; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorCommon403Response - */ - - -@JsonPropertyOrder({ - ErrorCommon403Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorCommon403Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private Common403ErrorResponse error; - - public ErrorCommon403Response() { - } - - public ErrorCommon403Response error(Common403ErrorResponse error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Common403ErrorResponse getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(Common403ErrorResponse error) { - this.error = error; - } - - - /** - * Return true if this ErrorCommon403Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorCommon403Response errorCommon403Response = (ErrorCommon403Response) o; - return Objects.equals(this.error, errorCommon403Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorCommon403Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java deleted file mode 100644 index 9a6fbcec..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ErrorCommon429ResponseError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorCommon429Response - */ - - -@JsonPropertyOrder({ - ErrorCommon429Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorCommon429Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorCommon429ResponseError error; - - public ErrorCommon429Response() { - } - - public ErrorCommon429Response error(ErrorCommon429ResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ErrorCommon429ResponseError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ErrorCommon429ResponseError error) { - this.error = error; - } - - - /** - * Return true if this ErrorCommon429Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorCommon429Response errorCommon429Response = (ErrorCommon429Response) o; - return Objects.equals(this.error, errorCommon429Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorCommon429Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java deleted file mode 100644 index 67c08bec..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorCommon429ResponseError.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorCommon429ResponseError - */ - - -@JsonPropertyOrder({ - ErrorCommon429ResponseError.JSON_PROPERTY_CODE, - ErrorCommon429ResponseError.JSON_PROPERTY_MESSAGE -}) -@JsonTypeName("ErrorCommon429Response_error") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorCommon429ResponseError { - /** - * Error code: * `TooManyRequests` - The request is throttled. - */ - public enum CodeEnum { - TOO_MANY_REQUESTS("TooManyRequests"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ErrorCommon429ResponseError() { - } - - public ErrorCommon429ResponseError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `TooManyRequests` - The request is throttled. - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "TooManyRequests", required = true, description = "Error code: * `TooManyRequests` - The request is throttled. ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ErrorCommon429ResponseError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "request throttled", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ErrorCommon429Response_error object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorCommon429ResponseError errorCommon429ResponseError = (ErrorCommon429ResponseError) o; - return Objects.equals(this.code, errorCommon429ResponseError.code) && - Objects.equals(this.message, errorCommon429ResponseError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorCommon429ResponseError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java deleted file mode 100644 index b069577f..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ErrorEvent404ResponseError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorEvent404Response - */ - - -@JsonPropertyOrder({ - ErrorEvent404Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorEvent404Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorEvent404ResponseError error; - - public ErrorEvent404Response() { - } - - public ErrorEvent404Response error(ErrorEvent404ResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ErrorEvent404ResponseError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ErrorEvent404ResponseError error) { - this.error = error; - } - - - /** - * Return true if this ErrorEvent404Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorEvent404Response errorEvent404Response = (ErrorEvent404Response) o; - return Objects.equals(this.error, errorEvent404Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorEvent404Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java deleted file mode 100644 index 2f173110..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorEvent404ResponseError.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorEvent404ResponseError - */ - - -@JsonPropertyOrder({ - ErrorEvent404ResponseError.JSON_PROPERTY_CODE, - ErrorEvent404ResponseError.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorEvent404ResponseError { - /** - * Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. - */ - public enum CodeEnum { - REQUEST_NOT_FOUND("RequestNotFound"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ErrorEvent404ResponseError() { - } - - public ErrorEvent404ResponseError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "RequestNotFound", required = true, description = "Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ErrorEvent404ResponseError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "request id is not found", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ErrorEvent404ResponseError object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorEvent404ResponseError errorEvent404ResponseError = (ErrorEvent404ResponseError) o; - return Objects.equals(this.code, errorEvent404ResponseError.code) && - Objects.equals(this.message, errorEvent404ResponseError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorEvent404ResponseError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java b/sdk/src/main/java/com/fingerprint/model/ErrorPlainResponse.java similarity index 79% rename from sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java rename to sdk/src/main/java/com/fingerprint/model/ErrorPlainResponse.java index 49898939..b5baf68e 100644 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisits403.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorPlainResponse.java @@ -12,32 +12,32 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * ErrorVisits403 + * ErrorPlainResponse */ @JsonPropertyOrder({ - ErrorVisits403.JSON_PROPERTY_ERROR + ErrorPlainResponse.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorVisits403 { +public class ErrorPlainResponse { public static final String JSON_PROPERTY_ERROR = "error"; private String error; - public ErrorVisits403() { + public ErrorPlainResponse() { } - public ErrorVisits403 error(String error) { + public ErrorPlainResponse error(String error) { this.error = error; return this; } /** - * Error text. + * Get error * @return error **/ @jakarta.annotation.Nonnull - @Schema(example = "Forbidden (HTTP 403)", required = true, description = "Error text.") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setError(String error) { /** - * Return true if this ErrorVisits403 object is equal to o. + * Return true if this ErrorPlainResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ErrorVisits403 errorVisits403 = (ErrorVisits403) o; - return Objects.equals(this.error, errorVisits403.error); + ErrorPlainResponse errorPlainResponse = (ErrorPlainResponse) o; + return Objects.equals(this.error, errorPlainResponse.error); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ErrorVisits403 {\n"); + sb.append("class ErrorPlainResponse {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java b/sdk/src/main/java/com/fingerprint/model/ErrorResponse.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java rename to sdk/src/main/java/com/fingerprint/model/ErrorResponse.java index 8c2767a3..26b64b61 100644 --- a/sdk/src/main/java/com/fingerprint/model/TooManyRequestsResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/ErrorResponse.java @@ -6,55 +6,56 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * TooManyRequestsResponse + * ErrorResponse */ @JsonPropertyOrder({ - TooManyRequestsResponse.JSON_PROPERTY_ERROR + ErrorResponse.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class TooManyRequestsResponse { +public class ErrorResponse { public static final String JSON_PROPERTY_ERROR = "error"; - private String error; + private Error error; - public TooManyRequestsResponse() { + public ErrorResponse() { } - public TooManyRequestsResponse error(String error) { + public ErrorResponse error(Error error) { this.error = error; return this; } /** - * Error text. + * Get error * @return error **/ @jakarta.annotation.Nonnull - @Schema(example = "request throttled", required = true, description = "Error text.") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setError(String error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this TooManyRequestsResponse object is equal to o. + * Return true if this ErrorResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +65,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TooManyRequestsResponse tooManyRequestsResponse = (TooManyRequestsResponse) o; - return Objects.equals(this.error, tooManyRequestsResponse.error); + ErrorResponse errorResponse = (ErrorResponse) o; + return Objects.equals(this.error, errorResponse.error); } @Override @@ -76,7 +77,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TooManyRequestsResponse {\n"); + sb.append("class ErrorResponse {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent400Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent400Response.java deleted file mode 100644 index 4bcfdd98..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent400Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ErrorUpdateEvent400ResponseError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorUpdateEvent400Response - */ - - -@JsonPropertyOrder({ - ErrorUpdateEvent400Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorUpdateEvent400Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorUpdateEvent400ResponseError error; - - public ErrorUpdateEvent400Response() { - } - - public ErrorUpdateEvent400Response error(ErrorUpdateEvent400ResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ErrorUpdateEvent400ResponseError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ErrorUpdateEvent400ResponseError error) { - this.error = error; - } - - - /** - * Return true if this ErrorUpdateEvent400Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorUpdateEvent400Response errorUpdateEvent400Response = (ErrorUpdateEvent400Response) o; - return Objects.equals(this.error, errorUpdateEvent400Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorUpdateEvent400Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent400ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent400ResponseError.java deleted file mode 100644 index b2d468d3..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent400ResponseError.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorUpdateEvent400ResponseError - */ - - -@JsonPropertyOrder({ - ErrorUpdateEvent400ResponseError.JSON_PROPERTY_CODE, - ErrorUpdateEvent400ResponseError.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorUpdateEvent400ResponseError { - /** - * Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated - */ - public enum CodeEnum { - REQUEST_CANNOT_BE_PARSED("RequestCannotBeParsed"), - - FAILED("Failed"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ErrorUpdateEvent400ResponseError() { - } - - public ErrorUpdateEvent400ResponseError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "RequestCannotBeParsed", required = true, description = "Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ErrorUpdateEvent400ResponseError message(String message) { - this.message = message; - return this; - } - - /** - * Details about the underlying issue with the input payload - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "suspect flag must be a boolean", required = true, description = "Details about the underlying issue with the input payload") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ErrorUpdateEvent400ResponseError object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorUpdateEvent400ResponseError errorUpdateEvent400ResponseError = (ErrorUpdateEvent400ResponseError) o; - return Objects.equals(this.code, errorUpdateEvent400ResponseError.code) && - Objects.equals(this.message, errorUpdateEvent400ResponseError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorUpdateEvent400ResponseError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent409Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent409Response.java deleted file mode 100644 index cfbfc227..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent409Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ErrorUpdateEvent409ResponseError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorUpdateEvent409Response - */ - - -@JsonPropertyOrder({ - ErrorUpdateEvent409Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorUpdateEvent409Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorUpdateEvent409ResponseError error; - - public ErrorUpdateEvent409Response() { - } - - public ErrorUpdateEvent409Response error(ErrorUpdateEvent409ResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ErrorUpdateEvent409ResponseError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ErrorUpdateEvent409ResponseError error) { - this.error = error; - } - - - /** - * Return true if this ErrorUpdateEvent409Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorUpdateEvent409Response errorUpdateEvent409Response = (ErrorUpdateEvent409Response) o; - return Objects.equals(this.error, errorUpdateEvent409Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorUpdateEvent409Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent409ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent409ResponseError.java deleted file mode 100644 index 48df7799..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorUpdateEvent409ResponseError.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorUpdateEvent409ResponseError - */ - - -@JsonPropertyOrder({ - ErrorUpdateEvent409ResponseError.JSON_PROPERTY_CODE, - ErrorUpdateEvent409ResponseError.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorUpdateEvent409ResponseError { - /** - * Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. - */ - public enum CodeEnum { - STATE_NOT_READY("StateNotReady"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ErrorUpdateEvent409ResponseError() { - } - - public ErrorUpdateEvent409ResponseError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "StateNotReady", required = true, description = "Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ErrorUpdateEvent409ResponseError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "resource is not mutable yet, try again", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ErrorUpdateEvent409ResponseError object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorUpdateEvent409ResponseError errorUpdateEvent409ResponseError = (ErrorUpdateEvent409ResponseError) o; - return Objects.equals(this.code, errorUpdateEvent409ResponseError.code) && - Objects.equals(this.message, errorUpdateEvent409ResponseError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorUpdateEvent409ResponseError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor400Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitor400Response.java deleted file mode 100644 index 83937d5b..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor400Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ErrorVisitor400ResponseError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorVisitor400Response - */ - - -@JsonPropertyOrder({ - ErrorVisitor400Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorVisitor400Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorVisitor400ResponseError error; - - public ErrorVisitor400Response() { - } - - public ErrorVisitor400Response error(ErrorVisitor400ResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ErrorVisitor400ResponseError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ErrorVisitor400ResponseError error) { - this.error = error; - } - - - /** - * Return true if this ErrorVisitor400Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorVisitor400Response errorVisitor400Response = (ErrorVisitor400Response) o; - return Objects.equals(this.error, errorVisitor400Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorVisitor400Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor400ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitor400ResponseError.java deleted file mode 100644 index 3479c7b0..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor400ResponseError.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorVisitor400ResponseError - */ - - -@JsonPropertyOrder({ - ErrorVisitor400ResponseError.JSON_PROPERTY_CODE, - ErrorVisitor400ResponseError.JSON_PROPERTY_MESSAGE -}) -@JsonTypeName("ErrorVisitor400Response_error") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorVisitor400ResponseError { - /** - * Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. - */ - public enum CodeEnum { - REQUEST_CANNOT_BE_PARSED("RequestCannotBeParsed"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ErrorVisitor400ResponseError() { - } - - public ErrorVisitor400ResponseError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "RequestCannotBeParsed", required = true, description = "Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ErrorVisitor400ResponseError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "invalid visitor id", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ErrorVisitor400Response_error object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorVisitor400ResponseError errorVisitor400ResponseError = (ErrorVisitor400ResponseError) o; - return Objects.equals(this.code, errorVisitor400ResponseError.code) && - Objects.equals(this.message, errorVisitor400ResponseError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorVisitor400ResponseError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor404Response.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitor404Response.java deleted file mode 100644 index 19a222cd..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor404Response.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ErrorVisitor404ResponseError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorVisitor404Response - */ - - -@JsonPropertyOrder({ - ErrorVisitor404Response.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorVisitor404Response { - public static final String JSON_PROPERTY_ERROR = "error"; - private ErrorVisitor404ResponseError error; - - public ErrorVisitor404Response() { - } - - public ErrorVisitor404Response error(ErrorVisitor404ResponseError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ErrorVisitor404ResponseError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ErrorVisitor404ResponseError error) { - this.error = error; - } - - - /** - * Return true if this ErrorVisitor404Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorVisitor404Response errorVisitor404Response = (ErrorVisitor404Response) o; - return Objects.equals(this.error, errorVisitor404Response.error); - } - - @Override - public int hashCode() { - return Objects.hash(error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorVisitor404Response {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor404ResponseError.java b/sdk/src/main/java/com/fingerprint/model/ErrorVisitor404ResponseError.java deleted file mode 100644 index 12588372..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ErrorVisitor404ResponseError.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ErrorVisitor404ResponseError - */ - - -@JsonPropertyOrder({ - ErrorVisitor404ResponseError.JSON_PROPERTY_CODE, - ErrorVisitor404ResponseError.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ErrorVisitor404ResponseError { - /** - * Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. - */ - public enum CodeEnum { - VISITOR_NOT_FOUND("VisitorNotFound"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ErrorVisitor404ResponseError() { - } - - public ErrorVisitor404ResponseError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "VisitorNotFound", required = true, description = "Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ErrorVisitor404ResponseError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "visitor not found", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ErrorVisitor404ResponseError object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorVisitor404ResponseError errorVisitor404ResponseError = (ErrorVisitor404ResponseError) o; - return Objects.equals(this.code, errorVisitor404ResponseError.code) && - Objects.equals(this.message, errorVisitor404ResponseError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ErrorVisitor404ResponseError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/EventResponse.java b/sdk/src/main/java/com/fingerprint/model/EventsGetResponse.java similarity index 59% rename from sdk/src/main/java/com/fingerprint/model/EventResponse.java rename to sdk/src/main/java/com/fingerprint/model/EventsGetResponse.java index bd02dd34..92f3e8fb 100644 --- a/sdk/src/main/java/com/fingerprint/model/EventResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/EventsGetResponse.java @@ -6,8 +6,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.ProductsResponse; +import com.fingerprint.model.Products; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; @@ -19,21 +18,17 @@ @Schema(description = "Contains results from all activated products - Fingerprint Pro, Bot Detection, and others.") @JsonPropertyOrder({ - EventResponse.JSON_PROPERTY_PRODUCTS, - EventResponse.JSON_PROPERTY_ERROR + EventsGetResponse.JSON_PROPERTY_PRODUCTS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class EventResponse { +public class EventsGetResponse { public static final String JSON_PROPERTY_PRODUCTS = "products"; - private ProductsResponse products; + private Products products; - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public EventResponse() { + public EventsGetResponse() { } - public EventResponse products(ProductsResponse products) { + public EventsGetResponse products(Products products) { this.products = products; return this; } @@ -47,46 +42,20 @@ public EventResponse products(ProductsResponse products) { @JsonProperty(JSON_PROPERTY_PRODUCTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ProductsResponse getProducts() { + public Products getProducts() { return products; } @JsonProperty(JSON_PROPERTY_PRODUCTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setProducts(ProductsResponse products) { + public void setProducts(Products products) { this.products = products; } - public EventResponse error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - /** - * Return true if this EventResponse object is equal to o. + * Return true if this EventsGetResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,22 +65,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - EventResponse eventResponse = (EventResponse) o; - return Objects.equals(this.products, eventResponse.products) && - Objects.equals(this.error, eventResponse.error); + EventsGetResponse eventsGetResponse = (EventsGetResponse) o; + return Objects.equals(this.products, eventsGetResponse.products); } @Override public int hashCode() { - return Objects.hash(products, error); + return Objects.hash(products); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class EventResponse {\n"); + sb.append("class EventsGetResponse {\n"); sb.append(" products: ").append(toIndentedString(products)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/EventUpdateRequest.java b/sdk/src/main/java/com/fingerprint/model/EventsUpdateRequest.java similarity index 67% rename from sdk/src/main/java/com/fingerprint/model/EventUpdateRequest.java rename to sdk/src/main/java/com/fingerprint/model/EventsUpdateRequest.java index 31fe9a99..90293e82 100644 --- a/sdk/src/main/java/com/fingerprint/model/EventUpdateRequest.java +++ b/sdk/src/main/java/com/fingerprint/model/EventsUpdateRequest.java @@ -7,35 +7,37 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * EventUpdateRequest + * EventsUpdateRequest */ @JsonPropertyOrder({ - EventUpdateRequest.JSON_PROPERTY_LINKED_ID, - EventUpdateRequest.JSON_PROPERTY_TAG, - EventUpdateRequest.JSON_PROPERTY_SUSPECT + EventsUpdateRequest.JSON_PROPERTY_LINKED_ID, + EventsUpdateRequest.JSON_PROPERTY_TAG, + EventsUpdateRequest.JSON_PROPERTY_SUSPECT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class EventUpdateRequest { +public class EventsUpdateRequest { public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; private String linkedId; public static final String JSON_PROPERTY_TAG = "tag"; - private Object tag; + private Map tag = null; public static final String JSON_PROPERTY_SUSPECT = "suspect"; private Boolean suspect; - public EventUpdateRequest() { + public EventsUpdateRequest() { } - public EventUpdateRequest linkedId(String linkedId) { + public EventsUpdateRequest linkedId(String linkedId) { this.linkedId = linkedId; return this; } @@ -61,33 +63,41 @@ public void setLinkedId(String linkedId) { } - public EventUpdateRequest tag(Object tag) { + public EventsUpdateRequest tag(Map tag) { this.tag = tag; return this; } + public EventsUpdateRequest puttagItem(String key, Object tagItem) { + if (this.tag == null) { + this.tag = new HashMap<>(); + } + this.tag.put(key, tagItem); + return this; + } + /** - * Full `tag` value to be set to the existing event. Replaces any existing `tag` payload completely. + * A customer-provided value or an object that was sent with identification request. * @return tag **/ @jakarta.annotation.Nullable - @Schema(description = "Full `tag` value to be set to the existing event. Replaces any existing `tag` payload completely.") + @Schema(description = "A customer-provided value or an object that was sent with identification request.") @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public Object getTag() { + public Map getTag() { return tag; } @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(Object tag) { + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setTag(Map tag) { this.tag = tag; } - public EventUpdateRequest suspect(Boolean suspect) { + public EventsUpdateRequest suspect(Boolean suspect) { this.suspect = suspect; return this; } @@ -114,7 +124,7 @@ public void setSuspect(Boolean suspect) { /** - * Return true if this EventUpdateRequest object is equal to o. + * Return true if this EventsUpdateRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,10 +134,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - EventUpdateRequest eventUpdateRequest = (EventUpdateRequest) o; - return Objects.equals(this.linkedId, eventUpdateRequest.linkedId) && - Objects.equals(this.tag, eventUpdateRequest.tag) && - Objects.equals(this.suspect, eventUpdateRequest.suspect); + EventsUpdateRequest eventsUpdateRequest = (EventsUpdateRequest) o; + return Objects.equals(this.linkedId, eventsUpdateRequest.linkedId) && + Objects.equals(this.tag, eventsUpdateRequest.tag) && + Objects.equals(this.suspect, eventsUpdateRequest.suspect); } @Override @@ -138,7 +148,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class EventUpdateRequest {\n"); + sb.append("class EventsUpdateRequest {\n"); sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); sb.append(" suspect: ").append(toIndentedString(suspect)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java b/sdk/src/main/java/com/fingerprint/model/FactoryReset.java similarity index 64% rename from sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java rename to sdk/src/main/java/com/fingerprint/model/FactoryReset.java index 8c852b25..71e11566 100644 --- a/sdk/src/main/java/com/fingerprint/model/FactoryResetResult.java +++ b/sdk/src/main/java/com/fingerprint/model/FactoryReset.java @@ -13,36 +13,36 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * FactoryResetResult + * FactoryReset */ @JsonPropertyOrder({ - FactoryResetResult.JSON_PROPERTY_TIME, - FactoryResetResult.JSON_PROPERTY_TIMESTAMP + FactoryReset.JSON_PROPERTY_TIME, + FactoryReset.JSON_PROPERTY_TIMESTAMP }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class FactoryResetResult { +public class FactoryReset { public static final String JSON_PROPERTY_TIME = "time"; private OffsetDateTime time; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private Long timestamp; - public FactoryResetResult() { + public FactoryReset() { } - public FactoryResetResult time(OffsetDateTime time) { + public FactoryReset time(OffsetDateTime time) { this.time = time; return this; } /** - * Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. + * Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. * @return time **/ @jakarta.annotation.Nonnull - @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. ") + @Schema(required = true, description = "Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. ") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -58,17 +58,17 @@ public void setTime(OffsetDateTime time) { } - public FactoryResetResult timestamp(Long timestamp) { + public FactoryReset timestamp(Long timestamp) { this.timestamp = timestamp; return this; } /** - * This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. + * This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. * @return timestamp **/ @jakarta.annotation.Nonnull - @Schema(example = "1654815517198", required = true, description = "This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. ") + @Schema(required = true, description = "This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. ") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -85,7 +85,7 @@ public void setTimestamp(Long timestamp) { /** - * Return true if this FactoryResetResult object is equal to o. + * Return true if this FactoryReset object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,9 +95,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FactoryResetResult factoryResetResult = (FactoryResetResult) o; - return Objects.equals(this.time, factoryResetResult.time) && - Objects.equals(this.timestamp, factoryResetResult.timestamp); + FactoryReset factoryReset = (FactoryReset) o; + return Objects.equals(this.time, factoryReset.time) && + Objects.equals(this.timestamp, factoryReset.timestamp); } @Override @@ -108,7 +108,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FactoryResetResult {\n"); + sb.append("class FactoryReset {\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/FridaResult.java b/sdk/src/main/java/com/fingerprint/model/Frida.java similarity index 73% rename from sdk/src/main/java/com/fingerprint/model/FridaResult.java rename to sdk/src/main/java/com/fingerprint/model/Frida.java index d6957623..ac72c188 100644 --- a/sdk/src/main/java/com/fingerprint/model/FridaResult.java +++ b/sdk/src/main/java/com/fingerprint/model/Frida.java @@ -12,32 +12,32 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * FridaResult + * Frida */ @JsonPropertyOrder({ - FridaResult.JSON_PROPERTY_RESULT + Frida.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class FridaResult { +public class Frida { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public FridaResult() { + public Frida() { } - public FridaResult result(Boolean result) { + public Frida result(Boolean result) { this.result = result; return this; } /** - * [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. + * [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device. * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "[Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. ") + @Schema(required = true, description = "[Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this FridaResult object is equal to o. + * Return true if this Frida object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FridaResult fridaResult = (FridaResult) o; - return Objects.equals(this.result, fridaResult.result); + Frida frida = (Frida) o; + return Objects.equals(this.result, frida.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FridaResult {\n"); + sb.append("class Frida {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/IPLocation.java b/sdk/src/main/java/com/fingerprint/model/Geolocation.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/IPLocation.java rename to sdk/src/main/java/com/fingerprint/model/Geolocation.java index 4e91eb7c..5bb0ac15 100644 --- a/sdk/src/main/java/com/fingerprint/model/IPLocation.java +++ b/sdk/src/main/java/com/fingerprint/model/Geolocation.java @@ -6,9 +6,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IPLocationCity; -import com.fingerprint.model.Location; -import com.fingerprint.model.Subdivision; +import com.fingerprint.model.GeolocationCity; +import com.fingerprint.model.GeolocationContinent; +import com.fingerprint.model.GeolocationCountry; +import com.fingerprint.model.GeolocationSubdivision; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -17,23 +18,23 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * IPLocation + * Geolocation */ @JsonPropertyOrder({ - IPLocation.JSON_PROPERTY_ACCURACY_RADIUS, - IPLocation.JSON_PROPERTY_LATITUDE, - IPLocation.JSON_PROPERTY_LONGITUDE, - IPLocation.JSON_PROPERTY_POSTAL_CODE, - IPLocation.JSON_PROPERTY_TIMEZONE, - IPLocation.JSON_PROPERTY_CITY, - IPLocation.JSON_PROPERTY_COUNTRY, - IPLocation.JSON_PROPERTY_CONTINENT, - IPLocation.JSON_PROPERTY_SUBDIVISIONS + Geolocation.JSON_PROPERTY_ACCURACY_RADIUS, + Geolocation.JSON_PROPERTY_LATITUDE, + Geolocation.JSON_PROPERTY_LONGITUDE, + Geolocation.JSON_PROPERTY_POSTAL_CODE, + Geolocation.JSON_PROPERTY_TIMEZONE, + Geolocation.JSON_PROPERTY_CITY, + Geolocation.JSON_PROPERTY_COUNTRY, + Geolocation.JSON_PROPERTY_CONTINENT, + Geolocation.JSON_PROPERTY_SUBDIVISIONS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IPLocation { +public class Geolocation { public static final String JSON_PROPERTY_ACCURACY_RADIUS = "accuracyRadius"; private Integer accuracyRadius; @@ -50,21 +51,21 @@ public class IPLocation { private String timezone; public static final String JSON_PROPERTY_CITY = "city"; - private IPLocationCity city; + private GeolocationCity city; public static final String JSON_PROPERTY_COUNTRY = "country"; - private Location country; + private GeolocationCountry country; public static final String JSON_PROPERTY_CONTINENT = "continent"; - private Location continent; + private GeolocationContinent continent; public static final String JSON_PROPERTY_SUBDIVISIONS = "subdivisions"; - private List subdivisions = null; + private List subdivisions = null; - public IPLocation() { + public Geolocation() { } - public IPLocation accuracyRadius(Integer accuracyRadius) { + public Geolocation accuracyRadius(Integer accuracyRadius) { this.accuracyRadius = accuracyRadius; return this; } @@ -75,7 +76,7 @@ public IPLocation accuracyRadius(Integer accuracyRadius) { * @return accuracyRadius **/ @jakarta.annotation.Nullable - @Schema(example = "1000", description = "The IP address is likely to be within this radius (in km) of the specified location.") + @Schema(description = "The IP address is likely to be within this radius (in km) of the specified location.") @JsonProperty(JSON_PROPERTY_ACCURACY_RADIUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -91,7 +92,7 @@ public void setAccuracyRadius(Integer accuracyRadius) { } - public IPLocation latitude(Double latitude) { + public Geolocation latitude(Double latitude) { this.latitude = latitude; return this; } @@ -103,7 +104,7 @@ public IPLocation latitude(Double latitude) { * @return latitude **/ @jakarta.annotation.Nullable - @Schema(example = "37.75", description = "") + @Schema(description = "") @JsonProperty(JSON_PROPERTY_LATITUDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -119,7 +120,7 @@ public void setLatitude(Double latitude) { } - public IPLocation longitude(Double longitude) { + public Geolocation longitude(Double longitude) { this.longitude = longitude; return this; } @@ -131,7 +132,7 @@ public IPLocation longitude(Double longitude) { * @return longitude **/ @jakarta.annotation.Nullable - @Schema(example = "-97.82", description = "") + @Schema(description = "") @JsonProperty(JSON_PROPERTY_LONGITUDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,7 +148,7 @@ public void setLongitude(Double longitude) { } - public IPLocation postalCode(String postalCode) { + public Geolocation postalCode(String postalCode) { this.postalCode = postalCode; return this; } @@ -157,7 +158,7 @@ public IPLocation postalCode(String postalCode) { * @return postalCode **/ @jakarta.annotation.Nullable - @Schema(example = "130 00", description = "") + @Schema(description = "") @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -173,7 +174,7 @@ public void setPostalCode(String postalCode) { } - public IPLocation timezone(String timezone) { + public Geolocation timezone(String timezone) { this.timezone = timezone; return this; } @@ -183,7 +184,7 @@ public IPLocation timezone(String timezone) { * @return timezone **/ @jakarta.annotation.Nullable - @Schema(example = "America/Chicago", description = "") + @Schema(description = "") @JsonProperty(JSON_PROPERTY_TIMEZONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +200,7 @@ public void setTimezone(String timezone) { } - public IPLocation city(IPLocationCity city) { + public Geolocation city(GeolocationCity city) { this.city = city; return this; } @@ -213,19 +214,19 @@ public IPLocation city(IPLocationCity city) { @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IPLocationCity getCity() { + public GeolocationCity getCity() { return city; } @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCity(IPLocationCity city) { + public void setCity(GeolocationCity city) { this.city = city; } - public IPLocation country(Location country) { + public Geolocation country(GeolocationCountry country) { this.country = country; return this; } @@ -239,19 +240,19 @@ public IPLocation country(Location country) { @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Location getCountry() { + public GeolocationCountry getCountry() { return country; } @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCountry(Location country) { + public void setCountry(GeolocationCountry country) { this.country = country; } - public IPLocation continent(Location continent) { + public Geolocation continent(GeolocationContinent continent) { this.continent = continent; return this; } @@ -265,24 +266,24 @@ public IPLocation continent(Location continent) { @JsonProperty(JSON_PROPERTY_CONTINENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Location getContinent() { + public GeolocationContinent getContinent() { return continent; } @JsonProperty(JSON_PROPERTY_CONTINENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContinent(Location continent) { + public void setContinent(GeolocationContinent continent) { this.continent = continent; } - public IPLocation subdivisions(List subdivisions) { + public Geolocation subdivisions(List subdivisions) { this.subdivisions = subdivisions; return this; } - public IPLocation addsubdivisionsItem(Subdivision subdivisionsItem) { + public Geolocation addsubdivisionsItem(GeolocationSubdivision subdivisionsItem) { if (this.subdivisions == null) { this.subdivisions = new ArrayList<>(); } @@ -299,20 +300,20 @@ public IPLocation addsubdivisionsItem(Subdivision subdivisionsItem) { @JsonProperty(JSON_PROPERTY_SUBDIVISIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSubdivisions() { + public List getSubdivisions() { return subdivisions; } @JsonProperty(JSON_PROPERTY_SUBDIVISIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubdivisions(List subdivisions) { + public void setSubdivisions(List subdivisions) { this.subdivisions = subdivisions; } /** - * Return true if this IPLocation object is equal to o. + * Return true if this Geolocation object is equal to o. */ @Override public boolean equals(Object o) { @@ -322,16 +323,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IPLocation ipLocation = (IPLocation) o; - return Objects.equals(this.accuracyRadius, ipLocation.accuracyRadius) && - Objects.equals(this.latitude, ipLocation.latitude) && - Objects.equals(this.longitude, ipLocation.longitude) && - Objects.equals(this.postalCode, ipLocation.postalCode) && - Objects.equals(this.timezone, ipLocation.timezone) && - Objects.equals(this.city, ipLocation.city) && - Objects.equals(this.country, ipLocation.country) && - Objects.equals(this.continent, ipLocation.continent) && - Objects.equals(this.subdivisions, ipLocation.subdivisions); + Geolocation geolocation = (Geolocation) o; + return Objects.equals(this.accuracyRadius, geolocation.accuracyRadius) && + Objects.equals(this.latitude, geolocation.latitude) && + Objects.equals(this.longitude, geolocation.longitude) && + Objects.equals(this.postalCode, geolocation.postalCode) && + Objects.equals(this.timezone, geolocation.timezone) && + Objects.equals(this.city, geolocation.city) && + Objects.equals(this.country, geolocation.country) && + Objects.equals(this.continent, geolocation.continent) && + Objects.equals(this.subdivisions, geolocation.subdivisions); } @Override @@ -342,7 +343,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IPLocation {\n"); + sb.append("class Geolocation {\n"); sb.append(" accuracyRadius: ").append(toIndentedString(accuracyRadius)).append("\n"); sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/IPLocationCity.java b/sdk/src/main/java/com/fingerprint/model/GeolocationCity.java similarity index 75% rename from sdk/src/main/java/com/fingerprint/model/IPLocationCity.java rename to sdk/src/main/java/com/fingerprint/model/GeolocationCity.java index 045c9391..df4f5821 100644 --- a/sdk/src/main/java/com/fingerprint/model/IPLocationCity.java +++ b/sdk/src/main/java/com/fingerprint/model/GeolocationCity.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * IPLocationCity + * GeolocationCity */ @JsonPropertyOrder({ - IPLocationCity.JSON_PROPERTY_NAME + GeolocationCity.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IPLocationCity { +public class GeolocationCity { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public IPLocationCity() { + public GeolocationCity() { } - public IPLocationCity name(String name) { + public GeolocationCity name(String name) { this.name = name; return this; } @@ -36,10 +36,10 @@ public IPLocationCity name(String name) { * Get name * @return name **/ - @jakarta.annotation.Nullable - @Schema(example = "Prague", description = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -47,14 +47,14 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } /** - * Return true if this IPLocationCity object is equal to o. + * Return true if this GeolocationCity object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IPLocationCity ipLocationCity = (IPLocationCity) o; - return Objects.equals(this.name, ipLocationCity.name); + GeolocationCity geolocationCity = (GeolocationCity) o; + return Objects.equals(this.name, geolocationCity.name); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IPLocationCity {\n"); + sb.append("class GeolocationCity {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/GeolocationContinent.java b/sdk/src/main/java/com/fingerprint/model/GeolocationContinent.java new file mode 100644 index 00000000..9db8a455 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/GeolocationContinent.java @@ -0,0 +1,129 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * GeolocationContinent + */ + + +@JsonPropertyOrder({ + GeolocationContinent.JSON_PROPERTY_CODE, + GeolocationContinent.JSON_PROPERTY_NAME +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class GeolocationContinent { + public static final String JSON_PROPERTY_CODE = "code"; + private String code; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public GeolocationContinent() { + } + + public GeolocationContinent code(String code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(String code) { + this.code = code; + } + + + public GeolocationContinent name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this GeolocationContinent object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GeolocationContinent geolocationContinent = (GeolocationContinent) o; + return Objects.equals(this.code, geolocationContinent.code) && + Objects.equals(this.name, geolocationContinent.name); + } + + @Override + public int hashCode() { + return Objects.hash(code, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GeolocationContinent {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/Location.java b/sdk/src/main/java/com/fingerprint/model/GeolocationCountry.java similarity index 78% rename from sdk/src/main/java/com/fingerprint/model/Location.java rename to sdk/src/main/java/com/fingerprint/model/GeolocationCountry.java index 31fe3305..336c31f7 100644 --- a/sdk/src/main/java/com/fingerprint/model/Location.java +++ b/sdk/src/main/java/com/fingerprint/model/GeolocationCountry.java @@ -12,26 +12,26 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * Location + * GeolocationCountry */ @JsonPropertyOrder({ - Location.JSON_PROPERTY_CODE, - Location.JSON_PROPERTY_NAME + GeolocationCountry.JSON_PROPERTY_CODE, + GeolocationCountry.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class Location { +public class GeolocationCountry { public static final String JSON_PROPERTY_CODE = "code"; private String code; public static final String JSON_PROPERTY_NAME = "name"; private String name; - public Location() { + public GeolocationCountry() { } - public Location code(String code) { + public GeolocationCountry code(String code) { this.code = code; return this; } @@ -41,7 +41,7 @@ public Location code(String code) { * @return code **/ @jakarta.annotation.Nonnull - @Schema(example = "US", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -57,7 +57,7 @@ public void setCode(String code) { } - public Location name(String name) { + public GeolocationCountry name(String name) { this.name = name; return this; } @@ -67,7 +67,7 @@ public Location name(String name) { * @return name **/ @jakarta.annotation.Nonnull - @Schema(example = "United States", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -84,7 +84,7 @@ public void setName(String name) { /** - * Return true if this Location object is equal to o. + * Return true if this GeolocationCountry object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,9 +94,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Location location = (Location) o; - return Objects.equals(this.code, location.code) && - Objects.equals(this.name, location.name); + GeolocationCountry geolocationCountry = (GeolocationCountry) o; + return Objects.equals(this.code, geolocationCountry.code) && + Objects.equals(this.name, geolocationCountry.name); } @Override @@ -107,7 +107,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Location {\n"); + sb.append("class GeolocationCountry {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/Subdivision.java b/sdk/src/main/java/com/fingerprint/model/GeolocationSubdivision.java similarity index 69% rename from sdk/src/main/java/com/fingerprint/model/Subdivision.java rename to sdk/src/main/java/com/fingerprint/model/GeolocationSubdivision.java index e41d9a53..1080ab11 100644 --- a/sdk/src/main/java/com/fingerprint/model/Subdivision.java +++ b/sdk/src/main/java/com/fingerprint/model/GeolocationSubdivision.java @@ -12,26 +12,26 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * Subdivision + * GeolocationSubdivision */ @JsonPropertyOrder({ - Subdivision.JSON_PROPERTY_ISO_CODE, - Subdivision.JSON_PROPERTY_NAME + GeolocationSubdivision.JSON_PROPERTY_ISO_CODE, + GeolocationSubdivision.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class Subdivision { +public class GeolocationSubdivision { public static final String JSON_PROPERTY_ISO_CODE = "isoCode"; private String isoCode; public static final String JSON_PROPERTY_NAME = "name"; private String name; - public Subdivision() { + public GeolocationSubdivision() { } - public Subdivision isoCode(String isoCode) { + public GeolocationSubdivision isoCode(String isoCode) { this.isoCode = isoCode; return this; } @@ -40,10 +40,10 @@ public Subdivision isoCode(String isoCode) { * Get isoCode * @return isoCode **/ - @jakarta.annotation.Nullable - @Schema(example = "10", description = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_ISO_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getIsoCode() { return isoCode; @@ -51,13 +51,13 @@ public String getIsoCode() { @JsonProperty(JSON_PROPERTY_ISO_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIsoCode(String isoCode) { this.isoCode = isoCode; } - public Subdivision name(String name) { + public GeolocationSubdivision name(String name) { this.name = name; return this; } @@ -66,10 +66,10 @@ public Subdivision name(String name) { * Get name * @return name **/ - @jakarta.annotation.Nullable - @Schema(example = "Hlavni mesto Praha", description = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -77,14 +77,14 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } /** - * Return true if this Subdivision object is equal to o. + * Return true if this GeolocationSubdivision object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,9 +94,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Subdivision subdivision = (Subdivision) o; - return Objects.equals(this.isoCode, subdivision.isoCode) && - Objects.equals(this.name, subdivision.name); + GeolocationSubdivision geolocationSubdivision = (GeolocationSubdivision) o; + return Objects.equals(this.isoCode, geolocationSubdivision.isoCode) && + Objects.equals(this.name, geolocationSubdivision.name); } @Override @@ -107,7 +107,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Subdivision {\n"); + sb.append("class GeolocationSubdivision {\n"); sb.append(" isoCode: ").append(toIndentedString(isoCode)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/HighActivityResult.java b/sdk/src/main/java/com/fingerprint/model/HighActivity.java similarity index 70% rename from sdk/src/main/java/com/fingerprint/model/HighActivityResult.java rename to sdk/src/main/java/com/fingerprint/model/HighActivity.java index 5499bf76..d612b02d 100644 --- a/sdk/src/main/java/com/fingerprint/model/HighActivityResult.java +++ b/sdk/src/main/java/com/fingerprint/model/HighActivity.java @@ -6,43 +6,42 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * HighActivityResult + * HighActivity */ @JsonPropertyOrder({ - HighActivityResult.JSON_PROPERTY_RESULT, - HighActivityResult.JSON_PROPERTY_DAILY_REQUESTS + HighActivity.JSON_PROPERTY_RESULT, + HighActivity.JSON_PROPERTY_DAILY_REQUESTS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class HighActivityResult { +public class HighActivity { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; public static final String JSON_PROPERTY_DAILY_REQUESTS = "dailyRequests"; - private BigDecimal dailyRequests; + private Long dailyRequests; - public HighActivityResult() { + public HighActivity() { } - public HighActivityResult result(Boolean result) { + public HighActivity result(Boolean result) { this.result = result; return this; } /** - * Flag indicating whether the request came from a high activity visitor. + * Flag indicating if the request came from a high-activity visitor. * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Flag indicating whether the request came from a high activity visitor.") + @Schema(required = true, description = "Flag indicating if the request came from a high-activity visitor.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -58,7 +57,7 @@ public void setResult(Boolean result) { } - public HighActivityResult dailyRequests(BigDecimal dailyRequests) { + public HighActivity dailyRequests(Long dailyRequests) { this.dailyRequests = dailyRequests; return this; } @@ -69,24 +68,24 @@ public HighActivityResult dailyRequests(BigDecimal dailyRequests) { * @return dailyRequests **/ @jakarta.annotation.Nullable - @Schema(example = "10", description = "Number of requests from the same visitor in the previous day.") + @Schema(description = "Number of requests from the same visitor in the previous day.") @JsonProperty(JSON_PROPERTY_DAILY_REQUESTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getDailyRequests() { + public Long getDailyRequests() { return dailyRequests; } @JsonProperty(JSON_PROPERTY_DAILY_REQUESTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDailyRequests(BigDecimal dailyRequests) { + public void setDailyRequests(Long dailyRequests) { this.dailyRequests = dailyRequests; } /** - * Return true if this HighActivityResult object is equal to o. + * Return true if this HighActivity object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +95,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - HighActivityResult highActivityResult = (HighActivityResult) o; - return Objects.equals(this.result, highActivityResult.result) && - Objects.equals(this.dailyRequests, highActivityResult.dailyRequests); + HighActivity highActivity = (HighActivity) o; + return Objects.equals(this.result, highActivity.result) && + Objects.equals(this.dailyRequests, highActivity.dailyRequests); } @Override @@ -109,7 +108,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class HighActivityResult {\n"); + sb.append("class HighActivity {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" dailyRequests: ").append(toIndentedString(dailyRequests)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java b/sdk/src/main/java/com/fingerprint/model/IPBlocklist.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java rename to sdk/src/main/java/com/fingerprint/model/IPBlocklist.java index f66e6c60..afa3176f 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpBlockListResult.java +++ b/sdk/src/main/java/com/fingerprint/model/IPBlocklist.java @@ -6,33 +6,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IpBlockListResultDetails; +import com.fingerprint.model.IPBlocklistDetails; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * IpBlockListResult + * IPBlocklist */ @JsonPropertyOrder({ - IpBlockListResult.JSON_PROPERTY_RESULT, - IpBlockListResult.JSON_PROPERTY_DETAILS + IPBlocklist.JSON_PROPERTY_RESULT, + IPBlocklist.JSON_PROPERTY_DETAILS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IpBlockListResult { +public class IPBlocklist { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; public static final String JSON_PROPERTY_DETAILS = "details"; - private IpBlockListResultDetails details; + private IPBlocklistDetails details; - public IpBlockListResult() { + public IPBlocklist() { } - public IpBlockListResult result(Boolean result) { + public IPBlocklist result(Boolean result) { this.result = result; return this; } @@ -42,7 +42,7 @@ public IpBlockListResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. ") + @Schema(required = true, description = "`true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -58,7 +58,7 @@ public void setResult(Boolean result) { } - public IpBlockListResult details(IpBlockListResultDetails details) { + public IPBlocklist details(IPBlocklistDetails details) { this.details = details; return this; } @@ -72,20 +72,20 @@ public IpBlockListResult details(IpBlockListResultDetails details) { @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IpBlockListResultDetails getDetails() { + public IPBlocklistDetails getDetails() { return details; } @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDetails(IpBlockListResultDetails details) { + public void setDetails(IPBlocklistDetails details) { this.details = details; } /** - * Return true if this IpBlockListResult object is equal to o. + * Return true if this IPBlocklist object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,9 +95,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IpBlockListResult ipBlockListResult = (IpBlockListResult) o; - return Objects.equals(this.result, ipBlockListResult.result) && - Objects.equals(this.details, ipBlockListResult.details); + IPBlocklist ipBlocklist = (IPBlocklist) o; + return Objects.equals(this.result, ipBlocklist.result) && + Objects.equals(this.details, ipBlocklist.details); } @Override @@ -108,7 +108,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IpBlockListResult {\n"); + sb.append("class IPBlocklist {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java b/sdk/src/main/java/com/fingerprint/model/IPBlocklistDetails.java similarity index 73% rename from sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java rename to sdk/src/main/java/com/fingerprint/model/IPBlocklistDetails.java index c1cadfba..c250dd43 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpBlockListResultDetails.java +++ b/sdk/src/main/java/com/fingerprint/model/IPBlocklistDetails.java @@ -12,27 +12,26 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * IpBlockListResultDetails + * IPBlocklistDetails */ @JsonPropertyOrder({ - IpBlockListResultDetails.JSON_PROPERTY_EMAIL_SPAM, - IpBlockListResultDetails.JSON_PROPERTY_ATTACK_SOURCE + IPBlocklistDetails.JSON_PROPERTY_EMAIL_SPAM, + IPBlocklistDetails.JSON_PROPERTY_ATTACK_SOURCE }) -@JsonTypeName("IpBlockListResult_details") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IpBlockListResultDetails { +public class IPBlocklistDetails { public static final String JSON_PROPERTY_EMAIL_SPAM = "emailSpam"; private Boolean emailSpam; public static final String JSON_PROPERTY_ATTACK_SOURCE = "attackSource"; private Boolean attackSource; - public IpBlockListResultDetails() { + public IPBlocklistDetails() { } - public IpBlockListResultDetails emailSpam(Boolean emailSpam) { + public IPBlocklistDetails emailSpam(Boolean emailSpam) { this.emailSpam = emailSpam; return this; } @@ -42,7 +41,7 @@ public IpBlockListResultDetails emailSpam(Boolean emailSpam) { * @return emailSpam **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "IP address was part of a known email spam attack (SMTP).") + @Schema(required = true, description = "IP address was part of a known email spam attack (SMTP).") @JsonProperty(JSON_PROPERTY_EMAIL_SPAM) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -58,7 +57,7 @@ public void setEmailSpam(Boolean emailSpam) { } - public IpBlockListResultDetails attackSource(Boolean attackSource) { + public IPBlocklistDetails attackSource(Boolean attackSource) { this.attackSource = attackSource; return this; } @@ -68,7 +67,7 @@ public IpBlockListResultDetails attackSource(Boolean attackSource) { * @return attackSource **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "IP address was part of a known network attack (SSH/HTTPS).") + @Schema(required = true, description = "IP address was part of a known network attack (SSH/HTTPS).") @JsonProperty(JSON_PROPERTY_ATTACK_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -85,7 +84,7 @@ public void setAttackSource(Boolean attackSource) { /** - * Return true if this IpBlockListResult_details object is equal to o. + * Return true if this IPBlocklistDetails object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,9 +94,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IpBlockListResultDetails ipBlockListResultDetails = (IpBlockListResultDetails) o; - return Objects.equals(this.emailSpam, ipBlockListResultDetails.emailSpam) && - Objects.equals(this.attackSource, ipBlockListResultDetails.attackSource); + IPBlocklistDetails ipBlocklistDetails = (IPBlocklistDetails) o; + return Objects.equals(this.emailSpam, ipBlocklistDetails.emailSpam) && + Objects.equals(this.attackSource, ipBlocklistDetails.attackSource); } @Override @@ -108,7 +107,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IpBlockListResultDetails {\n"); + sb.append("class IPBlocklistDetails {\n"); sb.append(" emailSpam: ").append(toIndentedString(emailSpam)).append("\n"); sb.append(" attackSource: ").append(toIndentedString(attackSource)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/IpInfoResult.java b/sdk/src/main/java/com/fingerprint/model/IPInfo.java similarity index 76% rename from sdk/src/main/java/com/fingerprint/model/IpInfoResult.java rename to sdk/src/main/java/com/fingerprint/model/IPInfo.java index 8727d737..87186ad3 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpInfoResult.java +++ b/sdk/src/main/java/com/fingerprint/model/IPInfo.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IpInfoResultV4; -import com.fingerprint.model.IpInfoResultV6; +import com.fingerprint.model.IPInfoV4; +import com.fingerprint.model.IPInfoV6; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; @@ -19,21 +19,21 @@ @Schema(description = "Details about the request IP address. Has separate fields for v4 and v6 IP address versions.") @JsonPropertyOrder({ - IpInfoResult.JSON_PROPERTY_V4, - IpInfoResult.JSON_PROPERTY_V6 + IPInfo.JSON_PROPERTY_V4, + IPInfo.JSON_PROPERTY_V6 }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IpInfoResult { +public class IPInfo { public static final String JSON_PROPERTY_V4 = "v4"; - private IpInfoResultV4 v4; + private IPInfoV4 v4; public static final String JSON_PROPERTY_V6 = "v6"; - private IpInfoResultV6 v6; + private IPInfoV6 v6; - public IpInfoResult() { + public IPInfo() { } - public IpInfoResult v4(IpInfoResultV4 v4) { + public IPInfo v4(IPInfoV4 v4) { this.v4 = v4; return this; } @@ -47,19 +47,19 @@ public IpInfoResult v4(IpInfoResultV4 v4) { @JsonProperty(JSON_PROPERTY_V4) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IpInfoResultV4 getV4() { + public IPInfoV4 getV4() { return v4; } @JsonProperty(JSON_PROPERTY_V4) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setV4(IpInfoResultV4 v4) { + public void setV4(IPInfoV4 v4) { this.v4 = v4; } - public IpInfoResult v6(IpInfoResultV6 v6) { + public IPInfo v6(IPInfoV6 v6) { this.v6 = v6; return this; } @@ -73,20 +73,20 @@ public IpInfoResult v6(IpInfoResultV6 v6) { @JsonProperty(JSON_PROPERTY_V6) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IpInfoResultV6 getV6() { + public IPInfoV6 getV6() { return v6; } @JsonProperty(JSON_PROPERTY_V6) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setV6(IpInfoResultV6 v6) { + public void setV6(IPInfoV6 v6) { this.v6 = v6; } /** - * Return true if this IpInfoResult object is equal to o. + * Return true if this IPInfo object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IpInfoResult ipInfoResult = (IpInfoResult) o; - return Objects.equals(this.v4, ipInfoResult.v4) && - Objects.equals(this.v6, ipInfoResult.v6); + IPInfo ipInfo = (IPInfo) o; + return Objects.equals(this.v4, ipInfo.v4) && + Objects.equals(this.v6, ipInfo.v6); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IpInfoResult {\n"); + sb.append("class IPInfo {\n"); sb.append(" v4: ").append(toIndentedString(v4)).append("\n"); sb.append(" v6: ").append(toIndentedString(v6)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ASN.java b/sdk/src/main/java/com/fingerprint/model/IPInfoASN.java similarity index 76% rename from sdk/src/main/java/com/fingerprint/model/ASN.java rename to sdk/src/main/java/com/fingerprint/model/IPInfoASN.java index 8a9c56e7..a58d3d40 100644 --- a/sdk/src/main/java/com/fingerprint/model/ASN.java +++ b/sdk/src/main/java/com/fingerprint/model/IPInfoASN.java @@ -12,30 +12,30 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * ASN + * IPInfoASN */ @JsonPropertyOrder({ - ASN.JSON_PROPERTY_ASN, - ASN.JSON_PROPERTY_NETWORK, - ASN.JSON_PROPERTY_NAME + IPInfoASN.JSON_PROPERTY_ASN, + IPInfoASN.JSON_PROPERTY_NAME, + IPInfoASN.JSON_PROPERTY_NETWORK }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ASN { +public class IPInfoASN { public static final String JSON_PROPERTY_ASN = "asn"; private String asn; - public static final String JSON_PROPERTY_NETWORK = "network"; - private String network; - public static final String JSON_PROPERTY_NAME = "name"; private String name; - public ASN() { + public static final String JSON_PROPERTY_NETWORK = "network"; + private String network; + + public IPInfoASN() { } - public ASN asn(String asn) { + public IPInfoASN asn(String asn) { this.asn = asn; return this; } @@ -45,7 +45,7 @@ public ASN asn(String asn) { * @return asn **/ @jakarta.annotation.Nonnull - @Schema(example = "7922", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -61,60 +61,60 @@ public void setAsn(String asn) { } - public ASN network(String network) { - this.network = network; + public IPInfoASN name(String name) { + this.name = name; return this; } /** - * Get network - * @return network + * Get name + * @return name **/ @jakarta.annotation.Nonnull - @Schema(example = "73.136.0.0/13", required = true, description = "") - @JsonProperty(JSON_PROPERTY_NETWORK) + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNetwork() { - return network; + public String getName() { + return name; } - @JsonProperty(JSON_PROPERTY_NETWORK) + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setNetwork(String network) { - this.network = network; + public void setName(String name) { + this.name = name; } - public ASN name(String name) { - this.name = name; + public IPInfoASN network(String network) { + this.network = network; return this; } /** - * Get name - * @return name + * Get network + * @return network **/ - @jakarta.annotation.Nullable - @Schema(example = "COMCAST-7922", description = "") - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_NETWORK) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; + public String getNetwork() { + return network; } - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { - this.name = name; + @JsonProperty(JSON_PROPERTY_NETWORK) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetwork(String network) { + this.network = network; } /** - * Return true if this ASN object is equal to o. + * Return true if this IPInfoASN object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,24 +124,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ASN ASN = (ASN) o; - return Objects.equals(this.asn, ASN.asn) && - Objects.equals(this.network, ASN.network) && - Objects.equals(this.name, ASN.name); + IPInfoASN ipInfoASN = (IPInfoASN) o; + return Objects.equals(this.asn, ipInfoASN.asn) && + Objects.equals(this.name, ipInfoASN.name) && + Objects.equals(this.network, ipInfoASN.network); } @Override public int hashCode() { - return Objects.hash(asn, network, name); + return Objects.hash(asn, name, network); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ASN {\n"); + sb.append("class IPInfoASN {\n"); sb.append(" asn: ").append(toIndentedString(asn)).append("\n"); - sb.append(" network: ").append(toIndentedString(network)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/DataCenter.java b/sdk/src/main/java/com/fingerprint/model/IPInfoDataCenter.java similarity index 76% rename from sdk/src/main/java/com/fingerprint/model/DataCenter.java rename to sdk/src/main/java/com/fingerprint/model/IPInfoDataCenter.java index 47a5cc7d..bb0f3f00 100644 --- a/sdk/src/main/java/com/fingerprint/model/DataCenter.java +++ b/sdk/src/main/java/com/fingerprint/model/IPInfoDataCenter.java @@ -12,26 +12,26 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * DataCenter + * IPInfoDataCenter */ @JsonPropertyOrder({ - DataCenter.JSON_PROPERTY_RESULT, - DataCenter.JSON_PROPERTY_NAME + IPInfoDataCenter.JSON_PROPERTY_RESULT, + IPInfoDataCenter.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class DataCenter { +public class IPInfoDataCenter { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; public static final String JSON_PROPERTY_NAME = "name"; private String name; - public DataCenter() { + public IPInfoDataCenter() { } - public DataCenter result(Boolean result) { + public IPInfoDataCenter result(Boolean result) { this.result = result; return this; } @@ -57,7 +57,7 @@ public void setResult(Boolean result) { } - public DataCenter name(String name) { + public IPInfoDataCenter name(String name) { this.name = name; return this; } @@ -66,10 +66,10 @@ public DataCenter name(String name) { * Get name * @return name **/ - @jakarta.annotation.Nullable - @Schema(example = "DediPath", description = "") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getName() { return name; @@ -77,14 +77,14 @@ public String getName() { @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } /** - * Return true if this DataCenter object is equal to o. + * Return true if this IPInfoDataCenter object is equal to o. */ @Override public boolean equals(Object o) { @@ -94,9 +94,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DataCenter dataCenter = (DataCenter) o; - return Objects.equals(this.result, dataCenter.result) && - Objects.equals(this.name, dataCenter.name); + IPInfoDataCenter ipInfoDataCenter = (IPInfoDataCenter) o; + return Objects.equals(this.result, ipInfoDataCenter.result) && + Objects.equals(this.name, ipInfoDataCenter.name); } @Override @@ -107,7 +107,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DataCenter {\n"); + sb.append("class IPInfoDataCenter {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java b/sdk/src/main/java/com/fingerprint/model/IPInfoV4.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java rename to sdk/src/main/java/com/fingerprint/model/IPInfoV4.java index b2a776c9..73f37fa0 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV4.java +++ b/sdk/src/main/java/com/fingerprint/model/IPInfoV4.java @@ -6,44 +6,43 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ASN; -import com.fingerprint.model.DataCenter; -import com.fingerprint.model.IPLocation; +import com.fingerprint.model.Geolocation; +import com.fingerprint.model.IPInfoASN; +import com.fingerprint.model.IPInfoDataCenter; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * IpInfoResultV4 + * IPInfoV4 */ @JsonPropertyOrder({ - IpInfoResultV4.JSON_PROPERTY_ADDRESS, - IpInfoResultV4.JSON_PROPERTY_GEOLOCATION, - IpInfoResultV4.JSON_PROPERTY_ASN, - IpInfoResultV4.JSON_PROPERTY_DATACENTER + IPInfoV4.JSON_PROPERTY_ADDRESS, + IPInfoV4.JSON_PROPERTY_GEOLOCATION, + IPInfoV4.JSON_PROPERTY_ASN, + IPInfoV4.JSON_PROPERTY_DATACENTER }) -@JsonTypeName("IpInfoResult_v4") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IpInfoResultV4 { +public class IPInfoV4 { public static final String JSON_PROPERTY_ADDRESS = "address"; private String address; public static final String JSON_PROPERTY_GEOLOCATION = "geolocation"; - private IPLocation geolocation; + private Geolocation geolocation; public static final String JSON_PROPERTY_ASN = "asn"; - private ASN asn; + private IPInfoASN asn; public static final String JSON_PROPERTY_DATACENTER = "datacenter"; - private DataCenter datacenter; + private IPInfoDataCenter datacenter; - public IpInfoResultV4() { + public IPInfoV4() { } - public IpInfoResultV4 address(String address) { + public IPInfoV4 address(String address) { this.address = address; return this; } @@ -53,7 +52,7 @@ public IpInfoResultV4 address(String address) { * @return address **/ @jakarta.annotation.Nonnull - @Schema(example = "94.142.239.124", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -69,7 +68,7 @@ public void setAddress(String address) { } - public IpInfoResultV4 geolocation(IPLocation geolocation) { + public IPInfoV4 geolocation(Geolocation geolocation) { this.geolocation = geolocation; return this; } @@ -83,19 +82,19 @@ public IpInfoResultV4 geolocation(IPLocation geolocation) { @JsonProperty(JSON_PROPERTY_GEOLOCATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IPLocation getGeolocation() { + public Geolocation getGeolocation() { return geolocation; } @JsonProperty(JSON_PROPERTY_GEOLOCATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGeolocation(IPLocation geolocation) { + public void setGeolocation(Geolocation geolocation) { this.geolocation = geolocation; } - public IpInfoResultV4 asn(ASN asn) { + public IPInfoV4 asn(IPInfoASN asn) { this.asn = asn; return this; } @@ -109,19 +108,19 @@ public IpInfoResultV4 asn(ASN asn) { @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ASN getAsn() { + public IPInfoASN getAsn() { return asn; } @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsn(ASN asn) { + public void setAsn(IPInfoASN asn) { this.asn = asn; } - public IpInfoResultV4 datacenter(DataCenter datacenter) { + public IPInfoV4 datacenter(IPInfoDataCenter datacenter) { this.datacenter = datacenter; return this; } @@ -135,20 +134,20 @@ public IpInfoResultV4 datacenter(DataCenter datacenter) { @JsonProperty(JSON_PROPERTY_DATACENTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DataCenter getDatacenter() { + public IPInfoDataCenter getDatacenter() { return datacenter; } @JsonProperty(JSON_PROPERTY_DATACENTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDatacenter(DataCenter datacenter) { + public void setDatacenter(IPInfoDataCenter datacenter) { this.datacenter = datacenter; } /** - * Return true if this IpInfoResult_v4 object is equal to o. + * Return true if this IPInfoV4 object is equal to o. */ @Override public boolean equals(Object o) { @@ -158,11 +157,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IpInfoResultV4 ipInfoResultV4 = (IpInfoResultV4) o; - return Objects.equals(this.address, ipInfoResultV4.address) && - Objects.equals(this.geolocation, ipInfoResultV4.geolocation) && - Objects.equals(this.asn, ipInfoResultV4.asn) && - Objects.equals(this.datacenter, ipInfoResultV4.datacenter); + IPInfoV4 ipInfoV4 = (IPInfoV4) o; + return Objects.equals(this.address, ipInfoV4.address) && + Objects.equals(this.geolocation, ipInfoV4.geolocation) && + Objects.equals(this.asn, ipInfoV4.asn) && + Objects.equals(this.datacenter, ipInfoV4.datacenter); } @Override @@ -173,7 +172,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IpInfoResultV4 {\n"); + sb.append("class IPInfoV4 {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" geolocation: ").append(toIndentedString(geolocation)).append("\n"); sb.append(" asn: ").append(toIndentedString(asn)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java b/sdk/src/main/java/com/fingerprint/model/IPInfoV6.java similarity index 71% rename from sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java rename to sdk/src/main/java/com/fingerprint/model/IPInfoV6.java index 7ee88176..ab1a878d 100644 --- a/sdk/src/main/java/com/fingerprint/model/IpInfoResultV6.java +++ b/sdk/src/main/java/com/fingerprint/model/IPInfoV6.java @@ -6,44 +6,43 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ASN; -import com.fingerprint.model.DataCenter; -import com.fingerprint.model.IPLocation; +import com.fingerprint.model.Geolocation; +import com.fingerprint.model.IPInfoASN; +import com.fingerprint.model.IPInfoDataCenter; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * IpInfoResultV6 + * IPInfoV6 */ @JsonPropertyOrder({ - IpInfoResultV6.JSON_PROPERTY_ADDRESS, - IpInfoResultV6.JSON_PROPERTY_GEOLOCATION, - IpInfoResultV6.JSON_PROPERTY_ASN, - IpInfoResultV6.JSON_PROPERTY_DATACENTER + IPInfoV6.JSON_PROPERTY_ADDRESS, + IPInfoV6.JSON_PROPERTY_GEOLOCATION, + IPInfoV6.JSON_PROPERTY_ASN, + IPInfoV6.JSON_PROPERTY_DATACENTER }) -@JsonTypeName("IpInfoResult_v6") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IpInfoResultV6 { +public class IPInfoV6 { public static final String JSON_PROPERTY_ADDRESS = "address"; private String address; public static final String JSON_PROPERTY_GEOLOCATION = "geolocation"; - private IPLocation geolocation; + private Geolocation geolocation; public static final String JSON_PROPERTY_ASN = "asn"; - private ASN asn; + private IPInfoASN asn; public static final String JSON_PROPERTY_DATACENTER = "datacenter"; - private DataCenter datacenter; + private IPInfoDataCenter datacenter; - public IpInfoResultV6() { + public IPInfoV6() { } - public IpInfoResultV6 address(String address) { + public IPInfoV6 address(String address) { this.address = address; return this; } @@ -53,7 +52,7 @@ public IpInfoResultV6 address(String address) { * @return address **/ @jakarta.annotation.Nonnull - @Schema(example = "2001:0db8:85a3:0000:0000:8a2e:0370:7334", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -69,7 +68,7 @@ public void setAddress(String address) { } - public IpInfoResultV6 geolocation(IPLocation geolocation) { + public IPInfoV6 geolocation(Geolocation geolocation) { this.geolocation = geolocation; return this; } @@ -83,19 +82,19 @@ public IpInfoResultV6 geolocation(IPLocation geolocation) { @JsonProperty(JSON_PROPERTY_GEOLOCATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IPLocation getGeolocation() { + public Geolocation getGeolocation() { return geolocation; } @JsonProperty(JSON_PROPERTY_GEOLOCATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setGeolocation(IPLocation geolocation) { + public void setGeolocation(Geolocation geolocation) { this.geolocation = geolocation; } - public IpInfoResultV6 asn(ASN asn) { + public IPInfoV6 asn(IPInfoASN asn) { this.asn = asn; return this; } @@ -109,19 +108,19 @@ public IpInfoResultV6 asn(ASN asn) { @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ASN getAsn() { + public IPInfoASN getAsn() { return asn; } @JsonProperty(JSON_PROPERTY_ASN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAsn(ASN asn) { + public void setAsn(IPInfoASN asn) { this.asn = asn; } - public IpInfoResultV6 datacenter(DataCenter datacenter) { + public IPInfoV6 datacenter(IPInfoDataCenter datacenter) { this.datacenter = datacenter; return this; } @@ -135,20 +134,20 @@ public IpInfoResultV6 datacenter(DataCenter datacenter) { @JsonProperty(JSON_PROPERTY_DATACENTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DataCenter getDatacenter() { + public IPInfoDataCenter getDatacenter() { return datacenter; } @JsonProperty(JSON_PROPERTY_DATACENTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDatacenter(DataCenter datacenter) { + public void setDatacenter(IPInfoDataCenter datacenter) { this.datacenter = datacenter; } /** - * Return true if this IpInfoResult_v6 object is equal to o. + * Return true if this IPInfoV6 object is equal to o. */ @Override public boolean equals(Object o) { @@ -158,11 +157,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IpInfoResultV6 ipInfoResultV6 = (IpInfoResultV6) o; - return Objects.equals(this.address, ipInfoResultV6.address) && - Objects.equals(this.geolocation, ipInfoResultV6.geolocation) && - Objects.equals(this.asn, ipInfoResultV6.asn) && - Objects.equals(this.datacenter, ipInfoResultV6.datacenter); + IPInfoV6 ipInfoV6 = (IPInfoV6) o; + return Objects.equals(this.address, ipInfoV6.address) && + Objects.equals(this.geolocation, ipInfoV6.geolocation) && + Objects.equals(this.asn, ipInfoV6.asn) && + Objects.equals(this.datacenter, ipInfoV6.datacenter); } @Override @@ -173,7 +172,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IpInfoResultV6 {\n"); + sb.append("class IPInfoV6 {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" geolocation: ").append(toIndentedString(geolocation)).append("\n"); sb.append(" asn: ").append(toIndentedString(asn)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/ResponseVisits.java b/sdk/src/main/java/com/fingerprint/model/Identification.java similarity index 57% rename from sdk/src/main/java/com/fingerprint/model/ResponseVisits.java rename to sdk/src/main/java/com/fingerprint/model/Identification.java index ab7658fa..d048facc 100644 --- a/sdk/src/main/java/com/fingerprint/model/ResponseVisits.java +++ b/sdk/src/main/java/com/fingerprint/model/Identification.java @@ -7,9 +7,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.BrowserDetails; -import com.fingerprint.model.Confidence; -import com.fingerprint.model.DeprecatedIPLocation; -import com.fingerprint.model.SeenAt; +import com.fingerprint.model.DeprecatedGeolocation; +import com.fingerprint.model.IdentificationConfidence; +import com.fingerprint.model.IdentificationSeenAt; +import com.fingerprint.model.RawDeviceAttribute; import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; @@ -19,28 +20,33 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * ResponseVisits + * Identification */ @JsonPropertyOrder({ - ResponseVisits.JSON_PROPERTY_REQUEST_ID, - ResponseVisits.JSON_PROPERTY_BROWSER_DETAILS, - ResponseVisits.JSON_PROPERTY_INCOGNITO, - ResponseVisits.JSON_PROPERTY_IP, - ResponseVisits.JSON_PROPERTY_IP_LOCATION, - ResponseVisits.JSON_PROPERTY_TIMESTAMP, - ResponseVisits.JSON_PROPERTY_TIME, - ResponseVisits.JSON_PROPERTY_URL, - ResponseVisits.JSON_PROPERTY_TAG, - ResponseVisits.JSON_PROPERTY_LINKED_ID, - ResponseVisits.JSON_PROPERTY_CONFIDENCE, - ResponseVisits.JSON_PROPERTY_VISITOR_FOUND, - ResponseVisits.JSON_PROPERTY_FIRST_SEEN_AT, - ResponseVisits.JSON_PROPERTY_LAST_SEEN_AT + Identification.JSON_PROPERTY_VISITOR_ID, + Identification.JSON_PROPERTY_REQUEST_ID, + Identification.JSON_PROPERTY_BROWSER_DETAILS, + Identification.JSON_PROPERTY_INCOGNITO, + Identification.JSON_PROPERTY_IP, + Identification.JSON_PROPERTY_IP_LOCATION, + Identification.JSON_PROPERTY_LINKED_ID, + Identification.JSON_PROPERTY_TIMESTAMP, + Identification.JSON_PROPERTY_TIME, + Identification.JSON_PROPERTY_URL, + Identification.JSON_PROPERTY_TAG, + Identification.JSON_PROPERTY_CONFIDENCE, + Identification.JSON_PROPERTY_VISITOR_FOUND, + Identification.JSON_PROPERTY_FIRST_SEEN_AT, + Identification.JSON_PROPERTY_LAST_SEEN_AT, + Identification.JSON_PROPERTY_COMPONENTS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ResponseVisits { +public class Identification { + public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; + private String visitorId; + public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; @@ -54,7 +60,10 @@ public class ResponseVisits { private String ip; public static final String JSON_PROPERTY_IP_LOCATION = "ipLocation"; - private DeprecatedIPLocation ipLocation; + private DeprecatedGeolocation ipLocation; + + public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; + private String linkedId; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private Long timestamp; @@ -68,35 +77,61 @@ public class ResponseVisits { public static final String JSON_PROPERTY_TAG = "tag"; private Map tag = new HashMap<>(); - public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; - private String linkedId; - public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; - private Confidence confidence; + private IdentificationConfidence confidence; public static final String JSON_PROPERTY_VISITOR_FOUND = "visitorFound"; private Boolean visitorFound; public static final String JSON_PROPERTY_FIRST_SEEN_AT = "firstSeenAt"; - private SeenAt firstSeenAt; + private IdentificationSeenAt firstSeenAt; public static final String JSON_PROPERTY_LAST_SEEN_AT = "lastSeenAt"; - private SeenAt lastSeenAt; + private IdentificationSeenAt lastSeenAt; + + public static final String JSON_PROPERTY_COMPONENTS = "components"; + private Map components = null; + + public Identification() { + } - public ResponseVisits() { + public Identification visitorId(String visitorId) { + this.visitorId = visitorId; + return this; } - public ResponseVisits requestId(String requestId) { + /** + * String of 20 characters that uniquely identifies the visitor's browser. + * @return visitorId + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "String of 20 characters that uniquely identifies the visitor's browser.") + @JsonProperty(JSON_PROPERTY_VISITOR_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getVisitorId() { + return visitorId; + } + + + @JsonProperty(JSON_PROPERTY_VISITOR_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setVisitorId(String visitorId) { + this.visitorId = visitorId; + } + + + public Identification requestId(String requestId) { this.requestId = requestId; return this; } /** - * Unique identifier of the user's identification request. + * Unique identifier of the user's request. * @return requestId **/ @jakarta.annotation.Nonnull - @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") + @Schema(required = true, description = "Unique identifier of the user's request.") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -112,7 +147,7 @@ public void setRequestId(String requestId) { } - public ResponseVisits browserDetails(BrowserDetails browserDetails) { + public Identification browserDetails(BrowserDetails browserDetails) { this.browserDetails = browserDetails; return this; } @@ -138,7 +173,7 @@ public void setBrowserDetails(BrowserDetails browserDetails) { } - public ResponseVisits incognito(Boolean incognito) { + public Identification incognito(Boolean incognito) { this.incognito = incognito; return this; } @@ -164,17 +199,17 @@ public void setIncognito(Boolean incognito) { } - public ResponseVisits ip(String ip) { + public Identification ip(String ip) { this.ip = ip; return this; } /** - * Get ip + * IP address of the requesting browser or bot. * @return ip **/ @jakarta.annotation.Nonnull - @Schema(example = "8.8.8.8", required = true, description = "") + @Schema(required = true, description = "IP address of the requesting browser or bot.") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -190,7 +225,7 @@ public void setIp(String ip) { } - public ResponseVisits ipLocation(DeprecatedIPLocation ipLocation) { + public Identification ipLocation(DeprecatedGeolocation ipLocation) { this.ipLocation = ipLocation; return this; } @@ -206,19 +241,45 @@ public ResponseVisits ipLocation(DeprecatedIPLocation ipLocation) { @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeprecatedIPLocation getIpLocation() { + public DeprecatedGeolocation getIpLocation() { return ipLocation; } @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpLocation(DeprecatedIPLocation ipLocation) { + public void setIpLocation(DeprecatedGeolocation ipLocation) { this.ipLocation = ipLocation; } - public ResponseVisits timestamp(Long timestamp) { + public Identification linkedId(String linkedId) { + this.linkedId = linkedId; + return this; + } + + /** + * A customer-provided id that was sent with the request. + * @return linkedId + **/ + @jakarta.annotation.Nullable + @Schema(description = "A customer-provided id that was sent with the request.") + @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLinkedId() { + return linkedId; + } + + + @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLinkedId(String linkedId) { + this.linkedId = linkedId; + } + + + public Identification timestamp(Long timestamp) { this.timestamp = timestamp; return this; } @@ -228,7 +289,7 @@ public ResponseVisits timestamp(Long timestamp) { * @return timestamp **/ @jakarta.annotation.Nonnull - @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") + @Schema(required = true, description = "Timestamp of the event with millisecond precision in Unix time.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -244,17 +305,17 @@ public void setTimestamp(Long timestamp) { } - public ResponseVisits time(OffsetDateTime time) { + public Identification time(OffsetDateTime time) { this.time = time; return this; } /** - * Time expressed according to ISO 8601 in UTC format. + * Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. * @return time **/ @jakarta.annotation.Nonnull - @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") + @Schema(required = true, description = "Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible.") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -270,17 +331,17 @@ public void setTime(OffsetDateTime time) { } - public ResponseVisits url(String url) { + public Identification url(String url) { this.url = url; return this; } /** - * Page URL from which the identification request was sent. + * Page URL from which the request was sent. * @return url **/ @jakarta.annotation.Nonnull - @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") + @Schema(required = true, description = "Page URL from which the request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -296,12 +357,12 @@ public void setUrl(String url) { } - public ResponseVisits tag(Map tag) { + public Identification tag(Map tag) { this.tag = tag; return this; } - public ResponseVisits puttagItem(String key, Object tagItem) { + public Identification puttagItem(String key, Object tagItem) { this.tag.put(key, tagItem); return this; } @@ -327,33 +388,7 @@ public void setTag(Map tag) { } - public ResponseVisits linkedId(String linkedId) { - this.linkedId = linkedId; - return this; - } - - /** - * A customer-provided id that was sent with identification request. - * @return linkedId - **/ - @jakarta.annotation.Nullable - @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") - @JsonProperty(JSON_PROPERTY_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getLinkedId() { - return linkedId; - } - - - @JsonProperty(JSON_PROPERTY_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkedId(String linkedId) { - this.linkedId = linkedId; - } - - - public ResponseVisits confidence(Confidence confidence) { + public Identification confidence(IdentificationConfidence confidence) { this.confidence = confidence; return this; } @@ -367,19 +402,19 @@ public ResponseVisits confidence(Confidence confidence) { @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Confidence getConfidence() { + public IdentificationConfidence getConfidence() { return confidence; } @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfidence(Confidence confidence) { + public void setConfidence(IdentificationConfidence confidence) { this.confidence = confidence; } - public ResponseVisits visitorFound(Boolean visitorFound) { + public Identification visitorFound(Boolean visitorFound) { this.visitorFound = visitorFound; return this; } @@ -405,7 +440,7 @@ public void setVisitorFound(Boolean visitorFound) { } - public ResponseVisits firstSeenAt(SeenAt firstSeenAt) { + public Identification firstSeenAt(IdentificationSeenAt firstSeenAt) { this.firstSeenAt = firstSeenAt; return this; } @@ -419,19 +454,19 @@ public ResponseVisits firstSeenAt(SeenAt firstSeenAt) { @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SeenAt getFirstSeenAt() { + public IdentificationSeenAt getFirstSeenAt() { return firstSeenAt; } @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstSeenAt(SeenAt firstSeenAt) { + public void setFirstSeenAt(IdentificationSeenAt firstSeenAt) { this.firstSeenAt = firstSeenAt; } - public ResponseVisits lastSeenAt(SeenAt lastSeenAt) { + public Identification lastSeenAt(IdentificationSeenAt lastSeenAt) { this.lastSeenAt = lastSeenAt; return this; } @@ -445,20 +480,54 @@ public ResponseVisits lastSeenAt(SeenAt lastSeenAt) { @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SeenAt getLastSeenAt() { + public IdentificationSeenAt getLastSeenAt() { return lastSeenAt; } @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastSeenAt(SeenAt lastSeenAt) { + public void setLastSeenAt(IdentificationSeenAt lastSeenAt) { this.lastSeenAt = lastSeenAt; } + public Identification components(Map components) { + this.components = components; + return this; + } + + public Identification putcomponentsItem(String key, RawDeviceAttribute componentsItem) { + if (this.components == null) { + this.components = new HashMap<>(); + } + this.components.put(key, componentsItem); + return this; + } + + /** + * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. + * @return components + **/ + @jakarta.annotation.Nullable + @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Map getComponents() { + return components; + } + + + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComponents(Map components) { + this.components = components; + } + + /** - * Return true if this ResponseVisits object is equal to o. + * Return true if this Identification object is equal to o. */ @Override public boolean equals(Object o) { @@ -468,46 +537,50 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ResponseVisits responseVisits = (ResponseVisits) o; - return Objects.equals(this.requestId, responseVisits.requestId) && - Objects.equals(this.browserDetails, responseVisits.browserDetails) && - Objects.equals(this.incognito, responseVisits.incognito) && - Objects.equals(this.ip, responseVisits.ip) && - Objects.equals(this.ipLocation, responseVisits.ipLocation) && - Objects.equals(this.timestamp, responseVisits.timestamp) && - Objects.equals(this.time, responseVisits.time) && - Objects.equals(this.url, responseVisits.url) && - Objects.equals(this.tag, responseVisits.tag) && - Objects.equals(this.linkedId, responseVisits.linkedId) && - Objects.equals(this.confidence, responseVisits.confidence) && - Objects.equals(this.visitorFound, responseVisits.visitorFound) && - Objects.equals(this.firstSeenAt, responseVisits.firstSeenAt) && - Objects.equals(this.lastSeenAt, responseVisits.lastSeenAt); + Identification identification = (Identification) o; + return Objects.equals(this.visitorId, identification.visitorId) && + Objects.equals(this.requestId, identification.requestId) && + Objects.equals(this.browserDetails, identification.browserDetails) && + Objects.equals(this.incognito, identification.incognito) && + Objects.equals(this.ip, identification.ip) && + Objects.equals(this.ipLocation, identification.ipLocation) && + Objects.equals(this.linkedId, identification.linkedId) && + Objects.equals(this.timestamp, identification.timestamp) && + Objects.equals(this.time, identification.time) && + Objects.equals(this.url, identification.url) && + Objects.equals(this.tag, identification.tag) && + Objects.equals(this.confidence, identification.confidence) && + Objects.equals(this.visitorFound, identification.visitorFound) && + Objects.equals(this.firstSeenAt, identification.firstSeenAt) && + Objects.equals(this.lastSeenAt, identification.lastSeenAt) && + Objects.equals(this.components, identification.components); } @Override public int hashCode() { - return Objects.hash(requestId, browserDetails, incognito, ip, ipLocation, timestamp, time, url, tag, linkedId, confidence, visitorFound, firstSeenAt, lastSeenAt); + return Objects.hash(visitorId, requestId, browserDetails, incognito, ip, ipLocation, linkedId, timestamp, time, url, tag, confidence, visitorFound, firstSeenAt, lastSeenAt, components); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ResponseVisits {\n"); + sb.append("class Identification {\n"); + sb.append(" visitorId: ").append(toIndentedString(visitorId)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" browserDetails: ").append(toIndentedString(browserDetails)).append("\n"); sb.append(" incognito: ").append(toIndentedString(incognito)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append(" ipLocation: ").append(toIndentedString(ipLocation)).append("\n"); + sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); - sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append(" visitorFound: ").append(toIndentedString(visitorFound)).append("\n"); sb.append(" firstSeenAt: ").append(toIndentedString(firstSeenAt)).append("\n"); sb.append(" lastSeenAt: ").append(toIndentedString(lastSeenAt)).append("\n"); + sb.append(" components: ").append(toIndentedString(components)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/Confidence.java b/sdk/src/main/java/com/fingerprint/model/IdentificationConfidence.java similarity index 65% rename from sdk/src/main/java/com/fingerprint/model/Confidence.java rename to sdk/src/main/java/com/fingerprint/model/IdentificationConfidence.java index 8b2ea010..ccfce3a3 100644 --- a/sdk/src/main/java/com/fingerprint/model/Confidence.java +++ b/sdk/src/main/java/com/fingerprint/model/IdentificationConfidence.java @@ -12,26 +12,30 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * Confidence + * IdentificationConfidence */ @JsonPropertyOrder({ - Confidence.JSON_PROPERTY_SCORE, - Confidence.JSON_PROPERTY_REVISION + IdentificationConfidence.JSON_PROPERTY_SCORE, + IdentificationConfidence.JSON_PROPERTY_REVISION, + IdentificationConfidence.JSON_PROPERTY_COMMENT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class Confidence { +public class IdentificationConfidence { public static final String JSON_PROPERTY_SCORE = "score"; - private Float score; + private Double score; public static final String JSON_PROPERTY_REVISION = "revision"; private String revision; - public Confidence() { + public static final String JSON_PROPERTY_COMMENT = "comment"; + private String comment; + + public IdentificationConfidence() { } - public Confidence score(Float score) { + public IdentificationConfidence score(Double score) { this.score = score; return this; } @@ -47,19 +51,19 @@ public Confidence score(Float score) { @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Float getScore() { + public Double getScore() { return score; } @JsonProperty(JSON_PROPERTY_SCORE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setScore(Float score) { + public void setScore(Double score) { this.score = score; } - public Confidence revision(String revision) { + public IdentificationConfidence revision(String revision) { this.revision = revision; return this; } @@ -85,8 +89,34 @@ public void setRevision(String revision) { } + public IdentificationConfidence comment(String comment) { + this.comment = comment; + return this; + } + + /** + * Get comment + * @return comment + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_COMMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getComment() { + return comment; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComment(String comment) { + this.comment = comment; + } + + /** - * Return true if this Confidence object is equal to o. + * Return true if this IdentificationConfidence object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,22 +126,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Confidence confidence = (Confidence) o; - return Objects.equals(this.score, confidence.score) && - Objects.equals(this.revision, confidence.revision); + IdentificationConfidence identificationConfidence = (IdentificationConfidence) o; + return Objects.equals(this.score, identificationConfidence.score) && + Objects.equals(this.revision, identificationConfidence.revision) && + Objects.equals(this.comment, identificationConfidence.comment); } @Override public int hashCode() { - return Objects.hash(score, revision); + return Objects.hash(score, revision, comment); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Confidence {\n"); + sb.append("class IdentificationConfidence {\n"); sb.append(" score: ").append(toIndentedString(score)).append("\n"); sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/IdentificationError.java b/sdk/src/main/java/com/fingerprint/model/IdentificationError.java deleted file mode 100644 index 595a9ebb..00000000 --- a/sdk/src/main/java/com/fingerprint/model/IdentificationError.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * IdentificationError - */ - - -@JsonPropertyOrder({ - IdentificationError.JSON_PROPERTY_CODE, - IdentificationError.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IdentificationError { - /** - * Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error - */ - public enum CodeEnum { - _429_TOO_MANY_REQUESTS("429 Too Many Requests"), - - FAILED("Failed"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public IdentificationError() { - } - - public IdentificationError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "429 Too Many Requests", required = true, description = "Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public IdentificationError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "too many requests", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this IdentificationError object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - IdentificationError identificationError = (IdentificationError) o; - return Objects.equals(this.code, identificationError.code) && - Objects.equals(this.message, identificationError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class IdentificationError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SeenAt.java b/sdk/src/main/java/com/fingerprint/model/IdentificationSeenAt.java similarity index 78% rename from sdk/src/main/java/com/fingerprint/model/SeenAt.java rename to sdk/src/main/java/com/fingerprint/model/IdentificationSeenAt.java index 1ce844ed..615b9840 100644 --- a/sdk/src/main/java/com/fingerprint/model/SeenAt.java +++ b/sdk/src/main/java/com/fingerprint/model/IdentificationSeenAt.java @@ -13,26 +13,26 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * SeenAt + * IdentificationSeenAt */ @JsonPropertyOrder({ - SeenAt.JSON_PROPERTY_GLOBAL, - SeenAt.JSON_PROPERTY_SUBSCRIPTION + IdentificationSeenAt.JSON_PROPERTY_GLOBAL, + IdentificationSeenAt.JSON_PROPERTY_SUBSCRIPTION }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SeenAt { +public class IdentificationSeenAt { public static final String JSON_PROPERTY_GLOBAL = "global"; private OffsetDateTime global; public static final String JSON_PROPERTY_SUBSCRIPTION = "subscription"; private OffsetDateTime subscription; - public SeenAt() { + public IdentificationSeenAt() { } - public SeenAt global(OffsetDateTime global) { + public IdentificationSeenAt global(OffsetDateTime global) { this.global = global; return this; } @@ -42,7 +42,7 @@ public SeenAt global(OffsetDateTime global) { * @return global **/ @jakarta.annotation.Nullable - @Schema(example = "2022-05-05T18:28:54.535Z", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_GLOBAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -58,7 +58,7 @@ public void setGlobal(OffsetDateTime global) { } - public SeenAt subscription(OffsetDateTime subscription) { + public IdentificationSeenAt subscription(OffsetDateTime subscription) { this.subscription = subscription; return this; } @@ -68,7 +68,7 @@ public SeenAt subscription(OffsetDateTime subscription) { * @return subscription **/ @jakarta.annotation.Nullable - @Schema(example = "2022-06-09T22:58:05.576Z", required = true, description = "") + @Schema(required = true, description = "") @JsonProperty(JSON_PROPERTY_SUBSCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -85,7 +85,7 @@ public void setSubscription(OffsetDateTime subscription) { /** - * Return true if this SeenAt object is equal to o. + * Return true if this IdentificationSeenAt object is equal to o. */ @Override public boolean equals(Object o) { @@ -95,9 +95,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SeenAt seenAt = (SeenAt) o; - return Objects.equals(this.global, seenAt.global) && - Objects.equals(this.subscription, seenAt.subscription); + IdentificationSeenAt identificationSeenAt = (IdentificationSeenAt) o; + return Objects.equals(this.global, identificationSeenAt.global) && + Objects.equals(this.subscription, identificationSeenAt.subscription); } @Override @@ -108,7 +108,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SeenAt {\n"); + sb.append("class IdentificationSeenAt {\n"); sb.append(" global: ").append(toIndentedString(global)).append("\n"); sb.append(" subscription: ").append(toIndentedString(subscription)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/IncognitoResult.java b/sdk/src/main/java/com/fingerprint/model/Incognito.java similarity index 78% rename from sdk/src/main/java/com/fingerprint/model/IncognitoResult.java rename to sdk/src/main/java/com/fingerprint/model/Incognito.java index 737d1fe3..c0869d08 100644 --- a/sdk/src/main/java/com/fingerprint/model/IncognitoResult.java +++ b/sdk/src/main/java/com/fingerprint/model/Incognito.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * IncognitoResult + * Incognito */ @JsonPropertyOrder({ - IncognitoResult.JSON_PROPERTY_RESULT + Incognito.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class IncognitoResult { +public class Incognito { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public IncognitoResult() { + public Incognito() { } - public IncognitoResult result(Boolean result) { + public Incognito result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public IncognitoResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if we detected incognito mode used in the browser, `false` otherwise. ") + @Schema(required = true, description = "`true` if we detected incognito mode used in the browser, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this IncognitoResult object is equal to o. + * Return true if this Incognito object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - IncognitoResult incognitoResult = (IncognitoResult) o; - return Objects.equals(this.result, incognitoResult.result); + Incognito incognito = (Incognito) o; + return Objects.equals(this.result, incognito.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class IncognitoResult {\n"); + sb.append("class Incognito {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/Jailbroken.java b/sdk/src/main/java/com/fingerprint/model/Jailbroken.java new file mode 100644 index 00000000..d4bdb0b0 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/Jailbroken.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * Jailbroken + */ + + +@JsonPropertyOrder({ + Jailbroken.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class Jailbroken { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public Jailbroken() { + } + + public Jailbroken result(Boolean result) { + this.result = result; + return this; + } + + /** + * iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. + * @return result + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this Jailbroken object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Jailbroken jailbroken = (Jailbroken) o; + return Objects.equals(this.result, jailbroken.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Jailbroken {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java b/sdk/src/main/java/com/fingerprint/model/LocationSpoofing.java similarity index 76% rename from sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java rename to sdk/src/main/java/com/fingerprint/model/LocationSpoofing.java index 94ce803a..9baaed06 100644 --- a/sdk/src/main/java/com/fingerprint/model/LocationSpoofingResult.java +++ b/sdk/src/main/java/com/fingerprint/model/LocationSpoofing.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * LocationSpoofingResult + * LocationSpoofing */ @JsonPropertyOrder({ - LocationSpoofingResult.JSON_PROPERTY_RESULT + LocationSpoofing.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class LocationSpoofingResult { +public class LocationSpoofing { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public LocationSpoofingResult() { + public LocationSpoofing() { } - public LocationSpoofingResult result(Boolean result) { + public LocationSpoofing result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public LocationSpoofingResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Flag indicating whether the request came from a mobile device with location spoofing enabled.") + @Schema(required = true, description = "Flag indicating whether the request came from a mobile device with location spoofing enabled.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this LocationSpoofingResult object is equal to o. + * Return true if this LocationSpoofing object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LocationSpoofingResult locationSpoofingResult = (LocationSpoofingResult) o; - return Objects.equals(this.result, locationSpoofingResult.result); + LocationSpoofing locationSpoofing = (LocationSpoofing) o; + return Objects.equals(this.result, locationSpoofing.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LocationSpoofingResult {\n"); + sb.append("class LocationSpoofing {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java b/sdk/src/main/java/com/fingerprint/model/PrivacySettings.java similarity index 75% rename from sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java rename to sdk/src/main/java/com/fingerprint/model/PrivacySettings.java index 4751b19b..a2a03670 100644 --- a/sdk/src/main/java/com/fingerprint/model/PrivacySettingsResult.java +++ b/sdk/src/main/java/com/fingerprint/model/PrivacySettings.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * PrivacySettingsResult + * PrivacySettings */ @JsonPropertyOrder({ - PrivacySettingsResult.JSON_PROPERTY_RESULT + PrivacySettings.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class PrivacySettingsResult { +public class PrivacySettings { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public PrivacySettingsResult() { + public PrivacySettings() { } - public PrivacySettingsResult result(Boolean result) { + public PrivacySettings result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public PrivacySettingsResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. ") + @Schema(required = true, description = "`true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this PrivacySettingsResult object is equal to o. + * Return true if this PrivacySettings object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - PrivacySettingsResult privacySettingsResult = (PrivacySettingsResult) o; - return Objects.equals(this.result, privacySettingsResult.result); + PrivacySettings privacySettings = (PrivacySettings) o; + return Objects.equals(this.result, privacySettings.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class PrivacySettingsResult {\n"); + sb.append("class PrivacySettings {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductBotd.java b/sdk/src/main/java/com/fingerprint/model/ProductBotd.java new file mode 100644 index 00000000..87ef8f82 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductBotd.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Botd; +import com.fingerprint.model.Error; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductBotd + */ + + +@JsonPropertyOrder({ + ProductBotd.JSON_PROPERTY_DATA, + ProductBotd.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductBotd { + public static final String JSON_PROPERTY_DATA = "data"; + private Botd data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductBotd() { + } + + public ProductBotd data(Botd data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Botd getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Botd data) { + this.data = data; + } + + + public ProductBotd error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductBotd object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductBotd productBotd = (ProductBotd) o; + return Objects.equals(this.data, productBotd.data) && + Objects.equals(this.error, productBotd.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductBotd {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductClonedApp.java b/sdk/src/main/java/com/fingerprint/model/ProductClonedApp.java new file mode 100644 index 00000000..b427f15d --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductClonedApp.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.ClonedApp; +import com.fingerprint.model.Error; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductClonedApp + */ + + +@JsonPropertyOrder({ + ProductClonedApp.JSON_PROPERTY_DATA, + ProductClonedApp.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductClonedApp { + public static final String JSON_PROPERTY_DATA = "data"; + private ClonedApp data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductClonedApp() { + } + + public ProductClonedApp data(ClonedApp data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ClonedApp getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(ClonedApp data) { + this.data = data; + } + + + public ProductClonedApp error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductClonedApp object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductClonedApp productClonedApp = (ProductClonedApp) o; + return Objects.equals(this.data, productClonedApp.data) && + Objects.equals(this.error, productClonedApp.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductClonedApp {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductDeveloperTools.java b/sdk/src/main/java/com/fingerprint/model/ProductDeveloperTools.java new file mode 100644 index 00000000..b476eb21 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductDeveloperTools.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.DeveloperTools; +import com.fingerprint.model.Error; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductDeveloperTools + */ + + +@JsonPropertyOrder({ + ProductDeveloperTools.JSON_PROPERTY_DATA, + ProductDeveloperTools.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductDeveloperTools { + public static final String JSON_PROPERTY_DATA = "data"; + private DeveloperTools data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductDeveloperTools() { + } + + public ProductDeveloperTools data(DeveloperTools data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DeveloperTools getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DeveloperTools data) { + this.data = data; + } + + + public ProductDeveloperTools error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductDeveloperTools object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductDeveloperTools productDeveloperTools = (ProductDeveloperTools) o; + return Objects.equals(this.data, productDeveloperTools.data) && + Objects.equals(this.error, productDeveloperTools.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductDeveloperTools {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductEmulator.java b/sdk/src/main/java/com/fingerprint/model/ProductEmulator.java new file mode 100644 index 00000000..18e34815 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductEmulator.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Emulator; +import com.fingerprint.model.Error; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductEmulator + */ + + +@JsonPropertyOrder({ + ProductEmulator.JSON_PROPERTY_DATA, + ProductEmulator.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductEmulator { + public static final String JSON_PROPERTY_DATA = "data"; + private Emulator data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductEmulator() { + } + + public ProductEmulator data(Emulator data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Emulator getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Emulator data) { + this.data = data; + } + + + public ProductEmulator error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductEmulator object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductEmulator productEmulator = (ProductEmulator) o; + return Objects.equals(this.data, productEmulator.data) && + Objects.equals(this.error, productEmulator.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductEmulator {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductError.java b/sdk/src/main/java/com/fingerprint/model/ProductError.java deleted file mode 100644 index c0b9980e..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ProductError.java +++ /dev/null @@ -1,164 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ProductError - */ - - -@JsonPropertyOrder({ - ProductError.JSON_PROPERTY_CODE, - ProductError.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ProductError { - /** - * Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error - */ - public enum CodeEnum { - TOO_MANY_REQUESTS("TooManyRequests"), - - FAILED("Failed"); - - private String value; - - CodeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static CodeEnum fromValue(String value) { - for (CodeEnum b : CodeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CODE = "code"; - private CodeEnum code; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public ProductError() { - } - - public ProductError code(CodeEnum code) { - this.code = code; - return this; - } - - /** - * Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error - * @return code - **/ - @jakarta.annotation.Nonnull - @Schema(example = "TooManyRequests", required = true, description = "Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error ") - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CodeEnum getCode() { - return code; - } - - - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setCode(CodeEnum code) { - this.code = code; - } - - - public ProductError message(String message) { - this.message = message; - return this; - } - - /** - * Get message - * @return message - **/ - @jakarta.annotation.Nonnull - @Schema(example = "too many requests", required = true, description = "") - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getMessage() { - return message; - } - - - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMessage(String message) { - this.message = message; - } - - - /** - * Return true if this ProductError object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProductError productError = (ProductError) o; - return Objects.equals(this.code, productError.code) && - Objects.equals(this.message, productError.message); - } - - @Override - public int hashCode() { - return Objects.hash(code, message); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProductError {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java b/sdk/src/main/java/com/fingerprint/model/ProductFactoryReset.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java rename to sdk/src/main/java/com/fingerprint/model/ProductFactoryReset.java index 38f07df0..38418950 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseFrida.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductFactoryReset.java @@ -6,34 +6,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.FridaResult; -import com.fingerprint.model.ProductError; +import com.fingerprint.model.Error; +import com.fingerprint.model.FactoryReset; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * SignalResponseFrida + * ProductFactoryReset */ @JsonPropertyOrder({ - SignalResponseFrida.JSON_PROPERTY_DATA, - SignalResponseFrida.JSON_PROPERTY_ERROR + ProductFactoryReset.JSON_PROPERTY_DATA, + ProductFactoryReset.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseFrida { +public class ProductFactoryReset { public static final String JSON_PROPERTY_DATA = "data"; - private FridaResult data; + private FactoryReset data; public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; + private Error error; - public SignalResponseFrida() { + public ProductFactoryReset() { } - public SignalResponseFrida data(FridaResult data) { + public ProductFactoryReset data(FactoryReset data) { this.data = data; return this; } @@ -47,19 +47,19 @@ public SignalResponseFrida data(FridaResult data) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FridaResult getData() { + public FactoryReset getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(FridaResult data) { + public void setData(FactoryReset data) { this.data = data; } - public SignalResponseFrida error(ProductError error) { + public ProductFactoryReset error(Error error) { this.error = error; return this; } @@ -73,20 +73,20 @@ public SignalResponseFrida error(ProductError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this SignalResponseFrida object is equal to o. + * Return true if this ProductFactoryReset object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SignalResponseFrida signalResponseFrida = (SignalResponseFrida) o; - return Objects.equals(this.data, signalResponseFrida.data) && - Objects.equals(this.error, signalResponseFrida.error); + ProductFactoryReset productFactoryReset = (ProductFactoryReset) o; + return Objects.equals(this.data, productFactoryReset.data) && + Objects.equals(this.error, productFactoryReset.error); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseFrida {\n"); + sb.append("class ProductFactoryReset {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductFrida.java b/sdk/src/main/java/com/fingerprint/model/ProductFrida.java new file mode 100644 index 00000000..79a3ab47 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductFrida.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.Frida; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductFrida + */ + + +@JsonPropertyOrder({ + ProductFrida.JSON_PROPERTY_DATA, + ProductFrida.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductFrida { + public static final String JSON_PROPERTY_DATA = "data"; + private Frida data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductFrida() { + } + + public ProductFrida data(Frida data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Frida getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Frida data) { + this.data = data; + } + + + public ProductFrida error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductFrida object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductFrida productFrida = (ProductFrida) o; + return Objects.equals(this.data, productFrida.data) && + Objects.equals(this.error, productFrida.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductFrida {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java b/sdk/src/main/java/com/fingerprint/model/ProductHighActivity.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java rename to sdk/src/main/java/com/fingerprint/model/ProductHighActivity.java index 119fc88a..f6518627 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseProxy.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductHighActivity.java @@ -6,34 +6,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.ProxyResult; +import com.fingerprint.model.Error; +import com.fingerprint.model.HighActivity; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * SignalResponseProxy + * ProductHighActivity */ @JsonPropertyOrder({ - SignalResponseProxy.JSON_PROPERTY_DATA, - SignalResponseProxy.JSON_PROPERTY_ERROR + ProductHighActivity.JSON_PROPERTY_DATA, + ProductHighActivity.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseProxy { +public class ProductHighActivity { public static final String JSON_PROPERTY_DATA = "data"; - private ProxyResult data; + private HighActivity data; public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; + private Error error; - public SignalResponseProxy() { + public ProductHighActivity() { } - public SignalResponseProxy data(ProxyResult data) { + public ProductHighActivity data(HighActivity data) { this.data = data; return this; } @@ -47,19 +47,19 @@ public SignalResponseProxy data(ProxyResult data) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProxyResult getData() { + public HighActivity getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(ProxyResult data) { + public void setData(HighActivity data) { this.data = data; } - public SignalResponseProxy error(ProductError error) { + public ProductHighActivity error(Error error) { this.error = error; return this; } @@ -73,20 +73,20 @@ public SignalResponseProxy error(ProductError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this SignalResponseProxy object is equal to o. + * Return true if this ProductHighActivity object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SignalResponseProxy signalResponseProxy = (SignalResponseProxy) o; - return Objects.equals(this.data, signalResponseProxy.data) && - Objects.equals(this.error, signalResponseProxy.error); + ProductHighActivity productHighActivity = (ProductHighActivity) o; + return Objects.equals(this.data, productHighActivity.data) && + Objects.equals(this.error, productHighActivity.error); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseProxy {\n"); + sb.append("class ProductHighActivity {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java b/sdk/src/main/java/com/fingerprint/model/ProductIPBlocklist.java similarity index 73% rename from sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java rename to sdk/src/main/java/com/fingerprint/model/ProductIPBlocklist.java index 6f4adfc0..b2f4d73e 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseVpn.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductIPBlocklist.java @@ -6,34 +6,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.VpnResult; +import com.fingerprint.model.Error; +import com.fingerprint.model.IPBlocklist; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * SignalResponseVpn + * ProductIPBlocklist */ @JsonPropertyOrder({ - SignalResponseVpn.JSON_PROPERTY_DATA, - SignalResponseVpn.JSON_PROPERTY_ERROR + ProductIPBlocklist.JSON_PROPERTY_DATA, + ProductIPBlocklist.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseVpn { +public class ProductIPBlocklist { public static final String JSON_PROPERTY_DATA = "data"; - private VpnResult data; + private IPBlocklist data; public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; + private Error error; - public SignalResponseVpn() { + public ProductIPBlocklist() { } - public SignalResponseVpn data(VpnResult data) { + public ProductIPBlocklist data(IPBlocklist data) { this.data = data; return this; } @@ -47,19 +47,19 @@ public SignalResponseVpn data(VpnResult data) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VpnResult getData() { + public IPBlocklist getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(VpnResult data) { + public void setData(IPBlocklist data) { this.data = data; } - public SignalResponseVpn error(ProductError error) { + public ProductIPBlocklist error(Error error) { this.error = error; return this; } @@ -73,20 +73,20 @@ public SignalResponseVpn error(ProductError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this SignalResponseVpn object is equal to o. + * Return true if this ProductIPBlocklist object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SignalResponseVpn signalResponseVpn = (SignalResponseVpn) o; - return Objects.equals(this.data, signalResponseVpn.data) && - Objects.equals(this.error, signalResponseVpn.error); + ProductIPBlocklist productIPBlocklist = (ProductIPBlocklist) o; + return Objects.equals(this.data, productIPBlocklist.data) && + Objects.equals(this.error, productIPBlocklist.error); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseVpn {\n"); + sb.append("class ProductIPBlocklist {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductIPInfo.java b/sdk/src/main/java/com/fingerprint/model/ProductIPInfo.java new file mode 100644 index 00000000..b5b4c7c8 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductIPInfo.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.IPInfo; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductIPInfo + */ + + +@JsonPropertyOrder({ + ProductIPInfo.JSON_PROPERTY_DATA, + ProductIPInfo.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductIPInfo { + public static final String JSON_PROPERTY_DATA = "data"; + private IPInfo data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductIPInfo() { + } + + public ProductIPInfo data(IPInfo data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IPInfo getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(IPInfo data) { + this.data = data; + } + + + public ProductIPInfo error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductIPInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductIPInfo productIPInfo = (ProductIPInfo) o; + return Objects.equals(this.data, productIPInfo.data) && + Objects.equals(this.error, productIPInfo.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductIPInfo {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductIdentification.java b/sdk/src/main/java/com/fingerprint/model/ProductIdentification.java new file mode 100644 index 00000000..7d0c9c6c --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductIdentification.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.Identification; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductIdentification + */ + + +@JsonPropertyOrder({ + ProductIdentification.JSON_PROPERTY_DATA, + ProductIdentification.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductIdentification { + public static final String JSON_PROPERTY_DATA = "data"; + private Identification data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductIdentification() { + } + + public ProductIdentification data(Identification data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Identification getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Identification data) { + this.data = data; + } + + + public ProductIdentification error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductIdentification object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductIdentification productIdentification = (ProductIdentification) o; + return Objects.equals(this.data, productIdentification.data) && + Objects.equals(this.error, productIdentification.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductIdentification {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductIncognito.java b/sdk/src/main/java/com/fingerprint/model/ProductIncognito.java new file mode 100644 index 00000000..eaf70193 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductIncognito.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.Incognito; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductIncognito + */ + + +@JsonPropertyOrder({ + ProductIncognito.JSON_PROPERTY_DATA, + ProductIncognito.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductIncognito { + public static final String JSON_PROPERTY_DATA = "data"; + private Incognito data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductIncognito() { + } + + public ProductIncognito data(Incognito data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Incognito getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Incognito data) { + this.data = data; + } + + + public ProductIncognito error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductIncognito object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductIncognito productIncognito = (ProductIncognito) o; + return Objects.equals(this.data, productIncognito.data) && + Objects.equals(this.error, productIncognito.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductIncognito {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java b/sdk/src/main/java/com/fingerprint/model/ProductJailbroken.java similarity index 73% rename from sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java rename to sdk/src/main/java/com/fingerprint/model/ProductJailbroken.java index abb65776..67541d70 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseTor.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductJailbroken.java @@ -6,34 +6,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.TorResult; +import com.fingerprint.model.Error; +import com.fingerprint.model.Jailbroken; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * SignalResponseTor + * ProductJailbroken */ @JsonPropertyOrder({ - SignalResponseTor.JSON_PROPERTY_DATA, - SignalResponseTor.JSON_PROPERTY_ERROR + ProductJailbroken.JSON_PROPERTY_DATA, + ProductJailbroken.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseTor { +public class ProductJailbroken { public static final String JSON_PROPERTY_DATA = "data"; - private TorResult data; + private Jailbroken data; public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; + private Error error; - public SignalResponseTor() { + public ProductJailbroken() { } - public SignalResponseTor data(TorResult data) { + public ProductJailbroken data(Jailbroken data) { this.data = data; return this; } @@ -47,19 +47,19 @@ public SignalResponseTor data(TorResult data) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TorResult getData() { + public Jailbroken getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(TorResult data) { + public void setData(Jailbroken data) { this.data = data; } - public SignalResponseTor error(ProductError error) { + public ProductJailbroken error(Error error) { this.error = error; return this; } @@ -73,20 +73,20 @@ public SignalResponseTor error(ProductError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this SignalResponseTor object is equal to o. + * Return true if this ProductJailbroken object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SignalResponseTor signalResponseTor = (SignalResponseTor) o; - return Objects.equals(this.data, signalResponseTor.data) && - Objects.equals(this.error, signalResponseTor.error); + ProductJailbroken productJailbroken = (ProductJailbroken) o; + return Objects.equals(this.data, productJailbroken.data) && + Objects.equals(this.error, productJailbroken.error); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseTor {\n"); + sb.append("class ProductJailbroken {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductLocationSpoofing.java b/sdk/src/main/java/com/fingerprint/model/ProductLocationSpoofing.java new file mode 100644 index 00000000..376f201d --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductLocationSpoofing.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.LocationSpoofing; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductLocationSpoofing + */ + + +@JsonPropertyOrder({ + ProductLocationSpoofing.JSON_PROPERTY_DATA, + ProductLocationSpoofing.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductLocationSpoofing { + public static final String JSON_PROPERTY_DATA = "data"; + private LocationSpoofing data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductLocationSpoofing() { + } + + public ProductLocationSpoofing data(LocationSpoofing data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LocationSpoofing getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(LocationSpoofing data) { + this.data = data; + } + + + public ProductLocationSpoofing error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductLocationSpoofing object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductLocationSpoofing productLocationSpoofing = (ProductLocationSpoofing) o; + return Objects.equals(this.data, productLocationSpoofing.data) && + Objects.equals(this.error, productLocationSpoofing.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductLocationSpoofing {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductPrivacySettings.java b/sdk/src/main/java/com/fingerprint/model/ProductPrivacySettings.java new file mode 100644 index 00000000..22e21683 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductPrivacySettings.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.PrivacySettings; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductPrivacySettings + */ + + +@JsonPropertyOrder({ + ProductPrivacySettings.JSON_PROPERTY_DATA, + ProductPrivacySettings.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductPrivacySettings { + public static final String JSON_PROPERTY_DATA = "data"; + private PrivacySettings data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductPrivacySettings() { + } + + public ProductPrivacySettings data(PrivacySettings data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PrivacySettings getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PrivacySettings data) { + this.data = data; + } + + + public ProductPrivacySettings error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductPrivacySettings object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductPrivacySettings productPrivacySettings = (ProductPrivacySettings) o; + return Objects.equals(this.data, productPrivacySettings.data) && + Objects.equals(this.error, productPrivacySettings.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductPrivacySettings {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductProxy.java b/sdk/src/main/java/com/fingerprint/model/ProductProxy.java new file mode 100644 index 00000000..85015d9f --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductProxy.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.Proxy; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductProxy + */ + + +@JsonPropertyOrder({ + ProductProxy.JSON_PROPERTY_DATA, + ProductProxy.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductProxy { + public static final String JSON_PROPERTY_DATA = "data"; + private Proxy data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductProxy() { + } + + public ProductProxy data(Proxy data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Proxy getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Proxy data) { + this.data = data; + } + + + public ProductProxy error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductProxy object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductProxy productProxy = (ProductProxy) o; + return Objects.equals(this.data, productProxy.data) && + Objects.equals(this.error, productProxy.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductProxy {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java b/sdk/src/main/java/com/fingerprint/model/ProductRawDeviceAttributes.java similarity index 73% rename from sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java rename to sdk/src/main/java/com/fingerprint/model/ProductRawDeviceAttributes.java index 217f78b0..33517c72 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseRawDeviceAttributes.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductRawDeviceAttributes.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IdentificationError; -import com.fingerprint.model.RawDeviceAttributesResultValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.RawDeviceAttribute; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -16,31 +16,31 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * SignalResponseRawDeviceAttributes + * ProductRawDeviceAttributes */ @JsonPropertyOrder({ - SignalResponseRawDeviceAttributes.JSON_PROPERTY_DATA, - SignalResponseRawDeviceAttributes.JSON_PROPERTY_ERROR + ProductRawDeviceAttributes.JSON_PROPERTY_DATA, + ProductRawDeviceAttributes.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseRawDeviceAttributes { +public class ProductRawDeviceAttributes { public static final String JSON_PROPERTY_DATA = "data"; - private Map data = null; + private Map data = null; public static final String JSON_PROPERTY_ERROR = "error"; - private IdentificationError error; + private Error error; - public SignalResponseRawDeviceAttributes() { + public ProductRawDeviceAttributes() { } - public SignalResponseRawDeviceAttributes data(Map data) { + public ProductRawDeviceAttributes data(Map data) { this.data = data; return this; } - public SignalResponseRawDeviceAttributes putdataItem(String key, RawDeviceAttributesResultValue dataItem) { + public ProductRawDeviceAttributes putdataItem(String key, RawDeviceAttribute dataItem) { if (this.data == null) { this.data = new HashMap<>(); } @@ -57,19 +57,19 @@ public SignalResponseRawDeviceAttributes putdataItem(String key, RawDeviceAttrib @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getData() { + public Map getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Map data) { + public void setData(Map data) { this.data = data; } - public SignalResponseRawDeviceAttributes error(IdentificationError error) { + public ProductRawDeviceAttributes error(Error error) { this.error = error; return this; } @@ -83,20 +83,20 @@ public SignalResponseRawDeviceAttributes error(IdentificationError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IdentificationError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(IdentificationError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this SignalResponseRawDeviceAttributes object is equal to o. + * Return true if this ProductRawDeviceAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -106,9 +106,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SignalResponseRawDeviceAttributes signalResponseRawDeviceAttributes = (SignalResponseRawDeviceAttributes) o; - return Objects.equals(this.data, signalResponseRawDeviceAttributes.data) && - Objects.equals(this.error, signalResponseRawDeviceAttributes.error); + ProductRawDeviceAttributes productRawDeviceAttributes = (ProductRawDeviceAttributes) o; + return Objects.equals(this.data, productRawDeviceAttributes.data) && + Objects.equals(this.error, productRawDeviceAttributes.error); } @Override @@ -119,7 +119,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseRawDeviceAttributes {\n"); + sb.append("class ProductRawDeviceAttributes {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java b/sdk/src/main/java/com/fingerprint/model/ProductRemoteControl.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java rename to sdk/src/main/java/com/fingerprint/model/ProductRemoteControl.java index 3e8fd21f..dad263f9 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponseBotd.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductRemoteControl.java @@ -6,34 +6,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.BotdResult; -import com.fingerprint.model.ProductError; +import com.fingerprint.model.Error; +import com.fingerprint.model.RemoteControl; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * ProductsResponseBotd + * ProductRemoteControl */ @JsonPropertyOrder({ - ProductsResponseBotd.JSON_PROPERTY_DATA, - ProductsResponseBotd.JSON_PROPERTY_ERROR + ProductRemoteControl.JSON_PROPERTY_DATA, + ProductRemoteControl.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ProductsResponseBotd { +public class ProductRemoteControl { public static final String JSON_PROPERTY_DATA = "data"; - private BotdResult data; + private RemoteControl data; public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; + private Error error; - public ProductsResponseBotd() { + public ProductRemoteControl() { } - public ProductsResponseBotd data(BotdResult data) { + public ProductRemoteControl data(RemoteControl data) { this.data = data; return this; } @@ -47,19 +47,19 @@ public ProductsResponseBotd data(BotdResult data) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BotdResult getData() { + public RemoteControl getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(BotdResult data) { + public void setData(RemoteControl data) { this.data = data; } - public ProductsResponseBotd error(ProductError error) { + public ProductRemoteControl error(Error error) { this.error = error; return this; } @@ -73,20 +73,20 @@ public ProductsResponseBotd error(ProductError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this ProductsResponseBotd object is equal to o. + * Return true if this ProductRemoteControl object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProductsResponseBotd productsResponseBotd = (ProductsResponseBotd) o; - return Objects.equals(this.data, productsResponseBotd.data) && - Objects.equals(this.error, productsResponseBotd.error); + ProductRemoteControl productRemoteControl = (ProductRemoteControl) o; + return Objects.equals(this.data, productRemoteControl.data) && + Objects.equals(this.error, productRemoteControl.error); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ProductsResponseBotd {\n"); + sb.append("class ProductRemoteControl {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductRootApps.java b/sdk/src/main/java/com/fingerprint/model/ProductRootApps.java new file mode 100644 index 00000000..988df9ec --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductRootApps.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.RootApps; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductRootApps + */ + + +@JsonPropertyOrder({ + ProductRootApps.JSON_PROPERTY_DATA, + ProductRootApps.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductRootApps { + public static final String JSON_PROPERTY_DATA = "data"; + private RootApps data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductRootApps() { + } + + public ProductRootApps data(RootApps data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RootApps getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(RootApps data) { + this.data = data; + } + + + public ProductRootApps error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductRootApps object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductRootApps productRootApps = (ProductRootApps) o; + return Objects.equals(this.data, productRootApps.data) && + Objects.equals(this.error, productRootApps.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductRootApps {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductSuspectScore.java b/sdk/src/main/java/com/fingerprint/model/ProductSuspectScore.java new file mode 100644 index 00000000..dbc2208e --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductSuspectScore.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.SuspectScore; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductSuspectScore + */ + + +@JsonPropertyOrder({ + ProductSuspectScore.JSON_PROPERTY_DATA, + ProductSuspectScore.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductSuspectScore { + public static final String JSON_PROPERTY_DATA = "data"; + private SuspectScore data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductSuspectScore() { + } + + public ProductSuspectScore data(SuspectScore data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SuspectScore getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SuspectScore data) { + this.data = data; + } + + + public ProductSuspectScore error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductSuspectScore object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductSuspectScore productSuspectScore = (ProductSuspectScore) o; + return Objects.equals(this.data, productSuspectScore.data) && + Objects.equals(this.error, productSuspectScore.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductSuspectScore {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java b/sdk/src/main/java/com/fingerprint/model/ProductTampering.java similarity index 73% rename from sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java rename to sdk/src/main/java/com/fingerprint/model/ProductTampering.java index 1858ec96..499fac67 100644 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpInfo.java +++ b/sdk/src/main/java/com/fingerprint/model/ProductTampering.java @@ -6,34 +6,34 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IpInfoResult; -import com.fingerprint.model.ProductError; +import com.fingerprint.model.Error; +import com.fingerprint.model.Tampering; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * SignalResponseIpInfo + * ProductTampering */ @JsonPropertyOrder({ - SignalResponseIpInfo.JSON_PROPERTY_DATA, - SignalResponseIpInfo.JSON_PROPERTY_ERROR + ProductTampering.JSON_PROPERTY_DATA, + ProductTampering.JSON_PROPERTY_ERROR }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseIpInfo { +public class ProductTampering { public static final String JSON_PROPERTY_DATA = "data"; - private IpInfoResult data; + private Tampering data; public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; + private Error error; - public SignalResponseIpInfo() { + public ProductTampering() { } - public SignalResponseIpInfo data(IpInfoResult data) { + public ProductTampering data(Tampering data) { this.data = data; return this; } @@ -47,19 +47,19 @@ public SignalResponseIpInfo data(IpInfoResult data) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IpInfoResult getData() { + public Tampering getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(IpInfoResult data) { + public void setData(Tampering data) { this.data = data; } - public SignalResponseIpInfo error(ProductError error) { + public ProductTampering error(Error error) { this.error = error; return this; } @@ -73,20 +73,20 @@ public SignalResponseIpInfo error(ProductError error) { @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductError getError() { + public Error getError() { return error; } @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { + public void setError(Error error) { this.error = error; } /** - * Return true if this SignalResponseIpInfo object is equal to o. + * Return true if this ProductTampering object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,9 +96,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SignalResponseIpInfo signalResponseIpInfo = (SignalResponseIpInfo) o; - return Objects.equals(this.data, signalResponseIpInfo.data) && - Objects.equals(this.error, signalResponseIpInfo.error); + ProductTampering productTampering = (ProductTampering) o; + return Objects.equals(this.data, productTampering.data) && + Objects.equals(this.error, productTampering.error); } @Override @@ -109,7 +109,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseIpInfo {\n"); + sb.append("class ProductTampering {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductTor.java b/sdk/src/main/java/com/fingerprint/model/ProductTor.java new file mode 100644 index 00000000..d586ee52 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductTor.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.Tor; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductTor + */ + + +@JsonPropertyOrder({ + ProductTor.JSON_PROPERTY_DATA, + ProductTor.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductTor { + public static final String JSON_PROPERTY_DATA = "data"; + private Tor data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductTor() { + } + + public ProductTor data(Tor data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Tor getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Tor data) { + this.data = data; + } + + + public ProductTor error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductTor object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductTor productTor = (ProductTor) o; + return Objects.equals(this.data, productTor.data) && + Objects.equals(this.error, productTor.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductTor {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductVPN.java b/sdk/src/main/java/com/fingerprint/model/ProductVPN.java new file mode 100644 index 00000000..bc3a0005 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductVPN.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.VPN; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductVPN + */ + + +@JsonPropertyOrder({ + ProductVPN.JSON_PROPERTY_DATA, + ProductVPN.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductVPN { + public static final String JSON_PROPERTY_DATA = "data"; + private VPN data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductVPN() { + } + + public ProductVPN data(VPN data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VPN getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(VPN data) { + this.data = data; + } + + + public ProductVPN error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductVPN object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductVPN productVPN = (ProductVPN) o; + return Objects.equals(this.data, productVPN.data) && + Objects.equals(this.error, productVPN.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductVPN {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductVelocity.java b/sdk/src/main/java/com/fingerprint/model/ProductVelocity.java new file mode 100644 index 00000000..0e12a159 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductVelocity.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.Velocity; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductVelocity + */ + + +@JsonPropertyOrder({ + ProductVelocity.JSON_PROPERTY_DATA, + ProductVelocity.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductVelocity { + public static final String JSON_PROPERTY_DATA = "data"; + private Velocity data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductVelocity() { + } + + public ProductVelocity data(Velocity data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Velocity getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Velocity data) { + this.data = data; + } + + + public ProductVelocity error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductVelocity object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductVelocity productVelocity = (ProductVelocity) o; + return Objects.equals(this.data, productVelocity.data) && + Objects.equals(this.error, productVelocity.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductVelocity {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductVirtualMachine.java b/sdk/src/main/java/com/fingerprint/model/ProductVirtualMachine.java new file mode 100644 index 00000000..e86bf640 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/ProductVirtualMachine.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.Error; +import com.fingerprint.model.VirtualMachine; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * ProductVirtualMachine + */ + + +@JsonPropertyOrder({ + ProductVirtualMachine.JSON_PROPERTY_DATA, + ProductVirtualMachine.JSON_PROPERTY_ERROR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class ProductVirtualMachine { + public static final String JSON_PROPERTY_DATA = "data"; + private VirtualMachine data; + + public static final String JSON_PROPERTY_ERROR = "error"; + private Error error; + + public ProductVirtualMachine() { + } + + public ProductVirtualMachine data(VirtualMachine data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VirtualMachine getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(VirtualMachine data) { + this.data = data; + } + + + public ProductVirtualMachine error(Error error) { + this.error = error; + return this; + } + + /** + * Get error + * @return error + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Error getError() { + return error; + } + + + @JsonProperty(JSON_PROPERTY_ERROR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setError(Error error) { + this.error = error; + } + + + /** + * Return true if this ProductVirtualMachine object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProductVirtualMachine productVirtualMachine = (ProductVirtualMachine) o; + return Objects.equals(this.data, productVirtualMachine.data) && + Objects.equals(this.error, productVirtualMachine.error); + } + + @Override + public int hashCode() { + return Objects.hash(data, error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProductVirtualMachine {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponse.java b/sdk/src/main/java/com/fingerprint/model/Products.java similarity index 60% rename from sdk/src/main/java/com/fingerprint/model/ProductsResponse.java rename to sdk/src/main/java/com/fingerprint/model/Products.java index 3fbd64ee..f2aaf88b 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponse.java +++ b/sdk/src/main/java/com/fingerprint/model/Products.java @@ -6,30 +6,30 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductsResponseBotd; -import com.fingerprint.model.ProductsResponseIdentification; -import com.fingerprint.model.SignalResponseClonedApp; -import com.fingerprint.model.SignalResponseDeveloperTools; -import com.fingerprint.model.SignalResponseEmulator; -import com.fingerprint.model.SignalResponseFactoryReset; -import com.fingerprint.model.SignalResponseFrida; -import com.fingerprint.model.SignalResponseHighActivity; -import com.fingerprint.model.SignalResponseIncognito; -import com.fingerprint.model.SignalResponseIpBlocklist; -import com.fingerprint.model.SignalResponseIpInfo; -import com.fingerprint.model.SignalResponseJailbroken; -import com.fingerprint.model.SignalResponseLocationSpoofing; -import com.fingerprint.model.SignalResponsePrivacySettings; -import com.fingerprint.model.SignalResponseProxy; -import com.fingerprint.model.SignalResponseRawDeviceAttributes; -import com.fingerprint.model.SignalResponseRemoteControl; -import com.fingerprint.model.SignalResponseRootApps; -import com.fingerprint.model.SignalResponseSuspectScore; -import com.fingerprint.model.SignalResponseTampering; -import com.fingerprint.model.SignalResponseTor; -import com.fingerprint.model.SignalResponseVelocity; -import com.fingerprint.model.SignalResponseVirtualMachine; -import com.fingerprint.model.SignalResponseVpn; +import com.fingerprint.model.ProductBotd; +import com.fingerprint.model.ProductClonedApp; +import com.fingerprint.model.ProductDeveloperTools; +import com.fingerprint.model.ProductEmulator; +import com.fingerprint.model.ProductFactoryReset; +import com.fingerprint.model.ProductFrida; +import com.fingerprint.model.ProductHighActivity; +import com.fingerprint.model.ProductIPBlocklist; +import com.fingerprint.model.ProductIPInfo; +import com.fingerprint.model.ProductIdentification; +import com.fingerprint.model.ProductIncognito; +import com.fingerprint.model.ProductJailbroken; +import com.fingerprint.model.ProductLocationSpoofing; +import com.fingerprint.model.ProductPrivacySettings; +import com.fingerprint.model.ProductProxy; +import com.fingerprint.model.ProductRawDeviceAttributes; +import com.fingerprint.model.ProductRemoteControl; +import com.fingerprint.model.ProductRootApps; +import com.fingerprint.model.ProductSuspectScore; +import com.fingerprint.model.ProductTampering; +import com.fingerprint.model.ProductTor; +import com.fingerprint.model.ProductVPN; +import com.fingerprint.model.ProductVelocity; +import com.fingerprint.model.ProductVirtualMachine; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; @@ -41,109 +41,109 @@ @Schema(description = "Contains all information about the request identified by `requestId`, depending on the pricing plan (Pro, Pro Plus, Enterprise)") @JsonPropertyOrder({ - ProductsResponse.JSON_PROPERTY_IDENTIFICATION, - ProductsResponse.JSON_PROPERTY_BOTD, - ProductsResponse.JSON_PROPERTY_IP_INFO, - ProductsResponse.JSON_PROPERTY_INCOGNITO, - ProductsResponse.JSON_PROPERTY_ROOT_APPS, - ProductsResponse.JSON_PROPERTY_EMULATOR, - ProductsResponse.JSON_PROPERTY_CLONED_APP, - ProductsResponse.JSON_PROPERTY_FACTORY_RESET, - ProductsResponse.JSON_PROPERTY_JAILBROKEN, - ProductsResponse.JSON_PROPERTY_FRIDA, - ProductsResponse.JSON_PROPERTY_IP_BLOCKLIST, - ProductsResponse.JSON_PROPERTY_TOR, - ProductsResponse.JSON_PROPERTY_PRIVACY_SETTINGS, - ProductsResponse.JSON_PROPERTY_VIRTUAL_MACHINE, - ProductsResponse.JSON_PROPERTY_VPN, - ProductsResponse.JSON_PROPERTY_PROXY, - ProductsResponse.JSON_PROPERTY_TAMPERING, - ProductsResponse.JSON_PROPERTY_HIGH_ACTIVITY, - ProductsResponse.JSON_PROPERTY_LOCATION_SPOOFING, - ProductsResponse.JSON_PROPERTY_SUSPECT_SCORE, - ProductsResponse.JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES, - ProductsResponse.JSON_PROPERTY_REMOTE_CONTROL, - ProductsResponse.JSON_PROPERTY_VELOCITY, - ProductsResponse.JSON_PROPERTY_DEVELOPER_TOOLS + Products.JSON_PROPERTY_IDENTIFICATION, + Products.JSON_PROPERTY_BOTD, + Products.JSON_PROPERTY_ROOT_APPS, + Products.JSON_PROPERTY_EMULATOR, + Products.JSON_PROPERTY_IP_INFO, + Products.JSON_PROPERTY_IP_BLOCKLIST, + Products.JSON_PROPERTY_TOR, + Products.JSON_PROPERTY_VPN, + Products.JSON_PROPERTY_PROXY, + Products.JSON_PROPERTY_INCOGNITO, + Products.JSON_PROPERTY_TAMPERING, + Products.JSON_PROPERTY_CLONED_APP, + Products.JSON_PROPERTY_FACTORY_RESET, + Products.JSON_PROPERTY_JAILBROKEN, + Products.JSON_PROPERTY_FRIDA, + Products.JSON_PROPERTY_PRIVACY_SETTINGS, + Products.JSON_PROPERTY_VIRTUAL_MACHINE, + Products.JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES, + Products.JSON_PROPERTY_HIGH_ACTIVITY, + Products.JSON_PROPERTY_LOCATION_SPOOFING, + Products.JSON_PROPERTY_SUSPECT_SCORE, + Products.JSON_PROPERTY_REMOTE_CONTROL, + Products.JSON_PROPERTY_VELOCITY, + Products.JSON_PROPERTY_DEVELOPER_TOOLS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ProductsResponse { +public class Products { public static final String JSON_PROPERTY_IDENTIFICATION = "identification"; - private ProductsResponseIdentification identification; + private ProductIdentification identification; public static final String JSON_PROPERTY_BOTD = "botd"; - private ProductsResponseBotd botd; + private ProductBotd botd; + + public static final String JSON_PROPERTY_ROOT_APPS = "rootApps"; + private ProductRootApps rootApps; + + public static final String JSON_PROPERTY_EMULATOR = "emulator"; + private ProductEmulator emulator; public static final String JSON_PROPERTY_IP_INFO = "ipInfo"; - private SignalResponseIpInfo ipInfo; + private ProductIPInfo ipInfo; - public static final String JSON_PROPERTY_INCOGNITO = "incognito"; - private SignalResponseIncognito incognito; + public static final String JSON_PROPERTY_IP_BLOCKLIST = "ipBlocklist"; + private ProductIPBlocklist ipBlocklist; - public static final String JSON_PROPERTY_ROOT_APPS = "rootApps"; - private SignalResponseRootApps rootApps; + public static final String JSON_PROPERTY_TOR = "tor"; + private ProductTor tor; - public static final String JSON_PROPERTY_EMULATOR = "emulator"; - private SignalResponseEmulator emulator; + public static final String JSON_PROPERTY_VPN = "vpn"; + private ProductVPN vpn; + + public static final String JSON_PROPERTY_PROXY = "proxy"; + private ProductProxy proxy; + + public static final String JSON_PROPERTY_INCOGNITO = "incognito"; + private ProductIncognito incognito; + + public static final String JSON_PROPERTY_TAMPERING = "tampering"; + private ProductTampering tampering; public static final String JSON_PROPERTY_CLONED_APP = "clonedApp"; - private SignalResponseClonedApp clonedApp; + private ProductClonedApp clonedApp; public static final String JSON_PROPERTY_FACTORY_RESET = "factoryReset"; - private SignalResponseFactoryReset factoryReset; + private ProductFactoryReset factoryReset; public static final String JSON_PROPERTY_JAILBROKEN = "jailbroken"; - private SignalResponseJailbroken jailbroken; + private ProductJailbroken jailbroken; public static final String JSON_PROPERTY_FRIDA = "frida"; - private SignalResponseFrida frida; - - public static final String JSON_PROPERTY_IP_BLOCKLIST = "ipBlocklist"; - private SignalResponseIpBlocklist ipBlocklist; - - public static final String JSON_PROPERTY_TOR = "tor"; - private SignalResponseTor tor; + private ProductFrida frida; public static final String JSON_PROPERTY_PRIVACY_SETTINGS = "privacySettings"; - private SignalResponsePrivacySettings privacySettings; + private ProductPrivacySettings privacySettings; public static final String JSON_PROPERTY_VIRTUAL_MACHINE = "virtualMachine"; - private SignalResponseVirtualMachine virtualMachine; - - public static final String JSON_PROPERTY_VPN = "vpn"; - private SignalResponseVpn vpn; - - public static final String JSON_PROPERTY_PROXY = "proxy"; - private SignalResponseProxy proxy; + private ProductVirtualMachine virtualMachine; - public static final String JSON_PROPERTY_TAMPERING = "tampering"; - private SignalResponseTampering tampering; + public static final String JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES = "rawDeviceAttributes"; + private ProductRawDeviceAttributes rawDeviceAttributes; public static final String JSON_PROPERTY_HIGH_ACTIVITY = "highActivity"; - private SignalResponseHighActivity highActivity; + private ProductHighActivity highActivity; public static final String JSON_PROPERTY_LOCATION_SPOOFING = "locationSpoofing"; - private SignalResponseLocationSpoofing locationSpoofing; + private ProductLocationSpoofing locationSpoofing; public static final String JSON_PROPERTY_SUSPECT_SCORE = "suspectScore"; - private SignalResponseSuspectScore suspectScore; - - public static final String JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES = "rawDeviceAttributes"; - private SignalResponseRawDeviceAttributes rawDeviceAttributes; + private ProductSuspectScore suspectScore; public static final String JSON_PROPERTY_REMOTE_CONTROL = "remoteControl"; - private SignalResponseRemoteControl remoteControl; + private ProductRemoteControl remoteControl; public static final String JSON_PROPERTY_VELOCITY = "velocity"; - private SignalResponseVelocity velocity; + private ProductVelocity velocity; public static final String JSON_PROPERTY_DEVELOPER_TOOLS = "developerTools"; - private SignalResponseDeveloperTools developerTools; + private ProductDeveloperTools developerTools; - public ProductsResponse() { + public Products() { } - public ProductsResponse identification(ProductsResponseIdentification identification) { + public Products identification(ProductIdentification identification) { this.identification = identification; return this; } @@ -157,19 +157,19 @@ public ProductsResponse identification(ProductsResponseIdentification identifica @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductsResponseIdentification getIdentification() { + public ProductIdentification getIdentification() { return identification; } @JsonProperty(JSON_PROPERTY_IDENTIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIdentification(ProductsResponseIdentification identification) { + public void setIdentification(ProductIdentification identification) { this.identification = identification; } - public ProductsResponse botd(ProductsResponseBotd botd) { + public Products botd(ProductBotd botd) { this.botd = botd; return this; } @@ -183,409 +183,435 @@ public ProductsResponse botd(ProductsResponseBotd botd) { @JsonProperty(JSON_PROPERTY_BOTD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProductsResponseBotd getBotd() { + public ProductBotd getBotd() { return botd; } @JsonProperty(JSON_PROPERTY_BOTD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBotd(ProductsResponseBotd botd) { + public void setBotd(ProductBotd botd) { this.botd = botd; } - public ProductsResponse ipInfo(SignalResponseIpInfo ipInfo) { - this.ipInfo = ipInfo; + public Products rootApps(ProductRootApps rootApps) { + this.rootApps = rootApps; return this; } /** - * Get ipInfo - * @return ipInfo + * Get rootApps + * @return rootApps **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_IP_INFO) + @JsonProperty(JSON_PROPERTY_ROOT_APPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseIpInfo getIpInfo() { - return ipInfo; + public ProductRootApps getRootApps() { + return rootApps; } - @JsonProperty(JSON_PROPERTY_IP_INFO) + @JsonProperty(JSON_PROPERTY_ROOT_APPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpInfo(SignalResponseIpInfo ipInfo) { - this.ipInfo = ipInfo; + public void setRootApps(ProductRootApps rootApps) { + this.rootApps = rootApps; } - public ProductsResponse incognito(SignalResponseIncognito incognito) { - this.incognito = incognito; + public Products emulator(ProductEmulator emulator) { + this.emulator = emulator; return this; } /** - * Get incognito - * @return incognito + * Get emulator + * @return emulator **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_INCOGNITO) + @JsonProperty(JSON_PROPERTY_EMULATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseIncognito getIncognito() { - return incognito; + public ProductEmulator getEmulator() { + return emulator; } - @JsonProperty(JSON_PROPERTY_INCOGNITO) + @JsonProperty(JSON_PROPERTY_EMULATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIncognito(SignalResponseIncognito incognito) { - this.incognito = incognito; + public void setEmulator(ProductEmulator emulator) { + this.emulator = emulator; } - public ProductsResponse rootApps(SignalResponseRootApps rootApps) { - this.rootApps = rootApps; + public Products ipInfo(ProductIPInfo ipInfo) { + this.ipInfo = ipInfo; return this; } /** - * Get rootApps - * @return rootApps + * Get ipInfo + * @return ipInfo **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ROOT_APPS) + @JsonProperty(JSON_PROPERTY_IP_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseRootApps getRootApps() { - return rootApps; + public ProductIPInfo getIpInfo() { + return ipInfo; } - @JsonProperty(JSON_PROPERTY_ROOT_APPS) + @JsonProperty(JSON_PROPERTY_IP_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRootApps(SignalResponseRootApps rootApps) { - this.rootApps = rootApps; + public void setIpInfo(ProductIPInfo ipInfo) { + this.ipInfo = ipInfo; } - public ProductsResponse emulator(SignalResponseEmulator emulator) { - this.emulator = emulator; + public Products ipBlocklist(ProductIPBlocklist ipBlocklist) { + this.ipBlocklist = ipBlocklist; return this; } /** - * Get emulator - * @return emulator + * Get ipBlocklist + * @return ipBlocklist **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_EMULATOR) + @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseEmulator getEmulator() { - return emulator; + public ProductIPBlocklist getIpBlocklist() { + return ipBlocklist; } - @JsonProperty(JSON_PROPERTY_EMULATOR) + @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmulator(SignalResponseEmulator emulator) { - this.emulator = emulator; + public void setIpBlocklist(ProductIPBlocklist ipBlocklist) { + this.ipBlocklist = ipBlocklist; } - public ProductsResponse clonedApp(SignalResponseClonedApp clonedApp) { - this.clonedApp = clonedApp; + public Products tor(ProductTor tor) { + this.tor = tor; return this; } /** - * Get clonedApp - * @return clonedApp + * Get tor + * @return tor **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_CLONED_APP) + @JsonProperty(JSON_PROPERTY_TOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseClonedApp getClonedApp() { - return clonedApp; + public ProductTor getTor() { + return tor; } - @JsonProperty(JSON_PROPERTY_CLONED_APP) + @JsonProperty(JSON_PROPERTY_TOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClonedApp(SignalResponseClonedApp clonedApp) { - this.clonedApp = clonedApp; + public void setTor(ProductTor tor) { + this.tor = tor; } - public ProductsResponse factoryReset(SignalResponseFactoryReset factoryReset) { - this.factoryReset = factoryReset; + public Products vpn(ProductVPN vpn) { + this.vpn = vpn; return this; } /** - * Get factoryReset - * @return factoryReset + * Get vpn + * @return vpn **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_FACTORY_RESET) + @JsonProperty(JSON_PROPERTY_VPN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseFactoryReset getFactoryReset() { - return factoryReset; + public ProductVPN getVpn() { + return vpn; } - @JsonProperty(JSON_PROPERTY_FACTORY_RESET) + @JsonProperty(JSON_PROPERTY_VPN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFactoryReset(SignalResponseFactoryReset factoryReset) { - this.factoryReset = factoryReset; + public void setVpn(ProductVPN vpn) { + this.vpn = vpn; } - public ProductsResponse jailbroken(SignalResponseJailbroken jailbroken) { - this.jailbroken = jailbroken; + public Products proxy(ProductProxy proxy) { + this.proxy = proxy; return this; } /** - * Get jailbroken - * @return jailbroken + * Get proxy + * @return proxy **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_JAILBROKEN) + @JsonProperty(JSON_PROPERTY_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseJailbroken getJailbroken() { - return jailbroken; + public ProductProxy getProxy() { + return proxy; } - @JsonProperty(JSON_PROPERTY_JAILBROKEN) + @JsonProperty(JSON_PROPERTY_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJailbroken(SignalResponseJailbroken jailbroken) { - this.jailbroken = jailbroken; + public void setProxy(ProductProxy proxy) { + this.proxy = proxy; } - public ProductsResponse frida(SignalResponseFrida frida) { - this.frida = frida; + public Products incognito(ProductIncognito incognito) { + this.incognito = incognito; return this; } /** - * Get frida - * @return frida + * Get incognito + * @return incognito **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_FRIDA) + @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseFrida getFrida() { - return frida; + public ProductIncognito getIncognito() { + return incognito; } - @JsonProperty(JSON_PROPERTY_FRIDA) + @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFrida(SignalResponseFrida frida) { - this.frida = frida; + public void setIncognito(ProductIncognito incognito) { + this.incognito = incognito; } - public ProductsResponse ipBlocklist(SignalResponseIpBlocklist ipBlocklist) { - this.ipBlocklist = ipBlocklist; + public Products tampering(ProductTampering tampering) { + this.tampering = tampering; return this; } /** - * Get ipBlocklist - * @return ipBlocklist + * Get tampering + * @return tampering **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) + @JsonProperty(JSON_PROPERTY_TAMPERING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseIpBlocklist getIpBlocklist() { - return ipBlocklist; + public ProductTampering getTampering() { + return tampering; } - @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) + @JsonProperty(JSON_PROPERTY_TAMPERING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpBlocklist(SignalResponseIpBlocklist ipBlocklist) { - this.ipBlocklist = ipBlocklist; + public void setTampering(ProductTampering tampering) { + this.tampering = tampering; } - public ProductsResponse tor(SignalResponseTor tor) { - this.tor = tor; + public Products clonedApp(ProductClonedApp clonedApp) { + this.clonedApp = clonedApp; return this; } /** - * Get tor - * @return tor + * Get clonedApp + * @return clonedApp **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_TOR) + @JsonProperty(JSON_PROPERTY_CLONED_APP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseTor getTor() { - return tor; + public ProductClonedApp getClonedApp() { + return clonedApp; } - @JsonProperty(JSON_PROPERTY_TOR) + @JsonProperty(JSON_PROPERTY_CLONED_APP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTor(SignalResponseTor tor) { - this.tor = tor; + public void setClonedApp(ProductClonedApp clonedApp) { + this.clonedApp = clonedApp; } - public ProductsResponse privacySettings(SignalResponsePrivacySettings privacySettings) { - this.privacySettings = privacySettings; + public Products factoryReset(ProductFactoryReset factoryReset) { + this.factoryReset = factoryReset; return this; } /** - * Get privacySettings - * @return privacySettings + * Get factoryReset + * @return factoryReset **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) + @JsonProperty(JSON_PROPERTY_FACTORY_RESET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponsePrivacySettings getPrivacySettings() { - return privacySettings; + public ProductFactoryReset getFactoryReset() { + return factoryReset; } - @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) + @JsonProperty(JSON_PROPERTY_FACTORY_RESET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrivacySettings(SignalResponsePrivacySettings privacySettings) { - this.privacySettings = privacySettings; + public void setFactoryReset(ProductFactoryReset factoryReset) { + this.factoryReset = factoryReset; } - public ProductsResponse virtualMachine(SignalResponseVirtualMachine virtualMachine) { - this.virtualMachine = virtualMachine; + public Products jailbroken(ProductJailbroken jailbroken) { + this.jailbroken = jailbroken; return this; } /** - * Get virtualMachine - * @return virtualMachine + * Get jailbroken + * @return jailbroken **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) + @JsonProperty(JSON_PROPERTY_JAILBROKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseVirtualMachine getVirtualMachine() { - return virtualMachine; + public ProductJailbroken getJailbroken() { + return jailbroken; } - @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) + @JsonProperty(JSON_PROPERTY_JAILBROKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVirtualMachine(SignalResponseVirtualMachine virtualMachine) { - this.virtualMachine = virtualMachine; + public void setJailbroken(ProductJailbroken jailbroken) { + this.jailbroken = jailbroken; } - public ProductsResponse vpn(SignalResponseVpn vpn) { - this.vpn = vpn; + public Products frida(ProductFrida frida) { + this.frida = frida; return this; } /** - * Get vpn - * @return vpn + * Get frida + * @return frida **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_VPN) + @JsonProperty(JSON_PROPERTY_FRIDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseVpn getVpn() { - return vpn; + public ProductFrida getFrida() { + return frida; } - @JsonProperty(JSON_PROPERTY_VPN) + @JsonProperty(JSON_PROPERTY_FRIDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVpn(SignalResponseVpn vpn) { - this.vpn = vpn; + public void setFrida(ProductFrida frida) { + this.frida = frida; } - public ProductsResponse proxy(SignalResponseProxy proxy) { - this.proxy = proxy; + public Products privacySettings(ProductPrivacySettings privacySettings) { + this.privacySettings = privacySettings; return this; } /** - * Get proxy - * @return proxy + * Get privacySettings + * @return privacySettings **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_PROXY) + @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseProxy getProxy() { - return proxy; + public ProductPrivacySettings getPrivacySettings() { + return privacySettings; } - @JsonProperty(JSON_PROPERTY_PROXY) + @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProxy(SignalResponseProxy proxy) { - this.proxy = proxy; + public void setPrivacySettings(ProductPrivacySettings privacySettings) { + this.privacySettings = privacySettings; } - public ProductsResponse tampering(SignalResponseTampering tampering) { - this.tampering = tampering; + public Products virtualMachine(ProductVirtualMachine virtualMachine) { + this.virtualMachine = virtualMachine; return this; } /** - * Get tampering - * @return tampering + * Get virtualMachine + * @return virtualMachine **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_TAMPERING) + @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseTampering getTampering() { - return tampering; + public ProductVirtualMachine getVirtualMachine() { + return virtualMachine; } - @JsonProperty(JSON_PROPERTY_TAMPERING) + @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTampering(SignalResponseTampering tampering) { - this.tampering = tampering; + public void setVirtualMachine(ProductVirtualMachine virtualMachine) { + this.virtualMachine = virtualMachine; + } + + + public Products rawDeviceAttributes(ProductRawDeviceAttributes rawDeviceAttributes) { + this.rawDeviceAttributes = rawDeviceAttributes; + return this; + } + + /** + * Get rawDeviceAttributes + * @return rawDeviceAttributes + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProductRawDeviceAttributes getRawDeviceAttributes() { + return rawDeviceAttributes; } - public ProductsResponse highActivity(SignalResponseHighActivity highActivity) { + @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRawDeviceAttributes(ProductRawDeviceAttributes rawDeviceAttributes) { + this.rawDeviceAttributes = rawDeviceAttributes; + } + + + public Products highActivity(ProductHighActivity highActivity) { this.highActivity = highActivity; return this; } @@ -599,19 +625,19 @@ public ProductsResponse highActivity(SignalResponseHighActivity highActivity) { @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseHighActivity getHighActivity() { + public ProductHighActivity getHighActivity() { return highActivity; } @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHighActivity(SignalResponseHighActivity highActivity) { + public void setHighActivity(ProductHighActivity highActivity) { this.highActivity = highActivity; } - public ProductsResponse locationSpoofing(SignalResponseLocationSpoofing locationSpoofing) { + public Products locationSpoofing(ProductLocationSpoofing locationSpoofing) { this.locationSpoofing = locationSpoofing; return this; } @@ -625,19 +651,19 @@ public ProductsResponse locationSpoofing(SignalResponseLocationSpoofing location @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseLocationSpoofing getLocationSpoofing() { + public ProductLocationSpoofing getLocationSpoofing() { return locationSpoofing; } @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocationSpoofing(SignalResponseLocationSpoofing locationSpoofing) { + public void setLocationSpoofing(ProductLocationSpoofing locationSpoofing) { this.locationSpoofing = locationSpoofing; } - public ProductsResponse suspectScore(SignalResponseSuspectScore suspectScore) { + public Products suspectScore(ProductSuspectScore suspectScore) { this.suspectScore = suspectScore; return this; } @@ -651,45 +677,19 @@ public ProductsResponse suspectScore(SignalResponseSuspectScore suspectScore) { @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseSuspectScore getSuspectScore() { + public ProductSuspectScore getSuspectScore() { return suspectScore; } @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuspectScore(SignalResponseSuspectScore suspectScore) { + public void setSuspectScore(ProductSuspectScore suspectScore) { this.suspectScore = suspectScore; } - public ProductsResponse rawDeviceAttributes(SignalResponseRawDeviceAttributes rawDeviceAttributes) { - this.rawDeviceAttributes = rawDeviceAttributes; - return this; - } - - /** - * Get rawDeviceAttributes - * @return rawDeviceAttributes - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SignalResponseRawDeviceAttributes getRawDeviceAttributes() { - return rawDeviceAttributes; - } - - - @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRawDeviceAttributes(SignalResponseRawDeviceAttributes rawDeviceAttributes) { - this.rawDeviceAttributes = rawDeviceAttributes; - } - - - public ProductsResponse remoteControl(SignalResponseRemoteControl remoteControl) { + public Products remoteControl(ProductRemoteControl remoteControl) { this.remoteControl = remoteControl; return this; } @@ -703,19 +703,19 @@ public ProductsResponse remoteControl(SignalResponseRemoteControl remoteControl) @JsonProperty(JSON_PROPERTY_REMOTE_CONTROL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseRemoteControl getRemoteControl() { + public ProductRemoteControl getRemoteControl() { return remoteControl; } @JsonProperty(JSON_PROPERTY_REMOTE_CONTROL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRemoteControl(SignalResponseRemoteControl remoteControl) { + public void setRemoteControl(ProductRemoteControl remoteControl) { this.remoteControl = remoteControl; } - public ProductsResponse velocity(SignalResponseVelocity velocity) { + public Products velocity(ProductVelocity velocity) { this.velocity = velocity; return this; } @@ -729,19 +729,19 @@ public ProductsResponse velocity(SignalResponseVelocity velocity) { @JsonProperty(JSON_PROPERTY_VELOCITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseVelocity getVelocity() { + public ProductVelocity getVelocity() { return velocity; } @JsonProperty(JSON_PROPERTY_VELOCITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVelocity(SignalResponseVelocity velocity) { + public void setVelocity(ProductVelocity velocity) { this.velocity = velocity; } - public ProductsResponse developerTools(SignalResponseDeveloperTools developerTools) { + public Products developerTools(ProductDeveloperTools developerTools) { this.developerTools = developerTools; return this; } @@ -755,20 +755,20 @@ public ProductsResponse developerTools(SignalResponseDeveloperTools developerToo @JsonProperty(JSON_PROPERTY_DEVELOPER_TOOLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SignalResponseDeveloperTools getDeveloperTools() { + public ProductDeveloperTools getDeveloperTools() { return developerTools; } @JsonProperty(JSON_PROPERTY_DEVELOPER_TOOLS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeveloperTools(SignalResponseDeveloperTools developerTools) { + public void setDeveloperTools(ProductDeveloperTools developerTools) { this.developerTools = developerTools; } /** - * Return true if this ProductsResponse object is equal to o. + * Return true if this Products object is equal to o. */ @Override public boolean equals(Object o) { @@ -778,63 +778,63 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProductsResponse productsResponse = (ProductsResponse) o; - return Objects.equals(this.identification, productsResponse.identification) && - Objects.equals(this.botd, productsResponse.botd) && - Objects.equals(this.ipInfo, productsResponse.ipInfo) && - Objects.equals(this.incognito, productsResponse.incognito) && - Objects.equals(this.rootApps, productsResponse.rootApps) && - Objects.equals(this.emulator, productsResponse.emulator) && - Objects.equals(this.clonedApp, productsResponse.clonedApp) && - Objects.equals(this.factoryReset, productsResponse.factoryReset) && - Objects.equals(this.jailbroken, productsResponse.jailbroken) && - Objects.equals(this.frida, productsResponse.frida) && - Objects.equals(this.ipBlocklist, productsResponse.ipBlocklist) && - Objects.equals(this.tor, productsResponse.tor) && - Objects.equals(this.privacySettings, productsResponse.privacySettings) && - Objects.equals(this.virtualMachine, productsResponse.virtualMachine) && - Objects.equals(this.vpn, productsResponse.vpn) && - Objects.equals(this.proxy, productsResponse.proxy) && - Objects.equals(this.tampering, productsResponse.tampering) && - Objects.equals(this.highActivity, productsResponse.highActivity) && - Objects.equals(this.locationSpoofing, productsResponse.locationSpoofing) && - Objects.equals(this.suspectScore, productsResponse.suspectScore) && - Objects.equals(this.rawDeviceAttributes, productsResponse.rawDeviceAttributes) && - Objects.equals(this.remoteControl, productsResponse.remoteControl) && - Objects.equals(this.velocity, productsResponse.velocity) && - Objects.equals(this.developerTools, productsResponse.developerTools); + Products products = (Products) o; + return Objects.equals(this.identification, products.identification) && + Objects.equals(this.botd, products.botd) && + Objects.equals(this.rootApps, products.rootApps) && + Objects.equals(this.emulator, products.emulator) && + Objects.equals(this.ipInfo, products.ipInfo) && + Objects.equals(this.ipBlocklist, products.ipBlocklist) && + Objects.equals(this.tor, products.tor) && + Objects.equals(this.vpn, products.vpn) && + Objects.equals(this.proxy, products.proxy) && + Objects.equals(this.incognito, products.incognito) && + Objects.equals(this.tampering, products.tampering) && + Objects.equals(this.clonedApp, products.clonedApp) && + Objects.equals(this.factoryReset, products.factoryReset) && + Objects.equals(this.jailbroken, products.jailbroken) && + Objects.equals(this.frida, products.frida) && + Objects.equals(this.privacySettings, products.privacySettings) && + Objects.equals(this.virtualMachine, products.virtualMachine) && + Objects.equals(this.rawDeviceAttributes, products.rawDeviceAttributes) && + Objects.equals(this.highActivity, products.highActivity) && + Objects.equals(this.locationSpoofing, products.locationSpoofing) && + Objects.equals(this.suspectScore, products.suspectScore) && + Objects.equals(this.remoteControl, products.remoteControl) && + Objects.equals(this.velocity, products.velocity) && + Objects.equals(this.developerTools, products.developerTools); } @Override public int hashCode() { - return Objects.hash(identification, botd, ipInfo, incognito, rootApps, emulator, clonedApp, factoryReset, jailbroken, frida, ipBlocklist, tor, privacySettings, virtualMachine, vpn, proxy, tampering, highActivity, locationSpoofing, suspectScore, rawDeviceAttributes, remoteControl, velocity, developerTools); + return Objects.hash(identification, botd, rootApps, emulator, ipInfo, ipBlocklist, tor, vpn, proxy, incognito, tampering, clonedApp, factoryReset, jailbroken, frida, privacySettings, virtualMachine, rawDeviceAttributes, highActivity, locationSpoofing, suspectScore, remoteControl, velocity, developerTools); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ProductsResponse {\n"); + sb.append("class Products {\n"); sb.append(" identification: ").append(toIndentedString(identification)).append("\n"); sb.append(" botd: ").append(toIndentedString(botd)).append("\n"); - sb.append(" ipInfo: ").append(toIndentedString(ipInfo)).append("\n"); - sb.append(" incognito: ").append(toIndentedString(incognito)).append("\n"); sb.append(" rootApps: ").append(toIndentedString(rootApps)).append("\n"); sb.append(" emulator: ").append(toIndentedString(emulator)).append("\n"); + sb.append(" ipInfo: ").append(toIndentedString(ipInfo)).append("\n"); + sb.append(" ipBlocklist: ").append(toIndentedString(ipBlocklist)).append("\n"); + sb.append(" tor: ").append(toIndentedString(tor)).append("\n"); + sb.append(" vpn: ").append(toIndentedString(vpn)).append("\n"); + sb.append(" proxy: ").append(toIndentedString(proxy)).append("\n"); + sb.append(" incognito: ").append(toIndentedString(incognito)).append("\n"); + sb.append(" tampering: ").append(toIndentedString(tampering)).append("\n"); sb.append(" clonedApp: ").append(toIndentedString(clonedApp)).append("\n"); sb.append(" factoryReset: ").append(toIndentedString(factoryReset)).append("\n"); sb.append(" jailbroken: ").append(toIndentedString(jailbroken)).append("\n"); sb.append(" frida: ").append(toIndentedString(frida)).append("\n"); - sb.append(" ipBlocklist: ").append(toIndentedString(ipBlocklist)).append("\n"); - sb.append(" tor: ").append(toIndentedString(tor)).append("\n"); sb.append(" privacySettings: ").append(toIndentedString(privacySettings)).append("\n"); sb.append(" virtualMachine: ").append(toIndentedString(virtualMachine)).append("\n"); - sb.append(" vpn: ").append(toIndentedString(vpn)).append("\n"); - sb.append(" proxy: ").append(toIndentedString(proxy)).append("\n"); - sb.append(" tampering: ").append(toIndentedString(tampering)).append("\n"); + sb.append(" rawDeviceAttributes: ").append(toIndentedString(rawDeviceAttributes)).append("\n"); sb.append(" highActivity: ").append(toIndentedString(highActivity)).append("\n"); sb.append(" locationSpoofing: ").append(toIndentedString(locationSpoofing)).append("\n"); sb.append(" suspectScore: ").append(toIndentedString(suspectScore)).append("\n"); - sb.append(" rawDeviceAttributes: ").append(toIndentedString(rawDeviceAttributes)).append("\n"); sb.append(" remoteControl: ").append(toIndentedString(remoteControl)).append("\n"); sb.append(" velocity: ").append(toIndentedString(velocity)).append("\n"); sb.append(" developerTools: ").append(toIndentedString(developerTools)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java b/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java deleted file mode 100644 index 22110d6e..00000000 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentification.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IdentificationError; -import com.fingerprint.model.ProductsResponseIdentificationData; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * ProductsResponseIdentification - */ - - -@JsonPropertyOrder({ - ProductsResponseIdentification.JSON_PROPERTY_DATA, - ProductsResponseIdentification.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ProductsResponseIdentification { - public static final String JSON_PROPERTY_DATA = "data"; - private ProductsResponseIdentificationData data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private IdentificationError error; - - public ProductsResponseIdentification() { - } - - public ProductsResponseIdentification data(ProductsResponseIdentificationData data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductsResponseIdentificationData getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(ProductsResponseIdentificationData data) { - this.data = data; - } - - - public ProductsResponseIdentification error(IdentificationError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public IdentificationError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(IdentificationError error) { - this.error = error; - } - - - /** - * Return true if this ProductsResponseIdentification object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProductsResponseIdentification productsResponseIdentification = (ProductsResponseIdentification) o; - return Objects.equals(this.data, productsResponseIdentification.data) && - Objects.equals(this.error, productsResponseIdentification.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProductsResponseIdentification {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/ProxyResult.java b/sdk/src/main/java/com/fingerprint/model/Proxy.java similarity index 80% rename from sdk/src/main/java/com/fingerprint/model/ProxyResult.java rename to sdk/src/main/java/com/fingerprint/model/Proxy.java index 4f5ecf9d..309e0492 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProxyResult.java +++ b/sdk/src/main/java/com/fingerprint/model/Proxy.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * ProxyResult + * Proxy */ @JsonPropertyOrder({ - ProxyResult.JSON_PROPERTY_RESULT + Proxy.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ProxyResult { +public class Proxy { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public ProxyResult() { + public Proxy() { } - public ProxyResult result(Boolean result) { + public Proxy result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public ProxyResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if the request IP address is used by a public proxy provider, `false` otherwise. ") + @Schema(required = true, description = "`true` if the request IP address is used by a public proxy provider, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this ProxyResult object is equal to o. + * Return true if this Proxy object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProxyResult proxyResult = (ProxyResult) o; - return Objects.equals(this.result, proxyResult.result); + Proxy proxy = (Proxy) o; + return Objects.equals(this.result, proxy.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ProxyResult {\n"); + sb.append("class Proxy {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java b/sdk/src/main/java/com/fingerprint/model/RawDeviceAttribute.java similarity index 71% rename from sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java rename to sdk/src/main/java/com/fingerprint/model/RawDeviceAttribute.java index 46809fe6..3f7a93ec 100644 --- a/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributesResultValue.java +++ b/sdk/src/main/java/com/fingerprint/model/RawDeviceAttribute.java @@ -6,87 +6,86 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.Error; +import com.fingerprint.model.RawDeviceAttributeError; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * RawDeviceAttributesResultValue + * RawDeviceAttribute */ @JsonPropertyOrder({ - RawDeviceAttributesResultValue.JSON_PROPERTY_ERROR, - RawDeviceAttributesResultValue.JSON_PROPERTY_VALUE + RawDeviceAttribute.JSON_PROPERTY_VALUE, + RawDeviceAttribute.JSON_PROPERTY_ERROR }) -@JsonTypeName("RawDeviceAttributesResult_value") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class RawDeviceAttributesResultValue { - public static final String JSON_PROPERTY_ERROR = "error"; - private Error error; - +public class RawDeviceAttribute { public static final String JSON_PROPERTY_VALUE = "value"; private Object value = null; - public RawDeviceAttributesResultValue() { + public static final String JSON_PROPERTY_ERROR = "error"; + private RawDeviceAttributeError error; + + public RawDeviceAttribute() { } - public RawDeviceAttributesResultValue error(Error error) { - this.error = error; + public RawDeviceAttribute value(Object value) { + this.value = value; return this; } /** - * Get error - * @return error + * Get value + * @return value **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Error getError() { - return error; + public Object getValue() { + return value; } - @JsonProperty(JSON_PROPERTY_ERROR) + @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(Error error) { - this.error = error; + public void setValue(Object value) { + this.value = value; } - public RawDeviceAttributesResultValue value(Object value) { - this.value = value; + public RawDeviceAttribute error(RawDeviceAttributeError error) { + this.error = error; return this; } /** - * Get value - * @return value + * Get error + * @return error **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getValue() { - return value; + public RawDeviceAttributeError getError() { + return error; } - @JsonProperty(JSON_PROPERTY_VALUE) + @JsonProperty(JSON_PROPERTY_ERROR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setValue(Object value) { - this.value = value; + public void setError(RawDeviceAttributeError error) { + this.error = error; } /** - * Return true if this RawDeviceAttributesResult_value object is equal to o. + * Return true if this RawDeviceAttribute object is equal to o. */ @Override public boolean equals(Object o) { @@ -96,22 +95,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RawDeviceAttributesResultValue rawDeviceAttributesResultValue = (RawDeviceAttributesResultValue) o; - return Objects.equals(this.error, rawDeviceAttributesResultValue.error) && - Objects.equals(this.value, rawDeviceAttributesResultValue.value); + RawDeviceAttribute rawDeviceAttribute = (RawDeviceAttribute) o; + return Objects.equals(this.value, rawDeviceAttribute.value) && + Objects.equals(this.error, rawDeviceAttribute.error); } @Override public int hashCode() { - return Objects.hash(error, value); + return Objects.hash(value, error); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RawDeviceAttributesResultValue {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("class RawDeviceAttribute {\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributeError.java b/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributeError.java new file mode 100644 index 00000000..f9567b54 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/RawDeviceAttributeError.java @@ -0,0 +1,129 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * RawDeviceAttributeError + */ + + +@JsonPropertyOrder({ + RawDeviceAttributeError.JSON_PROPERTY_NAME, + RawDeviceAttributeError.JSON_PROPERTY_MESSAGE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class RawDeviceAttributeError { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public RawDeviceAttributeError() { + } + + public RawDeviceAttributeError name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public RawDeviceAttributeError message(String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMessage() { + return message; + } + + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + } + + + /** + * Return true if this RawDeviceAttributeError object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RawDeviceAttributeError rawDeviceAttributeError = (RawDeviceAttributeError) o; + return Objects.equals(this.name, rawDeviceAttributeError.name) && + Objects.equals(this.message, rawDeviceAttributeError.message); + } + + @Override + public int hashCode() { + return Objects.hash(name, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RawDeviceAttributeError {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/RemoteControlResult.java b/sdk/src/main/java/com/fingerprint/model/RemoteControl.java similarity index 77% rename from sdk/src/main/java/com/fingerprint/model/RemoteControlResult.java rename to sdk/src/main/java/com/fingerprint/model/RemoteControl.java index 96007954..f5c148b8 100644 --- a/sdk/src/main/java/com/fingerprint/model/RemoteControlResult.java +++ b/sdk/src/main/java/com/fingerprint/model/RemoteControl.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * RemoteControlResult + * RemoteControl */ @JsonPropertyOrder({ - RemoteControlResult.JSON_PROPERTY_RESULT + RemoteControl.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class RemoteControlResult { +public class RemoteControl { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public RemoteControlResult() { + public RemoteControl() { } - public RemoteControlResult result(Boolean result) { + public RemoteControl result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public RemoteControlResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. ") + @Schema(required = true, description = "`true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this RemoteControlResult object is equal to o. + * Return true if this RemoteControl object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RemoteControlResult remoteControlResult = (RemoteControlResult) o; - return Objects.equals(this.result, remoteControlResult.result); + RemoteControl remoteControl = (RemoteControl) o; + return Objects.equals(this.result, remoteControl.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RemoteControlResult {\n"); + sb.append("class RemoteControl {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/RootAppsResult.java b/sdk/src/main/java/com/fingerprint/model/RootApps.java similarity index 70% rename from sdk/src/main/java/com/fingerprint/model/RootAppsResult.java rename to sdk/src/main/java/com/fingerprint/model/RootApps.java index 6f782e6b..bcbad355 100644 --- a/sdk/src/main/java/com/fingerprint/model/RootAppsResult.java +++ b/sdk/src/main/java/com/fingerprint/model/RootApps.java @@ -12,32 +12,32 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * RootAppsResult + * RootApps */ @JsonPropertyOrder({ - RootAppsResult.JSON_PROPERTY_RESULT + RootApps.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class RootAppsResult { +public class RootApps { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public RootAppsResult() { + public RootApps() { } - public RootAppsResult result(Boolean result) { + public RootApps result(Boolean result) { this.result = result; return this; } /** - * Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. + * Android specific root management apps detection. There are 2 values: * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android. * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. ") + @Schema(required = true, description = "Android specific root management apps detection. There are 2 values: * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this RootAppsResult object is equal to o. + * Return true if this RootApps object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - RootAppsResult rootAppsResult = (RootAppsResult) o; - return Objects.equals(this.result, rootAppsResult.result); + RootApps rootApps = (RootApps) o; + return Objects.equals(this.result, rootApps.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class RootAppsResult {\n"); + sb.append("class RootApps {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java deleted file mode 100644 index 05593fe4..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseClonedApp.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ClonedAppResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseClonedApp - */ - - -@JsonPropertyOrder({ - SignalResponseClonedApp.JSON_PROPERTY_DATA, - SignalResponseClonedApp.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseClonedApp { - public static final String JSON_PROPERTY_DATA = "data"; - private ClonedAppResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseClonedApp() { - } - - public SignalResponseClonedApp data(ClonedAppResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ClonedAppResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(ClonedAppResult data) { - this.data = data; - } - - - public SignalResponseClonedApp error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseClonedApp object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseClonedApp signalResponseClonedApp = (SignalResponseClonedApp) o; - return Objects.equals(this.data, signalResponseClonedApp.data) && - Objects.equals(this.error, signalResponseClonedApp.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseClonedApp {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseDeveloperTools.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseDeveloperTools.java deleted file mode 100644 index 9f27a6ce..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseDeveloperTools.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.DeveloperToolsResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseDeveloperTools - */ - - -@JsonPropertyOrder({ - SignalResponseDeveloperTools.JSON_PROPERTY_DATA, - SignalResponseDeveloperTools.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseDeveloperTools { - public static final String JSON_PROPERTY_DATA = "data"; - private DeveloperToolsResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseDeveloperTools() { - } - - public SignalResponseDeveloperTools data(DeveloperToolsResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public DeveloperToolsResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(DeveloperToolsResult data) { - this.data = data; - } - - - public SignalResponseDeveloperTools error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseDeveloperTools object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseDeveloperTools signalResponseDeveloperTools = (SignalResponseDeveloperTools) o; - return Objects.equals(this.data, signalResponseDeveloperTools.data) && - Objects.equals(this.error, signalResponseDeveloperTools.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseDeveloperTools {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java deleted file mode 100644 index f84151cf..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseEmulator.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.EmulatorResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseEmulator - */ - - -@JsonPropertyOrder({ - SignalResponseEmulator.JSON_PROPERTY_DATA, - SignalResponseEmulator.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseEmulator { - public static final String JSON_PROPERTY_DATA = "data"; - private EmulatorResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseEmulator() { - } - - public SignalResponseEmulator data(EmulatorResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public EmulatorResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(EmulatorResult data) { - this.data = data; - } - - - public SignalResponseEmulator error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseEmulator object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseEmulator signalResponseEmulator = (SignalResponseEmulator) o; - return Objects.equals(this.data, signalResponseEmulator.data) && - Objects.equals(this.error, signalResponseEmulator.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseEmulator {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java deleted file mode 100644 index 004b4c48..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseFactoryReset.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.FactoryResetResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseFactoryReset - */ - - -@JsonPropertyOrder({ - SignalResponseFactoryReset.JSON_PROPERTY_DATA, - SignalResponseFactoryReset.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseFactoryReset { - public static final String JSON_PROPERTY_DATA = "data"; - private FactoryResetResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseFactoryReset() { - } - - public SignalResponseFactoryReset data(FactoryResetResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public FactoryResetResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(FactoryResetResult data) { - this.data = data; - } - - - public SignalResponseFactoryReset error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseFactoryReset object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseFactoryReset signalResponseFactoryReset = (SignalResponseFactoryReset) o; - return Objects.equals(this.data, signalResponseFactoryReset.data) && - Objects.equals(this.error, signalResponseFactoryReset.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseFactoryReset {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java deleted file mode 100644 index ec2d449d..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseHighActivity.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.HighActivityResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseHighActivity - */ - - -@JsonPropertyOrder({ - SignalResponseHighActivity.JSON_PROPERTY_DATA, - SignalResponseHighActivity.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseHighActivity { - public static final String JSON_PROPERTY_DATA = "data"; - private HighActivityResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseHighActivity() { - } - - public SignalResponseHighActivity data(HighActivityResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public HighActivityResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(HighActivityResult data) { - this.data = data; - } - - - public SignalResponseHighActivity error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseHighActivity object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseHighActivity signalResponseHighActivity = (SignalResponseHighActivity) o; - return Objects.equals(this.data, signalResponseHighActivity.data) && - Objects.equals(this.error, signalResponseHighActivity.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseHighActivity {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java deleted file mode 100644 index 0873dd56..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseIncognito.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IdentificationError; -import com.fingerprint.model.IncognitoResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseIncognito - */ - - -@JsonPropertyOrder({ - SignalResponseIncognito.JSON_PROPERTY_DATA, - SignalResponseIncognito.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseIncognito { - public static final String JSON_PROPERTY_DATA = "data"; - private IncognitoResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private IdentificationError error; - - public SignalResponseIncognito() { - } - - public SignalResponseIncognito data(IncognitoResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public IncognitoResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(IncognitoResult data) { - this.data = data; - } - - - public SignalResponseIncognito error(IdentificationError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public IdentificationError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(IdentificationError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseIncognito object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseIncognito signalResponseIncognito = (SignalResponseIncognito) o; - return Objects.equals(this.data, signalResponseIncognito.data) && - Objects.equals(this.error, signalResponseIncognito.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseIncognito {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java deleted file mode 100644 index b7b874bf..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseIpBlocklist.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IpBlockListResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseIpBlocklist - */ - - -@JsonPropertyOrder({ - SignalResponseIpBlocklist.JSON_PROPERTY_DATA, - SignalResponseIpBlocklist.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseIpBlocklist { - public static final String JSON_PROPERTY_DATA = "data"; - private IpBlockListResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseIpBlocklist() { - } - - public SignalResponseIpBlocklist data(IpBlockListResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public IpBlockListResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(IpBlockListResult data) { - this.data = data; - } - - - public SignalResponseIpBlocklist error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseIpBlocklist object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseIpBlocklist signalResponseIpBlocklist = (SignalResponseIpBlocklist) o; - return Objects.equals(this.data, signalResponseIpBlocklist.data) && - Objects.equals(this.error, signalResponseIpBlocklist.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseIpBlocklist {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java deleted file mode 100644 index 014aadba..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseJailbroken.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.JailbrokenResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseJailbroken - */ - - -@JsonPropertyOrder({ - SignalResponseJailbroken.JSON_PROPERTY_DATA, - SignalResponseJailbroken.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseJailbroken { - public static final String JSON_PROPERTY_DATA = "data"; - private JailbrokenResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseJailbroken() { - } - - public SignalResponseJailbroken data(JailbrokenResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JailbrokenResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(JailbrokenResult data) { - this.data = data; - } - - - public SignalResponseJailbroken error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseJailbroken object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseJailbroken signalResponseJailbroken = (SignalResponseJailbroken) o; - return Objects.equals(this.data, signalResponseJailbroken.data) && - Objects.equals(this.error, signalResponseJailbroken.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseJailbroken {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java deleted file mode 100644 index f0ae8136..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseLocationSpoofing.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.LocationSpoofingResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseLocationSpoofing - */ - - -@JsonPropertyOrder({ - SignalResponseLocationSpoofing.JSON_PROPERTY_DATA, - SignalResponseLocationSpoofing.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseLocationSpoofing { - public static final String JSON_PROPERTY_DATA = "data"; - private LocationSpoofingResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseLocationSpoofing() { - } - - public SignalResponseLocationSpoofing data(LocationSpoofingResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LocationSpoofingResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(LocationSpoofingResult data) { - this.data = data; - } - - - public SignalResponseLocationSpoofing error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseLocationSpoofing object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseLocationSpoofing signalResponseLocationSpoofing = (SignalResponseLocationSpoofing) o; - return Objects.equals(this.data, signalResponseLocationSpoofing.data) && - Objects.equals(this.error, signalResponseLocationSpoofing.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseLocationSpoofing {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java b/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java deleted file mode 100644 index f4dd638c..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponsePrivacySettings.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.PrivacySettingsResult; -import com.fingerprint.model.ProductError; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponsePrivacySettings - */ - - -@JsonPropertyOrder({ - SignalResponsePrivacySettings.JSON_PROPERTY_DATA, - SignalResponsePrivacySettings.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponsePrivacySettings { - public static final String JSON_PROPERTY_DATA = "data"; - private PrivacySettingsResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponsePrivacySettings() { - } - - public SignalResponsePrivacySettings data(PrivacySettingsResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public PrivacySettingsResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(PrivacySettingsResult data) { - this.data = data; - } - - - public SignalResponsePrivacySettings error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponsePrivacySettings object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponsePrivacySettings signalResponsePrivacySettings = (SignalResponsePrivacySettings) o; - return Objects.equals(this.data, signalResponsePrivacySettings.data) && - Objects.equals(this.error, signalResponsePrivacySettings.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponsePrivacySettings {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseRemoteControl.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseRemoteControl.java deleted file mode 100644 index 564e8500..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseRemoteControl.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.RemoteControlResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseRemoteControl - */ - - -@JsonPropertyOrder({ - SignalResponseRemoteControl.JSON_PROPERTY_DATA, - SignalResponseRemoteControl.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseRemoteControl { - public static final String JSON_PROPERTY_DATA = "data"; - private RemoteControlResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseRemoteControl() { - } - - public SignalResponseRemoteControl data(RemoteControlResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public RemoteControlResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(RemoteControlResult data) { - this.data = data; - } - - - public SignalResponseRemoteControl error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseRemoteControl object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseRemoteControl signalResponseRemoteControl = (SignalResponseRemoteControl) o; - return Objects.equals(this.data, signalResponseRemoteControl.data) && - Objects.equals(this.error, signalResponseRemoteControl.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseRemoteControl {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java deleted file mode 100644 index 4dcf292a..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseRootApps.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.RootAppsResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseRootApps - */ - - -@JsonPropertyOrder({ - SignalResponseRootApps.JSON_PROPERTY_DATA, - SignalResponseRootApps.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseRootApps { - public static final String JSON_PROPERTY_DATA = "data"; - private RootAppsResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseRootApps() { - } - - public SignalResponseRootApps data(RootAppsResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public RootAppsResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(RootAppsResult data) { - this.data = data; - } - - - public SignalResponseRootApps error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseRootApps object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseRootApps signalResponseRootApps = (SignalResponseRootApps) o; - return Objects.equals(this.data, signalResponseRootApps.data) && - Objects.equals(this.error, signalResponseRootApps.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseRootApps {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java deleted file mode 100644 index d6ca5e86..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.SuspectScoreResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseSuspectScore - */ - - -@JsonPropertyOrder({ - SignalResponseSuspectScore.JSON_PROPERTY_DATA, - SignalResponseSuspectScore.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseSuspectScore { - public static final String JSON_PROPERTY_DATA = "data"; - private SuspectScoreResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseSuspectScore() { - } - - public SignalResponseSuspectScore data(SuspectScoreResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SuspectScoreResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(SuspectScoreResult data) { - this.data = data; - } - - - public SignalResponseSuspectScore error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseSuspectScore object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseSuspectScore signalResponseSuspectScore = (SignalResponseSuspectScore) o; - return Objects.equals(this.data, signalResponseSuspectScore.data) && - Objects.equals(this.error, signalResponseSuspectScore.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseSuspectScore {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java deleted file mode 100644 index 3e91bd0d..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseTampering.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.IdentificationError; -import com.fingerprint.model.TamperingResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseTampering - */ - - -@JsonPropertyOrder({ - SignalResponseTampering.JSON_PROPERTY_DATA, - SignalResponseTampering.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseTampering { - public static final String JSON_PROPERTY_DATA = "data"; - private TamperingResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private IdentificationError error; - - public SignalResponseTampering() { - } - - public SignalResponseTampering data(TamperingResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TamperingResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(TamperingResult data) { - this.data = data; - } - - - public SignalResponseTampering error(IdentificationError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public IdentificationError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(IdentificationError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseTampering object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseTampering signalResponseTampering = (SignalResponseTampering) o; - return Objects.equals(this.data, signalResponseTampering.data) && - Objects.equals(this.error, signalResponseTampering.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseTampering {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseVelocity.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseVelocity.java deleted file mode 100644 index c95658c1..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseVelocity.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.VelocityResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseVelocity - */ - - -@JsonPropertyOrder({ - SignalResponseVelocity.JSON_PROPERTY_DATA, - SignalResponseVelocity.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseVelocity { - public static final String JSON_PROPERTY_DATA = "data"; - private VelocityResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseVelocity() { - } - - public SignalResponseVelocity data(VelocityResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public VelocityResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(VelocityResult data) { - this.data = data; - } - - - public SignalResponseVelocity error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseVelocity object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseVelocity signalResponseVelocity = (SignalResponseVelocity) o; - return Objects.equals(this.data, signalResponseVelocity.data) && - Objects.equals(this.error, signalResponseVelocity.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseVelocity {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java b/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java deleted file mode 100644 index 74d0c20c..00000000 --- a/sdk/src/main/java/com/fingerprint/model/SignalResponseVirtualMachine.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ProductError; -import com.fingerprint.model.VirtualMachineResult; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * SignalResponseVirtualMachine - */ - - -@JsonPropertyOrder({ - SignalResponseVirtualMachine.JSON_PROPERTY_DATA, - SignalResponseVirtualMachine.JSON_PROPERTY_ERROR -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SignalResponseVirtualMachine { - public static final String JSON_PROPERTY_DATA = "data"; - private VirtualMachineResult data; - - public static final String JSON_PROPERTY_ERROR = "error"; - private ProductError error; - - public SignalResponseVirtualMachine() { - } - - public SignalResponseVirtualMachine data(VirtualMachineResult data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public VirtualMachineResult getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(VirtualMachineResult data) { - this.data = data; - } - - - public SignalResponseVirtualMachine error(ProductError error) { - this.error = error; - return this; - } - - /** - * Get error - * @return error - **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public ProductError getError() { - return error; - } - - - @JsonProperty(JSON_PROPERTY_ERROR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setError(ProductError error) { - this.error = error; - } - - - /** - * Return true if this SignalResponseVirtualMachine object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SignalResponseVirtualMachine signalResponseVirtualMachine = (SignalResponseVirtualMachine) o; - return Objects.equals(this.data, signalResponseVirtualMachine.data) && - Objects.equals(this.error, signalResponseVirtualMachine.error); - } - - @Override - public int hashCode() { - return Objects.hash(data, error); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SignalResponseVirtualMachine {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java b/sdk/src/main/java/com/fingerprint/model/SuspectScore.java similarity index 72% rename from sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java rename to sdk/src/main/java/com/fingerprint/model/SuspectScore.java index a4eecc24..faa1b490 100644 --- a/sdk/src/main/java/com/fingerprint/model/SuspectScoreResult.java +++ b/sdk/src/main/java/com/fingerprint/model/SuspectScore.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * SuspectScoreResult + * SuspectScore */ @JsonPropertyOrder({ - SuspectScoreResult.JSON_PROPERTY_RESULT + SuspectScore.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class SuspectScoreResult { +public class SuspectScore { public static final String JSON_PROPERTY_RESULT = "result"; private Integer result; - public SuspectScoreResult() { + public SuspectScore() { } - public SuspectScoreResult result(Integer result) { + public SuspectScore result(Integer result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public SuspectScoreResult result(Integer result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "0", required = true, description = "Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score ") + @Schema(required = true, description = "Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Integer result) { /** - * Return true if this SuspectScoreResult object is equal to o. + * Return true if this SuspectScore object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SuspectScoreResult suspectScoreResult = (SuspectScoreResult) o; - return Objects.equals(this.result, suspectScoreResult.result); + SuspectScore suspectScore = (SuspectScore) o; + return Objects.equals(this.result, suspectScore.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SuspectScoreResult {\n"); + sb.append("class SuspectScore {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/Tampering.java b/sdk/src/main/java/com/fingerprint/model/Tampering.java new file mode 100644 index 00000000..54084e09 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/Tampering.java @@ -0,0 +1,163 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * Tampering + */ + + +@JsonPropertyOrder({ + Tampering.JSON_PROPERTY_RESULT, + Tampering.JSON_PROPERTY_ANOMALY_SCORE, + Tampering.JSON_PROPERTY_ANTI_DETECT_BROWSER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class Tampering { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public static final String JSON_PROPERTY_ANOMALY_SCORE = "anomalyScore"; + private Double anomalyScore; + + public static final String JSON_PROPERTY_ANTI_DETECT_BROWSER = "antiDetectBrowser"; + private Boolean antiDetectBrowser; + + public Tampering() { + } + + public Tampering result(Boolean result) { + this.result = result; + return this; + } + + /** + * Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). + * @return result + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResult(Boolean result) { + this.result = result; + } + + + public Tampering anomalyScore(Double anomalyScore) { + this.anomalyScore = anomalyScore; + return this; + } + + /** + * Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt. * Values below `0.5` indicate genuine browsers. + * minimum: 0 + * maximum: 1 + * @return anomalyScore + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt. * Values below `0.5` indicate genuine browsers. ") + @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Double getAnomalyScore() { + return anomalyScore; + } + + + @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAnomalyScore(Double anomalyScore) { + this.anomalyScore = anomalyScore; + } + + + public Tampering antiDetectBrowser(Boolean antiDetectBrowser) { + this.antiDetectBrowser = antiDetectBrowser; + return this; + } + + /** + * Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. + * @return antiDetectBrowser + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations.") + @JsonProperty(JSON_PROPERTY_ANTI_DETECT_BROWSER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getAntiDetectBrowser() { + return antiDetectBrowser; + } + + + @JsonProperty(JSON_PROPERTY_ANTI_DETECT_BROWSER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAntiDetectBrowser(Boolean antiDetectBrowser) { + this.antiDetectBrowser = antiDetectBrowser; + } + + + /** + * Return true if this Tampering object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Tampering tampering = (Tampering) o; + return Objects.equals(this.result, tampering.result) && + Objects.equals(this.anomalyScore, tampering.anomalyScore) && + Objects.equals(this.antiDetectBrowser, tampering.antiDetectBrowser); + } + + @Override + public int hashCode() { + return Objects.hash(result, anomalyScore, antiDetectBrowser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Tampering {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" anomalyScore: ").append(toIndentedString(anomalyScore)).append("\n"); + sb.append(" antiDetectBrowser: ").append(toIndentedString(antiDetectBrowser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/TamperingResult.java b/sdk/src/main/java/com/fingerprint/model/TamperingResult.java deleted file mode 100644 index 3aeae419..00000000 --- a/sdk/src/main/java/com/fingerprint/model/TamperingResult.java +++ /dev/null @@ -1,132 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * TamperingResult - */ - - -@JsonPropertyOrder({ - TamperingResult.JSON_PROPERTY_RESULT, - TamperingResult.JSON_PROPERTY_ANOMALY_SCORE -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class TamperingResult { - public static final String JSON_PROPERTY_RESULT = "result"; - private Boolean result; - - public static final String JSON_PROPERTY_ANOMALY_SCORE = "anomalyScore"; - private BigDecimal anomalyScore; - - public TamperingResult() { - } - - public TamperingResult result(Boolean result) { - this.result = result; - return this; - } - - /** - * Flag indicating whether browser tampering was detected according to our internal thresholds. - * @return result - **/ - @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Flag indicating whether browser tampering was detected according to our internal thresholds.") - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Boolean getResult() { - return result; - } - - - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setResult(Boolean result) { - this.result = result; - } - - - public TamperingResult anomalyScore(BigDecimal anomalyScore) { - this.anomalyScore = anomalyScore; - return this; - } - - /** - * Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers. - * minimum: 0 - * maximum: 1 - * @return anomalyScore - **/ - @jakarta.annotation.Nonnull - @Schema(example = "0", required = true, description = "Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers.") - @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public BigDecimal getAnomalyScore() { - return anomalyScore; - } - - - @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAnomalyScore(BigDecimal anomalyScore) { - this.anomalyScore = anomalyScore; - } - - - /** - * Return true if this TamperingResult object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TamperingResult tamperingResult = (TamperingResult) o; - return Objects.equals(this.result, tamperingResult.result) && - Objects.equals(this.anomalyScore, tamperingResult.anomalyScore); - } - - @Override - public int hashCode() { - return Objects.hash(result, anomalyScore); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TamperingResult {\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append(" anomalyScore: ").append(toIndentedString(anomalyScore)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/TorResult.java b/sdk/src/main/java/com/fingerprint/model/Tor.java similarity index 81% rename from sdk/src/main/java/com/fingerprint/model/TorResult.java rename to sdk/src/main/java/com/fingerprint/model/Tor.java index 1f34cbbf..ea041b2f 100644 --- a/sdk/src/main/java/com/fingerprint/model/TorResult.java +++ b/sdk/src/main/java/com/fingerprint/model/Tor.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * TorResult + * Tor */ @JsonPropertyOrder({ - TorResult.JSON_PROPERTY_RESULT + Tor.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class TorResult { +public class Tor { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public TorResult() { + public Tor() { } - public TorResult result(Boolean result) { + public Tor result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public TorResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if the request IP address is a known tor exit node, `false` otherwise. ") + @Schema(required = true, description = "`true` if the request IP address is a known tor exit node, `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this TorResult object is equal to o. + * Return true if this Tor object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TorResult torResult = (TorResult) o; - return Objects.equals(this.result, torResult.result); + Tor tor = (Tor) o; + return Objects.equals(this.result, tor.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TorResult {\n"); + sb.append("class Tor {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/VpnResult.java b/sdk/src/main/java/com/fingerprint/model/VPN.java similarity index 58% rename from sdk/src/main/java/com/fingerprint/model/VpnResult.java rename to sdk/src/main/java/com/fingerprint/model/VPN.java index 67925da0..2c6bce03 100644 --- a/sdk/src/main/java/com/fingerprint/model/VpnResult.java +++ b/sdk/src/main/java/com/fingerprint/model/VPN.java @@ -6,29 +6,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.VpnResultMethods; +import com.fingerprint.model.VPNConfidence; +import com.fingerprint.model.VPNMethods; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * VpnResult + * VPN */ @JsonPropertyOrder({ - VpnResult.JSON_PROPERTY_RESULT, - VpnResult.JSON_PROPERTY_ORIGIN_TIMEZONE, - VpnResult.JSON_PROPERTY_ORIGIN_COUNTRY, - VpnResult.JSON_PROPERTY_METHODS, - VpnResult.JSON_PROPERTY_CONFIDENCE + VPN.JSON_PROPERTY_RESULT, + VPN.JSON_PROPERTY_CONFIDENCE, + VPN.JSON_PROPERTY_ORIGIN_TIMEZONE, + VPN.JSON_PROPERTY_ORIGIN_COUNTRY, + VPN.JSON_PROPERTY_METHODS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class VpnResult { +public class VPN { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; + public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; + private VPNConfidence confidence; + public static final String JSON_PROPERTY_ORIGIN_TIMEZONE = "originTimezone"; private String originTimezone; @@ -36,52 +40,12 @@ public class VpnResult { private String originCountry; public static final String JSON_PROPERTY_METHODS = "methods"; - private VpnResultMethods methods; - - /** - * A confidence rating for the VPN detection result — \"low\", \"medium\", or \"high\". Depends on the combination of results returned from all VPN detection methods. - */ - public enum ConfidenceEnum { - LOW("low"), - - MEDIUM("medium"), - - HIGH("high"); - - private String value; - - ConfidenceEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ConfidenceEnum fromValue(String value) { - for (ConfidenceEnum b : ConfidenceEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - return null; - } - } - - public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; - private ConfidenceEnum confidence; + private VPNMethods methods; - public VpnResult() { + public VPN() { } - public VpnResult result(Boolean result) { + public VPN result(Boolean result) { this.result = result; return this; } @@ -91,7 +55,7 @@ public VpnResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "VPN or other anonymizing service has been used when sending the request.") + @Schema(required = true, description = "VPN or other anonymizing service has been used when sending the request.") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -107,7 +71,33 @@ public void setResult(Boolean result) { } - public VpnResult originTimezone(String originTimezone) { + public VPN confidence(VPNConfidence confidence) { + this.confidence = confidence; + return this; + } + + /** + * Get confidence + * @return confidence + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_CONFIDENCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VPNConfidence getConfidence() { + return confidence; + } + + + @JsonProperty(JSON_PROPERTY_CONFIDENCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setConfidence(VPNConfidence confidence) { + this.confidence = confidence; + } + + + public VPN originTimezone(String originTimezone) { this.originTimezone = originTimezone; return this; } @@ -117,7 +107,7 @@ public VpnResult originTimezone(String originTimezone) { * @return originTimezone **/ @jakarta.annotation.Nonnull - @Schema(example = "Europe/Berlin", required = true, description = "Local timezone which is used in timezoneMismatch method.") + @Schema(required = true, description = "Local timezone which is used in timezoneMismatch method.") @JsonProperty(JSON_PROPERTY_ORIGIN_TIMEZONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -133,7 +123,7 @@ public void setOriginTimezone(String originTimezone) { } - public VpnResult originCountry(String originCountry) { + public VPN originCountry(String originCountry) { this.originCountry = originCountry; return this; } @@ -142,10 +132,10 @@ public VpnResult originCountry(String originCountry) { * Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). * @return originCountry **/ - @jakarta.annotation.Nullable - @Schema(example = "unknown", description = "Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown).") + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown).") @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getOriginCountry() { return originCountry; @@ -153,13 +143,13 @@ public String getOriginCountry() { @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setOriginCountry(String originCountry) { this.originCountry = originCountry; } - public VpnResult methods(VpnResultMethods methods) { + public VPN methods(VPNMethods methods) { this.methods = methods; return this; } @@ -173,46 +163,20 @@ public VpnResult methods(VpnResultMethods methods) { @JsonProperty(JSON_PROPERTY_METHODS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public VpnResultMethods getMethods() { + public VPNMethods getMethods() { return methods; } @JsonProperty(JSON_PROPERTY_METHODS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setMethods(VpnResultMethods methods) { + public void setMethods(VPNMethods methods) { this.methods = methods; } - public VpnResult confidence(ConfidenceEnum confidence) { - this.confidence = confidence; - return this; - } - - /** - * A confidence rating for the VPN detection result — \"low\", \"medium\", or \"high\". Depends on the combination of results returned from all VPN detection methods. - * @return confidence - **/ - @jakarta.annotation.Nonnull - @Schema(example = "low", required = true, description = "A confidence rating for the VPN detection result — \"low\", \"medium\", or \"high\". Depends on the combination of results returned from all VPN detection methods.") - @JsonProperty(JSON_PROPERTY_CONFIDENCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public ConfidenceEnum getConfidence() { - return confidence; - } - - - @JsonProperty(JSON_PROPERTY_CONFIDENCE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConfidence(ConfidenceEnum confidence) { - this.confidence = confidence; - } - - /** - * Return true if this VpnResult object is equal to o. + * Return true if this VPN object is equal to o. */ @Override public boolean equals(Object o) { @@ -222,28 +186,28 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - VpnResult vpnResult = (VpnResult) o; - return Objects.equals(this.result, vpnResult.result) && - Objects.equals(this.originTimezone, vpnResult.originTimezone) && - Objects.equals(this.originCountry, vpnResult.originCountry) && - Objects.equals(this.methods, vpnResult.methods) && - Objects.equals(this.confidence, vpnResult.confidence); + VPN VPN = (VPN) o; + return Objects.equals(this.result, VPN.result) && + Objects.equals(this.confidence, VPN.confidence) && + Objects.equals(this.originTimezone, VPN.originTimezone) && + Objects.equals(this.originCountry, VPN.originCountry) && + Objects.equals(this.methods, VPN.methods); } @Override public int hashCode() { - return Objects.hash(result, originTimezone, originCountry, methods, confidence); + return Objects.hash(result, confidence, originTimezone, originCountry, methods); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class VpnResult {\n"); + sb.append("class VPN {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append(" originTimezone: ").append(toIndentedString(originTimezone)).append("\n"); sb.append(" originCountry: ").append(toIndentedString(originCountry)).append("\n"); sb.append(" methods: ").append(toIndentedString(methods)).append("\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/VPNConfidence.java b/sdk/src/main/java/com/fingerprint/model/VPNConfidence.java new file mode 100644 index 00000000..d8f0f743 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/VPNConfidence.java @@ -0,0 +1,48 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * A confidence rating for the VPN detection result — \"low\", \"medium\", or \"high\". Depends on the combination of results returned from all VPN detection methods. + */ +public enum VPNConfidence { + + LOW("low"), + + MEDIUM("medium"), + + HIGH("high"); + + private String value; + + VPNConfidence(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static VPNConfidence fromValue(String value) { + for (VPNConfidence b : VPNConfidence.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } +} + diff --git a/sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java b/sdk/src/main/java/com/fingerprint/model/VPNMethods.java similarity index 71% rename from sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java rename to sdk/src/main/java/com/fingerprint/model/VPNMethods.java index 97a0f496..abcdef86 100644 --- a/sdk/src/main/java/com/fingerprint/model/VpnResultMethods.java +++ b/sdk/src/main/java/com/fingerprint/model/VPNMethods.java @@ -12,19 +12,18 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * VpnResultMethods + * VPNMethods */ @JsonPropertyOrder({ - VpnResultMethods.JSON_PROPERTY_TIMEZONE_MISMATCH, - VpnResultMethods.JSON_PROPERTY_PUBLIC_V_P_N, - VpnResultMethods.JSON_PROPERTY_AUXILIARY_MOBILE, - VpnResultMethods.JSON_PROPERTY_OS_MISMATCH + VPNMethods.JSON_PROPERTY_TIMEZONE_MISMATCH, + VPNMethods.JSON_PROPERTY_PUBLIC_V_P_N, + VPNMethods.JSON_PROPERTY_AUXILIARY_MOBILE, + VPNMethods.JSON_PROPERTY_OS_MISMATCH }) -@JsonTypeName("VpnResult_methods") @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class VpnResultMethods { +public class VPNMethods { public static final String JSON_PROPERTY_TIMEZONE_MISMATCH = "timezoneMismatch"; private Boolean timezoneMismatch; @@ -37,10 +36,10 @@ public class VpnResultMethods { public static final String JSON_PROPERTY_OS_MISMATCH = "osMismatch"; private Boolean osMismatch; - public VpnResultMethods() { + public VPNMethods() { } - public VpnResultMethods timezoneMismatch(Boolean timezoneMismatch) { + public VPNMethods timezoneMismatch(Boolean timezoneMismatch) { this.timezoneMismatch = timezoneMismatch; return this; } @@ -50,7 +49,7 @@ public VpnResultMethods timezoneMismatch(Boolean timezoneMismatch) { * @return timezoneMismatch **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "The browser timezone doesn't match the timezone inferred from the request IP address.") + @Schema(required = true, description = "The browser timezone doesn't match the timezone inferred from the request IP address.") @JsonProperty(JSON_PROPERTY_TIMEZONE_MISMATCH) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -66,7 +65,7 @@ public void setTimezoneMismatch(Boolean timezoneMismatch) { } - public VpnResultMethods publicVPN(Boolean publicVPN) { + public VPNMethods publicVPN(Boolean publicVPN) { this.publicVPN = publicVPN; return this; } @@ -76,7 +75,7 @@ public VpnResultMethods publicVPN(Boolean publicVPN) { * @return publicVPN **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "Request IP address is owned and used by a public VPN service provider.") + @Schema(required = true, description = "Request IP address is owned and used by a public VPN service provider.") @JsonProperty(JSON_PROPERTY_PUBLIC_V_P_N) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -92,7 +91,7 @@ public void setPublicVPN(Boolean publicVPN) { } - public VpnResultMethods auxiliaryMobile(Boolean auxiliaryMobile) { + public VPNMethods auxiliaryMobile(Boolean auxiliaryMobile) { this.auxiliaryMobile = auxiliaryMobile; return this; } @@ -102,7 +101,7 @@ public VpnResultMethods auxiliaryMobile(Boolean auxiliaryMobile) { * @return auxiliaryMobile **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices.") + @Schema(required = true, description = "This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices.") @JsonProperty(JSON_PROPERTY_AUXILIARY_MOBILE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -118,17 +117,17 @@ public void setAuxiliaryMobile(Boolean auxiliaryMobile) { } - public VpnResultMethods osMismatch(Boolean osMismatch) { + public VPNMethods osMismatch(Boolean osMismatch) { this.osMismatch = osMismatch; return this; } /** - * The browser runs on a different operating system than the operating system inferred from the request network signature. + * The browser runs on a different operating system than the operating system inferred from the request network signature. * @return osMismatch **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "The browser runs on a different operating system than the operating system inferred from the request network signature.") + @Schema(required = true, description = "The browser runs on a different operating system than the operating system inferred from the request network signature.") @JsonProperty(JSON_PROPERTY_OS_MISMATCH) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -145,7 +144,7 @@ public void setOsMismatch(Boolean osMismatch) { /** - * Return true if this VpnResult_methods object is equal to o. + * Return true if this VPNMethods object is equal to o. */ @Override public boolean equals(Object o) { @@ -155,11 +154,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - VpnResultMethods vpnResultMethods = (VpnResultMethods) o; - return Objects.equals(this.timezoneMismatch, vpnResultMethods.timezoneMismatch) && - Objects.equals(this.publicVPN, vpnResultMethods.publicVPN) && - Objects.equals(this.auxiliaryMobile, vpnResultMethods.auxiliaryMobile) && - Objects.equals(this.osMismatch, vpnResultMethods.osMismatch); + VPNMethods vpNMethods = (VPNMethods) o; + return Objects.equals(this.timezoneMismatch, vpNMethods.timezoneMismatch) && + Objects.equals(this.publicVPN, vpNMethods.publicVPN) && + Objects.equals(this.auxiliaryMobile, vpNMethods.auxiliaryMobile) && + Objects.equals(this.osMismatch, vpNMethods.osMismatch); } @Override @@ -170,7 +169,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class VpnResultMethods {\n"); + sb.append("class VPNMethods {\n"); sb.append(" timezoneMismatch: ").append(toIndentedString(timezoneMismatch)).append("\n"); sb.append(" publicVPN: ").append(toIndentedString(publicVPN)).append("\n"); sb.append(" auxiliaryMobile: ").append(toIndentedString(auxiliaryMobile)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/Velocity.java b/sdk/src/main/java/com/fingerprint/model/Velocity.java new file mode 100644 index 00000000..9bbdb7b8 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/Velocity.java @@ -0,0 +1,290 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.VelocityData; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. + */ + +@Schema(description = "Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. ") +@JsonPropertyOrder({ + Velocity.JSON_PROPERTY_DISTINCT_IP, + Velocity.JSON_PROPERTY_DISTINCT_LINKED_ID, + Velocity.JSON_PROPERTY_DISTINCT_COUNTRY, + Velocity.JSON_PROPERTY_EVENTS, + Velocity.JSON_PROPERTY_IP_EVENTS, + Velocity.JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID, + Velocity.JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class Velocity { + public static final String JSON_PROPERTY_DISTINCT_IP = "distinctIp"; + private VelocityData distinctIp; + + public static final String JSON_PROPERTY_DISTINCT_LINKED_ID = "distinctLinkedId"; + private VelocityData distinctLinkedId; + + public static final String JSON_PROPERTY_DISTINCT_COUNTRY = "distinctCountry"; + private VelocityData distinctCountry; + + public static final String JSON_PROPERTY_EVENTS = "events"; + private VelocityData events; + + public static final String JSON_PROPERTY_IP_EVENTS = "ipEvents"; + private VelocityData ipEvents; + + public static final String JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID = "distinctIpByLinkedId"; + private VelocityData distinctIpByLinkedId; + + public static final String JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID = "distinctVisitorIdByLinkedId"; + private VelocityData distinctVisitorIdByLinkedId; + + public Velocity() { + } + + public Velocity distinctIp(VelocityData distinctIp) { + this.distinctIp = distinctIp; + return this; + } + + /** + * Get distinctIp + * @return distinctIp + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_IP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getDistinctIp() { + return distinctIp; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_IP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDistinctIp(VelocityData distinctIp) { + this.distinctIp = distinctIp; + } + + + public Velocity distinctLinkedId(VelocityData distinctLinkedId) { + this.distinctLinkedId = distinctLinkedId; + return this; + } + + /** + * Get distinctLinkedId + * @return distinctLinkedId + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getDistinctLinkedId() { + return distinctLinkedId; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDistinctLinkedId(VelocityData distinctLinkedId) { + this.distinctLinkedId = distinctLinkedId; + } + + + public Velocity distinctCountry(VelocityData distinctCountry) { + this.distinctCountry = distinctCountry; + return this; + } + + /** + * Get distinctCountry + * @return distinctCountry + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_COUNTRY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getDistinctCountry() { + return distinctCountry; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_COUNTRY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDistinctCountry(VelocityData distinctCountry) { + this.distinctCountry = distinctCountry; + } + + + public Velocity events(VelocityData events) { + this.events = events; + return this; + } + + /** + * Get events + * @return events + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_EVENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getEvents() { + return events; + } + + + @JsonProperty(JSON_PROPERTY_EVENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEvents(VelocityData events) { + this.events = events; + } + + + public Velocity ipEvents(VelocityData ipEvents) { + this.ipEvents = ipEvents; + return this; + } + + /** + * Get ipEvents + * @return ipEvents + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_IP_EVENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getIpEvents() { + return ipEvents; + } + + + @JsonProperty(JSON_PROPERTY_IP_EVENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIpEvents(VelocityData ipEvents) { + this.ipEvents = ipEvents; + } + + + public Velocity distinctIpByLinkedId(VelocityData distinctIpByLinkedId) { + this.distinctIpByLinkedId = distinctIpByLinkedId; + return this; + } + + /** + * Get distinctIpByLinkedId + * @return distinctIpByLinkedId + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getDistinctIpByLinkedId() { + return distinctIpByLinkedId; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDistinctIpByLinkedId(VelocityData distinctIpByLinkedId) { + this.distinctIpByLinkedId = distinctIpByLinkedId; + } + + + public Velocity distinctVisitorIdByLinkedId(VelocityData distinctVisitorIdByLinkedId) { + this.distinctVisitorIdByLinkedId = distinctVisitorIdByLinkedId; + return this; + } + + /** + * Get distinctVisitorIdByLinkedId + * @return distinctVisitorIdByLinkedId + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public VelocityData getDistinctVisitorIdByLinkedId() { + return distinctVisitorIdByLinkedId; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDistinctVisitorIdByLinkedId(VelocityData distinctVisitorIdByLinkedId) { + this.distinctVisitorIdByLinkedId = distinctVisitorIdByLinkedId; + } + + + /** + * Return true if this Velocity object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Velocity velocity = (Velocity) o; + return Objects.equals(this.distinctIp, velocity.distinctIp) && + Objects.equals(this.distinctLinkedId, velocity.distinctLinkedId) && + Objects.equals(this.distinctCountry, velocity.distinctCountry) && + Objects.equals(this.events, velocity.events) && + Objects.equals(this.ipEvents, velocity.ipEvents) && + Objects.equals(this.distinctIpByLinkedId, velocity.distinctIpByLinkedId) && + Objects.equals(this.distinctVisitorIdByLinkedId, velocity.distinctVisitorIdByLinkedId); + } + + @Override + public int hashCode() { + return Objects.hash(distinctIp, distinctLinkedId, distinctCountry, events, ipEvents, distinctIpByLinkedId, distinctVisitorIdByLinkedId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Velocity {\n"); + sb.append(" distinctIp: ").append(toIndentedString(distinctIp)).append("\n"); + sb.append(" distinctLinkedId: ").append(toIndentedString(distinctLinkedId)).append("\n"); + sb.append(" distinctCountry: ").append(toIndentedString(distinctCountry)).append("\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); + sb.append(" ipEvents: ").append(toIndentedString(ipEvents)).append("\n"); + sb.append(" distinctIpByLinkedId: ").append(toIndentedString(distinctIpByLinkedId)).append("\n"); + sb.append(" distinctVisitorIdByLinkedId: ").append(toIndentedString(distinctVisitorIdByLinkedId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java b/sdk/src/main/java/com/fingerprint/model/VelocityData.java similarity index 60% rename from sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java rename to sdk/src/main/java/com/fingerprint/model/VelocityData.java index 00637653..0d3c613d 100644 --- a/sdk/src/main/java/com/fingerprint/model/DeprecatedIPLocationCity.java +++ b/sdk/src/main/java/com/fingerprint/model/VelocityData.java @@ -6,55 +6,56 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.VelocityIntervals; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * DeprecatedIPLocationCity + * VelocityData */ @JsonPropertyOrder({ - DeprecatedIPLocationCity.JSON_PROPERTY_NAME + VelocityData.JSON_PROPERTY_INTERVALS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class DeprecatedIPLocationCity { - public static final String JSON_PROPERTY_NAME = "name"; - private String name; +public class VelocityData { + public static final String JSON_PROPERTY_INTERVALS = "intervals"; + private VelocityIntervals intervals; - public DeprecatedIPLocationCity() { + public VelocityData() { } - public DeprecatedIPLocationCity name(String name) { - this.name = name; + public VelocityData intervals(VelocityIntervals intervals) { + this.intervals = intervals; return this; } /** - * Get name - * @return name + * Get intervals + * @return intervals **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(JSON_PROPERTY_INTERVALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; + public VelocityIntervals getIntervals() { + return intervals; } - @JsonProperty(JSON_PROPERTY_NAME) + @JsonProperty(JSON_PROPERTY_INTERVALS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(String name) { - this.name = name; + public void setIntervals(VelocityIntervals intervals) { + this.intervals = intervals; } /** - * Return true if this DeprecatedIPLocationCity object is equal to o. + * Return true if this VelocityData object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,20 +65,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - DeprecatedIPLocationCity deprecatedIPLocationCity = (DeprecatedIPLocationCity) o; - return Objects.equals(this.name, deprecatedIPLocationCity.name); + VelocityData velocityData = (VelocityData) o; + return Objects.equals(this.intervals, velocityData.intervals); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(intervals); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class DeprecatedIPLocationCity {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("class VelocityData {\n"); + sb.append(" intervals: ").append(toIndentedString(intervals)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/VelocityIntervalResult.java b/sdk/src/main/java/com/fingerprint/model/VelocityIntervalResult.java deleted file mode 100644 index 5ea4e0b5..00000000 --- a/sdk/src/main/java/com/fingerprint/model/VelocityIntervalResult.java +++ /dev/null @@ -1,161 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * Is absent if the velocity data could not be generated for the visitor ID. - */ - -@Schema(description = "Is absent if the velocity data could not be generated for the visitor ID. ") -@JsonPropertyOrder({ - VelocityIntervalResult.JSON_PROPERTY_5M, - VelocityIntervalResult.JSON_PROPERTY_1H, - VelocityIntervalResult.JSON_PROPERTY_24H -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class VelocityIntervalResult { - public static final String JSON_PROPERTY_5M = "5m"; - private Integer _5m; - - public static final String JSON_PROPERTY_1H = "1h"; - private Integer _1h; - - public static final String JSON_PROPERTY_24H = "24h"; - private Integer _24h; - - public VelocityIntervalResult() { - } - - public VelocityIntervalResult _5m(Integer _5m) { - this._5m = _5m; - return this; - } - - /** - * Get _5m - * @return _5m - **/ - @jakarta.annotation.Nonnull - @Schema(example = "1", required = true, description = "") - @JsonProperty(JSON_PROPERTY_5M) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Integer get5m() { - return _5m; - } - - - @JsonProperty(JSON_PROPERTY_5M) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void set5m(Integer _5m) { - this._5m = _5m; - } - - - public VelocityIntervalResult _1h(Integer _1h) { - this._1h = _1h; - return this; - } - - /** - * Get _1h - * @return _1h - **/ - @jakarta.annotation.Nonnull - @Schema(example = "1", required = true, description = "") - @JsonProperty(JSON_PROPERTY_1H) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Integer get1h() { - return _1h; - } - - - @JsonProperty(JSON_PROPERTY_1H) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void set1h(Integer _1h) { - this._1h = _1h; - } - - - public VelocityIntervalResult _24h(Integer _24h) { - this._24h = _24h; - return this; - } - - /** - * The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. - * @return _24h - **/ - @jakarta.annotation.Nullable - @Schema(example = "1", description = "The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. ") - @JsonProperty(JSON_PROPERTY_24H) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer get24h() { - return _24h; - } - - - @JsonProperty(JSON_PROPERTY_24H) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void set24h(Integer _24h) { - this._24h = _24h; - } - - - /** - * Return true if this VelocityIntervalResult object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VelocityIntervalResult velocityIntervalResult = (VelocityIntervalResult) o; - return Objects.equals(this._5m, velocityIntervalResult._5m) && - Objects.equals(this._1h, velocityIntervalResult._1h) && - Objects.equals(this._24h, velocityIntervalResult._24h); - } - - @Override - public int hashCode() { - return Objects.hash(_5m, _1h, _24h); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VelocityIntervalResult {\n"); - sb.append(" _5m: ").append(toIndentedString(_5m)).append("\n"); - sb.append(" _1h: ").append(toIndentedString(_1h)).append("\n"); - sb.append(" _24h: ").append(toIndentedString(_24h)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/VelocityIntervals.java b/sdk/src/main/java/com/fingerprint/model/VelocityIntervals.java index 1edba23c..0edb2de3 100644 --- a/sdk/src/main/java/com/fingerprint/model/VelocityIntervals.java +++ b/sdk/src/main/java/com/fingerprint/model/VelocityIntervals.java @@ -6,51 +6,110 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.VelocityIntervalResult; import java.util.Arrays; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fingerprint.sdk.JSON; import io.swagger.v3.oas.annotations.media.Schema; /** - * VelocityIntervals + * Is absent if the velocity data could not be generated for the visitor ID. */ - +@Schema(description = "Is absent if the velocity data could not be generated for the visitor ID. ") @JsonPropertyOrder({ - VelocityIntervals.JSON_PROPERTY_INTERVALS + VelocityIntervals.JSON_PROPERTY_5M, + VelocityIntervals.JSON_PROPERTY_1H, + VelocityIntervals.JSON_PROPERTY_24H }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") public class VelocityIntervals { - public static final String JSON_PROPERTY_INTERVALS = "intervals"; - private VelocityIntervalResult intervals; + public static final String JSON_PROPERTY_5M = "5m"; + private Integer _5m; + + public static final String JSON_PROPERTY_1H = "1h"; + private Integer _1h; + + public static final String JSON_PROPERTY_24H = "24h"; + private Integer _24h; public VelocityIntervals() { } - public VelocityIntervals intervals(VelocityIntervalResult intervals) { - this.intervals = intervals; + public VelocityIntervals _5m(Integer _5m) { + this._5m = _5m; + return this; + } + + /** + * Get _5m + * @return _5m + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_5M) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer get5m() { + return _5m; + } + + + @JsonProperty(JSON_PROPERTY_5M) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void set5m(Integer _5m) { + this._5m = _5m; + } + + + public VelocityIntervals _1h(Integer _1h) { + this._1h = _1h; + return this; + } + + /** + * Get _1h + * @return _1h + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "") + @JsonProperty(JSON_PROPERTY_1H) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer get1h() { + return _1h; + } + + + @JsonProperty(JSON_PROPERTY_1H) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void set1h(Integer _1h) { + this._1h = _1h; + } + + + public VelocityIntervals _24h(Integer _24h) { + this._24h = _24h; return this; } /** - * Get intervals - * @return intervals + * The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. + * @return _24h **/ @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_INTERVALS) + @Schema(description = "The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. ") + @JsonProperty(JSON_PROPERTY_24H) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VelocityIntervalResult getIntervals() { - return intervals; + public Integer get24h() { + return _24h; } - @JsonProperty(JSON_PROPERTY_INTERVALS) + @JsonProperty(JSON_PROPERTY_24H) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIntervals(VelocityIntervalResult intervals) { - this.intervals = intervals; + public void set24h(Integer _24h) { + this._24h = _24h; } @@ -66,19 +125,23 @@ public boolean equals(Object o) { return false; } VelocityIntervals velocityIntervals = (VelocityIntervals) o; - return Objects.equals(this.intervals, velocityIntervals.intervals); + return Objects.equals(this._5m, velocityIntervals._5m) && + Objects.equals(this._1h, velocityIntervals._1h) && + Objects.equals(this._24h, velocityIntervals._24h); } @Override public int hashCode() { - return Objects.hash(intervals); + return Objects.hash(_5m, _1h, _24h); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VelocityIntervals {\n"); - sb.append(" intervals: ").append(toIndentedString(intervals)).append("\n"); + sb.append(" _5m: ").append(toIndentedString(_5m)).append("\n"); + sb.append(" _1h: ").append(toIndentedString(_1h)).append("\n"); + sb.append(" _24h: ").append(toIndentedString(_24h)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/VelocityResult.java b/sdk/src/main/java/com/fingerprint/model/VelocityResult.java deleted file mode 100644 index 70d0b542..00000000 --- a/sdk/src/main/java/com/fingerprint/model/VelocityResult.java +++ /dev/null @@ -1,194 +0,0 @@ -package com.fingerprint.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.VelocityIntervals; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fingerprint.sdk.JSON; -import io.swagger.v3.oas.annotations.media.Schema; - -/** - * Sums key data points for a specific `visitorId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of identification events attributed to the visitor ID - Number of distinct IP addresses associated to the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of distinct `linkedId`s associated with the visitor ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. - */ - -@Schema(description = "Sums key data points for a specific `visitorId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of identification events attributed to the visitor ID - Number of distinct IP addresses associated to the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of distinct `linkedId`s associated with the visitor ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. ") -@JsonPropertyOrder({ - VelocityResult.JSON_PROPERTY_DISTINCT_IP, - VelocityResult.JSON_PROPERTY_DISTINCT_LINKED_ID, - VelocityResult.JSON_PROPERTY_DISTINCT_COUNTRY, - VelocityResult.JSON_PROPERTY_EVENTS -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class VelocityResult { - public static final String JSON_PROPERTY_DISTINCT_IP = "distinctIp"; - private VelocityIntervals distinctIp; - - public static final String JSON_PROPERTY_DISTINCT_LINKED_ID = "distinctLinkedId"; - private VelocityIntervals distinctLinkedId; - - public static final String JSON_PROPERTY_DISTINCT_COUNTRY = "distinctCountry"; - private VelocityIntervals distinctCountry; - - public static final String JSON_PROPERTY_EVENTS = "events"; - private VelocityIntervals events; - - public VelocityResult() { - } - - public VelocityResult distinctIp(VelocityIntervals distinctIp) { - this.distinctIp = distinctIp; - return this; - } - - /** - * Get distinctIp - * @return distinctIp - **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_DISTINCT_IP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public VelocityIntervals getDistinctIp() { - return distinctIp; - } - - - @JsonProperty(JSON_PROPERTY_DISTINCT_IP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDistinctIp(VelocityIntervals distinctIp) { - this.distinctIp = distinctIp; - } - - - public VelocityResult distinctLinkedId(VelocityIntervals distinctLinkedId) { - this.distinctLinkedId = distinctLinkedId; - return this; - } - - /** - * Get distinctLinkedId - * @return distinctLinkedId - **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_DISTINCT_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public VelocityIntervals getDistinctLinkedId() { - return distinctLinkedId; - } - - - @JsonProperty(JSON_PROPERTY_DISTINCT_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDistinctLinkedId(VelocityIntervals distinctLinkedId) { - this.distinctLinkedId = distinctLinkedId; - } - - - public VelocityResult distinctCountry(VelocityIntervals distinctCountry) { - this.distinctCountry = distinctCountry; - return this; - } - - /** - * Get distinctCountry - * @return distinctCountry - **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_DISTINCT_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public VelocityIntervals getDistinctCountry() { - return distinctCountry; - } - - - @JsonProperty(JSON_PROPERTY_DISTINCT_COUNTRY) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setDistinctCountry(VelocityIntervals distinctCountry) { - this.distinctCountry = distinctCountry; - } - - - public VelocityResult events(VelocityIntervals events) { - this.events = events; - return this; - } - - /** - * Get events - * @return events - **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public VelocityIntervals getEvents() { - return events; - } - - - @JsonProperty(JSON_PROPERTY_EVENTS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setEvents(VelocityIntervals events) { - this.events = events; - } - - - /** - * Return true if this VelocityResult object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VelocityResult velocityResult = (VelocityResult) o; - return Objects.equals(this.distinctIp, velocityResult.distinctIp) && - Objects.equals(this.distinctLinkedId, velocityResult.distinctLinkedId) && - Objects.equals(this.distinctCountry, velocityResult.distinctCountry) && - Objects.equals(this.events, velocityResult.events); - } - - @Override - public int hashCode() { - return Objects.hash(distinctIp, distinctLinkedId, distinctCountry, events); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class VelocityResult {\n"); - sb.append(" distinctIp: ").append(toIndentedString(distinctIp)).append("\n"); - sb.append(" distinctLinkedId: ").append(toIndentedString(distinctLinkedId)).append("\n"); - sb.append(" distinctCountry: ").append(toIndentedString(distinctCountry)).append("\n"); - sb.append(" events: ").append(toIndentedString(events)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java b/sdk/src/main/java/com/fingerprint/model/VirtualMachine.java similarity index 76% rename from sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java rename to sdk/src/main/java/com/fingerprint/model/VirtualMachine.java index 617cdf10..61b237eb 100644 --- a/sdk/src/main/java/com/fingerprint/model/VirtualMachineResult.java +++ b/sdk/src/main/java/com/fingerprint/model/VirtualMachine.java @@ -12,22 +12,22 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * VirtualMachineResult + * VirtualMachine */ @JsonPropertyOrder({ - VirtualMachineResult.JSON_PROPERTY_RESULT + VirtualMachine.JSON_PROPERTY_RESULT }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class VirtualMachineResult { +public class VirtualMachine { public static final String JSON_PROPERTY_RESULT = "result"; private Boolean result; - public VirtualMachineResult() { + public VirtualMachine() { } - public VirtualMachineResult result(Boolean result) { + public VirtualMachine result(Boolean result) { this.result = result; return this; } @@ -37,7 +37,7 @@ public VirtualMachineResult result(Boolean result) { * @return result **/ @jakarta.annotation.Nonnull - @Schema(example = "false", required = true, description = "`true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. ") + @Schema(required = true, description = "`true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. ") @JsonProperty(JSON_PROPERTY_RESULT) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -54,7 +54,7 @@ public void setResult(Boolean result) { /** - * Return true if this VirtualMachineResult object is equal to o. + * Return true if this VirtualMachine object is equal to o. */ @Override public boolean equals(Object o) { @@ -64,8 +64,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - VirtualMachineResult virtualMachineResult = (VirtualMachineResult) o; - return Objects.equals(this.result, virtualMachineResult.result); + VirtualMachine virtualMachine = (VirtualMachine) o; + return Objects.equals(this.result, virtualMachine.result); } @Override @@ -76,7 +76,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class VirtualMachineResult {\n"); + sb.append("class VirtualMachine {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java b/sdk/src/main/java/com/fingerprint/model/Visit.java similarity index 62% rename from sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java rename to sdk/src/main/java/com/fingerprint/model/Visit.java index d1a46a89..d2f9a6e6 100644 --- a/sdk/src/main/java/com/fingerprint/model/ProductsResponseIdentificationData.java +++ b/sdk/src/main/java/com/fingerprint/model/Visit.java @@ -7,9 +7,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.fingerprint.model.BrowserDetails; -import com.fingerprint.model.Confidence; -import com.fingerprint.model.DeprecatedIPLocation; -import com.fingerprint.model.SeenAt; +import com.fingerprint.model.DeprecatedGeolocation; +import com.fingerprint.model.IdentificationConfidence; +import com.fingerprint.model.IdentificationSeenAt; +import com.fingerprint.model.RawDeviceAttribute; import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; @@ -19,29 +20,29 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * ProductsResponseIdentificationData + * Visit */ @JsonPropertyOrder({ - ProductsResponseIdentificationData.JSON_PROPERTY_REQUEST_ID, - ProductsResponseIdentificationData.JSON_PROPERTY_BROWSER_DETAILS, - ProductsResponseIdentificationData.JSON_PROPERTY_INCOGNITO, - ProductsResponseIdentificationData.JSON_PROPERTY_IP, - ProductsResponseIdentificationData.JSON_PROPERTY_IP_LOCATION, - ProductsResponseIdentificationData.JSON_PROPERTY_TIMESTAMP, - ProductsResponseIdentificationData.JSON_PROPERTY_TIME, - ProductsResponseIdentificationData.JSON_PROPERTY_URL, - ProductsResponseIdentificationData.JSON_PROPERTY_TAG, - ProductsResponseIdentificationData.JSON_PROPERTY_LINKED_ID, - ProductsResponseIdentificationData.JSON_PROPERTY_CONFIDENCE, - ProductsResponseIdentificationData.JSON_PROPERTY_VISITOR_FOUND, - ProductsResponseIdentificationData.JSON_PROPERTY_FIRST_SEEN_AT, - ProductsResponseIdentificationData.JSON_PROPERTY_LAST_SEEN_AT, - ProductsResponseIdentificationData.JSON_PROPERTY_VISITOR_ID + Visit.JSON_PROPERTY_REQUEST_ID, + Visit.JSON_PROPERTY_BROWSER_DETAILS, + Visit.JSON_PROPERTY_INCOGNITO, + Visit.JSON_PROPERTY_IP, + Visit.JSON_PROPERTY_IP_LOCATION, + Visit.JSON_PROPERTY_LINKED_ID, + Visit.JSON_PROPERTY_TIMESTAMP, + Visit.JSON_PROPERTY_TIME, + Visit.JSON_PROPERTY_URL, + Visit.JSON_PROPERTY_TAG, + Visit.JSON_PROPERTY_CONFIDENCE, + Visit.JSON_PROPERTY_VISITOR_FOUND, + Visit.JSON_PROPERTY_FIRST_SEEN_AT, + Visit.JSON_PROPERTY_LAST_SEEN_AT, + Visit.JSON_PROPERTY_COMPONENTS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class ProductsResponseIdentificationData { +public class Visit { public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; private String requestId; @@ -55,7 +56,10 @@ public class ProductsResponseIdentificationData { private String ip; public static final String JSON_PROPERTY_IP_LOCATION = "ipLocation"; - private DeprecatedIPLocation ipLocation; + private DeprecatedGeolocation ipLocation; + + public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; + private String linkedId; public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; private Long timestamp; @@ -69,38 +73,35 @@ public class ProductsResponseIdentificationData { public static final String JSON_PROPERTY_TAG = "tag"; private Map tag = new HashMap<>(); - public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; - private String linkedId; - public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; - private Confidence confidence; + private IdentificationConfidence confidence; public static final String JSON_PROPERTY_VISITOR_FOUND = "visitorFound"; private Boolean visitorFound; public static final String JSON_PROPERTY_FIRST_SEEN_AT = "firstSeenAt"; - private SeenAt firstSeenAt; + private IdentificationSeenAt firstSeenAt; public static final String JSON_PROPERTY_LAST_SEEN_AT = "lastSeenAt"; - private SeenAt lastSeenAt; + private IdentificationSeenAt lastSeenAt; - public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; - private String visitorId; + public static final String JSON_PROPERTY_COMPONENTS = "components"; + private Map components = null; - public ProductsResponseIdentificationData() { + public Visit() { } - public ProductsResponseIdentificationData requestId(String requestId) { + public Visit requestId(String requestId) { this.requestId = requestId; return this; } /** - * Unique identifier of the user's identification request. + * Unique identifier of the user's request. * @return requestId **/ @jakarta.annotation.Nonnull - @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") + @Schema(required = true, description = "Unique identifier of the user's request.") @JsonProperty(JSON_PROPERTY_REQUEST_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -116,7 +117,7 @@ public void setRequestId(String requestId) { } - public ProductsResponseIdentificationData browserDetails(BrowserDetails browserDetails) { + public Visit browserDetails(BrowserDetails browserDetails) { this.browserDetails = browserDetails; return this; } @@ -142,7 +143,7 @@ public void setBrowserDetails(BrowserDetails browserDetails) { } - public ProductsResponseIdentificationData incognito(Boolean incognito) { + public Visit incognito(Boolean incognito) { this.incognito = incognito; return this; } @@ -168,17 +169,17 @@ public void setIncognito(Boolean incognito) { } - public ProductsResponseIdentificationData ip(String ip) { + public Visit ip(String ip) { this.ip = ip; return this; } /** - * Get ip + * IP address of the requesting browser or bot. * @return ip **/ @jakarta.annotation.Nonnull - @Schema(example = "8.8.8.8", required = true, description = "") + @Schema(required = true, description = "IP address of the requesting browser or bot.") @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -194,7 +195,7 @@ public void setIp(String ip) { } - public ProductsResponseIdentificationData ipLocation(DeprecatedIPLocation ipLocation) { + public Visit ipLocation(DeprecatedGeolocation ipLocation) { this.ipLocation = ipLocation; return this; } @@ -210,19 +211,45 @@ public ProductsResponseIdentificationData ipLocation(DeprecatedIPLocation ipLoca @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeprecatedIPLocation getIpLocation() { + public DeprecatedGeolocation getIpLocation() { return ipLocation; } @JsonProperty(JSON_PROPERTY_IP_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpLocation(DeprecatedIPLocation ipLocation) { + public void setIpLocation(DeprecatedGeolocation ipLocation) { this.ipLocation = ipLocation; } - public ProductsResponseIdentificationData timestamp(Long timestamp) { + public Visit linkedId(String linkedId) { + this.linkedId = linkedId; + return this; + } + + /** + * A customer-provided id that was sent with the request. + * @return linkedId + **/ + @jakarta.annotation.Nullable + @Schema(description = "A customer-provided id that was sent with the request.") + @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLinkedId() { + return linkedId; + } + + + @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLinkedId(String linkedId) { + this.linkedId = linkedId; + } + + + public Visit timestamp(Long timestamp) { this.timestamp = timestamp; return this; } @@ -232,7 +259,7 @@ public ProductsResponseIdentificationData timestamp(Long timestamp) { * @return timestamp **/ @jakarta.annotation.Nonnull - @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") + @Schema(required = true, description = "Timestamp of the event with millisecond precision in Unix time.") @JsonProperty(JSON_PROPERTY_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -248,17 +275,17 @@ public void setTimestamp(Long timestamp) { } - public ProductsResponseIdentificationData time(OffsetDateTime time) { + public Visit time(OffsetDateTime time) { this.time = time; return this; } /** - * Time expressed according to ISO 8601 in UTC format. + * Time expressed according to ISO 8601 in UTC format, when the request from the client agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. * @return time **/ @jakarta.annotation.Nonnull - @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") + @Schema(required = true, description = "Time expressed according to ISO 8601 in UTC format, when the request from the client agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible.") @JsonProperty(JSON_PROPERTY_TIME) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -274,17 +301,17 @@ public void setTime(OffsetDateTime time) { } - public ProductsResponseIdentificationData url(String url) { + public Visit url(String url) { this.url = url; return this; } /** - * Page URL from which the identification request was sent. + * Page URL from which the request was sent. * @return url **/ @jakarta.annotation.Nonnull - @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") + @Schema(required = true, description = "Page URL from which the request was sent.") @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -300,12 +327,12 @@ public void setUrl(String url) { } - public ProductsResponseIdentificationData tag(Map tag) { + public Visit tag(Map tag) { this.tag = tag; return this; } - public ProductsResponseIdentificationData puttagItem(String key, Object tagItem) { + public Visit puttagItem(String key, Object tagItem) { this.tag.put(key, tagItem); return this; } @@ -331,33 +358,7 @@ public void setTag(Map tag) { } - public ProductsResponseIdentificationData linkedId(String linkedId) { - this.linkedId = linkedId; - return this; - } - - /** - * A customer-provided id that was sent with identification request. - * @return linkedId - **/ - @jakarta.annotation.Nullable - @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") - @JsonProperty(JSON_PROPERTY_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getLinkedId() { - return linkedId; - } - - - @JsonProperty(JSON_PROPERTY_LINKED_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkedId(String linkedId) { - this.linkedId = linkedId; - } - - - public ProductsResponseIdentificationData confidence(Confidence confidence) { + public Visit confidence(IdentificationConfidence confidence) { this.confidence = confidence; return this; } @@ -371,19 +372,19 @@ public ProductsResponseIdentificationData confidence(Confidence confidence) { @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Confidence getConfidence() { + public IdentificationConfidence getConfidence() { return confidence; } @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfidence(Confidence confidence) { + public void setConfidence(IdentificationConfidence confidence) { this.confidence = confidence; } - public ProductsResponseIdentificationData visitorFound(Boolean visitorFound) { + public Visit visitorFound(Boolean visitorFound) { this.visitorFound = visitorFound; return this; } @@ -409,7 +410,7 @@ public void setVisitorFound(Boolean visitorFound) { } - public ProductsResponseIdentificationData firstSeenAt(SeenAt firstSeenAt) { + public Visit firstSeenAt(IdentificationSeenAt firstSeenAt) { this.firstSeenAt = firstSeenAt; return this; } @@ -423,19 +424,19 @@ public ProductsResponseIdentificationData firstSeenAt(SeenAt firstSeenAt) { @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SeenAt getFirstSeenAt() { + public IdentificationSeenAt getFirstSeenAt() { return firstSeenAt; } @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstSeenAt(SeenAt firstSeenAt) { + public void setFirstSeenAt(IdentificationSeenAt firstSeenAt) { this.firstSeenAt = firstSeenAt; } - public ProductsResponseIdentificationData lastSeenAt(SeenAt lastSeenAt) { + public Visit lastSeenAt(IdentificationSeenAt lastSeenAt) { this.lastSeenAt = lastSeenAt; return this; } @@ -449,46 +450,54 @@ public ProductsResponseIdentificationData lastSeenAt(SeenAt lastSeenAt) { @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SeenAt getLastSeenAt() { + public IdentificationSeenAt getLastSeenAt() { return lastSeenAt; } @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastSeenAt(SeenAt lastSeenAt) { + public void setLastSeenAt(IdentificationSeenAt lastSeenAt) { this.lastSeenAt = lastSeenAt; } - public ProductsResponseIdentificationData visitorId(String visitorId) { - this.visitorId = visitorId; + public Visit components(Map components) { + this.components = components; + return this; + } + + public Visit putcomponentsItem(String key, RawDeviceAttribute componentsItem) { + if (this.components == null) { + this.components = new HashMap<>(); + } + this.components.put(key, componentsItem); return this; } /** - * String of 20 characters that uniquely identifies the visitor's browser. - * @return visitorId + * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. + * @return components **/ - @jakarta.annotation.Nonnull - @Schema(example = "[\"Ibk1527CUFmcnjLwIs4A\"]", required = true, description = "String of 20 characters that uniquely identifies the visitor's browser. ") - @JsonProperty(JSON_PROPERTY_VISITOR_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVisitorId() { - return visitorId; + public Map getComponents() { + return components; } - @JsonProperty(JSON_PROPERTY_VISITOR_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVisitorId(String visitorId) { - this.visitorId = visitorId; + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComponents(Map components) { + this.components = components; } /** - * Return true if this ProductsResponseIdentificationData object is equal to o. + * Return true if this Visit object is equal to o. */ @Override public boolean equals(Object o) { @@ -498,48 +507,48 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ProductsResponseIdentificationData productsResponseIdentificationData = (ProductsResponseIdentificationData) o; - return Objects.equals(this.requestId, productsResponseIdentificationData.requestId) && - Objects.equals(this.browserDetails, productsResponseIdentificationData.browserDetails) && - Objects.equals(this.incognito, productsResponseIdentificationData.incognito) && - Objects.equals(this.ip, productsResponseIdentificationData.ip) && - Objects.equals(this.ipLocation, productsResponseIdentificationData.ipLocation) && - Objects.equals(this.timestamp, productsResponseIdentificationData.timestamp) && - Objects.equals(this.time, productsResponseIdentificationData.time) && - Objects.equals(this.url, productsResponseIdentificationData.url) && - Objects.equals(this.tag, productsResponseIdentificationData.tag) && - Objects.equals(this.linkedId, productsResponseIdentificationData.linkedId) && - Objects.equals(this.confidence, productsResponseIdentificationData.confidence) && - Objects.equals(this.visitorFound, productsResponseIdentificationData.visitorFound) && - Objects.equals(this.firstSeenAt, productsResponseIdentificationData.firstSeenAt) && - Objects.equals(this.lastSeenAt, productsResponseIdentificationData.lastSeenAt) && - Objects.equals(this.visitorId, productsResponseIdentificationData.visitorId); + Visit visit = (Visit) o; + return Objects.equals(this.requestId, visit.requestId) && + Objects.equals(this.browserDetails, visit.browserDetails) && + Objects.equals(this.incognito, visit.incognito) && + Objects.equals(this.ip, visit.ip) && + Objects.equals(this.ipLocation, visit.ipLocation) && + Objects.equals(this.linkedId, visit.linkedId) && + Objects.equals(this.timestamp, visit.timestamp) && + Objects.equals(this.time, visit.time) && + Objects.equals(this.url, visit.url) && + Objects.equals(this.tag, visit.tag) && + Objects.equals(this.confidence, visit.confidence) && + Objects.equals(this.visitorFound, visit.visitorFound) && + Objects.equals(this.firstSeenAt, visit.firstSeenAt) && + Objects.equals(this.lastSeenAt, visit.lastSeenAt) && + Objects.equals(this.components, visit.components); } @Override public int hashCode() { - return Objects.hash(requestId, browserDetails, incognito, ip, ipLocation, timestamp, time, url, tag, linkedId, confidence, visitorFound, firstSeenAt, lastSeenAt, visitorId); + return Objects.hash(requestId, browserDetails, incognito, ip, ipLocation, linkedId, timestamp, time, url, tag, confidence, visitorFound, firstSeenAt, lastSeenAt, components); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ProductsResponseIdentificationData {\n"); + sb.append("class Visit {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" browserDetails: ").append(toIndentedString(browserDetails)).append("\n"); sb.append(" incognito: ").append(toIndentedString(incognito)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append(" ipLocation: ").append(toIndentedString(ipLocation)).append("\n"); + sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); - sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); sb.append(" visitorFound: ").append(toIndentedString(visitorFound)).append("\n"); sb.append(" firstSeenAt: ").append(toIndentedString(firstSeenAt)).append("\n"); sb.append(" lastSeenAt: ").append(toIndentedString(lastSeenAt)).append("\n"); - sb.append(" visitorId: ").append(toIndentedString(visitorId)).append("\n"); + sb.append(" components: ").append(toIndentedString(components)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/Response.java b/sdk/src/main/java/com/fingerprint/model/VisitorsGetResponse.java similarity index 68% rename from sdk/src/main/java/com/fingerprint/model/Response.java rename to sdk/src/main/java/com/fingerprint/model/VisitorsGetResponse.java index 7141439f..be8b2b26 100644 --- a/sdk/src/main/java/com/fingerprint/model/Response.java +++ b/sdk/src/main/java/com/fingerprint/model/VisitorsGetResponse.java @@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.ResponseVisits; +import com.fingerprint.model.Visit; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -15,23 +15,23 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show + * Pagination-related fields `lastTimestamp` and `paginationKey` are included if you use a pagination parameter like `limit` or `before` and there is more data available on the next page. */ -@Schema(description = "Fields `lastTimestamp` and `paginationKey` added when `limit` or `before` parameter provided and there is more data to show") +@Schema(description = "Pagination-related fields `lastTimestamp` and `paginationKey` are included if you use a pagination parameter like `limit` or `before` and there is more data available on the next page.") @JsonPropertyOrder({ - Response.JSON_PROPERTY_VISITOR_ID, - Response.JSON_PROPERTY_VISITS, - Response.JSON_PROPERTY_LAST_TIMESTAMP, - Response.JSON_PROPERTY_PAGINATION_KEY + VisitorsGetResponse.JSON_PROPERTY_VISITOR_ID, + VisitorsGetResponse.JSON_PROPERTY_VISITS, + VisitorsGetResponse.JSON_PROPERTY_LAST_TIMESTAMP, + VisitorsGetResponse.JSON_PROPERTY_PAGINATION_KEY }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class Response { +public class VisitorsGetResponse { public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; private String visitorId; public static final String JSON_PROPERTY_VISITS = "visits"; - private List visits = new ArrayList<>(); + private List visits = new ArrayList<>(); public static final String JSON_PROPERTY_LAST_TIMESTAMP = "lastTimestamp"; private Long lastTimestamp; @@ -39,10 +39,10 @@ public class Response { public static final String JSON_PROPERTY_PAGINATION_KEY = "paginationKey"; private String paginationKey; - public Response() { + public VisitorsGetResponse() { } - public Response visitorId(String visitorId) { + public VisitorsGetResponse visitorId(String visitorId) { this.visitorId = visitorId; return this; } @@ -68,12 +68,12 @@ public void setVisitorId(String visitorId) { } - public Response visits(List visits) { + public VisitorsGetResponse visits(List visits) { this.visits = visits; return this; } - public Response addvisitsItem(ResponseVisits visitsItem) { + public VisitorsGetResponse addvisitsItem(Visit visitsItem) { this.visits.add(visitsItem); return this; } @@ -87,19 +87,19 @@ public Response addvisitsItem(ResponseVisits visitsItem) { @JsonProperty(JSON_PROPERTY_VISITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getVisits() { + public List getVisits() { return visits; } @JsonProperty(JSON_PROPERTY_VISITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVisits(List visits) { + public void setVisits(List visits) { this.visits = visits; } - public Response lastTimestamp(Long lastTimestamp) { + public VisitorsGetResponse lastTimestamp(Long lastTimestamp) { this.lastTimestamp = lastTimestamp; return this; } @@ -107,9 +107,11 @@ public Response lastTimestamp(Long lastTimestamp) { /** * ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. * @return lastTimestamp + * @deprecated **/ + @Deprecated @jakarta.annotation.Nullable - @Schema(example = "1654815517198", description = "⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. ") + @Schema(description = "⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. ") @JsonProperty(JSON_PROPERTY_LAST_TIMESTAMP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -125,7 +127,7 @@ public void setLastTimestamp(Long lastTimestamp) { } - public Response paginationKey(String paginationKey) { + public VisitorsGetResponse paginationKey(String paginationKey) { this.paginationKey = paginationKey; return this; } @@ -135,7 +137,7 @@ public Response paginationKey(String paginationKey) { * @return paginationKey **/ @jakarta.annotation.Nullable - @Schema(example = "1654815517198.azN4IZ", description = "Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results.") + @Schema(description = "Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results.") @JsonProperty(JSON_PROPERTY_PAGINATION_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -152,7 +154,7 @@ public void setPaginationKey(String paginationKey) { /** - * Return true if this Response object is equal to o. + * Return true if this VisitorsGetResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -162,11 +164,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Response response = (Response) o; - return Objects.equals(this.visitorId, response.visitorId) && - Objects.equals(this.visits, response.visits) && - Objects.equals(this.lastTimestamp, response.lastTimestamp) && - Objects.equals(this.paginationKey, response.paginationKey); + VisitorsGetResponse visitorsGetResponse = (VisitorsGetResponse) o; + return Objects.equals(this.visitorId, visitorsGetResponse.visitorId) && + Objects.equals(this.visits, visitorsGetResponse.visits) && + Objects.equals(this.lastTimestamp, visitorsGetResponse.lastTimestamp) && + Objects.equals(this.paginationKey, visitorsGetResponse.paginationKey); } @Override @@ -177,7 +179,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Response {\n"); + sb.append("class VisitorsGetResponse {\n"); sb.append(" visitorId: ").append(toIndentedString(visitorId)).append("\n"); sb.append(" visits: ").append(toIndentedString(visits)).append("\n"); sb.append(" lastTimestamp: ").append(toIndentedString(lastTimestamp)).append("\n"); diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookVisit.java b/sdk/src/main/java/com/fingerprint/model/Webhook.java similarity index 61% rename from sdk/src/main/java/com/fingerprint/model/WebhookVisit.java rename to sdk/src/main/java/com/fingerprint/model/Webhook.java index 48b90e63..f66d5b04 100644 --- a/sdk/src/main/java/com/fingerprint/model/WebhookVisit.java +++ b/sdk/src/main/java/com/fingerprint/model/Webhook.java @@ -6,32 +6,32 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.fingerprint.model.BotdDetectionResult; +import com.fingerprint.model.BotdBot; import com.fingerprint.model.BrowserDetails; -import com.fingerprint.model.ClonedAppResult; -import com.fingerprint.model.Confidence; -import com.fingerprint.model.DeprecatedIPLocation; -import com.fingerprint.model.DeveloperToolsResult; -import com.fingerprint.model.EmulatorResult; -import com.fingerprint.model.FactoryResetResult; -import com.fingerprint.model.FridaResult; -import com.fingerprint.model.HighActivityResult; -import com.fingerprint.model.IpBlockListResult; -import com.fingerprint.model.IpInfoResult; -import com.fingerprint.model.JailbrokenResult; -import com.fingerprint.model.LocationSpoofingResult; -import com.fingerprint.model.PrivacySettingsResult; -import com.fingerprint.model.ProxyResult; -import com.fingerprint.model.RawDeviceAttributesResultValue; -import com.fingerprint.model.RemoteControlResult; -import com.fingerprint.model.RootAppsResult; -import com.fingerprint.model.SeenAt; -import com.fingerprint.model.SuspectScoreResult; -import com.fingerprint.model.TamperingResult; -import com.fingerprint.model.TorResult; -import com.fingerprint.model.VelocityResult; -import com.fingerprint.model.VirtualMachineResult; -import com.fingerprint.model.VpnResult; +import com.fingerprint.model.DeprecatedGeolocation; +import com.fingerprint.model.IdentificationConfidence; +import com.fingerprint.model.IdentificationSeenAt; +import com.fingerprint.model.RawDeviceAttribute; +import com.fingerprint.model.WebhookClonedApp; +import com.fingerprint.model.WebhookDeveloperTools; +import com.fingerprint.model.WebhookEmulator; +import com.fingerprint.model.WebhookFactoryReset; +import com.fingerprint.model.WebhookFrida; +import com.fingerprint.model.WebhookHighActivity; +import com.fingerprint.model.WebhookIPBlocklist; +import com.fingerprint.model.WebhookIPInfo; +import com.fingerprint.model.WebhookJailbroken; +import com.fingerprint.model.WebhookLocationSpoofing; +import com.fingerprint.model.WebhookPrivacySettings; +import com.fingerprint.model.WebhookProxy; +import com.fingerprint.model.WebhookRemoteControl; +import com.fingerprint.model.WebhookRootApps; +import com.fingerprint.model.WebhookSuspectScore; +import com.fingerprint.model.WebhookTampering; +import com.fingerprint.model.WebhookTor; +import com.fingerprint.model.WebhookVPN; +import com.fingerprint.model.WebhookVelocity; +import com.fingerprint.model.WebhookVirtualMachine; import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashMap; @@ -41,1207 +41,1245 @@ import io.swagger.v3.oas.annotations.media.Schema; /** - * WebhookVisit + * Webhook */ @JsonPropertyOrder({ - WebhookVisit.JSON_PROPERTY_VISITOR_ID, - WebhookVisit.JSON_PROPERTY_CLIENT_REFERRER, - WebhookVisit.JSON_PROPERTY_USER_AGENT, - WebhookVisit.JSON_PROPERTY_BOT, - WebhookVisit.JSON_PROPERTY_IP_INFO, - WebhookVisit.JSON_PROPERTY_INCOGNITO, - WebhookVisit.JSON_PROPERTY_ROOT_APPS, - WebhookVisit.JSON_PROPERTY_EMULATOR, - WebhookVisit.JSON_PROPERTY_CLONED_APP, - WebhookVisit.JSON_PROPERTY_FACTORY_RESET, - WebhookVisit.JSON_PROPERTY_JAILBROKEN, - WebhookVisit.JSON_PROPERTY_FRIDA, - WebhookVisit.JSON_PROPERTY_IP_BLOCKLIST, - WebhookVisit.JSON_PROPERTY_TOR, - WebhookVisit.JSON_PROPERTY_PRIVACY_SETTINGS, - WebhookVisit.JSON_PROPERTY_VIRTUAL_MACHINE, - WebhookVisit.JSON_PROPERTY_VPN, - WebhookVisit.JSON_PROPERTY_PROXY, - WebhookVisit.JSON_PROPERTY_TAMPERING, - WebhookVisit.JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES, - WebhookVisit.JSON_PROPERTY_HIGH_ACTIVITY, - WebhookVisit.JSON_PROPERTY_LOCATION_SPOOFING, - WebhookVisit.JSON_PROPERTY_SUSPECT_SCORE, - WebhookVisit.JSON_PROPERTY_REMOTE_CONTROL, - WebhookVisit.JSON_PROPERTY_VELOCITY, - WebhookVisit.JSON_PROPERTY_DEVELOPER_TOOLS, - WebhookVisit.JSON_PROPERTY_REQUEST_ID, - WebhookVisit.JSON_PROPERTY_BROWSER_DETAILS, - WebhookVisit.JSON_PROPERTY_IP, - WebhookVisit.JSON_PROPERTY_IP_LOCATION, - WebhookVisit.JSON_PROPERTY_TIMESTAMP, - WebhookVisit.JSON_PROPERTY_TIME, - WebhookVisit.JSON_PROPERTY_URL, - WebhookVisit.JSON_PROPERTY_TAG, - WebhookVisit.JSON_PROPERTY_LINKED_ID, - WebhookVisit.JSON_PROPERTY_CONFIDENCE, - WebhookVisit.JSON_PROPERTY_VISITOR_FOUND, - WebhookVisit.JSON_PROPERTY_FIRST_SEEN_AT, - WebhookVisit.JSON_PROPERTY_LAST_SEEN_AT + Webhook.JSON_PROPERTY_REQUEST_ID, + Webhook.JSON_PROPERTY_URL, + Webhook.JSON_PROPERTY_IP, + Webhook.JSON_PROPERTY_TAG, + Webhook.JSON_PROPERTY_TIME, + Webhook.JSON_PROPERTY_TIMESTAMP, + Webhook.JSON_PROPERTY_IP_LOCATION, + Webhook.JSON_PROPERTY_LINKED_ID, + Webhook.JSON_PROPERTY_VISITOR_ID, + Webhook.JSON_PROPERTY_VISITOR_FOUND, + Webhook.JSON_PROPERTY_CONFIDENCE, + Webhook.JSON_PROPERTY_FIRST_SEEN_AT, + Webhook.JSON_PROPERTY_LAST_SEEN_AT, + Webhook.JSON_PROPERTY_BROWSER_DETAILS, + Webhook.JSON_PROPERTY_INCOGNITO, + Webhook.JSON_PROPERTY_CLIENT_REFERRER, + Webhook.JSON_PROPERTY_COMPONENTS, + Webhook.JSON_PROPERTY_BOT, + Webhook.JSON_PROPERTY_USER_AGENT, + Webhook.JSON_PROPERTY_ROOT_APPS, + Webhook.JSON_PROPERTY_EMULATOR, + Webhook.JSON_PROPERTY_IP_INFO, + Webhook.JSON_PROPERTY_IP_BLOCKLIST, + Webhook.JSON_PROPERTY_TOR, + Webhook.JSON_PROPERTY_VPN, + Webhook.JSON_PROPERTY_PROXY, + Webhook.JSON_PROPERTY_TAMPERING, + Webhook.JSON_PROPERTY_CLONED_APP, + Webhook.JSON_PROPERTY_FACTORY_RESET, + Webhook.JSON_PROPERTY_JAILBROKEN, + Webhook.JSON_PROPERTY_FRIDA, + Webhook.JSON_PROPERTY_PRIVACY_SETTINGS, + Webhook.JSON_PROPERTY_VIRTUAL_MACHINE, + Webhook.JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES, + Webhook.JSON_PROPERTY_HIGH_ACTIVITY, + Webhook.JSON_PROPERTY_LOCATION_SPOOFING, + Webhook.JSON_PROPERTY_SUSPECT_SCORE, + Webhook.JSON_PROPERTY_REMOTE_CONTROL, + Webhook.JSON_PROPERTY_VELOCITY, + Webhook.JSON_PROPERTY_DEVELOPER_TOOLS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class WebhookVisit { +public class Webhook { + public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; + private String requestId; + + public static final String JSON_PROPERTY_URL = "url"; + private String url; + + public static final String JSON_PROPERTY_IP = "ip"; + private String ip; + + public static final String JSON_PROPERTY_TAG = "tag"; + private Map tag = null; + + public static final String JSON_PROPERTY_TIME = "time"; + private OffsetDateTime time; + + public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; + private Long timestamp; + + public static final String JSON_PROPERTY_IP_LOCATION = "ipLocation"; + private DeprecatedGeolocation ipLocation; + + public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; + private String linkedId; + public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; private String visitorId; + public static final String JSON_PROPERTY_VISITOR_FOUND = "visitorFound"; + private Boolean visitorFound; + + public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; + private IdentificationConfidence confidence; + + public static final String JSON_PROPERTY_FIRST_SEEN_AT = "firstSeenAt"; + private IdentificationSeenAt firstSeenAt; + + public static final String JSON_PROPERTY_LAST_SEEN_AT = "lastSeenAt"; + private IdentificationSeenAt lastSeenAt; + + public static final String JSON_PROPERTY_BROWSER_DETAILS = "browserDetails"; + private BrowserDetails browserDetails; + + public static final String JSON_PROPERTY_INCOGNITO = "incognito"; + private Boolean incognito; + public static final String JSON_PROPERTY_CLIENT_REFERRER = "clientReferrer"; private String clientReferrer; + public static final String JSON_PROPERTY_COMPONENTS = "components"; + private Map components = null; + + public static final String JSON_PROPERTY_BOT = "bot"; + private BotdBot bot; + public static final String JSON_PROPERTY_USER_AGENT = "userAgent"; private String userAgent; - public static final String JSON_PROPERTY_BOT = "bot"; - private BotdDetectionResult bot; + public static final String JSON_PROPERTY_ROOT_APPS = "rootApps"; + private WebhookRootApps rootApps; + + public static final String JSON_PROPERTY_EMULATOR = "emulator"; + private WebhookEmulator emulator; public static final String JSON_PROPERTY_IP_INFO = "ipInfo"; - private IpInfoResult ipInfo; + private WebhookIPInfo ipInfo; - public static final String JSON_PROPERTY_INCOGNITO = "incognito"; - private Boolean incognito; + public static final String JSON_PROPERTY_IP_BLOCKLIST = "ipBlocklist"; + private WebhookIPBlocklist ipBlocklist; - public static final String JSON_PROPERTY_ROOT_APPS = "rootApps"; - private RootAppsResult rootApps; + public static final String JSON_PROPERTY_TOR = "tor"; + private WebhookTor tor; - public static final String JSON_PROPERTY_EMULATOR = "emulator"; - private EmulatorResult emulator; + public static final String JSON_PROPERTY_VPN = "vpn"; + private WebhookVPN vpn; + + public static final String JSON_PROPERTY_PROXY = "proxy"; + private WebhookProxy proxy; + + public static final String JSON_PROPERTY_TAMPERING = "tampering"; + private WebhookTampering tampering; public static final String JSON_PROPERTY_CLONED_APP = "clonedApp"; - private ClonedAppResult clonedApp; + private WebhookClonedApp clonedApp; public static final String JSON_PROPERTY_FACTORY_RESET = "factoryReset"; - private FactoryResetResult factoryReset; + private WebhookFactoryReset factoryReset; public static final String JSON_PROPERTY_JAILBROKEN = "jailbroken"; - private JailbrokenResult jailbroken; + private WebhookJailbroken jailbroken; public static final String JSON_PROPERTY_FRIDA = "frida"; - private FridaResult frida; - - public static final String JSON_PROPERTY_IP_BLOCKLIST = "ipBlocklist"; - private IpBlockListResult ipBlocklist; - - public static final String JSON_PROPERTY_TOR = "tor"; - private TorResult tor; + private WebhookFrida frida; public static final String JSON_PROPERTY_PRIVACY_SETTINGS = "privacySettings"; - private PrivacySettingsResult privacySettings; + private WebhookPrivacySettings privacySettings; public static final String JSON_PROPERTY_VIRTUAL_MACHINE = "virtualMachine"; - private VirtualMachineResult virtualMachine; - - public static final String JSON_PROPERTY_VPN = "vpn"; - private VpnResult vpn; - - public static final String JSON_PROPERTY_PROXY = "proxy"; - private ProxyResult proxy; - - public static final String JSON_PROPERTY_TAMPERING = "tampering"; - private TamperingResult tampering; + private WebhookVirtualMachine virtualMachine; public static final String JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES = "rawDeviceAttributes"; - private Map rawDeviceAttributes = null; + private Map rawDeviceAttributes = null; public static final String JSON_PROPERTY_HIGH_ACTIVITY = "highActivity"; - private HighActivityResult highActivity; + private WebhookHighActivity highActivity; public static final String JSON_PROPERTY_LOCATION_SPOOFING = "locationSpoofing"; - private LocationSpoofingResult locationSpoofing; + private WebhookLocationSpoofing locationSpoofing; public static final String JSON_PROPERTY_SUSPECT_SCORE = "suspectScore"; - private SuspectScoreResult suspectScore; + private WebhookSuspectScore suspectScore; public static final String JSON_PROPERTY_REMOTE_CONTROL = "remoteControl"; - private RemoteControlResult remoteControl; + private WebhookRemoteControl remoteControl; public static final String JSON_PROPERTY_VELOCITY = "velocity"; - private VelocityResult velocity; + private WebhookVelocity velocity; public static final String JSON_PROPERTY_DEVELOPER_TOOLS = "developerTools"; - private DeveloperToolsResult developerTools; - - public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; - private String requestId; - - public static final String JSON_PROPERTY_BROWSER_DETAILS = "browserDetails"; - private BrowserDetails browserDetails; - - public static final String JSON_PROPERTY_IP = "ip"; - private String ip; - - public static final String JSON_PROPERTY_IP_LOCATION = "ipLocation"; - private DeprecatedIPLocation ipLocation; - - public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private Long timestamp; + private WebhookDeveloperTools developerTools; - public static final String JSON_PROPERTY_TIME = "time"; - private OffsetDateTime time; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public static final String JSON_PROPERTY_TAG = "tag"; - private Map tag = null; - - public static final String JSON_PROPERTY_LINKED_ID = "linkedId"; - private String linkedId; + public Webhook() { + } - public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; - private Confidence confidence; + public Webhook requestId(String requestId) { + this.requestId = requestId; + return this; + } - public static final String JSON_PROPERTY_VISITOR_FOUND = "visitorFound"; - private Boolean visitorFound; + /** + * Unique identifier of the user's request. + * @return requestId + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Unique identifier of the user's request.") + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public static final String JSON_PROPERTY_FIRST_SEEN_AT = "firstSeenAt"; - private SeenAt firstSeenAt; + public String getRequestId() { + return requestId; + } - public static final String JSON_PROPERTY_LAST_SEEN_AT = "lastSeenAt"; - private SeenAt lastSeenAt; - public WebhookVisit() { + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRequestId(String requestId) { + this.requestId = requestId; } - public WebhookVisit visitorId(String visitorId) { - this.visitorId = visitorId; + + public Webhook url(String url) { + this.url = url; return this; } /** - * Get visitorId - * @return visitorId + * Page URL from which the request was sent. + * @return url **/ @jakarta.annotation.Nonnull - @Schema(example = "3HNey93AkBW6CRbxV6xP", required = true, description = "") - @JsonProperty(JSON_PROPERTY_VISITOR_ID) + @Schema(required = true, description = "Page URL from which the request was sent.") + @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVisitorId() { - return visitorId; + public String getUrl() { + return url; } - @JsonProperty(JSON_PROPERTY_VISITOR_ID) + @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVisitorId(String visitorId) { - this.visitorId = visitorId; + public void setUrl(String url) { + this.url = url; } - public WebhookVisit clientReferrer(String clientReferrer) { - this.clientReferrer = clientReferrer; + public Webhook ip(String ip) { + this.ip = ip; return this; } /** - * Get clientReferrer - * @return clientReferrer + * IP address of the requesting browser or bot. + * @return ip **/ - @jakarta.annotation.Nullable - @Schema(example = "https://google.com?search=banking+services", description = "") - @JsonProperty(JSON_PROPERTY_CLIENT_REFERRER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @jakarta.annotation.Nonnull + @Schema(required = true, description = "IP address of the requesting browser or bot.") + @JsonProperty(JSON_PROPERTY_IP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getClientReferrer() { - return clientReferrer; + public String getIp() { + return ip; } - @JsonProperty(JSON_PROPERTY_CLIENT_REFERRER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClientReferrer(String clientReferrer) { - this.clientReferrer = clientReferrer; + @JsonProperty(JSON_PROPERTY_IP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIp(String ip) { + this.ip = ip; } - public WebhookVisit userAgent(String userAgent) { - this.userAgent = userAgent; + public Webhook tag(Map tag) { + this.tag = tag; + return this; + } + + public Webhook puttagItem(String key, Object tagItem) { + if (this.tag == null) { + this.tag = new HashMap<>(); + } + this.tag.put(key, tagItem); return this; } /** - * Get userAgent - * @return userAgent + * A customer-provided value or an object that was sent with identification request. + * @return tag **/ @jakarta.annotation.Nullable - @Schema(example = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36", description = "") - @JsonProperty(JSON_PROPERTY_USER_AGENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @Schema(description = "A customer-provided value or an object that was sent with identification request.") + @JsonProperty(JSON_PROPERTY_TAG) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public String getUserAgent() { - return userAgent; + public Map getTag() { + return tag; } - @JsonProperty(JSON_PROPERTY_USER_AGENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserAgent(String userAgent) { - this.userAgent = userAgent; + @JsonProperty(JSON_PROPERTY_TAG) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + public void setTag(Map tag) { + this.tag = tag; } - public WebhookVisit bot(BotdDetectionResult bot) { - this.bot = bot; + public Webhook time(OffsetDateTime time) { + this.time = time; return this; } /** - * Get bot - * @return bot + * Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible. + * @return time **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_BOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Time expressed according to ISO 8601 in UTC format, when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible.") + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BotdDetectionResult getBot() { - return bot; + public OffsetDateTime getTime() { + return time; } - @JsonProperty(JSON_PROPERTY_BOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBot(BotdDetectionResult bot) { - this.bot = bot; + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTime(OffsetDateTime time) { + this.time = time; } - public WebhookVisit ipInfo(IpInfoResult ipInfo) { - this.ipInfo = ipInfo; + public Webhook timestamp(Long timestamp) { + this.timestamp = timestamp; return this; } /** - * Get ipInfo - * @return ipInfo + * Timestamp of the event with millisecond precision in Unix time. + * @return timestamp **/ - @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_IP_INFO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Timestamp of the event with millisecond precision in Unix time.") + @JsonProperty(JSON_PROPERTY_TIMESTAMP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IpInfoResult getIpInfo() { - return ipInfo; + public Long getTimestamp() { + return timestamp; } - @JsonProperty(JSON_PROPERTY_IP_INFO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpInfo(IpInfoResult ipInfo) { - this.ipInfo = ipInfo; + @JsonProperty(JSON_PROPERTY_TIMESTAMP) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTimestamp(Long timestamp) { + this.timestamp = timestamp; } - public WebhookVisit incognito(Boolean incognito) { - this.incognito = incognito; + public Webhook ipLocation(DeprecatedGeolocation ipLocation) { + this.ipLocation = ipLocation; return this; } /** - * Flag if user used incognito session. - * @return incognito + * Get ipLocation + * @return ipLocation + * @deprecated **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "Flag if user used incognito session.") - @JsonProperty(JSON_PROPERTY_INCOGNITO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @Deprecated + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_IP_LOCATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIncognito() { - return incognito; + public DeprecatedGeolocation getIpLocation() { + return ipLocation; } - @JsonProperty(JSON_PROPERTY_INCOGNITO) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIncognito(Boolean incognito) { - this.incognito = incognito; + @JsonProperty(JSON_PROPERTY_IP_LOCATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIpLocation(DeprecatedGeolocation ipLocation) { + this.ipLocation = ipLocation; } - public WebhookVisit rootApps(RootAppsResult rootApps) { - this.rootApps = rootApps; + public Webhook linkedId(String linkedId) { + this.linkedId = linkedId; return this; } /** - * Get rootApps - * @return rootApps + * A customer-provided id that was sent with the request. + * @return linkedId **/ @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_ROOT_APPS) + @Schema(description = "A customer-provided id that was sent with the request.") + @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RootAppsResult getRootApps() { - return rootApps; + public String getLinkedId() { + return linkedId; } - @JsonProperty(JSON_PROPERTY_ROOT_APPS) + @JsonProperty(JSON_PROPERTY_LINKED_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRootApps(RootAppsResult rootApps) { - this.rootApps = rootApps; + public void setLinkedId(String linkedId) { + this.linkedId = linkedId; } - public WebhookVisit emulator(EmulatorResult emulator) { - this.emulator = emulator; + public Webhook visitorId(String visitorId) { + this.visitorId = visitorId; return this; } /** - * Get emulator - * @return emulator + * String of 20 characters that uniquely identifies the visitor's browser. + * @return visitorId **/ @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_EMULATOR) + @Schema(description = "String of 20 characters that uniquely identifies the visitor's browser.") + @JsonProperty(JSON_PROPERTY_VISITOR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EmulatorResult getEmulator() { - return emulator; + public String getVisitorId() { + return visitorId; } - @JsonProperty(JSON_PROPERTY_EMULATOR) + @JsonProperty(JSON_PROPERTY_VISITOR_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEmulator(EmulatorResult emulator) { - this.emulator = emulator; + public void setVisitorId(String visitorId) { + this.visitorId = visitorId; } - public WebhookVisit clonedApp(ClonedAppResult clonedApp) { - this.clonedApp = clonedApp; + public Webhook visitorFound(Boolean visitorFound) { + this.visitorFound = visitorFound; return this; } /** - * Get clonedApp - * @return clonedApp + * Attribute represents if a visitor had been identified before. + * @return visitorFound **/ @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_CLONED_APP) + @Schema(description = "Attribute represents if a visitor had been identified before.") + @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ClonedAppResult getClonedApp() { - return clonedApp; + public Boolean getVisitorFound() { + return visitorFound; } - @JsonProperty(JSON_PROPERTY_CLONED_APP) + @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setClonedApp(ClonedAppResult clonedApp) { - this.clonedApp = clonedApp; + public void setVisitorFound(Boolean visitorFound) { + this.visitorFound = visitorFound; } - public WebhookVisit factoryReset(FactoryResetResult factoryReset) { - this.factoryReset = factoryReset; + public Webhook confidence(IdentificationConfidence confidence) { + this.confidence = confidence; return this; } /** - * Get factoryReset - * @return factoryReset + * Get confidence + * @return confidence **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_FACTORY_RESET) + @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FactoryResetResult getFactoryReset() { - return factoryReset; + public IdentificationConfidence getConfidence() { + return confidence; } - @JsonProperty(JSON_PROPERTY_FACTORY_RESET) + @JsonProperty(JSON_PROPERTY_CONFIDENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFactoryReset(FactoryResetResult factoryReset) { - this.factoryReset = factoryReset; + public void setConfidence(IdentificationConfidence confidence) { + this.confidence = confidence; } - public WebhookVisit jailbroken(JailbrokenResult jailbroken) { - this.jailbroken = jailbroken; + public Webhook firstSeenAt(IdentificationSeenAt firstSeenAt) { + this.firstSeenAt = firstSeenAt; return this; } /** - * Get jailbroken - * @return jailbroken + * Get firstSeenAt + * @return firstSeenAt **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_JAILBROKEN) + @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JailbrokenResult getJailbroken() { - return jailbroken; + public IdentificationSeenAt getFirstSeenAt() { + return firstSeenAt; } - @JsonProperty(JSON_PROPERTY_JAILBROKEN) + @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setJailbroken(JailbrokenResult jailbroken) { - this.jailbroken = jailbroken; + public void setFirstSeenAt(IdentificationSeenAt firstSeenAt) { + this.firstSeenAt = firstSeenAt; } - public WebhookVisit frida(FridaResult frida) { - this.frida = frida; + public Webhook lastSeenAt(IdentificationSeenAt lastSeenAt) { + this.lastSeenAt = lastSeenAt; return this; } /** - * Get frida - * @return frida + * Get lastSeenAt + * @return lastSeenAt **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_FRIDA) + @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FridaResult getFrida() { - return frida; + public IdentificationSeenAt getLastSeenAt() { + return lastSeenAt; } - @JsonProperty(JSON_PROPERTY_FRIDA) + @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setFrida(FridaResult frida) { - this.frida = frida; + public void setLastSeenAt(IdentificationSeenAt lastSeenAt) { + this.lastSeenAt = lastSeenAt; } - public WebhookVisit ipBlocklist(IpBlockListResult ipBlocklist) { - this.ipBlocklist = ipBlocklist; + public Webhook browserDetails(BrowserDetails browserDetails) { + this.browserDetails = browserDetails; return this; } /** - * Get ipBlocklist - * @return ipBlocklist + * Get browserDetails + * @return browserDetails **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) + @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IpBlockListResult getIpBlocklist() { - return ipBlocklist; + public BrowserDetails getBrowserDetails() { + return browserDetails; } - @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) + @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpBlocklist(IpBlockListResult ipBlocklist) { - this.ipBlocklist = ipBlocklist; + public void setBrowserDetails(BrowserDetails browserDetails) { + this.browserDetails = browserDetails; } - public WebhookVisit tor(TorResult tor) { - this.tor = tor; + public Webhook incognito(Boolean incognito) { + this.incognito = incognito; return this; } /** - * Get tor - * @return tor + * Flag if user used incognito session. + * @return incognito **/ @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_TOR) + @Schema(description = "Flag if user used incognito session.") + @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TorResult getTor() { - return tor; + public Boolean getIncognito() { + return incognito; } - @JsonProperty(JSON_PROPERTY_TOR) + @JsonProperty(JSON_PROPERTY_INCOGNITO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTor(TorResult tor) { - this.tor = tor; + public void setIncognito(Boolean incognito) { + this.incognito = incognito; } - public WebhookVisit privacySettings(PrivacySettingsResult privacySettings) { - this.privacySettings = privacySettings; + public Webhook clientReferrer(String clientReferrer) { + this.clientReferrer = clientReferrer; return this; } /** - * Get privacySettings - * @return privacySettings + * Get clientReferrer + * @return clientReferrer **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) + @JsonProperty(JSON_PROPERTY_CLIENT_REFERRER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PrivacySettingsResult getPrivacySettings() { - return privacySettings; + public String getClientReferrer() { + return clientReferrer; } - @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) + @JsonProperty(JSON_PROPERTY_CLIENT_REFERRER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPrivacySettings(PrivacySettingsResult privacySettings) { - this.privacySettings = privacySettings; + public void setClientReferrer(String clientReferrer) { + this.clientReferrer = clientReferrer; } - public WebhookVisit virtualMachine(VirtualMachineResult virtualMachine) { - this.virtualMachine = virtualMachine; + public Webhook components(Map components) { + this.components = components; + return this; + } + + public Webhook putcomponentsItem(String key, RawDeviceAttribute componentsItem) { + if (this.components == null) { + this.components = new HashMap<>(); + } + this.components.put(key, componentsItem); return this; } /** - * Get virtualMachine - * @return virtualMachine + * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. + * @return components **/ @jakarta.annotation.Nullable - @Schema(description = "") - @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) + @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") + @JsonProperty(JSON_PROPERTY_COMPONENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VirtualMachineResult getVirtualMachine() { - return virtualMachine; + public Map getComponents() { + return components; } - @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) + @JsonProperty(JSON_PROPERTY_COMPONENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVirtualMachine(VirtualMachineResult virtualMachine) { - this.virtualMachine = virtualMachine; + public void setComponents(Map components) { + this.components = components; } - public WebhookVisit vpn(VpnResult vpn) { - this.vpn = vpn; + public Webhook bot(BotdBot bot) { + this.bot = bot; return this; } /** - * Get vpn - * @return vpn + * Get bot + * @return bot **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_VPN) + @JsonProperty(JSON_PROPERTY_BOT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VpnResult getVpn() { - return vpn; + public BotdBot getBot() { + return bot; } - @JsonProperty(JSON_PROPERTY_VPN) + @JsonProperty(JSON_PROPERTY_BOT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVpn(VpnResult vpn) { - this.vpn = vpn; + public void setBot(BotdBot bot) { + this.bot = bot; } - public WebhookVisit proxy(ProxyResult proxy) { - this.proxy = proxy; + public Webhook userAgent(String userAgent) { + this.userAgent = userAgent; return this; } /** - * Get proxy - * @return proxy + * Get userAgent + * @return userAgent **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_PROXY) + @JsonProperty(JSON_PROPERTY_USER_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ProxyResult getProxy() { - return proxy; + public String getUserAgent() { + return userAgent; } - @JsonProperty(JSON_PROPERTY_PROXY) + @JsonProperty(JSON_PROPERTY_USER_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setProxy(ProxyResult proxy) { - this.proxy = proxy; + public void setUserAgent(String userAgent) { + this.userAgent = userAgent; } - public WebhookVisit tampering(TamperingResult tampering) { - this.tampering = tampering; + public Webhook rootApps(WebhookRootApps rootApps) { + this.rootApps = rootApps; return this; } /** - * Get tampering - * @return tampering + * Get rootApps + * @return rootApps **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_TAMPERING) + @JsonProperty(JSON_PROPERTY_ROOT_APPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TamperingResult getTampering() { - return tampering; + public WebhookRootApps getRootApps() { + return rootApps; } - @JsonProperty(JSON_PROPERTY_TAMPERING) + @JsonProperty(JSON_PROPERTY_ROOT_APPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTampering(TamperingResult tampering) { - this.tampering = tampering; + public void setRootApps(WebhookRootApps rootApps) { + this.rootApps = rootApps; } - public WebhookVisit rawDeviceAttributes(Map rawDeviceAttributes) { - this.rawDeviceAttributes = rawDeviceAttributes; - return this; - } - - public WebhookVisit putrawDeviceAttributesItem(String key, RawDeviceAttributesResultValue rawDeviceAttributesItem) { - if (this.rawDeviceAttributes == null) { - this.rawDeviceAttributes = new HashMap<>(); - } - this.rawDeviceAttributes.put(key, rawDeviceAttributesItem); + public Webhook emulator(WebhookEmulator emulator) { + this.emulator = emulator; return this; } /** - * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. - * @return rawDeviceAttributes + * Get emulator + * @return emulator **/ @jakarta.annotation.Nullable - @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") - @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_EMULATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getRawDeviceAttributes() { - return rawDeviceAttributes; + public WebhookEmulator getEmulator() { + return emulator; } - @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) + @JsonProperty(JSON_PROPERTY_EMULATOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRawDeviceAttributes(Map rawDeviceAttributes) { - this.rawDeviceAttributes = rawDeviceAttributes; + public void setEmulator(WebhookEmulator emulator) { + this.emulator = emulator; } - public WebhookVisit highActivity(HighActivityResult highActivity) { - this.highActivity = highActivity; + public Webhook ipInfo(WebhookIPInfo ipInfo) { + this.ipInfo = ipInfo; return this; } /** - * Get highActivity - * @return highActivity + * Get ipInfo + * @return ipInfo **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) + @JsonProperty(JSON_PROPERTY_IP_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public HighActivityResult getHighActivity() { - return highActivity; + public WebhookIPInfo getIpInfo() { + return ipInfo; } - @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) + @JsonProperty(JSON_PROPERTY_IP_INFO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHighActivity(HighActivityResult highActivity) { - this.highActivity = highActivity; + public void setIpInfo(WebhookIPInfo ipInfo) { + this.ipInfo = ipInfo; } - public WebhookVisit locationSpoofing(LocationSpoofingResult locationSpoofing) { - this.locationSpoofing = locationSpoofing; + public Webhook ipBlocklist(WebhookIPBlocklist ipBlocklist) { + this.ipBlocklist = ipBlocklist; return this; } /** - * Get locationSpoofing - * @return locationSpoofing + * Get ipBlocklist + * @return ipBlocklist **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) + @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocationSpoofingResult getLocationSpoofing() { - return locationSpoofing; + public WebhookIPBlocklist getIpBlocklist() { + return ipBlocklist; } - @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) + @JsonProperty(JSON_PROPERTY_IP_BLOCKLIST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLocationSpoofing(LocationSpoofingResult locationSpoofing) { - this.locationSpoofing = locationSpoofing; + public void setIpBlocklist(WebhookIPBlocklist ipBlocklist) { + this.ipBlocklist = ipBlocklist; } - public WebhookVisit suspectScore(SuspectScoreResult suspectScore) { - this.suspectScore = suspectScore; + public Webhook tor(WebhookTor tor) { + this.tor = tor; return this; } /** - * Get suspectScore - * @return suspectScore + * Get tor + * @return tor **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) + @JsonProperty(JSON_PROPERTY_TOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SuspectScoreResult getSuspectScore() { - return suspectScore; + public WebhookTor getTor() { + return tor; } - @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) + @JsonProperty(JSON_PROPERTY_TOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSuspectScore(SuspectScoreResult suspectScore) { - this.suspectScore = suspectScore; + public void setTor(WebhookTor tor) { + this.tor = tor; } - public WebhookVisit remoteControl(RemoteControlResult remoteControl) { - this.remoteControl = remoteControl; + public Webhook vpn(WebhookVPN vpn) { + this.vpn = vpn; return this; } /** - * Get remoteControl - * @return remoteControl + * Get vpn + * @return vpn **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_REMOTE_CONTROL) + @JsonProperty(JSON_PROPERTY_VPN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RemoteControlResult getRemoteControl() { - return remoteControl; + public WebhookVPN getVpn() { + return vpn; } - @JsonProperty(JSON_PROPERTY_REMOTE_CONTROL) + @JsonProperty(JSON_PROPERTY_VPN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRemoteControl(RemoteControlResult remoteControl) { - this.remoteControl = remoteControl; + public void setVpn(WebhookVPN vpn) { + this.vpn = vpn; } - public WebhookVisit velocity(VelocityResult velocity) { - this.velocity = velocity; + public Webhook proxy(WebhookProxy proxy) { + this.proxy = proxy; return this; } /** - * Get velocity - * @return velocity + * Get proxy + * @return proxy **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_VELOCITY) + @JsonProperty(JSON_PROPERTY_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VelocityResult getVelocity() { - return velocity; + public WebhookProxy getProxy() { + return proxy; } - @JsonProperty(JSON_PROPERTY_VELOCITY) + @JsonProperty(JSON_PROPERTY_PROXY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVelocity(VelocityResult velocity) { - this.velocity = velocity; + public void setProxy(WebhookProxy proxy) { + this.proxy = proxy; } - public WebhookVisit developerTools(DeveloperToolsResult developerTools) { - this.developerTools = developerTools; + public Webhook tampering(WebhookTampering tampering) { + this.tampering = tampering; return this; } /** - * Get developerTools - * @return developerTools + * Get tampering + * @return tampering **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_DEVELOPER_TOOLS) + @JsonProperty(JSON_PROPERTY_TAMPERING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeveloperToolsResult getDeveloperTools() { - return developerTools; + public WebhookTampering getTampering() { + return tampering; } - @JsonProperty(JSON_PROPERTY_DEVELOPER_TOOLS) + @JsonProperty(JSON_PROPERTY_TAMPERING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeveloperTools(DeveloperToolsResult developerTools) { - this.developerTools = developerTools; + public void setTampering(WebhookTampering tampering) { + this.tampering = tampering; } - public WebhookVisit requestId(String requestId) { - this.requestId = requestId; + public Webhook clonedApp(WebhookClonedApp clonedApp) { + this.clonedApp = clonedApp; return this; } /** - * Unique identifier of the user's identification request. - * @return requestId + * Get clonedApp + * @return clonedApp **/ - @jakarta.annotation.Nonnull - @Schema(example = "1654815516083.OX6kx8", required = true, description = "Unique identifier of the user's identification request.") - @JsonProperty(JSON_PROPERTY_REQUEST_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_CLONED_APP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRequestId() { - return requestId; + public WebhookClonedApp getClonedApp() { + return clonedApp; } - @JsonProperty(JSON_PROPERTY_REQUEST_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRequestId(String requestId) { - this.requestId = requestId; + @JsonProperty(JSON_PROPERTY_CLONED_APP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClonedApp(WebhookClonedApp clonedApp) { + this.clonedApp = clonedApp; } - public WebhookVisit browserDetails(BrowserDetails browserDetails) { - this.browserDetails = browserDetails; + public Webhook factoryReset(WebhookFactoryReset factoryReset) { + this.factoryReset = factoryReset; return this; } /** - * Get browserDetails - * @return browserDetails + * Get factoryReset + * @return factoryReset **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_FACTORY_RESET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BrowserDetails getBrowserDetails() { - return browserDetails; + public WebhookFactoryReset getFactoryReset() { + return factoryReset; } - @JsonProperty(JSON_PROPERTY_BROWSER_DETAILS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setBrowserDetails(BrowserDetails browserDetails) { - this.browserDetails = browserDetails; + @JsonProperty(JSON_PROPERTY_FACTORY_RESET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFactoryReset(WebhookFactoryReset factoryReset) { + this.factoryReset = factoryReset; } - public WebhookVisit ip(String ip) { - this.ip = ip; + public Webhook jailbroken(WebhookJailbroken jailbroken) { + this.jailbroken = jailbroken; return this; } /** - * Get ip - * @return ip + * Get jailbroken + * @return jailbroken **/ - @jakarta.annotation.Nonnull - @Schema(example = "8.8.8.8", required = true, description = "") - @JsonProperty(JSON_PROPERTY_IP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_JAILBROKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { - return ip; + public WebhookJailbroken getJailbroken() { + return jailbroken; } - @JsonProperty(JSON_PROPERTY_IP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setIp(String ip) { - this.ip = ip; + @JsonProperty(JSON_PROPERTY_JAILBROKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setJailbroken(WebhookJailbroken jailbroken) { + this.jailbroken = jailbroken; } - public WebhookVisit ipLocation(DeprecatedIPLocation ipLocation) { - this.ipLocation = ipLocation; + public Webhook frida(WebhookFrida frida) { + this.frida = frida; return this; } /** - * Get ipLocation - * @return ipLocation - * @deprecated + * Get frida + * @return frida **/ - @Deprecated @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_IP_LOCATION) + @JsonProperty(JSON_PROPERTY_FRIDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeprecatedIPLocation getIpLocation() { - return ipLocation; + public WebhookFrida getFrida() { + return frida; } - @JsonProperty(JSON_PROPERTY_IP_LOCATION) + @JsonProperty(JSON_PROPERTY_FRIDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIpLocation(DeprecatedIPLocation ipLocation) { - this.ipLocation = ipLocation; + public void setFrida(WebhookFrida frida) { + this.frida = frida; } - public WebhookVisit timestamp(Long timestamp) { - this.timestamp = timestamp; + public Webhook privacySettings(WebhookPrivacySettings privacySettings) { + this.privacySettings = privacySettings; return this; } /** - * Timestamp of the event with millisecond precision in Unix time. - * @return timestamp + * Get privacySettings + * @return privacySettings **/ - @jakarta.annotation.Nonnull - @Schema(example = "1654815516086", required = true, description = "Timestamp of the event with millisecond precision in Unix time.") - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTimestamp() { - return timestamp; + public WebhookPrivacySettings getPrivacySettings() { + return privacySettings; } - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTimestamp(Long timestamp) { - this.timestamp = timestamp; + @JsonProperty(JSON_PROPERTY_PRIVACY_SETTINGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrivacySettings(WebhookPrivacySettings privacySettings) { + this.privacySettings = privacySettings; } - public WebhookVisit time(OffsetDateTime time) { - this.time = time; + public Webhook virtualMachine(WebhookVirtualMachine virtualMachine) { + this.virtualMachine = virtualMachine; return this; } /** - * Time expressed according to ISO 8601 in UTC format. - * @return time + * Get virtualMachine + * @return virtualMachine **/ - @jakarta.annotation.Nonnull - @Schema(example = "2022-06-09T22:58:36Z", required = true, description = "Time expressed according to ISO 8601 in UTC format.") - @JsonProperty(JSON_PROPERTY_TIME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getTime() { - return time; + public WebhookVirtualMachine getVirtualMachine() { + return virtualMachine; } - @JsonProperty(JSON_PROPERTY_TIME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTime(OffsetDateTime time) { - this.time = time; + @JsonProperty(JSON_PROPERTY_VIRTUAL_MACHINE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVirtualMachine(WebhookVirtualMachine virtualMachine) { + this.virtualMachine = virtualMachine; } - public WebhookVisit url(String url) { - this.url = url; + public Webhook rawDeviceAttributes(Map rawDeviceAttributes) { + this.rawDeviceAttributes = rawDeviceAttributes; + return this; + } + + public Webhook putrawDeviceAttributesItem(String key, RawDeviceAttribute rawDeviceAttributesItem) { + if (this.rawDeviceAttributes == null) { + this.rawDeviceAttributes = new HashMap<>(); + } + this.rawDeviceAttributes.put(key, rawDeviceAttributesItem); return this; } /** - * Page URL from which the identification request was sent. - * @return url + * It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. + * @return rawDeviceAttributes **/ - @jakarta.annotation.Nonnull - @Schema(example = "https://some.website/path?query=params", required = true, description = "Page URL from which the identification request was sent.") - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. ") + @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; + public Map getRawDeviceAttributes() { + return rawDeviceAttributes; } - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setUrl(String url) { - this.url = url; + @JsonProperty(JSON_PROPERTY_RAW_DEVICE_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRawDeviceAttributes(Map rawDeviceAttributes) { + this.rawDeviceAttributes = rawDeviceAttributes; } - public WebhookVisit tag(Map tag) { - this.tag = tag; - return this; - } - - public WebhookVisit puttagItem(String key, Object tagItem) { - if (this.tag == null) { - this.tag = new HashMap<>(); - } - this.tag.put(key, tagItem); + public Webhook highActivity(WebhookHighActivity highActivity) { + this.highActivity = highActivity; return this; } /** - * A customer-provided value or an object that was sent with identification request. - * @return tag + * Get highActivity + * @return highActivity **/ @jakarta.annotation.Nullable - @Schema(description = "A customer-provided value or an object that was sent with identification request.") - @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTag() { - return tag; + public WebhookHighActivity getHighActivity() { + return highActivity; } - @JsonProperty(JSON_PROPERTY_TAG) - @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) - public void setTag(Map tag) { - this.tag = tag; + @JsonProperty(JSON_PROPERTY_HIGH_ACTIVITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHighActivity(WebhookHighActivity highActivity) { + this.highActivity = highActivity; } - public WebhookVisit linkedId(String linkedId) { - this.linkedId = linkedId; + public Webhook locationSpoofing(WebhookLocationSpoofing locationSpoofing) { + this.locationSpoofing = locationSpoofing; return this; } /** - * A customer-provided id that was sent with identification request. - * @return linkedId + * Get locationSpoofing + * @return locationSpoofing **/ @jakarta.annotation.Nullable - @Schema(example = "someID", description = "A customer-provided id that was sent with identification request.") - @JsonProperty(JSON_PROPERTY_LINKED_ID) + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLinkedId() { - return linkedId; + public WebhookLocationSpoofing getLocationSpoofing() { + return locationSpoofing; } - @JsonProperty(JSON_PROPERTY_LINKED_ID) + @JsonProperty(JSON_PROPERTY_LOCATION_SPOOFING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLinkedId(String linkedId) { - this.linkedId = linkedId; + public void setLocationSpoofing(WebhookLocationSpoofing locationSpoofing) { + this.locationSpoofing = locationSpoofing; } - public WebhookVisit confidence(Confidence confidence) { - this.confidence = confidence; + public Webhook suspectScore(WebhookSuspectScore suspectScore) { + this.suspectScore = suspectScore; return this; } /** - * Get confidence - * @return confidence + * Get suspectScore + * @return suspectScore **/ @jakarta.annotation.Nullable @Schema(description = "") - @JsonProperty(JSON_PROPERTY_CONFIDENCE) + @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Confidence getConfidence() { - return confidence; + public WebhookSuspectScore getSuspectScore() { + return suspectScore; } - @JsonProperty(JSON_PROPERTY_CONFIDENCE) + @JsonProperty(JSON_PROPERTY_SUSPECT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfidence(Confidence confidence) { - this.confidence = confidence; + public void setSuspectScore(WebhookSuspectScore suspectScore) { + this.suspectScore = suspectScore; } - public WebhookVisit visitorFound(Boolean visitorFound) { - this.visitorFound = visitorFound; + public Webhook remoteControl(WebhookRemoteControl remoteControl) { + this.remoteControl = remoteControl; return this; } /** - * Attribute represents if a visitor had been identified before. - * @return visitorFound + * Get remoteControl + * @return remoteControl **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "Attribute represents if a visitor had been identified before.") - @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_REMOTE_CONTROL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVisitorFound() { - return visitorFound; + public WebhookRemoteControl getRemoteControl() { + return remoteControl; } - @JsonProperty(JSON_PROPERTY_VISITOR_FOUND) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setVisitorFound(Boolean visitorFound) { - this.visitorFound = visitorFound; + @JsonProperty(JSON_PROPERTY_REMOTE_CONTROL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRemoteControl(WebhookRemoteControl remoteControl) { + this.remoteControl = remoteControl; } - public WebhookVisit firstSeenAt(SeenAt firstSeenAt) { - this.firstSeenAt = firstSeenAt; + public Webhook velocity(WebhookVelocity velocity) { + this.velocity = velocity; return this; } /** - * Get firstSeenAt - * @return firstSeenAt + * Get velocity + * @return velocity **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_VELOCITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SeenAt getFirstSeenAt() { - return firstSeenAt; + public WebhookVelocity getVelocity() { + return velocity; } - @JsonProperty(JSON_PROPERTY_FIRST_SEEN_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFirstSeenAt(SeenAt firstSeenAt) { - this.firstSeenAt = firstSeenAt; + @JsonProperty(JSON_PROPERTY_VELOCITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVelocity(WebhookVelocity velocity) { + this.velocity = velocity; } - public WebhookVisit lastSeenAt(SeenAt lastSeenAt) { - this.lastSeenAt = lastSeenAt; + public Webhook developerTools(WebhookDeveloperTools developerTools) { + this.developerTools = developerTools; return this; } /** - * Get lastSeenAt - * @return lastSeenAt + * Get developerTools + * @return developerTools **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "") - @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DEVELOPER_TOOLS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SeenAt getLastSeenAt() { - return lastSeenAt; + public WebhookDeveloperTools getDeveloperTools() { + return developerTools; } - @JsonProperty(JSON_PROPERTY_LAST_SEEN_AT) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLastSeenAt(SeenAt lastSeenAt) { - this.lastSeenAt = lastSeenAt; + @JsonProperty(JSON_PROPERTY_DEVELOPER_TOOLS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDeveloperTools(WebhookDeveloperTools developerTools) { + this.developerTools = developerTools; } /** - * Return true if this WebhookVisit object is equal to o. + * Return true if this Webhook object is equal to o. */ @Override public boolean equals(Object o) { @@ -1251,76 +1289,91 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - WebhookVisit webhookVisit = (WebhookVisit) o; - return Objects.equals(this.visitorId, webhookVisit.visitorId) && - Objects.equals(this.clientReferrer, webhookVisit.clientReferrer) && - Objects.equals(this.userAgent, webhookVisit.userAgent) && - Objects.equals(this.bot, webhookVisit.bot) && - Objects.equals(this.ipInfo, webhookVisit.ipInfo) && - Objects.equals(this.incognito, webhookVisit.incognito) && - Objects.equals(this.rootApps, webhookVisit.rootApps) && - Objects.equals(this.emulator, webhookVisit.emulator) && - Objects.equals(this.clonedApp, webhookVisit.clonedApp) && - Objects.equals(this.factoryReset, webhookVisit.factoryReset) && - Objects.equals(this.jailbroken, webhookVisit.jailbroken) && - Objects.equals(this.frida, webhookVisit.frida) && - Objects.equals(this.ipBlocklist, webhookVisit.ipBlocklist) && - Objects.equals(this.tor, webhookVisit.tor) && - Objects.equals(this.privacySettings, webhookVisit.privacySettings) && - Objects.equals(this.virtualMachine, webhookVisit.virtualMachine) && - Objects.equals(this.vpn, webhookVisit.vpn) && - Objects.equals(this.proxy, webhookVisit.proxy) && - Objects.equals(this.tampering, webhookVisit.tampering) && - Objects.equals(this.rawDeviceAttributes, webhookVisit.rawDeviceAttributes) && - Objects.equals(this.highActivity, webhookVisit.highActivity) && - Objects.equals(this.locationSpoofing, webhookVisit.locationSpoofing) && - Objects.equals(this.suspectScore, webhookVisit.suspectScore) && - Objects.equals(this.remoteControl, webhookVisit.remoteControl) && - Objects.equals(this.velocity, webhookVisit.velocity) && - Objects.equals(this.developerTools, webhookVisit.developerTools) && - Objects.equals(this.requestId, webhookVisit.requestId) && - Objects.equals(this.browserDetails, webhookVisit.browserDetails) && - Objects.equals(this.ip, webhookVisit.ip) && - Objects.equals(this.ipLocation, webhookVisit.ipLocation) && - Objects.equals(this.timestamp, webhookVisit.timestamp) && - Objects.equals(this.time, webhookVisit.time) && - Objects.equals(this.url, webhookVisit.url) && - Objects.equals(this.tag, webhookVisit.tag) && - Objects.equals(this.linkedId, webhookVisit.linkedId) && - Objects.equals(this.confidence, webhookVisit.confidence) && - Objects.equals(this.visitorFound, webhookVisit.visitorFound) && - Objects.equals(this.firstSeenAt, webhookVisit.firstSeenAt) && - Objects.equals(this.lastSeenAt, webhookVisit.lastSeenAt); + Webhook webhook = (Webhook) o; + return Objects.equals(this.requestId, webhook.requestId) && + Objects.equals(this.url, webhook.url) && + Objects.equals(this.ip, webhook.ip) && + Objects.equals(this.tag, webhook.tag) && + Objects.equals(this.time, webhook.time) && + Objects.equals(this.timestamp, webhook.timestamp) && + Objects.equals(this.ipLocation, webhook.ipLocation) && + Objects.equals(this.linkedId, webhook.linkedId) && + Objects.equals(this.visitorId, webhook.visitorId) && + Objects.equals(this.visitorFound, webhook.visitorFound) && + Objects.equals(this.confidence, webhook.confidence) && + Objects.equals(this.firstSeenAt, webhook.firstSeenAt) && + Objects.equals(this.lastSeenAt, webhook.lastSeenAt) && + Objects.equals(this.browserDetails, webhook.browserDetails) && + Objects.equals(this.incognito, webhook.incognito) && + Objects.equals(this.clientReferrer, webhook.clientReferrer) && + Objects.equals(this.components, webhook.components) && + Objects.equals(this.bot, webhook.bot) && + Objects.equals(this.userAgent, webhook.userAgent) && + Objects.equals(this.rootApps, webhook.rootApps) && + Objects.equals(this.emulator, webhook.emulator) && + Objects.equals(this.ipInfo, webhook.ipInfo) && + Objects.equals(this.ipBlocklist, webhook.ipBlocklist) && + Objects.equals(this.tor, webhook.tor) && + Objects.equals(this.vpn, webhook.vpn) && + Objects.equals(this.proxy, webhook.proxy) && + Objects.equals(this.tampering, webhook.tampering) && + Objects.equals(this.clonedApp, webhook.clonedApp) && + Objects.equals(this.factoryReset, webhook.factoryReset) && + Objects.equals(this.jailbroken, webhook.jailbroken) && + Objects.equals(this.frida, webhook.frida) && + Objects.equals(this.privacySettings, webhook.privacySettings) && + Objects.equals(this.virtualMachine, webhook.virtualMachine) && + Objects.equals(this.rawDeviceAttributes, webhook.rawDeviceAttributes) && + Objects.equals(this.highActivity, webhook.highActivity) && + Objects.equals(this.locationSpoofing, webhook.locationSpoofing) && + Objects.equals(this.suspectScore, webhook.suspectScore) && + Objects.equals(this.remoteControl, webhook.remoteControl) && + Objects.equals(this.velocity, webhook.velocity) && + Objects.equals(this.developerTools, webhook.developerTools); } @Override public int hashCode() { - return Objects.hash(visitorId, clientReferrer, userAgent, bot, ipInfo, incognito, rootApps, emulator, clonedApp, factoryReset, jailbroken, frida, ipBlocklist, tor, privacySettings, virtualMachine, vpn, proxy, tampering, rawDeviceAttributes, highActivity, locationSpoofing, suspectScore, remoteControl, velocity, developerTools, requestId, browserDetails, ip, ipLocation, timestamp, time, url, tag, linkedId, confidence, visitorFound, firstSeenAt, lastSeenAt); + return Objects.hash(requestId, url, ip, tag, time, timestamp, ipLocation, linkedId, visitorId, visitorFound, confidence, firstSeenAt, lastSeenAt, browserDetails, incognito, clientReferrer, components, bot, userAgent, rootApps, emulator, ipInfo, ipBlocklist, tor, vpn, proxy, tampering, clonedApp, factoryReset, jailbroken, frida, privacySettings, virtualMachine, rawDeviceAttributes, highActivity, locationSpoofing, suspectScore, remoteControl, velocity, developerTools); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class WebhookVisit {\n"); + sb.append("class Webhook {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" ipLocation: ").append(toIndentedString(ipLocation)).append("\n"); + sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); sb.append(" visitorId: ").append(toIndentedString(visitorId)).append("\n"); + sb.append(" visitorFound: ").append(toIndentedString(visitorFound)).append("\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" firstSeenAt: ").append(toIndentedString(firstSeenAt)).append("\n"); + sb.append(" lastSeenAt: ").append(toIndentedString(lastSeenAt)).append("\n"); + sb.append(" browserDetails: ").append(toIndentedString(browserDetails)).append("\n"); + sb.append(" incognito: ").append(toIndentedString(incognito)).append("\n"); sb.append(" clientReferrer: ").append(toIndentedString(clientReferrer)).append("\n"); - sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n"); + sb.append(" components: ").append(toIndentedString(components)).append("\n"); sb.append(" bot: ").append(toIndentedString(bot)).append("\n"); - sb.append(" ipInfo: ").append(toIndentedString(ipInfo)).append("\n"); - sb.append(" incognito: ").append(toIndentedString(incognito)).append("\n"); + sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n"); sb.append(" rootApps: ").append(toIndentedString(rootApps)).append("\n"); sb.append(" emulator: ").append(toIndentedString(emulator)).append("\n"); + sb.append(" ipInfo: ").append(toIndentedString(ipInfo)).append("\n"); + sb.append(" ipBlocklist: ").append(toIndentedString(ipBlocklist)).append("\n"); + sb.append(" tor: ").append(toIndentedString(tor)).append("\n"); + sb.append(" vpn: ").append(toIndentedString(vpn)).append("\n"); + sb.append(" proxy: ").append(toIndentedString(proxy)).append("\n"); + sb.append(" tampering: ").append(toIndentedString(tampering)).append("\n"); sb.append(" clonedApp: ").append(toIndentedString(clonedApp)).append("\n"); sb.append(" factoryReset: ").append(toIndentedString(factoryReset)).append("\n"); sb.append(" jailbroken: ").append(toIndentedString(jailbroken)).append("\n"); sb.append(" frida: ").append(toIndentedString(frida)).append("\n"); - sb.append(" ipBlocklist: ").append(toIndentedString(ipBlocklist)).append("\n"); - sb.append(" tor: ").append(toIndentedString(tor)).append("\n"); sb.append(" privacySettings: ").append(toIndentedString(privacySettings)).append("\n"); sb.append(" virtualMachine: ").append(toIndentedString(virtualMachine)).append("\n"); - sb.append(" vpn: ").append(toIndentedString(vpn)).append("\n"); - sb.append(" proxy: ").append(toIndentedString(proxy)).append("\n"); - sb.append(" tampering: ").append(toIndentedString(tampering)).append("\n"); sb.append(" rawDeviceAttributes: ").append(toIndentedString(rawDeviceAttributes)).append("\n"); sb.append(" highActivity: ").append(toIndentedString(highActivity)).append("\n"); sb.append(" locationSpoofing: ").append(toIndentedString(locationSpoofing)).append("\n"); @@ -1328,19 +1381,6 @@ public String toString() { sb.append(" remoteControl: ").append(toIndentedString(remoteControl)).append("\n"); sb.append(" velocity: ").append(toIndentedString(velocity)).append("\n"); sb.append(" developerTools: ").append(toIndentedString(developerTools)).append("\n"); - sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); - sb.append(" browserDetails: ").append(toIndentedString(browserDetails)).append("\n"); - sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); - sb.append(" ipLocation: ").append(toIndentedString(ipLocation)).append("\n"); - sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); - sb.append(" time: ").append(toIndentedString(time)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); - sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n"); - sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); - sb.append(" visitorFound: ").append(toIndentedString(visitorFound)).append("\n"); - sb.append(" firstSeenAt: ").append(toIndentedString(firstSeenAt)).append("\n"); - sb.append(" lastSeenAt: ").append(toIndentedString(lastSeenAt)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookClonedApp.java b/sdk/src/main/java/com/fingerprint/model/WebhookClonedApp.java new file mode 100644 index 00000000..b6bac476 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookClonedApp.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookClonedApp + */ + + +@JsonPropertyOrder({ + WebhookClonedApp.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookClonedApp { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookClonedApp() { + } + + public WebhookClonedApp result(Boolean result) { + this.result = result; + return this; + } + + /** + * Android specific cloned application detection. There are 2 values: * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "Android specific cloned application detection. There are 2 values: * `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). * `false` - No signs of cloned application detected or the client is not Android. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookClonedApp object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookClonedApp webhookClonedApp = (WebhookClonedApp) o; + return Objects.equals(this.result, webhookClonedApp.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookClonedApp {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookDeveloperTools.java b/sdk/src/main/java/com/fingerprint/model/WebhookDeveloperTools.java new file mode 100644 index 00000000..ab705553 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookDeveloperTools.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookDeveloperTools + */ + + +@JsonPropertyOrder({ + WebhookDeveloperTools.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookDeveloperTools { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookDeveloperTools() { + } + + public WebhookDeveloperTools result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if the browser is Chrome with DevTools open or Firefox with Developer Tools open, `false` otherwise. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookDeveloperTools object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookDeveloperTools webhookDeveloperTools = (WebhookDeveloperTools) o; + return Objects.equals(this.result, webhookDeveloperTools.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookDeveloperTools {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookEmulator.java b/sdk/src/main/java/com/fingerprint/model/WebhookEmulator.java new file mode 100644 index 00000000..4ecc39cd --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookEmulator.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookEmulator + */ + + +@JsonPropertyOrder({ + WebhookEmulator.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookEmulator { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookEmulator() { + } + + public WebhookEmulator result(Boolean result) { + this.result = result; + return this; + } + + /** + * Android specific emulator detection. There are 2 values: * `true` - Emulated environment detected (e.g. launch inside of AVD). * `false` - No signs of emulated environment detected or the client is not Android. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "Android specific emulator detection. There are 2 values: * `true` - Emulated environment detected (e.g. launch inside of AVD). * `false` - No signs of emulated environment detected or the client is not Android. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookEmulator object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookEmulator webhookEmulator = (WebhookEmulator) o; + return Objects.equals(this.result, webhookEmulator.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookEmulator {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java b/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java new file mode 100644 index 00000000..f8ecca3a --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java @@ -0,0 +1,130 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookFactoryReset + */ + + +@JsonPropertyOrder({ + WebhookFactoryReset.JSON_PROPERTY_TIME, + WebhookFactoryReset.JSON_PROPERTY_TIMESTAMP +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookFactoryReset { + public static final String JSON_PROPERTY_TIME = "time"; + private OffsetDateTime time; + + public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; + private Long timestamp; + + public WebhookFactoryReset() { + } + + public WebhookFactoryReset time(OffsetDateTime time) { + this.time = time; + return this; + } + + /** + * Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. + * @return time + **/ + @jakarta.annotation.Nullable + @Schema(description = "Indicates the time (in UTC) of the most recent factory reset that happened on the **mobile device**. When a factory reset cannot be detected on the mobile device or when the request is initiated from a browser, this field will correspond to the *epoch* time (i.e 1 Jan 1970 UTC). See [Factory Reset Detection](https://dev.fingerprint.com/docs/smart-signals-overview#factory-reset-detection) to learn more about this Smart Signal. ") + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getTime() { + return time; + } + + + @JsonProperty(JSON_PROPERTY_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTime(OffsetDateTime time) { + this.time = time; + } + + + public WebhookFactoryReset timestamp(Long timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. + * @return timestamp + **/ + @jakarta.annotation.Nullable + @Schema(description = "This field is just another representation of the value in the `time` field. The time of the most recent factory reset that happened on the **mobile device** is expressed as Unix epoch time. ") + @JsonProperty(JSON_PROPERTY_TIMESTAMP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getTimestamp() { + return timestamp; + } + + + @JsonProperty(JSON_PROPERTY_TIMESTAMP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTimestamp(Long timestamp) { + this.timestamp = timestamp; + } + + + /** + * Return true if this WebhookFactoryReset object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookFactoryReset webhookFactoryReset = (WebhookFactoryReset) o; + return Objects.equals(this.time, webhookFactoryReset.time) && + Objects.equals(this.timestamp, webhookFactoryReset.timestamp); + } + + @Override + public int hashCode() { + return Objects.hash(time, timestamp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookFactoryReset {\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookFrida.java b/sdk/src/main/java/com/fingerprint/model/WebhookFrida.java new file mode 100644 index 00000000..958411bc --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookFrida.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookFrida + */ + + +@JsonPropertyOrder({ + WebhookFrida.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookFrida { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookFrida() { + } + + public WebhookFrida result(Boolean result) { + this.result = result; + return this; + } + + /** + * [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "[Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: * `true` - Frida detected * `false` - No signs of Frida or the client is not a mobile device. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookFrida object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookFrida webhookFrida = (WebhookFrida) o; + return Objects.equals(this.result, webhookFrida.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookFrida {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookHighActivity.java b/sdk/src/main/java/com/fingerprint/model/WebhookHighActivity.java new file mode 100644 index 00000000..f60d98ed --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookHighActivity.java @@ -0,0 +1,130 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookHighActivity + */ + + +@JsonPropertyOrder({ + WebhookHighActivity.JSON_PROPERTY_RESULT, + WebhookHighActivity.JSON_PROPERTY_DAILY_REQUESTS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookHighActivity { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public static final String JSON_PROPERTY_DAILY_REQUESTS = "dailyRequests"; + private Long dailyRequests; + + public WebhookHighActivity() { + } + + public WebhookHighActivity result(Boolean result) { + this.result = result; + return this; + } + + /** + * Flag indicating if the request came from a high-activity visitor. + * @return result + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Flag indicating if the request came from a high-activity visitor.") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setResult(Boolean result) { + this.result = result; + } + + + public WebhookHighActivity dailyRequests(Long dailyRequests) { + this.dailyRequests = dailyRequests; + return this; + } + + /** + * Number of requests from the same visitor in the previous day. + * minimum: 1 + * @return dailyRequests + **/ + @jakarta.annotation.Nullable + @Schema(description = "Number of requests from the same visitor in the previous day.") + @JsonProperty(JSON_PROPERTY_DAILY_REQUESTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getDailyRequests() { + return dailyRequests; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_REQUESTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDailyRequests(Long dailyRequests) { + this.dailyRequests = dailyRequests; + } + + + /** + * Return true if this WebhookHighActivity object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookHighActivity webhookHighActivity = (WebhookHighActivity) o; + return Objects.equals(this.result, webhookHighActivity.result) && + Objects.equals(this.dailyRequests, webhookHighActivity.dailyRequests); + } + + @Override + public int hashCode() { + return Objects.hash(result, dailyRequests); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookHighActivity {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" dailyRequests: ").append(toIndentedString(dailyRequests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookIPBlocklist.java b/sdk/src/main/java/com/fingerprint/model/WebhookIPBlocklist.java new file mode 100644 index 00000000..8d7dc0de --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookIPBlocklist.java @@ -0,0 +1,130 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.IPBlocklistDetails; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookIPBlocklist + */ + + +@JsonPropertyOrder({ + WebhookIPBlocklist.JSON_PROPERTY_RESULT, + WebhookIPBlocklist.JSON_PROPERTY_DETAILS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookIPBlocklist { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public static final String JSON_PROPERTY_DETAILS = "details"; + private IPBlocklistDetails details; + + public WebhookIPBlocklist() { + } + + public WebhookIPBlocklist result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + public WebhookIPBlocklist details(IPBlocklistDetails details) { + this.details = details; + return this; + } + + /** + * Get details + * @return details + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IPBlocklistDetails getDetails() { + return details; + } + + + @JsonProperty(JSON_PROPERTY_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetails(IPBlocklistDetails details) { + this.details = details; + } + + + /** + * Return true if this WebhookIPBlocklist object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookIPBlocklist webhookIPBlocklist = (WebhookIPBlocklist) o; + return Objects.equals(this.result, webhookIPBlocklist.result) && + Objects.equals(this.details, webhookIPBlocklist.details); + } + + @Override + public int hashCode() { + return Objects.hash(result, details); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookIPBlocklist {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookIPInfo.java b/sdk/src/main/java/com/fingerprint/model/WebhookIPInfo.java new file mode 100644 index 00000000..8a4bda4c --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookIPInfo.java @@ -0,0 +1,131 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.IPInfoV4; +import com.fingerprint.model.IPInfoV6; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * Details about the request IP address. Has separate fields for v4 and v6 IP address versions. + */ + +@Schema(description = "Details about the request IP address. Has separate fields for v4 and v6 IP address versions.") +@JsonPropertyOrder({ + WebhookIPInfo.JSON_PROPERTY_V4, + WebhookIPInfo.JSON_PROPERTY_V6 +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookIPInfo { + public static final String JSON_PROPERTY_V4 = "v4"; + private IPInfoV4 v4; + + public static final String JSON_PROPERTY_V6 = "v6"; + private IPInfoV6 v6; + + public WebhookIPInfo() { + } + + public WebhookIPInfo v4(IPInfoV4 v4) { + this.v4 = v4; + return this; + } + + /** + * Get v4 + * @return v4 + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_V4) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IPInfoV4 getV4() { + return v4; + } + + + @JsonProperty(JSON_PROPERTY_V4) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setV4(IPInfoV4 v4) { + this.v4 = v4; + } + + + public WebhookIPInfo v6(IPInfoV6 v6) { + this.v6 = v6; + return this; + } + + /** + * Get v6 + * @return v6 + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_V6) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public IPInfoV6 getV6() { + return v6; + } + + + @JsonProperty(JSON_PROPERTY_V6) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setV6(IPInfoV6 v6) { + this.v6 = v6; + } + + + /** + * Return true if this WebhookIPInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookIPInfo webhookIPInfo = (WebhookIPInfo) o; + return Objects.equals(this.v4, webhookIPInfo.v4) && + Objects.equals(this.v6, webhookIPInfo.v6); + } + + @Override + public int hashCode() { + return Objects.hash(v4, v6); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookIPInfo {\n"); + sb.append(" v4: ").append(toIndentedString(v4)).append("\n"); + sb.append(" v6: ").append(toIndentedString(v6)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookJailbroken.java b/sdk/src/main/java/com/fingerprint/model/WebhookJailbroken.java new file mode 100644 index 00000000..784d495f --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookJailbroken.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookJailbroken + */ + + +@JsonPropertyOrder({ + WebhookJailbroken.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookJailbroken { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookJailbroken() { + } + + public WebhookJailbroken result(Boolean result) { + this.result = result; + return this; + } + + /** + * iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "iOS specific jailbreak detection. There are 2 values: * `true` - Jailbreak detected. * `false` - No signs of jailbreak or the client is not iOS. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookJailbroken object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookJailbroken webhookJailbroken = (WebhookJailbroken) o; + return Objects.equals(this.result, webhookJailbroken.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookJailbroken {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookLocationSpoofing.java b/sdk/src/main/java/com/fingerprint/model/WebhookLocationSpoofing.java new file mode 100644 index 00000000..d27776cd --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookLocationSpoofing.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookLocationSpoofing + */ + + +@JsonPropertyOrder({ + WebhookLocationSpoofing.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookLocationSpoofing { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookLocationSpoofing() { + } + + public WebhookLocationSpoofing result(Boolean result) { + this.result = result; + return this; + } + + /** + * Flag indicating whether the request came from a mobile device with location spoofing enabled. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "Flag indicating whether the request came from a mobile device with location spoofing enabled.") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookLocationSpoofing object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookLocationSpoofing webhookLocationSpoofing = (WebhookLocationSpoofing) o; + return Objects.equals(this.result, webhookLocationSpoofing.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookLocationSpoofing {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookPrivacySettings.java b/sdk/src/main/java/com/fingerprint/model/WebhookPrivacySettings.java new file mode 100644 index 00000000..72ea8acf --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookPrivacySettings.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookPrivacySettings + */ + + +@JsonPropertyOrder({ + WebhookPrivacySettings.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookPrivacySettings { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookPrivacySettings() { + } + + public WebhookPrivacySettings result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookPrivacySettings object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookPrivacySettings webhookPrivacySettings = (WebhookPrivacySettings) o; + return Objects.equals(this.result, webhookPrivacySettings.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookPrivacySettings {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookProxy.java b/sdk/src/main/java/com/fingerprint/model/WebhookProxy.java new file mode 100644 index 00000000..91a52e59 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookProxy.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookProxy + */ + + +@JsonPropertyOrder({ + WebhookProxy.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookProxy { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookProxy() { + } + + public WebhookProxy result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if the request IP address is used by a public proxy provider, `false` otherwise. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if the request IP address is used by a public proxy provider, `false` otherwise. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookProxy object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookProxy webhookProxy = (WebhookProxy) o; + return Objects.equals(this.result, webhookProxy.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookProxy {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookRemoteControl.java b/sdk/src/main/java/com/fingerprint/model/WebhookRemoteControl.java new file mode 100644 index 00000000..8a64e426 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookRemoteControl.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookRemoteControl + */ + + +@JsonPropertyOrder({ + WebhookRemoteControl.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookRemoteControl { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookRemoteControl() { + } + + public WebhookRemoteControl result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookRemoteControl object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookRemoteControl webhookRemoteControl = (WebhookRemoteControl) o; + return Objects.equals(this.result, webhookRemoteControl.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookRemoteControl {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookRootApps.java b/sdk/src/main/java/com/fingerprint/model/WebhookRootApps.java new file mode 100644 index 00000000..4f3f322d --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookRootApps.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookRootApps + */ + + +@JsonPropertyOrder({ + WebhookRootApps.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookRootApps { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookRootApps() { + } + + public WebhookRootApps result(Boolean result) { + this.result = result; + return this; + } + + /** + * Android specific root management apps detection. There are 2 values: * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "Android specific root management apps detection. There are 2 values: * `true` - Root Management Apps detected (e.g. Magisk). * `false` - No Root Management Apps detected or the client isn't Android. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookRootApps object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookRootApps webhookRootApps = (WebhookRootApps) o; + return Objects.equals(this.result, webhookRootApps.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookRootApps {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookSuspectScore.java b/sdk/src/main/java/com/fingerprint/model/WebhookSuspectScore.java new file mode 100644 index 00000000..b221688c --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookSuspectScore.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookSuspectScore + */ + + +@JsonPropertyOrder({ + WebhookSuspectScore.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookSuspectScore { + public static final String JSON_PROPERTY_RESULT = "result"; + private Integer result; + + public WebhookSuspectScore() { + } + + public WebhookSuspectScore result(Integer result) { + this.result = result; + return this; + } + + /** + * Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Integer result) { + this.result = result; + } + + + /** + * Return true if this WebhookSuspectScore object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookSuspectScore webhookSuspectScore = (WebhookSuspectScore) o; + return Objects.equals(this.result, webhookSuspectScore.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookSuspectScore {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookTampering.java b/sdk/src/main/java/com/fingerprint/model/WebhookTampering.java new file mode 100644 index 00000000..27646c89 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookTampering.java @@ -0,0 +1,163 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookTampering + */ + + +@JsonPropertyOrder({ + WebhookTampering.JSON_PROPERTY_RESULT, + WebhookTampering.JSON_PROPERTY_ANOMALY_SCORE, + WebhookTampering.JSON_PROPERTY_ANTI_DETECT_BROWSER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookTampering { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public static final String JSON_PROPERTY_ANOMALY_SCORE = "anomalyScore"; + private Double anomalyScore; + + public static final String JSON_PROPERTY_ANTI_DETECT_BROWSER = "antiDetectBrowser"; + private Boolean antiDetectBrowser; + + public WebhookTampering() { + } + + public WebhookTampering result(Boolean result) { + this.result = result; + return this; + } + + /** + * Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + public WebhookTampering anomalyScore(Double anomalyScore) { + this.anomalyScore = anomalyScore; + return this; + } + + /** + * Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt * Values below `0.5` indicate genuine browsers. + * minimum: 0 + * maximum: 1 + * @return anomalyScore + **/ + @jakarta.annotation.Nullable + @Schema(description = "Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt * Values below `0.5` indicate genuine browsers. ") + @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getAnomalyScore() { + return anomalyScore; + } + + + @JsonProperty(JSON_PROPERTY_ANOMALY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAnomalyScore(Double anomalyScore) { + this.anomalyScore = anomalyScore; + } + + + public WebhookTampering antiDetectBrowser(Boolean antiDetectBrowser) { + this.antiDetectBrowser = antiDetectBrowser; + return this; + } + + /** + * Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. + * @return antiDetectBrowser + **/ + @jakarta.annotation.Nullable + @Schema(description = "Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations.") + @JsonProperty(JSON_PROPERTY_ANTI_DETECT_BROWSER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getAntiDetectBrowser() { + return antiDetectBrowser; + } + + + @JsonProperty(JSON_PROPERTY_ANTI_DETECT_BROWSER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAntiDetectBrowser(Boolean antiDetectBrowser) { + this.antiDetectBrowser = antiDetectBrowser; + } + + + /** + * Return true if this WebhookTampering object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookTampering webhookTampering = (WebhookTampering) o; + return Objects.equals(this.result, webhookTampering.result) && + Objects.equals(this.anomalyScore, webhookTampering.anomalyScore) && + Objects.equals(this.antiDetectBrowser, webhookTampering.antiDetectBrowser); + } + + @Override + public int hashCode() { + return Objects.hash(result, anomalyScore, antiDetectBrowser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookTampering {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" anomalyScore: ").append(toIndentedString(anomalyScore)).append("\n"); + sb.append(" antiDetectBrowser: ").append(toIndentedString(antiDetectBrowser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookTor.java b/sdk/src/main/java/com/fingerprint/model/WebhookTor.java new file mode 100644 index 00000000..9e6c64b3 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookTor.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookTor + */ + + +@JsonPropertyOrder({ + WebhookTor.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookTor { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookTor() { + } + + public WebhookTor result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if the request IP address is a known tor exit node, `false` otherwise. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if the request IP address is a known tor exit node, `false` otherwise. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookTor object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookTor webhookTor = (WebhookTor) o; + return Objects.equals(this.result, webhookTor.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookTor {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookVPN.java b/sdk/src/main/java/com/fingerprint/model/WebhookVPN.java new file mode 100644 index 00000000..fb7b0c26 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookVPN.java @@ -0,0 +1,227 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.VPNConfidence; +import com.fingerprint.model.VPNMethods; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookVPN + */ + + +@JsonPropertyOrder({ + WebhookVPN.JSON_PROPERTY_RESULT, + WebhookVPN.JSON_PROPERTY_CONFIDENCE, + WebhookVPN.JSON_PROPERTY_ORIGIN_TIMEZONE, + WebhookVPN.JSON_PROPERTY_ORIGIN_COUNTRY, + WebhookVPN.JSON_PROPERTY_METHODS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookVPN { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public static final String JSON_PROPERTY_CONFIDENCE = "confidence"; + private VPNConfidence confidence; + + public static final String JSON_PROPERTY_ORIGIN_TIMEZONE = "originTimezone"; + private String originTimezone; + + public static final String JSON_PROPERTY_ORIGIN_COUNTRY = "originCountry"; + private String originCountry; + + public static final String JSON_PROPERTY_METHODS = "methods"; + private VPNMethods methods; + + public WebhookVPN() { + } + + public WebhookVPN result(Boolean result) { + this.result = result; + return this; + } + + /** + * VPN or other anonymizing service has been used when sending the request. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "VPN or other anonymizing service has been used when sending the request.") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + public WebhookVPN confidence(VPNConfidence confidence) { + this.confidence = confidence; + return this; + } + + /** + * Get confidence + * @return confidence + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_CONFIDENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VPNConfidence getConfidence() { + return confidence; + } + + + @JsonProperty(JSON_PROPERTY_CONFIDENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConfidence(VPNConfidence confidence) { + this.confidence = confidence; + } + + + public WebhookVPN originTimezone(String originTimezone) { + this.originTimezone = originTimezone; + return this; + } + + /** + * Local timezone which is used in timezoneMismatch method. + * @return originTimezone + **/ + @jakarta.annotation.Nullable + @Schema(description = "Local timezone which is used in timezoneMismatch method.") + @JsonProperty(JSON_PROPERTY_ORIGIN_TIMEZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOriginTimezone() { + return originTimezone; + } + + + @JsonProperty(JSON_PROPERTY_ORIGIN_TIMEZONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOriginTimezone(String originTimezone) { + this.originTimezone = originTimezone; + } + + + public WebhookVPN originCountry(String originCountry) { + this.originCountry = originCountry; + return this; + } + + /** + * Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). + * @return originCountry + **/ + @jakarta.annotation.Nullable + @Schema(description = "Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown).") + @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOriginCountry() { + return originCountry; + } + + + @JsonProperty(JSON_PROPERTY_ORIGIN_COUNTRY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOriginCountry(String originCountry) { + this.originCountry = originCountry; + } + + + public WebhookVPN methods(VPNMethods methods) { + this.methods = methods; + return this; + } + + /** + * Get methods + * @return methods + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_METHODS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VPNMethods getMethods() { + return methods; + } + + + @JsonProperty(JSON_PROPERTY_METHODS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMethods(VPNMethods methods) { + this.methods = methods; + } + + + /** + * Return true if this WebhookVPN object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookVPN webhookVPN = (WebhookVPN) o; + return Objects.equals(this.result, webhookVPN.result) && + Objects.equals(this.confidence, webhookVPN.confidence) && + Objects.equals(this.originTimezone, webhookVPN.originTimezone) && + Objects.equals(this.originCountry, webhookVPN.originCountry) && + Objects.equals(this.methods, webhookVPN.methods); + } + + @Override + public int hashCode() { + return Objects.hash(result, confidence, originTimezone, originCountry, methods); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookVPN {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n"); + sb.append(" originTimezone: ").append(toIndentedString(originTimezone)).append("\n"); + sb.append(" originCountry: ").append(toIndentedString(originCountry)).append("\n"); + sb.append(" methods: ").append(toIndentedString(methods)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookVelocity.java b/sdk/src/main/java/com/fingerprint/model/WebhookVelocity.java new file mode 100644 index 00000000..4f0985ed --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookVelocity.java @@ -0,0 +1,290 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fingerprint.model.VelocityData; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. + */ + +@Schema(description = "Sums key data points for a specific `visitorId`, `ipAddress` and `linkedId` at three distinct time intervals: 5 minutes, 1 hour, and 24 hours as follows: - Number of distinct IP addresses associated to the visitor ID. - Number of distinct linked IDs associated with the visitor ID. - Number of distinct countries associated with the visitor ID. - Number of identification events associated with the visitor ID. - Number of identification events associated with the detected IP address. - Number of distinct IP addresses associated with the provided linked ID. - Number of distinct visitor IDs associated with the provided linked ID. The `24h` interval of `distinctIp`, `distinctLinkedId`, `distinctCountry`, `distinctIpByLinkedId` and `distinctVisitorIdByLinkedId` will be omitted if the number of `events` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. ") +@JsonPropertyOrder({ + WebhookVelocity.JSON_PROPERTY_DISTINCT_IP, + WebhookVelocity.JSON_PROPERTY_DISTINCT_LINKED_ID, + WebhookVelocity.JSON_PROPERTY_DISTINCT_COUNTRY, + WebhookVelocity.JSON_PROPERTY_EVENTS, + WebhookVelocity.JSON_PROPERTY_IP_EVENTS, + WebhookVelocity.JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID, + WebhookVelocity.JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookVelocity { + public static final String JSON_PROPERTY_DISTINCT_IP = "distinctIp"; + private VelocityData distinctIp; + + public static final String JSON_PROPERTY_DISTINCT_LINKED_ID = "distinctLinkedId"; + private VelocityData distinctLinkedId; + + public static final String JSON_PROPERTY_DISTINCT_COUNTRY = "distinctCountry"; + private VelocityData distinctCountry; + + public static final String JSON_PROPERTY_EVENTS = "events"; + private VelocityData events; + + public static final String JSON_PROPERTY_IP_EVENTS = "ipEvents"; + private VelocityData ipEvents; + + public static final String JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID = "distinctIpByLinkedId"; + private VelocityData distinctIpByLinkedId; + + public static final String JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID = "distinctVisitorIdByLinkedId"; + private VelocityData distinctVisitorIdByLinkedId; + + public WebhookVelocity() { + } + + public WebhookVelocity distinctIp(VelocityData distinctIp) { + this.distinctIp = distinctIp; + return this; + } + + /** + * Get distinctIp + * @return distinctIp + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getDistinctIp() { + return distinctIp; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDistinctIp(VelocityData distinctIp) { + this.distinctIp = distinctIp; + } + + + public WebhookVelocity distinctLinkedId(VelocityData distinctLinkedId) { + this.distinctLinkedId = distinctLinkedId; + return this; + } + + /** + * Get distinctLinkedId + * @return distinctLinkedId + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getDistinctLinkedId() { + return distinctLinkedId; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDistinctLinkedId(VelocityData distinctLinkedId) { + this.distinctLinkedId = distinctLinkedId; + } + + + public WebhookVelocity distinctCountry(VelocityData distinctCountry) { + this.distinctCountry = distinctCountry; + return this; + } + + /** + * Get distinctCountry + * @return distinctCountry + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_COUNTRY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getDistinctCountry() { + return distinctCountry; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_COUNTRY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDistinctCountry(VelocityData distinctCountry) { + this.distinctCountry = distinctCountry; + } + + + public WebhookVelocity events(VelocityData events) { + this.events = events; + return this; + } + + /** + * Get events + * @return events + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_EVENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getEvents() { + return events; + } + + + @JsonProperty(JSON_PROPERTY_EVENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEvents(VelocityData events) { + this.events = events; + } + + + public WebhookVelocity ipEvents(VelocityData ipEvents) { + this.ipEvents = ipEvents; + return this; + } + + /** + * Get ipEvents + * @return ipEvents + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_IP_EVENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getIpEvents() { + return ipEvents; + } + + + @JsonProperty(JSON_PROPERTY_IP_EVENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIpEvents(VelocityData ipEvents) { + this.ipEvents = ipEvents; + } + + + public WebhookVelocity distinctIpByLinkedId(VelocityData distinctIpByLinkedId) { + this.distinctIpByLinkedId = distinctIpByLinkedId; + return this; + } + + /** + * Get distinctIpByLinkedId + * @return distinctIpByLinkedId + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getDistinctIpByLinkedId() { + return distinctIpByLinkedId; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_IP_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDistinctIpByLinkedId(VelocityData distinctIpByLinkedId) { + this.distinctIpByLinkedId = distinctIpByLinkedId; + } + + + public WebhookVelocity distinctVisitorIdByLinkedId(VelocityData distinctVisitorIdByLinkedId) { + this.distinctVisitorIdByLinkedId = distinctVisitorIdByLinkedId; + return this; + } + + /** + * Get distinctVisitorIdByLinkedId + * @return distinctVisitorIdByLinkedId + **/ + @jakarta.annotation.Nullable + @Schema(description = "") + @JsonProperty(JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VelocityData getDistinctVisitorIdByLinkedId() { + return distinctVisitorIdByLinkedId; + } + + + @JsonProperty(JSON_PROPERTY_DISTINCT_VISITOR_ID_BY_LINKED_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDistinctVisitorIdByLinkedId(VelocityData distinctVisitorIdByLinkedId) { + this.distinctVisitorIdByLinkedId = distinctVisitorIdByLinkedId; + } + + + /** + * Return true if this WebhookVelocity object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookVelocity webhookVelocity = (WebhookVelocity) o; + return Objects.equals(this.distinctIp, webhookVelocity.distinctIp) && + Objects.equals(this.distinctLinkedId, webhookVelocity.distinctLinkedId) && + Objects.equals(this.distinctCountry, webhookVelocity.distinctCountry) && + Objects.equals(this.events, webhookVelocity.events) && + Objects.equals(this.ipEvents, webhookVelocity.ipEvents) && + Objects.equals(this.distinctIpByLinkedId, webhookVelocity.distinctIpByLinkedId) && + Objects.equals(this.distinctVisitorIdByLinkedId, webhookVelocity.distinctVisitorIdByLinkedId); + } + + @Override + public int hashCode() { + return Objects.hash(distinctIp, distinctLinkedId, distinctCountry, events, ipEvents, distinctIpByLinkedId, distinctVisitorIdByLinkedId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookVelocity {\n"); + sb.append(" distinctIp: ").append(toIndentedString(distinctIp)).append("\n"); + sb.append(" distinctLinkedId: ").append(toIndentedString(distinctLinkedId)).append("\n"); + sb.append(" distinctCountry: ").append(toIndentedString(distinctCountry)).append("\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); + sb.append(" ipEvents: ").append(toIndentedString(ipEvents)).append("\n"); + sb.append(" distinctIpByLinkedId: ").append(toIndentedString(distinctIpByLinkedId)).append("\n"); + sb.append(" distinctVisitorIdByLinkedId: ").append(toIndentedString(distinctVisitorIdByLinkedId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/com/fingerprint/model/WebhookVirtualMachine.java b/sdk/src/main/java/com/fingerprint/model/WebhookVirtualMachine.java new file mode 100644 index 00000000..52333b44 --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/WebhookVirtualMachine.java @@ -0,0 +1,97 @@ +package com.fingerprint.model; + +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fingerprint.sdk.JSON; +import io.swagger.v3.oas.annotations.media.Schema; + +/** + * WebhookVirtualMachine + */ + + +@JsonPropertyOrder({ + WebhookVirtualMachine.JSON_PROPERTY_RESULT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class WebhookVirtualMachine { + public static final String JSON_PROPERTY_RESULT = "result"; + private Boolean result; + + public WebhookVirtualMachine() { + } + + public WebhookVirtualMachine result(Boolean result) { + this.result = result; + return this; + } + + /** + * `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. + * @return result + **/ + @jakarta.annotation.Nullable + @Schema(description = "`true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. ") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Boolean result) { + this.result = result; + } + + + /** + * Return true if this WebhookVirtualMachine object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookVirtualMachine webhookVirtualMachine = (WebhookVirtualMachine) o; + return Objects.equals(this.result, webhookVirtualMachine.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookVirtualMachine {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/test/java/com/fingerprint/SealedTest.java b/sdk/src/test/java/com/fingerprint/SealedTest.java index 090431c2..d405e9b5 100644 --- a/sdk/src/test/java/com/fingerprint/SealedTest.java +++ b/sdk/src/test/java/com/fingerprint/SealedTest.java @@ -1,7 +1,7 @@ package com.fingerprint; import com.fasterxml.jackson.databind.JsonMappingException; -import com.fingerprint.model.EventResponse; +import com.fingerprint.model.EventsGetResponse; import com.fingerprint.sdk.JSON; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; @@ -17,9 +17,9 @@ public void unsealEventResponseTest() throws Exception { byte[] sealedResult = Base64.getDecoder().decode("noXc7SXO+mqeAGrvBMgObi/S0fXTpP3zupk8qFqsO/1zdtWCD169iLA3VkkZh9ICHpZ0oWRzqG0M9/TnCeKFohgBLqDp6O0zEfXOv6i5q++aucItznQdLwrKLP+O0blfb4dWVI8/aSbd4ELAZuJJxj9bCoVZ1vk+ShbUXCRZTD30OIEAr3eiG9aw00y1UZIqMgX6CkFlU9L9OnKLsNsyomPIaRHTmgVTI5kNhrnVNyNsnzt9rY7fUD52DQxJILVPrUJ1Q+qW7VyNslzGYBPG0DyYlKbRAomKJDQIkdj/Uwa6bhSTq4XYNVvbk5AJ/dGwvsVdOnkMT2Ipd67KwbKfw5bqQj/cw6bj8Cp2FD4Dy4Ud4daBpPRsCyxBM2jOjVz1B/lAyrOp8BweXOXYugwdPyEn38MBZ5oL4D38jIwR/QiVnMHpERh93jtgwh9Abza6i4/zZaDAbPhtZLXSM5ztdctv8bAb63CppLU541Kf4OaLO3QLvfLRXK2n8bwEwzVAqQ22dyzt6/vPiRbZ5akh8JB6QFXG0QJF9DejsIspKF3JvOKjG2edmC9o+GfL3hwDBiihYXCGY9lElZICAdt+7rZm5UxMx7STrVKy81xcvfaIp1BwGh/HyMsJnkE8IczzRFpLlHGYuNDxdLoBjiifrmHvOCUDcV8UvhSV+UAZtAVejdNGo5G/bz0NF21HUO4pVRPu6RqZIs/aX4hlm6iO/0Ru00ct8pfadUIgRcephTuFC2fHyZxNBC6NApRtLSNLfzYTTo/uSjgcu6rLWiNo5G7yfrM45RXjalFEFzk75Z/fu9lCJJa5uLFgDNKlU+IaFjArfXJCll3apbZp4/LNKiU35ZlB7ZmjDTrji1wLep8iRVVEGht/DW00MTok7Zn7Fv+MlxgWmbZB3BuezwTmXb/fNw=="); byte[] key = Base64.getDecoder().decode("p2PA7MGy5tx56cnyJaFZMr96BCFwZeHjZV2EqMvTq53="); - EventResponse expectedResponse = JSON.getDefault().getMapper().readValue("{\"products\":{\"identification\":{\"data\":{\"visitorId\":\"2ZEDCZEfOfXjEmMuE3tq\",\"requestId\":\"1703067132750.Z5hutJ\",\"browserDetails\":{\"browserName\":\"Safari\",\"browserMajorVersion\":\"17\",\"browserFullVersion\":\"17.3\",\"os\":\"Mac OS X\",\"osVersion\":\"10.15.7\",\"device\":\"Other\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15\"},\"incognito\":false,\"ip\":\"::1\",\"ipLocation\":{\"accuracyRadius\":1000,\"latitude\":59.3241,\"longitude\":18.0517,\"postalCode\":\"100 05\",\"timezone\":\"Europe/Stockholm\",\"city\":{\"name\":\"Stockholm\"},\"country\":{\"code\":\"SE\",\"name\":\"Sweden\"},\"continent\":{\"code\":\"EU\",\"name\":\"Europe\"},\"subdivisions\":[{\"isoCode\":\"AB\",\"name\":\"Stockholm County\"}]},\"timestamp\":1703067136286,\"time\":\"2023-12-20T10:12:16Z\",\"url\":\"http://localhost:8080/\",\"tag\":{\"foo\":\"bar\"},\"confidence\":{\"score\":1},\"visitorFound\":true,\"firstSeenAt\":{\"global\":\"2023-12-15T12:13:55.103Z\",\"subscription\":\"2023-12-15T12:13:55.103Z\"},\"lastSeenAt\":{\"global\":\"2023-12-19T11:39:51.52Z\",\"subscription\":\"2023-12-19T11:39:51.52Z\"}}},\"botd\":{\"data\":{\"bot\":{\"result\":\"notDetected\"},\"meta\":{\"foo\":\"bar\"},\"url\":\"http://localhost:8080/\",\"ip\":\"::1\",\"time\":\"2023-12-20T10:12:13.894Z\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15\",\"requestId\":\"1703067132750.Z5hutJ\"}}}}", EventResponse.class); + EventsGetResponse expectedResponse = JSON.getDefault().getMapper().readValue("{\"products\":{\"identification\":{\"data\":{\"visitorId\":\"2ZEDCZEfOfXjEmMuE3tq\",\"requestId\":\"1703067132750.Z5hutJ\",\"browserDetails\":{\"browserName\":\"Safari\",\"browserMajorVersion\":\"17\",\"browserFullVersion\":\"17.3\",\"os\":\"Mac OS X\",\"osVersion\":\"10.15.7\",\"device\":\"Other\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15\"},\"incognito\":false,\"ip\":\"::1\",\"ipLocation\":{\"accuracyRadius\":1000,\"latitude\":59.3241,\"longitude\":18.0517,\"postalCode\":\"100 05\",\"timezone\":\"Europe/Stockholm\",\"city\":{\"name\":\"Stockholm\"},\"country\":{\"code\":\"SE\",\"name\":\"Sweden\"},\"continent\":{\"code\":\"EU\",\"name\":\"Europe\"},\"subdivisions\":[{\"isoCode\":\"AB\",\"name\":\"Stockholm County\"}]},\"timestamp\":1703067136286,\"time\":\"2023-12-20T10:12:16Z\",\"url\":\"http://localhost:8080/\",\"tag\":{\"foo\":\"bar\"},\"confidence\":{\"score\":1},\"visitorFound\":true,\"firstSeenAt\":{\"global\":\"2023-12-15T12:13:55.103Z\",\"subscription\":\"2023-12-15T12:13:55.103Z\"},\"lastSeenAt\":{\"global\":\"2023-12-19T11:39:51.52Z\",\"subscription\":\"2023-12-19T11:39:51.52Z\"}}},\"botd\":{\"data\":{\"bot\":{\"result\":\"notDetected\"},\"meta\":{\"foo\":\"bar\"},\"url\":\"http://localhost:8080/\",\"ip\":\"::1\",\"time\":\"2023-12-20T10:12:13.894Z\",\"userAgent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3 Safari/605.1.15\",\"requestId\":\"1703067132750.Z5hutJ\"}}}}", EventsGetResponse.class); - EventResponse eventResponse = Sealed.unsealEventResponse( + EventsGetResponse eventResponse = Sealed.unsealEventResponse( sealedResult, new Sealed.DecryptionKey[]{ new Sealed.DecryptionKey( diff --git a/sdk/src/test/java/com/fingerprint/SerializationTest.java b/sdk/src/test/java/com/fingerprint/SerializationTest.java index 1cccce81..0b95ae7d 100644 --- a/sdk/src/test/java/com/fingerprint/SerializationTest.java +++ b/sdk/src/test/java/com/fingerprint/SerializationTest.java @@ -3,9 +3,8 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.RawDeviceAttributesResultValue; -import com.fingerprint.model.SignalResponseRawDeviceAttributes; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.ProductRawDeviceAttributes; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.JSON; import org.junit.jupiter.api.Test; @@ -42,15 +41,15 @@ private static ObjectMapper getMapper() { @Test public void serializeRawDeviceAttributesTest() throws IOException { ObjectMapper sdkObjectMapper = JSON.getDefault().getMapper(); - EventResponse eventResponse = sdkObjectMapper.readValue(getFileAsIOStream("mocks/get_event_200.json"), EventResponse.class); + EventsGetResponse eventResponse = sdkObjectMapper.readValue(getFileAsIOStream("mocks/get_event_200.json"), EventsGetResponse.class); - SignalResponseRawDeviceAttributes signalResponseRawDeviceAttributes = eventResponse.getProducts().getRawDeviceAttributes(); + ProductRawDeviceAttributes signalResponseRawDeviceAttributes = eventResponse.getProducts().getRawDeviceAttributes(); String sdkResult = sdkObjectMapper.writeValueAsString(signalResponseRawDeviceAttributes); ObjectMapper springLikeObjectMapper = getMapper(); String springResult = springLikeObjectMapper.writeValueAsString(signalResponseRawDeviceAttributes); assertTrue(sdkResult.contains("\"architecture\":{\"value\":127}")); - assertTrue(springResult.contains("\"architecture\":{\"error\":null,\"value\":127}")); + assertTrue(springResult.contains("\"architecture\":{\"value\":127,\"error\":null}")); } } diff --git a/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java b/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java index 51fcab49..56086e06 100644 --- a/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java +++ b/sdk/src/test/java/com/fingerprint/api/FingerprintApiTest.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fingerprint.model.*; +import com.fingerprint.model.Webhook; import com.fingerprint.sdk.*; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -57,9 +58,9 @@ public void before() throws ApiException, IOException { when(api.getEvent(MOCK_REQUEST_WITH_EXTRA_FIELDS_ID)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_extra_fields.json")); when(api.getEvent(MOCK_REQUEST_WITH_ALL_FAILED_SIGNALS)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_all_errors.json")); when(api.getEvent(MOCK_REQUEST_BOTD_FAILED)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_botd_failed_error.json")); - when(api.getEvent(MOCK_REQUEST_BOTD_MANY_REQUEST)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_botd_too_many_requests_error.json")); + when(api.getEvent(MOCK_REQUEST_BOTD_MANY_REQUEST)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_too_many_requests_error.json")); when(api.getEvent(MOCK_REQUEST_IDENTIFICATION_FAILED)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_identification_failed_error.json")); - when(api.getEvent(MOCK_REQUEST_IDENTIFICATION_MANY_REQUEST)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_identification_too_many_requests_error.json")); + when(api.getEvent(MOCK_REQUEST_IDENTIFICATION_MANY_REQUEST)).thenReturn(fetchMockWithEventResponse("mocks/get_event_200_too_many_requests_error.json")); when(api.getVisits(MOCK_VISITOR_ID, MOCK_VISITOR_REQUEST_ID, null, 50, "1683900801733.Ogvu1j", null)).thenReturn(fetchMockVisit()); } @@ -71,18 +72,18 @@ private static ObjectMapper getMapper() { return mapper; } - private EventResponse fetchMockWithEventResponse(String fileName) throws IOException { - return MAPPER.readValue(getFileAsIOStream(fileName), EventResponse.class); + private EventsGetResponse fetchMockWithEventResponse(String fileName) throws IOException { + return MAPPER.readValue(getFileAsIOStream(fileName), EventsGetResponse.class); } private T fetchMock(String filename, Class type) throws IOException { return MAPPER.readValue(getFileAsIOStream(filename), type); } - private Response fetchMockVisit() throws IOException { + private VisitorsGetResponse fetchMockVisit() throws IOException { ObjectMapper mapper = new ObjectMapper().registerModule(new JavaTimeModule()); - return mapper.readValue(getFileAsIOStream("mocks/get_visits_200_limit_500.json"), Response.class); + return mapper.readValue(getFileAsIOStream("mocks/get_visitors_200_limit_500.json"), VisitorsGetResponse.class); } /** @@ -93,7 +94,7 @@ private Response fetchMockVisit() throws IOException { */ @Test public void getEventTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_ID); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_ID); assertNotNull(response.getProducts()); assertNotNull(response.getProducts().getIdentification()); assertNotNull(response.getProducts().getIdentification().getData()); @@ -112,7 +113,7 @@ public void getEventTest() throws ApiException { assertFalse(response.getProducts().getHighActivity().getData().getResult()); assertFalse(response.getProducts().getLocationSpoofing().getData().getResult()); assertEquals(0, response.getProducts().getFactoryReset().getData().getTimestamp()); - SignalResponseRawDeviceAttributes signalResponseRawDeviceAttributes = response.getProducts().getRawDeviceAttributes(); + ProductRawDeviceAttributes signalResponseRawDeviceAttributes = response.getProducts().getRawDeviceAttributes(); assertEquals(127, signalResponseRawDeviceAttributes.getData().get("architecture").getValue()); assertEquals(35.73832903057337, signalResponseRawDeviceAttributes.getData().get("audio").getValue()); Map canvasAttribute = (Map) response.getProducts().getRawDeviceAttributes().getData().get("canvas").getValue(); @@ -124,13 +125,13 @@ public void getEventTest() throws ApiException { @Test public void updateOneFieldEventRequest() throws IOException { - EventUpdateRequest request = fetchMock("mocks/update_event_one_field_request.json", EventUpdateRequest.class); + EventsUpdateRequest request = fetchMock("mocks/update_event_one_field_request.json", EventsUpdateRequest.class); assertDoesNotThrow(() -> api.updateEvent(MOCK_REQUEST_ID, request)); } @Test public void updateMultipleFieldsEventRequest() throws IOException { - EventUpdateRequest request = fetchMock("mocks/update_event_multiple_fields_request.json", EventUpdateRequest.class); + EventsUpdateRequest request = fetchMock("mocks/update_event_multiple_fields_request.json", EventsUpdateRequest.class); assertDoesNotThrow(() -> api.updateEvent(MOCK_REQUEST_ID, request)); } @@ -148,8 +149,8 @@ public void deleteVisitorDataTest() { */ @Test public void getEventWithExtraFieldsTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_WITH_EXTRA_FIELDS_ID); - ProductsResponse products = response.getProducts(); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_WITH_EXTRA_FIELDS_ID); + Products products = response.getProducts(); assertNotNull(products); assertNotNull(products.getIdentification()); assertNotNull(products.getIdentification().getData()); @@ -158,29 +159,29 @@ public void getEventWithExtraFieldsTest() throws ApiException { @Test public void getEventWithAllFailedSignalsTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_WITH_ALL_FAILED_SIGNALS); - ProductsResponse products = response.getProducts(); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_WITH_ALL_FAILED_SIGNALS); + Products products = response.getProducts(); assertNotNull(products); - assertEquals(IdentificationError.CodeEnum.FAILED, products.getIdentification().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getBotd().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getIpInfo().getError().getCode()); - assertEquals(IdentificationError.CodeEnum.FAILED, products.getIncognito().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getRootApps().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getEmulator().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getIpBlocklist().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getTor().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getVpn().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getProxy().getError().getCode()); - assertEquals(IdentificationError.CodeEnum.FAILED, products.getTampering().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getClonedApp().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getFactoryReset().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getJailbroken().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getFrida().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getPrivacySettings().getError().getCode()); - assertEquals(ProductError.CodeEnum.FAILED, products.getVirtualMachine().getError().getCode()); - - SignalResponseRawDeviceAttributes signalResponseRawDeviceAttributes = response.getProducts().getRawDeviceAttributes(); + assertEquals(ErrorCode.FAILED, products.getIdentification().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getBotd().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getIpInfo().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getIncognito().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getRootApps().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getEmulator().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getIpBlocklist().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getTor().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getVpn().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getProxy().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getTampering().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getClonedApp().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getFactoryReset().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getJailbroken().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getFrida().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getPrivacySettings().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getVirtualMachine().getError().getCode()); + + ProductRawDeviceAttributes signalResponseRawDeviceAttributes = response.getProducts().getRawDeviceAttributes(); assertEquals("Error", signalResponseRawDeviceAttributes.getData().get("audio").getError().getName()); assertEquals("internal server error", signalResponseRawDeviceAttributes.getData().get("audio").getError().getMessage()); assertEquals("Error", signalResponseRawDeviceAttributes.getData().get("canvas").getError().getName()); @@ -189,8 +190,8 @@ public void getEventWithAllFailedSignalsTest() throws ApiException { @Test public void getEventBotdFailedErrorTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_BOTD_FAILED); - ProductsResponse products = response.getProducts(); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_BOTD_FAILED); + Products products = response.getProducts(); assertNotNull(products); assertNotNull(products.getIdentification()); assertNotNull(products.getIdentification().getData()); @@ -198,44 +199,39 @@ public void getEventBotdFailedErrorTest() throws ApiException { assertNotNull(products.getBotd()); assertNotNull(products.getBotd().getError()); - assertEquals(ProductError.CodeEnum.FAILED, products.getBotd().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getBotd().getError().getCode()); } @Test public void getEventBotdManyRequestsErrorTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_BOTD_MANY_REQUEST); - ProductsResponse products = response.getProducts(); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_BOTD_MANY_REQUEST); + Products products = response.getProducts(); assertNotNull(products); - assertNotNull(products.getIdentification()); - assertNotNull(products.getIdentification().getData()); - assertEquals("Ibk1527CUFmcnjLwIs4A9", response.getProducts().getIdentification().getData().getVisitorId()); assertNotNull(products.getBotd()); assertNotNull(products.getBotd().getError()); - assertEquals(ProductError.CodeEnum.TOO_MANY_REQUESTS, products.getBotd().getError().getCode()); + assertEquals(ErrorCode.TOO_MANY_REQUESTS, products.getBotd().getError().getCode()); } @Test public void getEventIdentificationFailedErrorTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_IDENTIFICATION_FAILED); - ProductsResponse products = response.getProducts(); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_IDENTIFICATION_FAILED); + Products products = response.getProducts(); assertNotNull(products); assertNotNull(products.getIdentification()); assertNotNull(products.getIdentification().getError()); - assertEquals(IdentificationError.CodeEnum.FAILED, products.getIdentification().getError().getCode()); + assertEquals(ErrorCode.FAILED, products.getIdentification().getError().getCode()); assertNotNull(products.getBotd()); assertNotNull(products.getBotd().getData()); } @Test public void getEventIdentificationManyRequestsErrorTest() throws ApiException { - EventResponse response = api.getEvent(MOCK_REQUEST_IDENTIFICATION_MANY_REQUEST); - ProductsResponse products = response.getProducts(); + EventsGetResponse response = api.getEvent(MOCK_REQUEST_IDENTIFICATION_MANY_REQUEST); + Products products = response.getProducts(); assertNotNull(products); assertNotNull(products.getIdentification()); assertNotNull(products.getIdentification().getError()); - assertEquals(IdentificationError.CodeEnum._429_TOO_MANY_REQUESTS, products.getIdentification().getError().getCode()); - assertNotNull(products.getBotd()); - assertNotNull(products.getBotd().getData()); + assertEquals(ErrorCode._429_TOO_MANY_REQUESTS, products.getIdentification().getError().getCode()); } /** @@ -246,7 +242,7 @@ public void getEventIdentificationManyRequestsErrorTest() throws ApiException { */ @Test public void getVisitsTest() throws ApiException { - Response response = api.getVisits(MOCK_VISITOR_ID, MOCK_VISITOR_REQUEST_ID, null, 50, "1683900801733.Ogvu1j", null); + VisitorsGetResponse response = api.getVisits(MOCK_VISITOR_ID, MOCK_VISITOR_REQUEST_ID, null, 50, "1683900801733.Ogvu1j", null); assertEquals(response.getVisitorId(), MOCK_VISITOR_ID); } @@ -261,7 +257,7 @@ public void webhookTest() throws Exception { ObjectMapper mapper = new ObjectMapper().registerModule(new JavaTimeModule()); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - WebhookVisit visit = mapper.readValue(getFileAsIOStream("mocks/webhook.json"), WebhookVisit.class); + Webhook visit = mapper.readValue(getFileAsIOStream("mocks/webhook.json"), Webhook.class); assertEquals(MOCK_WEBHOOK_VISITOR_ID, visit.getVisitorId()); assertEquals(MOCK_WEBHOOK_REQUEST_ID, visit.getRequestId()); diff --git a/sdk/src/test/resources/mocks/errors/400_request_body_invalid.json b/sdk/src/test/resources/mocks/errors/400_request_body_invalid.json new file mode 100644 index 00000000..ce56deff --- /dev/null +++ b/sdk/src/test/resources/mocks/errors/400_request_body_invalid.json @@ -0,0 +1,6 @@ +{ + "error": { + "code": "RequestCannotBeParsed", + "message": "request body is not valid" + } +} diff --git a/sdk/src/test/resources/mocks/shared/400_error_incorrect_visitor_id.json b/sdk/src/test/resources/mocks/errors/400_visitor_id_invalid.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/400_error_incorrect_visitor_id.json rename to sdk/src/test/resources/mocks/errors/400_visitor_id_invalid.json diff --git a/sdk/src/test/resources/mocks/shared/400_error_empty_visitor_id.json b/sdk/src/test/resources/mocks/errors/400_visitor_id_required.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/400_error_empty_visitor_id.json rename to sdk/src/test/resources/mocks/errors/400_visitor_id_required.json diff --git a/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json b/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json new file mode 100644 index 00000000..3deac898 --- /dev/null +++ b/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json @@ -0,0 +1,6 @@ +{ + "error": { + "code": "SubscriptionNotActive", + "message": "forbidden" + } +} diff --git a/sdk/src/test/resources/mocks/shared/403_error_feature_not_enabled.json b/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/403_error_feature_not_enabled.json rename to sdk/src/test/resources/mocks/errors/403_subscription_not_active.json diff --git a/sdk/src/test/resources/mocks/shared/403_error_token_not_found.json b/sdk/src/test/resources/mocks/errors/403_token_not_found.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/403_error_token_not_found.json rename to sdk/src/test/resources/mocks/errors/403_token_not_found.json diff --git a/bin/test/mocks/get_event_403_error.json b/sdk/src/test/resources/mocks/errors/403_token_required.json similarity index 100% rename from bin/test/mocks/get_event_403_error.json rename to sdk/src/test/resources/mocks/errors/403_token_required.json diff --git a/sdk/src/test/resources/mocks/shared/403_error_wrong_region.json b/sdk/src/test/resources/mocks/errors/403_wrong_region.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/403_error_wrong_region.json rename to sdk/src/test/resources/mocks/errors/403_wrong_region.json diff --git a/bin/test/mocks/get_event_404_error.json b/sdk/src/test/resources/mocks/errors/404_request_not_found.json similarity index 100% rename from bin/test/mocks/get_event_404_error.json rename to sdk/src/test/resources/mocks/errors/404_request_not_found.json diff --git a/sdk/src/test/resources/mocks/shared/404_error_visitor_not_found.json b/sdk/src/test/resources/mocks/errors/404_visitor_not_found.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/404_error_visitor_not_found.json rename to sdk/src/test/resources/mocks/errors/404_visitor_not_found.json diff --git a/sdk/src/test/resources/mocks/errors/409_state_not_ready.json b/sdk/src/test/resources/mocks/errors/409_state_not_ready.json new file mode 100644 index 00000000..36e6dde3 --- /dev/null +++ b/sdk/src/test/resources/mocks/errors/409_state_not_ready.json @@ -0,0 +1,6 @@ +{ + "error": { + "code": "StateNotReady", + "message": "resource is not mutable yet, try again" + } +} diff --git a/sdk/src/test/resources/mocks/shared/429_error_too_many_requests.json b/sdk/src/test/resources/mocks/errors/429_too_many_requests.json similarity index 100% rename from sdk/src/test/resources/mocks/shared/429_error_too_many_requests.json rename to sdk/src/test/resources/mocks/errors/429_too_many_requests.json diff --git a/sdk/src/test/resources/mocks/get_event_200.json b/sdk/src/test/resources/mocks/get_event_200.json index 025ff4a4..fba76de3 100644 --- a/sdk/src/test/resources/mocks/get_event_200.json +++ b/sdk/src/test/resources/mocks/get_event_200.json @@ -173,6 +173,7 @@ "vpn": { "data": { "result": false, + "confidence": "high", "originTimezone": "Europe/Berlin", "originCountry": "unknown", "methods": { @@ -180,8 +181,7 @@ "publicVPN": false, "auxiliaryMobile": false, "osMismatch": false - }, - "confidence": "high" + } } }, "proxy": { @@ -197,7 +197,8 @@ "tampering": { "data": { "result": false, - "anomalyScore": 0.1955 + "anomalyScore": 0.1955, + "antiDetectBrowser": false } }, "clonedApp": { @@ -302,6 +303,27 @@ "1h": 5, "24h": 5 } + }, + "ipEvents": { + "intervals": { + "5m": 1, + "1h": 5, + "24h": 5 + } + }, + "distinctIpByLinkedId": { + "intervals": { + "5m": 1, + "1h": 5, + "24h": 5 + } + }, + "distinctVisitorIdByLinkedId": { + "intervals": { + "5m": 1, + "1h": 5, + "24h": 5 + } } } }, diff --git a/sdk/src/test/resources/mocks/get_event_200_all_errors.json b/sdk/src/test/resources/mocks/get_event_200_all_errors.json index 2fe90ccb..ddc55fac 100644 --- a/sdk/src/test/resources/mocks/get_event_200_all_errors.json +++ b/sdk/src/test/resources/mocks/get_event_200_all_errors.json @@ -3,7 +3,7 @@ "identification": { "error": { "code": "Failed", - "message": "failed" + "message": "internal server error" } }, "botd": { diff --git a/sdk/src/test/resources/mocks/get_event_200_botd_too_many_requests_error.json b/sdk/src/test/resources/mocks/get_event_200_botd_too_many_requests_error.json deleted file mode 100644 index 79288281..00000000 --- a/sdk/src/test/resources/mocks/get_event_200_botd_too_many_requests_error.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "products": { - "identification": { - "data": { - "visitorId": "Ibk1527CUFmcnjLwIs4A9", - "requestId": "0KSh65EnVoB85JBmloQK", - "incognito": true, - "linkedId": "somelinkedId", - "tag": {}, - "time": "2019-05-21T16:40:13Z", - "timestamp": 1582299576512, - "url": "https://www.example.com/login", - "ip": "61.127.217.15", - "ipLocation": { - "accuracyRadius": 10, - "latitude": 49.982, - "longitude": 36.2566, - "postalCode": "61202", - "timezone": "Europe/Dusseldorf", - "city": { - "name": "Dusseldorf" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "subdivisions": [ - { - "isoCode": "63", - "name": "North Rhine-Westphalia" - } - ] - }, - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "74", - "browserFullVersion": "74.0.3729", - "os": "Windows", - "osVersion": "7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) ...." - }, - "confidence": { - "score": 0.97 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-03-16T11:26:45.362Z", - "subscription": "2022-03-16T11:31:01.101Z" - }, - "lastSeenAt": { - "global": "2022-03-16T11:28:34.023Z", - "subscription": null - } - } - }, - "botd": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - } - } -} diff --git a/sdk/src/test/resources/mocks/get_event_200_identification_failed_error.json b/sdk/src/test/resources/mocks/get_event_200_identification_failed_error.json index 5b42c579..4739f36e 100644 --- a/sdk/src/test/resources/mocks/get_event_200_identification_failed_error.json +++ b/sdk/src/test/resources/mocks/get_event_200_identification_failed_error.json @@ -3,7 +3,7 @@ "identification": { "error": { "code": "Failed", - "message": "failed" + "message": "internal server error" } }, "botd": { diff --git a/sdk/src/test/resources/mocks/get_event_200_identification_too_many_requests_error.json b/sdk/src/test/resources/mocks/get_event_200_identification_too_many_requests_error.json deleted file mode 100644 index deacdcad..00000000 --- a/sdk/src/test/resources/mocks/get_event_200_identification_too_many_requests_error.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "products": { - "identification": { - "error": { - "code": "429 Too Many Requests", - "message": "too many requests" - } - }, - "botd": { - "data": { - "bot": { - "result": "bad", - "type": "headlessChrome" - }, - "url": "https://example.com/login", - "ip": "94.60.143.223", - "time": "2024-02-23T10:20:25.287Z", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/121.0.6167.57 Safari/537.36", - "requestId": "1708683625245.tuJ4nD" - } - } - } -} diff --git a/sdk/src/test/resources/mocks/get_event_200_identification_too_many_requests_error_all_fields.json b/sdk/src/test/resources/mocks/get_event_200_identification_too_many_requests_error_all_fields.json deleted file mode 100644 index 06462139..00000000 --- a/sdk/src/test/resources/mocks/get_event_200_identification_too_many_requests_error_all_fields.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "products": { - "identification": { - "error": { - "code": "429 Too Many Requests", - "message": "too many requests" - } - }, - "botd": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "rootApps": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "emulator": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "ipInfo": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "ipBlocklist": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "tor": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "vpn": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "proxy": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "incognito": { - "error": { - "code": "429 Too Many Requests", - "message": "too many requests" - } - }, - "tampering": { - "error": { - "code": "429 Too Many Requests", - "message": "too many requests" - } - }, - "clonedApp": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "factoryReset": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "jailbroken": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "frida": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "privacySettings": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "virtualMachine": { - "error": { - "code": "TooManyRequests", - "message": "too many requests" - } - }, - "rawDeviceAttributes": { - "error": { - "code": "429 Too Many Requests", - "message": "too many requests" - } - } - } -} diff --git a/sdk/src/test/resources/mocks/get_event_200_too_many_requests_error.json b/sdk/src/test/resources/mocks/get_event_200_too_many_requests_error.json new file mode 100644 index 00000000..138aae72 --- /dev/null +++ b/sdk/src/test/resources/mocks/get_event_200_too_many_requests_error.json @@ -0,0 +1,16 @@ +{ + "products": { + "identification": { + "error": { + "code": "429 Too Many Requests", + "message": "too many requests" + } + }, + "botd": { + "error": { + "code": "TooManyRequests", + "message": "too many requests" + } + } + } +} diff --git a/bin/test/mocks/get_event.json b/sdk/src/test/resources/mocks/get_event_200_with_broken_format.json similarity index 54% rename from bin/test/mocks/get_event.json rename to sdk/src/test/resources/mocks/get_event_200_with_broken_format.json index 83f2ae1a..4ac8b6f5 100644 --- a/bin/test/mocks/get_event.json +++ b/sdk/src/test/resources/mocks/get_event_200_with_broken_format.json @@ -3,12 +3,15 @@ "identification": { "data": { "visitorId": "Ibk1527CUFmcnjLwIs4A9", - "requestId": "0KSh65EnVoB85JBmloQK", + "requestId": "1708102555327.NLOjmg", "incognito": true, - "linkedId": "somelinkedId", + "linkedId": { + "broken": "format" + }, + "tag": {}, "time": "2019-05-21T16:40:13Z", "timestamp": 1582299576512, - "url": "https://www.example.com/login", + "url": "https://www.example.com/login?hope{this{works[!", "ip": "61.127.217.15", "ipLocation": { "accuracyRadius": 10, @@ -19,14 +22,14 @@ "city": { "name": "Dusseldorf" }, - "continent": { - "code": "EU", - "name": "Europe" - }, "country": { "code": "DE", "name": "Germany" }, + "continent": { + "code": "EU", + "name": "Europe" + }, "subdivisions": [ { "isoCode": "63", @@ -46,13 +49,13 @@ "confidence": { "score": 0.97 }, - "visitorFound": true, + "visitorFound": false, "firstSeenAt": { "global": "2022-03-16T11:26:45.362Z", "subscription": "2022-03-16T11:31:01.101Z" }, "lastSeenAt": { - "global": "2022-03-16T11:28:34.023Z", + "global": null, "subscription": null } } @@ -60,12 +63,23 @@ "botd": { "data": { "bot": { - "result": "bad", - "type": "selenium" + "result": "notDetected" }, - "url": "https://www.example.com/login", + "url": "https://www.example.com/login?hope{this{works}[!", "ip": "61.127.217.15", - "time": "2019-05-21T16:40:13Z" + "time": "2019-05-21T16:40:13Z", + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 YaBrowser/24.1.0.0 Safari/537.36", + "requestId": "1708102555327.NLOjmg" + } + }, + "rootApps": { + "data": { + "result": false + } + }, + "emulator": { + "data": { + "result": false } }, "ipInfo": { @@ -95,25 +109,55 @@ "name": "Hlavni mesto Praha" } ] + }, + "asn": { + "asn": "7922", + "name": "COMCAST-7922", + "network": "73.136.0.0/13" + }, + "datacenter": { + "result": true, + "name": "DediPath" + } + }, + "v6": { + "address": "2001:db8:3333:4444:5555:6666:7777:8888", + "geolocation": { + "accuracyRadius": 5, + "latitude": 49.982, + "longitude": 36.2566, + "postalCode": "10112", + "timezone": "Europe/Berlin", + "city": { + "name": "Berlin" + }, + "country": { + "code": "DE", + "name": "Germany" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "BE", + "name": "Land Berlin" + } + ] + }, + "asn": { + "asn": "6805", + "name": "Telefonica Germany", + "network": "2a02:3100::/24" + }, + "datacenter": { + "result": false, + "name": "" } } } }, - "incognito": { - "data": { - "result": false - } - }, - "rootApps": { - "data": { - "result": false - } - }, - "emulator": { - "data": { - "result": false - } - }, "ipBlocklist": { "data": { "result": false, @@ -131,9 +175,12 @@ "vpn": { "data": { "result": false, + "originTimezone": "Europe/Berlin", + "originCountry": "unknown", "methods": { "timezoneMismatch": false, - "publicVPN": false + "publicVPN": false, + "auxiliaryMobile": false } } }, @@ -142,10 +189,15 @@ "result": false } }, + "incognito": { + "data": { + "result": false + } + }, "tampering": { "data": { "result": false, - "anomalyScore": 0 + "anomalyScore": 0.1955 } }, "clonedApp": { @@ -178,6 +230,54 @@ "data": { "result": false } + }, + "rawDeviceAttributes": { + "data": { + "architecture": { + "value": 127 + }, + "audio": { + "value": 35.73832903057337 + }, + "canvas": { + "value": { + "Winding": true, + "Geometry": "4dce9d6017c3e0c052a77252f29f2b1c", + "Text": "dd2474a56ff78c1de3e7a07070ba3b7d" + } + }, + "colorDepth": { + "value": 30 + }, + "colorGamut": { + "value": "p3" + }, + "contrast": { + "value": 0 + }, + "cookiesEnabled": { + "value": true + }, + "cpuClass": {}, + "fonts": { + "value": [ + "Arial Unicode MS", + "Gill Sans", + "Helvetica Neue", + "Menlo" + ] + } + } + }, + "highActivity": { + "data": { + "result": false + } + }, + "locationSpoofing": { + "data": { + "result": false + } } } } diff --git a/sdk/src/test/resources/mocks/get_event_200_with_unknown_field.json b/sdk/src/test/resources/mocks/get_event_200_with_unknown_field.json new file mode 100644 index 00000000..eba63e09 --- /dev/null +++ b/sdk/src/test/resources/mocks/get_event_200_with_unknown_field.json @@ -0,0 +1,285 @@ +{ + "unknown": "field", + "products": { + "unknown": "field", + "identification": { + "unknown": "field", + "data": { + "unknown": "field", + "visitorId": "Ibk1527CUFmcnjLwIs4A9", + "requestId": "1708102555327.NLOjmg", + "incognito": true, + "linkedId": "somelinkedId", + "tag": {}, + "time": "2019-05-21T16:40:13Z", + "timestamp": 1582299576512, + "url": "https://www.example.com/login?hope{this{works[!", + "ip": "61.127.217.15", + "ipLocation": { + "accuracyRadius": 10, + "latitude": 49.982, + "longitude": 36.2566, + "postalCode": "61202", + "timezone": "Europe/Dusseldorf", + "city": { + "name": "Dusseldorf" + }, + "country": { + "code": "DE", + "name": "Germany" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "63", + "name": "North Rhine-Westphalia" + } + ] + }, + "browserDetails": { + "browserName": "Chrome", + "browserMajorVersion": "74", + "browserFullVersion": "74.0.3729", + "os": "Windows", + "osVersion": "7", + "device": "Other", + "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) ...." + }, + "confidence": { + "score": 0.97 + }, + "visitorFound": false, + "firstSeenAt": { + "global": "2022-03-16T11:26:45.362Z", + "subscription": "2022-03-16T11:31:01.101Z" + }, + "lastSeenAt": { + "global": null, + "subscription": null + } + } + }, + "botd": { + "data": { + "bot": { + "result": "notDetected" + }, + "url": "https://www.example.com/login?hope{this{works}[!", + "ip": "61.127.217.15", + "time": "2019-05-21T16:40:13Z", + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 YaBrowser/24.1.0.0 Safari/537.36", + "requestId": "1708102555327.NLOjmg" + } + }, + "rootApps": { + "data": { + "result": false + } + }, + "emulator": { + "data": { + "result": false + } + }, + "ipInfo": { + "data": { + "v4": { + "address": "94.142.239.124", + "geolocation": { + "accuracyRadius": 20, + "latitude": 50.05, + "longitude": 14.4, + "postalCode": "150 00", + "timezone": "Europe/Prague", + "city": { + "name": "Prague" + }, + "country": { + "code": "CZ", + "name": "Czechia" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "10", + "name": "Hlavni mesto Praha" + } + ] + }, + "asn": { + "asn": "7922", + "name": "COMCAST-7922", + "network": "73.136.0.0/13" + }, + "datacenter": { + "result": true, + "name": "DediPath" + } + }, + "v6": { + "address": "2001:db8:3333:4444:5555:6666:7777:8888", + "geolocation": { + "accuracyRadius": 5, + "latitude": 49.982, + "longitude": 36.2566, + "postalCode": "10112", + "timezone": "Europe/Berlin", + "city": { + "name": "Berlin" + }, + "country": { + "code": "DE", + "name": "Germany" + }, + "continent": { + "code": "EU", + "name": "Europe" + }, + "subdivisions": [ + { + "isoCode": "BE", + "name": "Land Berlin" + } + ] + }, + "asn": { + "asn": "6805", + "name": "Telefonica Germany", + "network": "2a02:3100::/24" + }, + "datacenter": { + "result": false, + "name": "" + } + } + } + }, + "ipBlocklist": { + "data": { + "result": false, + "details": { + "emailSpam": false, + "attackSource": false + } + } + }, + "tor": { + "data": { + "result": false + } + }, + "vpn": { + "data": { + "result": false, + "originTimezone": "Europe/Berlin", + "originCountry": "unknown", + "methods": { + "timezoneMismatch": false, + "publicVPN": false, + "auxiliaryMobile": false + } + } + }, + "proxy": { + "data": { + "result": false + } + }, + "incognito": { + "data": { + "result": false + } + }, + "tampering": { + "data": { + "result": false, + "anomalyScore": 0.1955 + } + }, + "clonedApp": { + "data": { + "result": false + } + }, + "factoryReset": { + "data": { + "time": "1970-01-01T00:00:00Z", + "timestamp": 0 + } + }, + "jailbroken": { + "data": { + "result": false + } + }, + "frida": { + "data": { + "result": false + } + }, + "privacySettings": { + "data": { + "result": false + } + }, + "virtualMachine": { + "data": { + "result": false + } + }, + "rawDeviceAttributes": { + "data": { + "architecture": { + "value": 127 + }, + "audio": { + "value": 35.73832903057337 + }, + "canvas": { + "value": { + "Winding": true, + "Geometry": "4dce9d6017c3e0c052a77252f29f2b1c", + "Text": "dd2474a56ff78c1de3e7a07070ba3b7d" + } + }, + "colorDepth": { + "value": 30 + }, + "colorGamut": { + "value": "p3" + }, + "contrast": { + "value": 0 + }, + "cookiesEnabled": { + "value": true + }, + "cpuClass": {}, + "fonts": { + "value": [ + "Arial Unicode MS", + "Gill Sans", + "Helvetica Neue", + "Menlo" + ] + } + } + }, + "highActivity": { + "data": { + "result": false + } + }, + "locationSpoofing": { + "data": { + "result": false + } + } + } +} diff --git a/sdk/src/test/resources/mocks/get_event_403_error.json b/sdk/src/test/resources/mocks/get_event_403_error.json deleted file mode 100644 index 544d8714..00000000 --- a/sdk/src/test/resources/mocks/get_event_403_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code": "TokenRequired", - "message": "secret key is required" - } -} diff --git a/sdk/src/test/resources/mocks/get_event_404_error.json b/sdk/src/test/resources/mocks/get_event_404_error.json deleted file mode 100644 index 389b351c..00000000 --- a/sdk/src/test/resources/mocks/get_event_404_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code": "RequestNotFound", - "message": "request id is not found" - } -} diff --git a/sdk/src/test/resources/mocks/get_visits_200_limit_1.json b/sdk/src/test/resources/mocks/get_visitors_200_limit_1.json similarity index 97% rename from sdk/src/test/resources/mocks/get_visits_200_limit_1.json rename to sdk/src/test/resources/mocks/get_visitors_200_limit_1.json index c5bbeedf..f6357ea5 100644 --- a/sdk/src/test/resources/mocks/get_visits_200_limit_1.json +++ b/sdk/src/test/resources/mocks/get_visitors_200_limit_1.json @@ -10,8 +10,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "82.118.30.68", diff --git a/bin/test/mocks/visits_limit_500.json b/sdk/src/test/resources/mocks/get_visitors_200_limit_500.json similarity index 96% rename from bin/test/mocks/visits_limit_500.json rename to sdk/src/test/resources/mocks/get_visitors_200_limit_500.json index f0451331..3e3aceb0 100644 --- a/bin/test/mocks/visits_limit_500.json +++ b/sdk/src/test/resources/mocks/get_visitors_200_limit_500.json @@ -10,8 +10,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -65,8 +64,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "82.118.30.62", @@ -120,8 +118,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "82.118.30.68", @@ -175,8 +172,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "82.118.30.91", @@ -230,8 +226,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -285,8 +280,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "45.86.200.137", @@ -316,8 +310,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "89.38.224.157", @@ -352,8 +345,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -386,8 +378,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -441,8 +432,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -496,8 +486,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -550,8 +539,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -604,8 +592,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -658,8 +645,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -712,8 +698,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -766,8 +751,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -820,8 +804,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -874,8 +857,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -928,8 +910,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -982,8 +963,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "217.150.54.233", @@ -1037,8 +1017,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": true, "ip": "217.150.54.233", @@ -1092,8 +1071,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36" }, "incognito": false, "ip": "217.150.54.233", @@ -1147,8 +1125,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -1201,8 +1178,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -1255,8 +1231,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "89.38.224.157", @@ -1309,8 +1284,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "89.38.224.165", @@ -1363,8 +1337,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -1418,8 +1391,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "84.247.59.113", @@ -1473,8 +1445,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "84.247.59.113", @@ -1528,8 +1499,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "84.247.59.146", @@ -1583,8 +1553,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "84.247.59.146", @@ -1638,8 +1607,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.105", @@ -1683,8 +1651,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.99", @@ -1728,8 +1695,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.99", @@ -1773,8 +1739,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.96", @@ -1818,8 +1783,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.96", @@ -1863,8 +1827,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "188.242.36.107", @@ -1918,8 +1881,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.227", @@ -1963,8 +1925,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.89", @@ -2008,8 +1969,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.111", @@ -2053,8 +2013,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.111", @@ -2098,8 +2057,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.111", @@ -2143,8 +2101,7 @@ "os": "Android", "osVersion": "6.0", "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36" }, "incognito": false, "ip": "45.86.200.198", @@ -2188,8 +2145,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.198", @@ -2233,8 +2189,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.206", @@ -2278,8 +2233,7 @@ "os": "Android", "osVersion": "6.0", "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36" }, "incognito": false, "ip": "45.86.200.204", @@ -2323,8 +2277,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.204", @@ -2368,8 +2321,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.204", @@ -2413,8 +2365,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.204", @@ -2458,8 +2409,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.172", @@ -2503,8 +2453,7 @@ "os": "Android", "osVersion": "6.0", "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36" }, "incognito": false, "ip": "45.86.200.210", @@ -2548,8 +2497,7 @@ "os": "Android", "osVersion": "6.0", "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36" }, "incognito": false, "ip": "45.86.200.210", @@ -2593,8 +2541,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.180", @@ -2638,8 +2585,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36" }, "incognito": false, "ip": "45.86.200.180", @@ -2683,8 +2629,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" }, "incognito": false, "ip": "45.86.200.195", @@ -2728,8 +2673,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36" }, "incognito": false, "ip": "45.86.200.179", @@ -2773,8 +2717,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36" }, "incognito": false, "ip": "109.245.35.200", @@ -2827,8 +2770,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36" }, "incognito": false, "ip": "109.245.35.200", @@ -2881,8 +2823,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36" }, "incognito": false, "ip": "178.223.21.183", @@ -2935,8 +2876,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36" }, "incognito": false, "ip": "87.116.165.97", @@ -2989,8 +2929,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36" }, "incognito": false, "ip": "87.116.165.97", @@ -3043,8 +2982,7 @@ "os": "Mac OS X", "osVersion": "10.15.7", "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36" }, "incognito": false, "ip": "87.116.165.97", diff --git a/sdk/src/test/resources/mocks/get_visitors_400_bad_request.json b/sdk/src/test/resources/mocks/get_visitors_400_bad_request.json new file mode 100644 index 00000000..c2b6e295 --- /dev/null +++ b/sdk/src/test/resources/mocks/get_visitors_400_bad_request.json @@ -0,0 +1,3 @@ +{ + "error": "bad request" +} diff --git a/bin/test/mocks/visits_403_error.json b/sdk/src/test/resources/mocks/get_visitors_403_forbidden.json similarity index 100% rename from bin/test/mocks/visits_403_error.json rename to sdk/src/test/resources/mocks/get_visitors_403_forbidden.json diff --git a/bin/test/mocks/visits_too_many_requests_error.json b/sdk/src/test/resources/mocks/get_visitors_429_too_many_requests.json similarity index 100% rename from bin/test/mocks/visits_too_many_requests_error.json rename to sdk/src/test/resources/mocks/get_visitors_429_too_many_requests.json diff --git a/sdk/src/test/resources/mocks/get_visits_200_limit_500.json b/sdk/src/test/resources/mocks/get_visits_200_limit_500.json deleted file mode 100644 index f0451331..00000000 --- a/sdk/src/test/resources/mocks/get_visits_200_limit_500.json +++ /dev/null @@ -1,3092 +0,0 @@ -{ - "visitorId": "AcxioeQKffpXF8iGQK3P", - "visits": [ - { - "requestId": "1655373780901.HhjRFX", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "accuracyRadius": 5, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1655373780912, - "time": "2022-06-16T10:03:00Z", - "url": "https://fingerprint.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-16T05:27:30.578Z", - "subscription": "2022-06-16T05:27:30.578Z" - } - }, - { - "requestId": "1655357250568.vqejDF", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "82.118.30.62", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 50.0805, - "longitude": 14.467, - "postalCode": "130 00", - "timezone": "Europe/Prague", - "city": { - "name": "Prague" - }, - "country": { - "code": "CZ", - "name": "Czechia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "10", - "name": "Hlavni mesto Praha" - } - ] - }, - "timestamp": 1655357250578, - "time": "2022-06-16T05:27:30Z", - "url": "https://fingerprint.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-15T15:28:33.479Z", - "subscription": "2022-06-15T15:28:33.479Z" - } - }, - { - "requestId": "1655306913474.kFQsQx", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "82.118.30.68", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 50.0805, - "longitude": 14.467, - "postalCode": "130 00", - "timezone": "Europe/Prague", - "city": { - "name": "Prague" - }, - "country": { - "code": "CZ", - "name": "Czechia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "10", - "name": "Hlavni mesto Praha" - } - ] - }, - "timestamp": 1655306913479, - "time": "2022-06-15T15:28:33Z", - "url": "https://fingerprint.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-15T08:47:34.677Z", - "subscription": "2022-06-15T08:47:34.677Z" - } - }, - { - "requestId": "1655282854672.vz4ZlN", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "82.118.30.91", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 50.0805, - "longitude": 14.467, - "postalCode": "130 00", - "timezone": "Europe/Prague", - "city": { - "name": "Prague" - }, - "country": { - "code": "CZ", - "name": "Czechia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "10", - "name": "Hlavni mesto Praha" - } - ] - }, - "timestamp": 1655282854677, - "time": "2022-06-15T08:47:34Z", - "url": "https://fingerprint.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-14T14:19:42.753Z", - "subscription": "2022-06-14T14:19:42.753Z" - } - }, - { - "requestId": "1655216382743.RDRa4h", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "accuracyRadius": 5, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1655216382753, - "time": "2022-06-14T14:19:42Z", - "url": "https://fingerprint.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-13T07:53:19.878Z", - "subscription": "2022-06-13T07:53:19.878Z" - } - }, - { - "requestId": "1655106799870.C8m8hR", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.137", - "timestamp": 1655106799878, - "time": "2022-06-13T07:53:19Z", - "url": "https://fingerprint.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-07T12:54:35.413Z", - "subscription": "2022-06-07T12:54:35.413Z" - } - }, - { - "requestId": "1654606475406.2uXCJx", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.157", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651 - }, - "timestamp": 1654606475413, - "time": "2022-06-07T12:54:35Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-07T09:37:57.43Z", - "subscription": "2022-06-07T09:37:57.43Z" - } - }, - { - "requestId": "1654594677423.pCHmKJ", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "timezone": "Europe/Moscow" - }, - "timestamp": 1654594677430, - "time": "2022-06-07T09:37:57Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-07T09:37:50.109Z", - "subscription": "2022-06-07T09:37:50.109Z" - } - }, - { - "requestId": "1654594670097.Lmodmj", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "accuracyRadius": 5, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1654594670109, - "time": "2022-06-07T09:37:50Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-07T08:31:31.9Z", - "subscription": "2022-06-07T08:31:31.9Z" - } - }, - { - "requestId": "1654590691894.aCYqYE", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "accuracyRadius": 5, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1654590691900, - "time": "2022-06-07T08:31:31Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-06T09:05:25.954Z", - "subscription": "2022-06-06T09:05:25.954Z" - } - }, - { - "requestId": "1654506325946.ijIwzu", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1654506325954, - "time": "2022-06-06T09:05:25Z", - "url": "https://fingerprintcom.netlify.app/blog/name-change/", - "tag": {}, - "confidence": { - "score": 0.99 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-02T16:58:53.635Z", - "subscription": "2022-06-02T16:58:53.635Z" - } - }, - { - "requestId": "1654189133629.0V1gtF", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1654189133635, - "time": "2022-06-02T16:58:53Z", - "url": "https://fingerprintcom.netlify.app/blog/name-change/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-06-02T16:58:51.483Z", - "subscription": "2022-06-02T16:58:51.483Z" - } - }, - { - "requestId": "1654189131472.r49Bbh", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "102", - "browserFullVersion": "102.0.5005", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1654189131483, - "time": "2022-06-02T16:58:51Z", - "url": "https://fingerprintcom.netlify.app/", - "tag": {}, - "confidence": { - "score": 0.95 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-27T14:52:26.624Z", - "subscription": "2022-05-27T14:52:26.624Z" - } - }, - { - "requestId": "1653663146617.o8KpJO", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1653663146624, - "time": "2022-05-27T14:52:26Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-20T09:50:06.7Z", - "subscription": "2022-05-20T09:50:06.7Z" - } - }, - { - "requestId": "1653040206694.Q5Csig", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1653040206700, - "time": "2022-05-20T09:50:06Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-19T16:27:38.029Z", - "subscription": "2022-05-19T16:27:38.029Z" - } - }, - { - "requestId": "1652977658020.xbfYhA", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1652977658029, - "time": "2022-05-19T16:27:38Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-17T15:09:32.666Z", - "subscription": "2022-05-17T15:09:32.666Z" - } - }, - { - "requestId": "1652800172657.xA22Pd", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1652800172666, - "time": "2022-05-17T15:09:32Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-17T14:18:17.631Z", - "subscription": "2022-05-17T14:18:17.631Z" - } - }, - { - "requestId": "1652797097626.faAMJO", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1652797097631, - "time": "2022-05-17T14:18:17Z", - "url": "https://fingerprintjs.com/careers/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-17T10:16:04.809Z", - "subscription": "2022-05-17T10:16:04.809Z" - } - }, - { - "requestId": "1652782564800.MWH0GO", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1652782564809, - "time": "2022-05-17T10:16:04Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-16T06:47:01.511Z", - "subscription": "2022-05-16T06:47:01.511Z" - } - }, - { - "requestId": "1652683621505.1tOjuc", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "217.150.54.233", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1652683621511, - "time": "2022-05-16T06:47:01Z", - "url": "https://fingerprintjs.com/products/bot-detection/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-16T06:45:49.586Z", - "subscription": "2022-05-16T06:45:49.586Z" - } - }, - { - "requestId": "1652683586557.67Faeg", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": true, - "ip": "217.150.54.233", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1652683586562, - "time": "2022-05-16T06:46:26Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 0.94 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-16T06:45:49.586Z", - "subscription": "2022-05-16T06:45:49.586Z" - } - }, - { - "requestId": "1652683549513.aVRqEP", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "101", - "browserFullVersion": "101.0.4951", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "217.150.54.233", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1652683549586, - "time": "2022-05-16T06:45:49Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-05T10:11:25.96Z", - "subscription": "2022-05-05T10:11:25.96Z" - } - }, - { - "requestId": "1651745485951.Oj68me", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1651745485960, - "time": "2022-05-05T10:11:25Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-05T09:33:40.155Z", - "subscription": "2022-05-05T09:33:40.155Z" - } - }, - { - "requestId": "1651743220004.W02rhx", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1651743220155, - "time": "2022-05-05T09:33:40Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-05-03T15:26:32.826Z", - "subscription": "2022-05-03T15:26:32.826Z" - } - }, - { - "requestId": "1651591592822.Is9u93", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.157", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1651591592826, - "time": "2022-05-03T15:26:32Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-29T13:23:37.049Z", - "subscription": "2022-04-29T13:23:37.049Z" - } - }, - { - "requestId": "1651238617044.rMVPGS", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "89.38.224.165", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 44.804, - "longitude": 20.4651, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1651238617049, - "time": "2022-04-29T13:23:37Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-29T10:37:53.333Z", - "subscription": "2022-04-29T10:37:53.333Z" - } - }, - { - "requestId": "1651228673329.QZI2Cu", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "accuracyRadius": 5, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1651228673333, - "time": "2022-04-29T10:37:53Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-28T13:58:06.323Z", - "subscription": "2022-04-28T13:58:06.323Z" - } - }, - { - "requestId": "1651154286221.YvuOCP", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "84.247.59.113", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 50.0971, - "longitude": 8.5952, - "postalCode": "65933", - "timezone": "Europe/Berlin", - "city": { - "name": "Frankfurt am Main" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "HE", - "name": "Hesse" - } - ] - }, - "timestamp": 1651154286323, - "time": "2022-04-28T13:58:06Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-28T12:16:02.564Z", - "subscription": "2022-04-28T12:16:02.564Z" - } - }, - { - "requestId": "1651148162556.dySgif", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "84.247.59.113", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 50.0971, - "longitude": 8.5952, - "postalCode": "65933", - "timezone": "Europe/Berlin", - "city": { - "name": "Frankfurt am Main" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "HE", - "name": "Hesse" - } - ] - }, - "timestamp": 1651148162564, - "time": "2022-04-28T12:16:02Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-28T11:57:13.267Z", - "subscription": "2022-04-28T11:57:13.267Z" - } - }, - { - "requestId": "1651147033260.SxmFvL", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "84.247.59.146", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 50.0971, - "longitude": 8.5952, - "postalCode": "65933", - "timezone": "Europe/Berlin", - "city": { - "name": "Frankfurt am Main" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "HE", - "name": "Hesse" - } - ] - }, - "timestamp": 1651147033267, - "time": "2022-04-28T11:57:13Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-28T11:57:06.24Z", - "subscription": "2022-04-28T11:57:06.24Z" - } - }, - { - "requestId": "1651147026139.aAZ8TO", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "84.247.59.146", - "ipLocation": { - "accuracyRadius": 20, - "latitude": 50.0971, - "longitude": 8.5952, - "postalCode": "65933", - "timezone": "Europe/Berlin", - "city": { - "name": "Frankfurt am Main" - }, - "country": { - "code": "DE", - "name": "Germany" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "HE", - "name": "Hesse" - } - ] - }, - "timestamp": 1651147026240, - "time": "2022-04-28T11:57:06Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-26T14:10:31.908Z", - "subscription": "2022-04-26T14:10:31.908Z" - } - }, - { - "requestId": "1650982231903.eG0b6v", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.105", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650982231908, - "time": "2022-04-26T14:10:31Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-26T11:43:37.373Z", - "subscription": "2022-04-26T11:43:37.373Z" - } - }, - { - "requestId": "1650973417360.xupFFD", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.99", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650973417373, - "time": "2022-04-26T11:43:37Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-26T11:43:30.111Z", - "subscription": "2022-04-26T11:43:30.111Z" - } - }, - { - "requestId": "1650973410104.AQD4qu", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.99", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650973410111, - "time": "2022-04-26T11:43:30Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-26T11:22:34.148Z", - "subscription": "2022-04-26T11:22:34.148Z" - } - }, - { - "requestId": "1650972154133.lSWE8a", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.96", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650972154148, - "time": "2022-04-26T11:22:34Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-26T11:22:03.83Z", - "subscription": "2022-04-26T11:22:03.83Z" - } - }, - { - "requestId": "1650972123824.xk8MUR", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.96", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650972123830, - "time": "2022-04-26T11:22:03Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-25T09:46:15.458Z", - "subscription": "2022-04-25T09:46:15.458Z" - } - }, - { - "requestId": "1650879975452.kfuowM", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "188.242.36.107", - "ipLocation": { - "accuracyRadius": 5, - "latitude": 59.8983, - "longitude": 30.2618, - "postalCode": "190924", - "timezone": "Europe/Moscow", - "city": { - "name": "St Petersburg" - }, - "country": { - "code": "RU", - "name": "Russia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "SPE", - "name": "St.-Petersburg" - } - ] - }, - "timestamp": 1650879975458, - "time": "2022-04-25T09:46:15Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-22T16:51:44.816Z", - "subscription": "2022-04-22T16:51:44.816Z" - } - }, - { - "requestId": "1650646304808.xQbAju", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.227", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650646304816, - "time": "2022-04-22T16:51:44Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-21T11:43:33.116Z", - "subscription": "2022-04-21T11:43:33.116Z" - } - }, - { - "requestId": "1650541413105.leAPLz", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.89", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650541413116, - "time": "2022-04-21T11:43:33Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-20T17:11:54.717Z", - "subscription": "2022-04-20T17:11:54.717Z" - } - }, - { - "requestId": "1650474714710.M1IGsl", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.111", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650474714717, - "time": "2022-04-20T17:11:54Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-20T17:11:47.217Z", - "subscription": "2022-04-20T17:11:47.217Z" - } - }, - { - "requestId": "1650474707211.CEUuZk", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.111", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650474707217, - "time": "2022-04-20T17:11:47Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-20T17:11:12.076Z", - "subscription": "2022-04-20T17:11:12.076Z" - } - }, - { - "requestId": "1650474672071.Pz4WsK", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.111", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650474672076, - "time": "2022-04-20T17:11:12Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T12:29:06.692Z", - "subscription": "2022-04-19T12:29:06.692Z" - } - }, - { - "requestId": "1650371346684.1d7sgv", - "browserDetails": { - "browserName": "Chrome Mobile", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Android", - "osVersion": "6.0", - "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.198", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650371346692, - "time": "2022-04-19T12:29:06Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T12:29:02.15Z", - "subscription": "2022-04-19T12:29:02.15Z" - } - }, - { - "requestId": "1650371342145.oWyfRx", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.198", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650371342150, - "time": "2022-04-19T12:29:02Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T11:35:14.729Z", - "subscription": "2022-04-19T11:35:14.729Z" - } - }, - { - "requestId": "1650368114723.YEXcHI", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.206", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650368114729, - "time": "2022-04-19T11:35:14Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T11:13:33.107Z", - "subscription": "2022-04-19T11:13:33.107Z" - } - }, - { - "requestId": "1650366813101.SvUZC1", - "browserDetails": { - "browserName": "Chrome Mobile", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Android", - "osVersion": "6.0", - "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.204", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650366813107, - "time": "2022-04-19T11:13:33Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T11:13:28.453Z", - "subscription": "2022-04-19T11:13:28.453Z" - } - }, - { - "requestId": "1650366808426.Hy6j7v", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.204", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650366808453, - "time": "2022-04-19T11:13:28Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T11:07:05.19Z", - "subscription": "2022-04-19T11:07:05.19Z" - } - }, - { - "requestId": "1650366425184.xvYkdr", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.204", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650366425190, - "time": "2022-04-19T11:07:05Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T11:07:00.483Z", - "subscription": "2022-04-19T11:07:00.483Z" - } - }, - { - "requestId": "1650366420377.VR5pDX", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.204", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650366420483, - "time": "2022-04-19T11:07:00Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T10:37:45.279Z", - "subscription": "2022-04-19T10:37:45.279Z" - } - }, - { - "requestId": "1650364665274.qq31O4", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.172", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650364665279, - "time": "2022-04-19T10:37:45Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T10:22:58.87Z", - "subscription": "2022-04-19T10:22:58.87Z" - } - }, - { - "requestId": "1650363778864.tsVBjO", - "browserDetails": { - "browserName": "Chrome Mobile", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Android", - "osVersion": "6.0", - "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.210", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650363778870, - "time": "2022-04-19T10:22:58Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T10:22:46.894Z", - "subscription": "2022-04-19T10:22:46.894Z" - } - }, - { - "requestId": "1650363766889.KuVDpm", - "browserDetails": { - "browserName": "Chrome Mobile", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Android", - "osVersion": "6.0", - "device": "Nexus 5", - "userAgent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.210", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650363766894, - "time": "2022-04-19T10:22:46Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T10:07:01.528Z", - "subscription": "2022-04-19T10:07:01.528Z" - } - }, - { - "requestId": "1650362821521.dXH2Ce", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.180", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650362821528, - "time": "2022-04-19T10:07:01Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-19T10:02:42.46Z", - "subscription": "2022-04-19T10:02:42.46Z" - } - }, - { - "requestId": "1650362562448.a5cPLU", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.180", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650362562460, - "time": "2022-04-19T10:02:42Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-18T17:06:30.834Z", - "subscription": "2022-04-18T17:06:30.834Z" - } - }, - { - "requestId": "1650301590829.YXGX7h", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.195", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650301590834, - "time": "2022-04-18T17:06:30Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-18T12:23:30.446Z", - "subscription": "2022-04-18T12:23:30.446Z" - } - }, - { - "requestId": "1650284610441.lJrX4M", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "45.86.200.179", - "ipLocation": { - "accuracyRadius": 1000, - "latitude": 52.3824, - "longitude": 4.8995, - "timezone": "Europe/Amsterdam", - "country": { - "code": "NL", - "name": "Netherlands" - }, - "continent": { - "code": "EU", - "name": "Europe" - } - }, - "timestamp": 1650284610446, - "time": "2022-04-18T12:23:30Z", - "url": "https://fingerprintjs.com/blog/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-04-06T14:53:00.526Z", - "subscription": "2022-04-06T14:53:00.526Z" - } - }, - { - "requestId": "1649256780522.WAXWf2", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "109.245.35.200", - "ipLocation": { - "accuracyRadius": 50, - "latitude": 44.8166, - "longitude": 20.4721, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1649256780526, - "time": "2022-04-06T14:53:00Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-03-18T11:08:35.698Z", - "subscription": "2022-03-18T11:08:35.698Z" - } - }, - { - "requestId": "1649256780520.RRC4PR", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "100", - "browserFullVersion": "100.0.4896", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "109.245.35.200", - "ipLocation": { - "accuracyRadius": 50, - "latitude": 44.8166, - "longitude": 20.4721, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1649256780525, - "time": "2022-04-06T14:53:00Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-03-18T11:08:35.698Z", - "subscription": "2022-03-18T11:08:35.698Z" - } - }, - { - "requestId": "1647601715689.iocXfW", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "98", - "browserFullVersion": "98.0.4758", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "178.223.21.183", - "ipLocation": { - "accuracyRadius": 50, - "latitude": 44.8166, - "longitude": 20.4721, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1647601715698, - "time": "2022-03-18T11:08:35Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-03-16T08:21:23.62Z", - "subscription": "2022-03-16T08:21:23.62Z" - } - }, - { - "requestId": "1647418883615.Vck2NA", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "98", - "browserFullVersion": "98.0.4758", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "87.116.165.97", - "ipLocation": { - "accuracyRadius": 50, - "latitude": 44.8166, - "longitude": 20.4721, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1647418883620, - "time": "2022-03-16T08:21:23Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-03-16T08:21:18.398Z", - "subscription": "2022-03-16T08:21:18.398Z" - } - }, - { - "requestId": "1647418878391.NZDmht", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "98", - "browserFullVersion": "98.0.4758", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "87.116.165.97", - "ipLocation": { - "accuracyRadius": 50, - "latitude": 44.8166, - "longitude": 20.4721, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1647418878398, - "time": "2022-03-16T08:21:18Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-03-15T11:46:51.858Z", - "subscription": "2022-03-15T11:46:51.858Z" - } - }, - { - "requestId": "1647344811836.RvNkL5", - "browserDetails": { - "browserName": "Chrome", - "browserMajorVersion": "98", - "browserFullVersion": "98.0.4758", - "os": "Mac OS X", - "osVersion": "10.15.7", - "device": "Other", - "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36", - "botProbability": 0 - }, - "incognito": false, - "ip": "87.116.165.97", - "ipLocation": { - "accuracyRadius": 50, - "latitude": 44.8166, - "longitude": 20.4721, - "timezone": "Europe/Belgrade", - "city": { - "name": "Belgrade" - }, - "country": { - "code": "RS", - "name": "Serbia" - }, - "continent": { - "code": "EU", - "name": "Europe" - }, - "subdivisions": [ - { - "isoCode": "00", - "name": "Belgrade" - } - ] - }, - "timestamp": 1647344811858, - "time": "2022-03-15T11:46:51Z", - "url": "https://fingerprintjs.com/", - "tag": {}, - "confidence": { - "score": 1 - }, - "visitorFound": true, - "firstSeenAt": { - "global": "2022-02-04T11:31:20Z", - "subscription": "2022-02-04T11:31:20Z" - }, - "lastSeenAt": { - "global": "2022-03-08T12:33:05.677Z", - "subscription": "2022-03-08T12:33:05.677Z" - } - } - ] -} diff --git a/sdk/src/test/resources/mocks/get_visits_403_error.json b/sdk/src/test/resources/mocks/get_visits_403_error.json deleted file mode 100644 index 8a886d18..00000000 --- a/sdk/src/test/resources/mocks/get_visits_403_error.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "error": "Forbidden (HTTP 403)" -} diff --git a/sdk/src/test/resources/mocks/get_visits_429_too_many_requests_error.json b/sdk/src/test/resources/mocks/get_visits_429_too_many_requests_error.json deleted file mode 100644 index 00d00f2e..00000000 --- a/sdk/src/test/resources/mocks/get_visits_429_too_many_requests_error.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "error": "too many requests" -} diff --git a/sdk/src/test/resources/mocks/shared/403_error_token_required.json b/sdk/src/test/resources/mocks/shared/403_error_token_required.json deleted file mode 100644 index 544d8714..00000000 --- a/sdk/src/test/resources/mocks/shared/403_error_token_required.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code": "TokenRequired", - "message": "secret key is required" - } -} diff --git a/sdk/src/test/resources/mocks/update_event_400_error.json b/sdk/src/test/resources/mocks/update_event_400_error.json deleted file mode 100644 index 78568329..00000000 --- a/sdk/src/test/resources/mocks/update_event_400_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code":"RequestCannotBeParsed", - "message":"request body is not valid" - } -} diff --git a/sdk/src/test/resources/mocks/update_event_403_error.json b/sdk/src/test/resources/mocks/update_event_403_error.json deleted file mode 100644 index 544d8714..00000000 --- a/sdk/src/test/resources/mocks/update_event_403_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code": "TokenRequired", - "message": "secret key is required" - } -} diff --git a/sdk/src/test/resources/mocks/update_event_404_error.json b/sdk/src/test/resources/mocks/update_event_404_error.json deleted file mode 100644 index 389b351c..00000000 --- a/sdk/src/test/resources/mocks/update_event_404_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code": "RequestNotFound", - "message": "request id is not found" - } -} diff --git a/sdk/src/test/resources/mocks/update_event_409_error.json b/sdk/src/test/resources/mocks/update_event_409_error.json deleted file mode 100644 index 16ad29ae..00000000 --- a/sdk/src/test/resources/mocks/update_event_409_error.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "error": { - "code": "StateNotReady", - "message": "resource is not mutable yet, try again" - } -} diff --git a/sdk/src/test/resources/mocks/webhook.json b/sdk/src/test/resources/mocks/webhook.json index ceab1c79..2152b842 100644 --- a/sdk/src/test/resources/mocks/webhook.json +++ b/sdk/src/test/resources/mocks/webhook.json @@ -1,18 +1,13 @@ { "requestId": "Px6VxbRC6WBkA39yeNH3", + "url": "https://banking.example.com/signup", + "ip": "216.3.128.12", "tag": { "requestType": "signup", "yourCustomId": 45321 }, - "linkedId": "any-string", - "visitorId": "3HNey93AkBW6CRbxV6xP", - "visitorFound": true, - "timestamp": 1554910997788, "time": "2019-10-12T07:20:50.52Z", - "incognito": false, - "url": "https://banking.example.com/signup", - "clientReferrer": "https://google.com?search=banking+services", - "ip": "216.3.128.12", + "timestamp": 1554910997788, "ipLocation": { "accuracyRadius": 1, "city": { @@ -37,15 +32,9 @@ ], "timezone": "America/Chicago" }, - "browserDetails": { - "browserName": "Chrome", - "browserFullVersion": "73.0.3683.86", - "browserMajorVersion": "73", - "os": "Mac OS X", - "osVersion": "10.14.3", - "device": "Other", - "userAgent": "(Macintosh; Intel Mac OS X 10_14_3) Chrome/73.0.3683.86" - }, + "linkedId": "any-string", + "visitorId": "3HNey93AkBW6CRbxV6xP", + "visitorFound": true, "confidence": { "score": 0.97 }, @@ -57,11 +46,28 @@ "global": "2022-03-16T11:28:34.023Z", "subscription": null }, + "browserDetails": { + "browserName": "Chrome", + "browserFullVersion": "73.0.3683.86", + "browserMajorVersion": "73", + "os": "Mac OS X", + "osVersion": "10.14.3", + "device": "Other", + "userAgent": "(Macintosh; Intel Mac OS X 10_14_3) Chrome/73.0.3683.86" + }, + "incognito": false, + "clientReferrer": "https://google.com?search=banking+services", "bot": { "result": "bad", "type": "selenium" }, "userAgent": "(Macintosh; Intel Mac OS X 10_14_3) Chrome/73.0.3683.86", + "rootApps": { + "result": false + }, + "emulator": { + "result": false + }, "ipInfo": { "v4": { "address": "94.142.239.124", @@ -100,12 +106,6 @@ } } }, - "rootApps": { - "result": false - }, - "emulator": { - "result": false - }, "ipBlocklist": { "result": false, "details": { @@ -118,6 +118,7 @@ }, "vpn": { "result": false, + "confidence": "high", "originTimezone": "Europe/Berlin", "originCountry": "unknown", "methods": { @@ -125,15 +126,15 @@ "publicVPN": false, "auxiliaryMobile": false, "osMismatch": false - }, - "confidence": "high" + } }, "proxy": { "result": false }, "tampering": { "result": false, - "anomalyScore": 0 + "anomalyScore": 0, + "antiDetectBrowser": false }, "clonedApp": { "result": false @@ -215,6 +216,27 @@ "1h": 5, "24h": 5 } + }, + "ipEvents": { + "intervals": { + "5m": 1, + "1h": 5, + "24h": 5 + } + }, + "distinctIpByLinkedId": { + "intervals": { + "5m": 1, + "1h": 5, + "24h": 5 + } + }, + "distinctVisitorIdByLinkedId": { + "intervals": { + "5m": 1, + "1h": 5, + "24h": 5 + } } }, "developerTools": { diff --git a/template/README.mustache b/template/README.mustache index 92c36abe..d155423d 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -136,8 +136,9 @@ Please follow the [installation](#installation) instruction and execute the foll package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -172,7 +173,7 @@ public class FingerprintApiExample { // Get an event with a given requestId try { // Fetch the event with a given requestId - EventResponse response = api.getEvent(FPJS_REQUEST_ID); + EventsGetResponse response = api.getEvent(FPJS_REQUEST_ID); System.out.println(response.getProducts().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getEvent:" + e.getMessage()); @@ -180,7 +181,7 @@ public class FingerprintApiExample { // Update an event with a given requestId try { - EventUpdateRequest request = new EventUpdateRequest(); + EventsUpdateRequest request = new EventsUpdateRequest(); request.setLinkedId("myNewLinkedId"); api.updateEvent(FPJS_REQUEST_ID, request); } catch (ApiException e) { @@ -190,7 +191,7 @@ public class FingerprintApiExample { // Get a specific visitor's all visits try { // Fetch all visits with a given visitorId, with a page limit - Response response = api.getVisits(FPJS_VISITOR_ID, null, null, LIMIT, null, null); + VisitorsGetResponse response = api.getVisits(FPJS_VISITOR_ID, null, null, LIMIT, null, null); System.out.println(response.getVisits().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -199,7 +200,7 @@ public class FingerprintApiExample { // Get a specific visitor's all visits with a linkedId try { // Fetch all visits with a given visitorId, with a page limit, skipping the first visit - Response response = api.getVisits(FPJS_VISITOR_ID, null, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); + VisitorsGetResponse response = api.getVisits(FPJS_VISITOR_ID, null, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); System.out.println(response.getVisits().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -208,7 +209,7 @@ public class FingerprintApiExample { // Use all the parameters on getVisits try { // Fetch the visitor's all visits with a given requestId and linkedId with a page limit while skipping the first visit - Response response = api.getVisits(FPJS_VISITOR_ID, FPJS_REQUEST_ID, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); + VisitorsGetResponse response = api.getVisits(FPJS_VISITOR_ID, FPJS_REQUEST_ID, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY, null); System.out.println(response.getVisits().toString()); } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage()); @@ -231,7 +232,7 @@ This SDK provides utility methods for decoding [sealed results](https://dev.fing package com.fingerprint.example; import com.fingerprint.Sealed; -import com.fingerprint.model.EventResponse; +import com.fingerprint.model.EventsGetResponse; import java.util.Base64; @@ -243,7 +244,7 @@ public class SealedResults { // Base64 encoded key generated in the dashboard. String SEALED_KEY = System.getenv("BASE64_KEY"); - final EventResponse event = Sealed.unsealEventResponse( + final EventsGetResponse event = Sealed.unsealEventResponse( Base64.getDecoder().decode(SEALED_RESULT), // You can provide more than one key to support key rotation. The SDK will try to decrypt the result with each key. new Sealed.DecryptionKey[]{ @@ -264,7 +265,7 @@ To learn more, refer to example located in [src/examples/java/com/fingerprint/ex ## Webhook signature validation This SDK provides utility method for verifying the HMAC signature of the incoming webhook request. -Here is an example implementation using Spring Boot: +Here is an example implementation using Spring Boot: ```java import com.fingerprint.sdk.Webhook; diff --git a/template/libraries/jersey3/api_doc.mustache b/template/libraries/jersey3/api_doc.mustache index 0bdec4dc..08bdf35d 100644 --- a/template/libraries/jersey3/api_doc.mustache +++ b/template/libraries/jersey3/api_doc.mustache @@ -31,8 +31,9 @@ All URIs are relative to *{{basePath}}* package main; import com.fingerprint.api.FingerprintApi; -import com.fingerprint.model.EventResponse; -import com.fingerprint.model.Response; +import com.fingerprint.model.EventsGetResponse; +import com.fingerprint.model.EventsUpdateRequest; +import com.fingerprint.model.VisitorsGetResponse; import com.fingerprint.sdk.ApiClient; import com.fingerprint.sdk.ApiException; import com.fingerprint.sdk.Configuration; @@ -57,7 +58,7 @@ public class FingerprintApiExample { {{{dataType}}} {{{paramName}}} = {{{example}}}; // {{{dataType}}} | {{{description}}} {{/allParams}} try { - {{#returnType}}{{{returnType}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{{paramName}}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{#returnType}} + {{#returnType}}{{{returnType}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{{paramName}}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} System.out.println(result);{{/returnType}} } catch (ApiException e) { System.err.println("Exception when calling FingerprintApi.{{{operationId}}}:" + e.getMessage());