Skip to content

Commit b409045

Browse files
author
Sergey Shelomentsev
authored
Merge pull request #45 from fingerprintjs/feature/update-schema
Feature/update schema
2 parents 50b244d + 515c5ec commit b409045

File tree

160 files changed

+1804
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+1804
-616
lines changed

.github/workflows/functional.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
with:
2525
distribution: 'zulu'
2626
java-version: '${{ matrix.java }}'
27-
cache: 'gradle'
2827
- run: ./gradlew runFunctionalTests
2928
env:
3029
FPJS_API_SECRET: "${{ secrets.FPJS_API_SECRET }}"

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ jobs:
1919
with:
2020
distribution: 'zulu'
2121
java-version: '${{ matrix.java }}'
22-
cache: 'gradle'
2322
- run: ./gradlew test

.releaserc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
[
3131
"@semantic-release/exec",
3232
{
33-
"prepareCmd": "bash ./scripts/generate.sh -v ${nextRelease.version}",
33+
"prepareCmd": "bash ./generate.sh -v ${nextRelease.version}",
3434
"publishCmd": "bash ./gradlew publishToMavenLocal"
3535
}
3636
],
@@ -42,9 +42,7 @@ module.exports = {
4242
"README.md",
4343
"config.json",
4444
"build.gradle",
45-
"pom.xml",
4645
"config.yaml",
47-
"./scripts/generate.sh",
4846
"docs/**/*",
4947
"src/**/*"
5048
]

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ All URIs are relative to *https://api.fpjs.io*
233233

234234
Class | Method | HTTP request | Description
235235
------------ | ------------- | ------------- | -------------
236-
*FingerprintApi* | [**getEvent**](docs/FingerprintApi.md#getEvent) | **GET** /events/{request_id} | Get event by requestId
237-
*FingerprintApi* | [**getVisits**](docs/FingerprintApi.md#getVisits) | **GET** /visitors/{visitor_id} | Get visits by visitorId
236+
*FingerprintApi* | [**deleteVisitorData**](docs/FingerprintApi.md#deleteVisitorData) | **DELETE** /visitors/{visitor_id} | Delete data by visitor ID
237+
*FingerprintApi* | [**getEvent**](docs/FingerprintApi.md#getEvent) | **GET** /events/{request_id} | Get event by request ID
238+
*FingerprintApi* | [**getVisits**](docs/FingerprintApi.md#getVisits) | **GET** /visitors/{visitor_id} | Get visits by visitor ID
238239
*FingerprintApi* | [**webhookTrace**](docs/FingerprintApi.md#webhookTrace) | **TRACE** /webhook |
239240

240241

@@ -245,17 +246,23 @@ Class | Method | HTTP request | Description
245246
- [BotdResult](docs/BotdResult.md)
246247
- [BrowserDetails](docs/BrowserDetails.md)
247248
- [ClonedAppResult](docs/ClonedAppResult.md)
249+
- [Common403ErrorResponse](docs/Common403ErrorResponse.md)
248250
- [Confidence](docs/Confidence.md)
249251
- [DataCenter](docs/DataCenter.md)
250252
- [DeprecatedIPLocation](docs/DeprecatedIPLocation.md)
251253
- [DeprecatedIPLocationCity](docs/DeprecatedIPLocationCity.md)
252254
- [EmulatorResult](docs/EmulatorResult.md)
253255
- [Error](docs/Error.md)
254-
- [ErrorEvent403Response](docs/ErrorEvent403Response.md)
255-
- [ErrorEvent403ResponseError](docs/ErrorEvent403ResponseError.md)
256+
- [ErrorCommon403Response](docs/ErrorCommon403Response.md)
257+
- [ErrorCommon429Response](docs/ErrorCommon429Response.md)
258+
- [ErrorCommon429ResponseError](docs/ErrorCommon429ResponseError.md)
256259
- [ErrorEvent404Response](docs/ErrorEvent404Response.md)
257260
- [ErrorEvent404ResponseError](docs/ErrorEvent404ResponseError.md)
258261
- [ErrorVisits403](docs/ErrorVisits403.md)
262+
- [ErrorVisitsDelete400Response](docs/ErrorVisitsDelete400Response.md)
263+
- [ErrorVisitsDelete400ResponseError](docs/ErrorVisitsDelete400ResponseError.md)
264+
- [ErrorVisitsDelete404Response](docs/ErrorVisitsDelete404Response.md)
265+
- [ErrorVisitsDelete404ResponseError](docs/ErrorVisitsDelete404ResponseError.md)
259266
- [EventResponse](docs/EventResponse.md)
260267
- [FactoryResetResult](docs/FactoryResetResult.md)
261268
- [FridaResult](docs/FridaResult.md)
@@ -272,7 +279,6 @@ Class | Method | HTTP request | Description
272279
- [JailbrokenResult](docs/JailbrokenResult.md)
273280
- [Location](docs/Location.md)
274281
- [LocationSpoofingResult](docs/LocationSpoofingResult.md)
275-
- [ManyRequestsResponse](docs/ManyRequestsResponse.md)
276282
- [PrivacySettingsResult](docs/PrivacySettingsResult.md)
277283
- [ProductError](docs/ProductError.md)
278284
- [ProductsResponse](docs/ProductsResponse.md)
@@ -307,6 +313,7 @@ Class | Method | HTTP request | Description
307313
- [Subdivision](docs/Subdivision.md)
308314
- [SuspectScoreResult](docs/SuspectScoreResult.md)
309315
- [TamperingResult](docs/TamperingResult.md)
316+
- [TooManyRequestsResponse](docs/TooManyRequestsResponse.md)
310317
- [TorResult](docs/TorResult.md)
311318
- [VirtualMachineResult](docs/VirtualMachineResult.md)
312319
- [Visit](docs/Visit.md)

bin/generator.jar

-24.8 MB
Binary file not shown.

build.gradle

Lines changed: 0 additions & 145 deletions
This file was deleted.

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
val projectVersion: String by project
2+
3+
allprojects {
4+
group = "com.fingerprint"
5+
version = projectVersion
6+
}
7+

config.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/BotdResult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Contains all the information from Bot Detection product
99
| Name | Type | Description | Notes |
1010
|------------ | ------------- | ------------- | -------------|
1111
|**ip** | **String** | IP address of the requesting browser or bot. | |
12-
|**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 | |
12+
|**time** | [**OffsetDateTime**](OffsetDateTime.md) | 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 | |
1313
|**url** | **String** | Page URL from which identification request was sent. | |
1414
|**userAgent** | **String** | | |
1515
|**requestId** | **String** | | |

docs/ErrorEvent403ResponseError.md renamed to docs/Common403ErrorResponse.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22

3-
# ErrorEvent403ResponseError
3+
# Common403ErrorResponse
44

55

66
## Properties
77

88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
10-
|**code** | [**CodeEnum**](#CodeEnum) | Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - subscription not found for specified secret key * `SubscriptionNotActive` - subscription is not active * `WrongRegion` - server and subscription region differ | |
10+
|**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 | |
1111
|**message** | **String** | | |
1212

1313

@@ -19,6 +19,7 @@
1919
| TOKENNOTFOUND | "TokenNotFound" |
2020
| SUBSCRIPTIONNOTACTIVE | "SubscriptionNotActive" |
2121
| WRONGREGION | "WrongRegion" |
22+
| FEATURENOTENABLED | "FeatureNotEnabled" |
2223

2324

2425

0 commit comments

Comments
 (0)