Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use correct error type for incognito, rawDeviceAttributes and tampering in the GetEvent method #111

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ components:
* `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
* `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application
enum:
- TokenRequired
- TokenNotFound
Expand Down Expand Up @@ -1375,7 +1375,7 @@ components:
data:
$ref: '#/components/schemas/IncognitoResult'
error:
$ref: '#/components/schemas/ProductError'
$ref: '#/components/schemas/IdentificationError'
rootApps:
title: SignalResponseRootApps
type: object
Expand Down Expand Up @@ -1492,7 +1492,7 @@ components:
data:
$ref: '#/components/schemas/TamperingResult'
error:
$ref: '#/components/schemas/ProductError'
$ref: '#/components/schemas/IdentificationError'
highActivity:
title: SignalResponseHighActivity
type: object
Expand Down Expand Up @@ -1528,7 +1528,7 @@ components:
data:
$ref: '#/components/schemas/RawDeviceAttributesResult'
error:
$ref: '#/components/schemas/ProductError'
$ref: '#/components/schemas/IdentificationError'
EventResponse:
description: >-
Contains results from all activated products - Fingerprint Pro, Bot
Expand Down
6 changes: 3 additions & 3 deletions src/generatedApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export interface components {
/** SignalResponseIncognito */
incognito?: {
data?: components['schemas']['IncognitoResult']
error?: components['schemas']['ProductError']
error?: components['schemas']['IdentificationError']
}
/** SignalResponseRootApps */
rootApps?: {
Expand Down Expand Up @@ -669,7 +669,7 @@ export interface components {
/** SignalResponseTampering */
tampering?: {
data?: components['schemas']['TamperingResult']
error?: components['schemas']['ProductError']
error?: components['schemas']['IdentificationError']
}
/** SignalResponseHighActivity */
highActivity?: {
Expand All @@ -689,7 +689,7 @@ export interface components {
/** SignalResponseRawDeviceAttributes */
rawDeviceAttributes?: {
data?: components['schemas']['RawDeviceAttributesResult']
error?: components['schemas']['ProductError']
error?: components['schemas']['IdentificationError']
}
}
/** @description Contains results from all activated products - Fingerprint Pro, Bot Detection, and others. */
Expand Down
1 change: 1 addition & 0 deletions sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ examplesList=(
'get_event_200_botd_too_many_requests_error.json'
'get_event_200_identification_failed_error.json'
'get_event_200_identification_too_many_requests_error.json'
'get_event_200_identification_too_many_requests_error_all_fields.json'
'get_visits_429_too_many_requests_error.json'
'delete_visits_400_error.json'
'delete_visits_404_error.json'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"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"
}
}
}
}
Loading