Skip to content

Commit

Permalink
Apply semantic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nviktorov committed Oct 24, 2024
1 parent f440fe0 commit 813644a
Show file tree
Hide file tree
Showing 38 changed files with 136 additions and 191 deletions.
15 changes: 15 additions & 0 deletions .changeset/khaki-results-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'fingerprint-pro-server-api-openapi': 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`.
33 changes: 33 additions & 0 deletions .changeset/large-lights-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
'fingerprint-pro-server-api-openapi': 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`.
2 changes: 2 additions & 0 deletions schemas/components/schemas/Botd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ required:
properties:
bot:
$ref: BotdBot.yaml
meta:
$ref: Tag.yaml
linkedId:
type: string
description: A customer-provided id that was sent with the request.
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/BrowserDetails.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ properties:
type: string
userAgent:
type: string
botProbability:
type: integer
2 changes: 0 additions & 2 deletions schemas/components/schemas/EventsGetResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ required:
properties:
products:
$ref: Products.yaml
error:
$ref: Error.yaml
2 changes: 2 additions & 0 deletions schemas/components/schemas/GeolocationCity.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type: object
additionalProperties: false
required:
- name
properties:
name:
type: string
3 changes: 3 additions & 0 deletions schemas/components/schemas/GeolocationSubdivision.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
type: object
additionalProperties: false
required:
- isoCode
- name
properties:
isoCode:
type: string
Expand Down
3 changes: 2 additions & 1 deletion schemas/components/schemas/HighActivity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ properties:
type: boolean
description: Flag indicating whether the request came from a high activity visitor.
dailyRequests:
type: number
type: integer
format: int64
minimum: 1
description: Number of requests from the same visitor in the previous day.
1 change: 1 addition & 0 deletions schemas/components/schemas/IPInfoASN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ type: object
additionalProperties: false
required:
- asn
- name
- network
properties:
asn:
Expand Down
1 change: 1 addition & 0 deletions schemas/components/schemas/IPInfoDataCenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ type: object
additionalProperties: false
required:
- result
- name
properties:
result:
type: boolean
Expand Down
2 changes: 2 additions & 0 deletions schemas/components/schemas/Identification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,5 @@ properties:
$ref: IdentificationSeenAt.yaml
lastSeenAt:
$ref: IdentificationSeenAt.yaml
components:
$ref: RawDeviceAttributes.yaml
4 changes: 3 additions & 1 deletion schemas/components/schemas/IdentificationConfidence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
properties:
score:
type: number
format: float
format: double
minimum: 0
maximum: 1
description: >-
Expand All @@ -17,3 +17,5 @@ properties:
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
3 changes: 0 additions & 3 deletions schemas/components/schemas/RawDeviceAttributeError.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
type: object
additionalProperties: false
required:
- name
- message
properties:
name:
type: string
Expand Down
1 change: 1 addition & 0 deletions schemas/components/schemas/Tampering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ properties:
* 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: >-
Expand Down
1 change: 1 addition & 0 deletions schemas/components/schemas/VPN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ required:
- result
- confidence
- originTimezone
- originCountry
- methods
properties:
result:
Expand Down
2 changes: 2 additions & 0 deletions schemas/components/schemas/Visit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ properties:
$ref: IdentificationSeenAt.yaml
lastSeenAt:
$ref: IdentificationSeenAt.yaml
components:
$ref: RawDeviceAttributes.yaml
8 changes: 2 additions & 6 deletions schemas/components/schemas/Webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ required:
- ip
- time
- timestamp
- visitorId
- visitorFound
- firstSeenAt
- lastSeenAt
- browserDetails
- incognito
properties:
requestId:
type: string
Expand Down Expand Up @@ -61,6 +55,8 @@ properties:
description: Flag if user used incognito session.
clientReferrer:
type: string
components:
$ref: RawDeviceAttributes.yaml
bot:
$ref: BotdBot.yaml
userAgent:
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookClonedApp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookDeveloperTools.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookEmulator.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
3 changes: 0 additions & 3 deletions schemas/components/schemas/WebhookFactoryReset.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
type: object
additionalProperties: false
required:
- time
- timestamp
properties:
time:
type: string
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookFrida.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
3 changes: 2 additions & 1 deletion schemas/components/schemas/WebhookHighActivity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ properties:
type: boolean
description: Flag indicating whether the request came from a high activity visitor.
dailyRequests:
type: number
type: integer
format: int64
minimum: 1
description: Number of requests from the same visitor in the previous day.
3 changes: 0 additions & 3 deletions schemas/components/schemas/WebhookIPBlocklist.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
type: object
additionalProperties: false
required:
- result
- details
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookJailbroken.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookLocationSpoofing.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookPrivacySettings.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookProxy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookRemoteControl.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookRootApps.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookSuspectScore.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: integer
Expand Down
5 changes: 1 addition & 4 deletions schemas/components/schemas/WebhookTampering.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
type: object
additionalProperties: false
required:
- result
- anomalyScore
- antiDetectBrowser
properties:
result:
type: boolean
Expand All @@ -13,6 +9,7 @@ properties:
* 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: >-
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookTor.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
5 changes: 0 additions & 5 deletions schemas/components/schemas/WebhookVPN.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
type: object
additionalProperties: false
required:
- result
- confidence
- originTimezone
- methods
properties:
result:
type: boolean
Expand Down
8 changes: 0 additions & 8 deletions schemas/components/schemas/WebhookVelocity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ description: |
if the number of `events` for the visitor ID in the last 24
hours (`events.intervals.['24h']`) is higher than 20.000.
additionalProperties: false
required:
- distinctIp
- distinctLinkedId
- distinctCountry
- events
- ipEvents
- distinctIpByLinkedId
- distinctVisitorIdByLinkedId
properties:
distinctIp:
$ref: VelocityData.yaml
Expand Down
2 changes: 0 additions & 2 deletions schemas/components/schemas/WebhookVirtualMachine.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
type: object
additionalProperties: false
required:
- result
properties:
result:
type: boolean
Expand Down
3 changes: 1 addition & 2 deletions schemas/paths/examples/get_visitors_200_limit_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 813644a

Please sign in to comment.