Skip to content

Commit

Permalink
chore: update schema, remove unused model RelatedVisitors
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Oct 28, 2024
1 parent 64a242e commit e505975
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 134 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ Class | Method | HTTP request | Description
- [Proxy](docs/Proxy.md)
- [RawDeviceAttribute](docs/RawDeviceAttribute.md)
- [RawDeviceAttributeError](docs/RawDeviceAttributeError.md)
- [RelatedVisitor](docs/RelatedVisitor.md)
- [RemoteControl](docs/RemoteControl.md)
- [RootApps](docs/RootApps.md)
- [SuspectScore](docs/SuspectScore.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/FactoryReset.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| 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. | |
|**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. | |



13 changes: 0 additions & 13 deletions docs/RelatedVisitor.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/WebhookFactoryReset.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| 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] |
|**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] |



19 changes: 2 additions & 17 deletions res/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ components:
type: boolean
ip:
type: string
format: ipv4
description: IP address of the requesting browser or bot.
ipLocation:
$ref: '#/components/schemas/DeprecatedGeolocation'
Expand Down Expand Up @@ -976,7 +975,6 @@ components:
description: Page URL from which the request was sent.
ip:
type: string
format: ipv4
description: IP address of the requesting browser or bot.
time:
type: string
Expand Down Expand Up @@ -1402,7 +1400,7 @@ components:
field.
The time of the most recent factory reset that happened on the
**mobile device** is expressed as Unix epoch time.
**mobile device** is expressed as Unix epoch time.
ProductFactoryReset:
type: object
additionalProperties: false
Expand Down Expand Up @@ -1807,7 +1805,6 @@ components:
description: Flag if user used incognito session.
ip:
type: string
format: ipv4
description: IP address of the requesting browser or bot.
ipLocation:
$ref: '#/components/schemas/DeprecatedGeolocation'
Expand Down Expand Up @@ -2025,7 +2022,7 @@ components:
field.
The time of the most recent factory reset that happened on the
**mobile device** is expressed as Unix epoch time.
**mobile device** is expressed as Unix epoch time.
WebhookJailbroken:
type: object
additionalProperties: false
Expand Down Expand Up @@ -2204,7 +2201,6 @@ components:
description: Page URL from which the request was sent.
ip:
type: string
format: ipv4
description: IP address of the requesting browser or bot.
tag:
$ref: '#/components/schemas/Tag'
Expand Down Expand Up @@ -2294,14 +2290,3 @@ components:
$ref: '#/components/schemas/WebhookVelocity'
developerTools:
$ref: '#/components/schemas/WebhookDeveloperTools'
RelatedVisitor:
type: object
additionalProperties: false
required:
- visitorId
properties:
visitorId:
type: string
description: >-
Visitor ID of a browser that originates from the same mobile device
as the input visitor ID.
4 changes: 2 additions & 2 deletions sdk/src/main/java/com/fingerprint/model/FactoryReset.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ public FactoryReset timestamp(Long timestamp) {
}

/**
* 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(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)

Expand Down
97 changes: 0 additions & 97 deletions sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ public WebhookFactoryReset timestamp(Long timestamp) {
}

/**
* 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.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. ")
@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)

Expand Down

0 comments on commit e505975

Please sign in to comment.