From d608cfeb3d0007fff9f6742255f8110a5f4ae3e1 Mon Sep 17 00:00:00 2001 From: ilfa Date: Thu, 14 Nov 2024 18:20:00 +0000 Subject: [PATCH 1/4] feat: update OpenAPI schema --- .changeset/deep-sides-grow.md | 5 + .changeset/shy-worms-wish.md | 5 + .schema-version | 2 +- README.md | 1 + docs/FactoryReset.md | 2 +- docs/RelatedVisitor.md | 13 +++ docs/WebhookFactoryReset.md | 2 +- res/fingerprint-server-api.yaml | 15 ++- .../com/fingerprint/model/FactoryReset.java | 4 +- .../com/fingerprint/model/RelatedVisitor.java | 97 +++++++++++++++++++ .../model/WebhookFactoryReset.java | 4 +- .../mocks/errors/403_feature_not_enabled.json | 4 +- .../errors/403_subscription_not_active.json | 4 +- 13 files changed, 145 insertions(+), 13 deletions(-) create mode 100644 .changeset/deep-sides-grow.md create mode 100644 .changeset/shy-worms-wish.md create mode 100644 docs/RelatedVisitor.md create mode 100644 sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java diff --git a/.changeset/deep-sides-grow.md b/.changeset/deep-sides-grow.md new file mode 100644 index 0000000..0dbc532 --- /dev/null +++ b/.changeset/deep-sides-grow.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-java-sdk': patch +--- + +Fix errors examples `403_feature_not_enabled` and `403_subscription_not_active`. \ No newline at end of file diff --git a/.changeset/shy-worms-wish.md b/.changeset/shy-worms-wish.md new file mode 100644 index 0000000..dbafb33 --- /dev/null +++ b/.changeset/shy-worms-wish.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-java-sdk': minor +--- + +Remove `ipv4` format from `ip` field in `Botd`, `Identification`, `Visit` and `Webhook` models. \ No newline at end of file diff --git a/.schema-version b/.schema-version index 6eaf894..852700e 100644 --- a/.schema-version +++ b/.schema-version @@ -1 +1 @@ -v2.0.0 \ No newline at end of file +v2.1.0 \ No newline at end of file diff --git a/README.md b/README.md index d11ad8b..f797288 100644 --- a/README.md +++ b/README.md @@ -346,6 +346,7 @@ 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) diff --git a/docs/FactoryReset.md b/docs/FactoryReset.md index 96b0512..d684683 100644 --- a/docs/FactoryReset.md +++ b/docs/FactoryReset.md @@ -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. | | diff --git a/docs/RelatedVisitor.md b/docs/RelatedVisitor.md new file mode 100644 index 0000000..c24f4fc --- /dev/null +++ b/docs/RelatedVisitor.md @@ -0,0 +1,13 @@ + + +# RelatedVisitor + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**visitorId** | **String** | Visitor ID of a browser that originates from the same mobile device as the input visitor ID. | | + + + diff --git a/docs/WebhookFactoryReset.md b/docs/WebhookFactoryReset.md index 415d60c..df083a9 100644 --- a/docs/WebhookFactoryReset.md +++ b/docs/WebhookFactoryReset.md @@ -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] | diff --git a/res/fingerprint-server-api.yaml b/res/fingerprint-server-api.yaml index fc8d487..fb9cb34 100644 --- a/res/fingerprint-server-api.yaml +++ b/res/fingerprint-server-api.yaml @@ -1400,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 @@ -2022,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 @@ -2290,3 +2290,14 @@ 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. diff --git a/sdk/src/main/java/com/fingerprint/model/FactoryReset.java b/sdk/src/main/java/com/fingerprint/model/FactoryReset.java index 71e1156..8fcf3b4 100644 --- a/sdk/src/main/java/com/fingerprint/model/FactoryReset.java +++ b/sdk/src/main/java/com/fingerprint/model/FactoryReset.java @@ -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) diff --git a/sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java b/sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java new file mode 100644 index 0000000..c809e0a --- /dev/null +++ b/sdk/src/main/java/com/fingerprint/model/RelatedVisitor.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; + +/** + * RelatedVisitor + */ + + +@JsonPropertyOrder({ + RelatedVisitor.JSON_PROPERTY_VISITOR_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") +public class RelatedVisitor { + public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; + private String visitorId; + + public RelatedVisitor() { + } + + public RelatedVisitor visitorId(String visitorId) { + this.visitorId = visitorId; + return this; + } + + /** + * Visitor ID of a browser that originates from the same mobile device as the input visitor ID. + * @return visitorId + **/ + @jakarta.annotation.Nonnull + @Schema(required = true, description = "Visitor ID of a browser that originates from the same mobile device as the input visitor ID.") + @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; + } + + + /** + * Return true if this RelatedVisitor object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedVisitor relatedVisitor = (RelatedVisitor) o; + return Objects.equals(this.visitorId, relatedVisitor.visitorId); + } + + @Override + public int hashCode() { + return Objects.hash(visitorId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedVisitor {\n"); + sb.append(" visitorId: ").append(toIndentedString(visitorId)).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 index f8ecca3..6b83180 100644 --- a/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java +++ b/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java @@ -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) 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 index 3deac89..9820a56 100644 --- a/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json +++ b/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json @@ -1,6 +1,6 @@ { "error": { - "code": "SubscriptionNotActive", - "message": "forbidden" + "code": "FeatureNotEnabled", + "message": "feature not enabled" } } diff --git a/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json b/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json index 9820a56..3deac89 100644 --- a/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json +++ b/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json @@ -1,6 +1,6 @@ { "error": { - "code": "FeatureNotEnabled", - "message": "feature not enabled" + "code": "SubscriptionNotActive", + "message": "forbidden" } } From 63910b9ee8db8cb2349ae8cf54eac6bbf555fc39 Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Thu, 14 Nov 2024 19:31:46 +0100 Subject: [PATCH 2/4] chore: add missing `'@fingerprintjs/commit-lint-dx-team` dependency --- package.json | 3 ++- pnpm-lock.yaml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 825a1ed..c737ef1 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "devDependencies": { "@changesets/cli": "^2.27.8", - "@fingerprintjs/changesets-changelog-format": "^0.2.0" + "@fingerprintjs/changesets-changelog-format": "^0.2.0", + "@fingerprintjs/commit-lint-dx-team": "^0.1.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b18a695..c25eab9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@fingerprintjs/changesets-changelog-format': specifier: ^0.2.0 version: 0.2.0 + '@fingerprintjs/commit-lint-dx-team': + specifier: ^0.1.0 + version: 0.1.0 packages: @@ -76,9 +79,16 @@ packages: '@changesets/write@0.3.2': resolution: {integrity: sha512-kDxDrPNpUgsjDbWBvUo27PzKX4gqeKOlhibaOXDJA6kuBisGqNHv/HwGJrAu8U/dSf8ZEFIeHIPtvSlZI1kULw==} + '@commitlint/config-conventional@17.8.1': + resolution: {integrity: sha512-NxCOHx1kgneig3VLauWJcDWS40DVjg7nKOpBEEK9E5fjJpQqLCilcnKkIIjdBH98kEO1q3NpE5NSrZ2kl/QGJg==} + engines: {node: '>=v14'} + '@fingerprintjs/changesets-changelog-format@0.2.0': resolution: {integrity: sha512-1jI+J1r8OKUtjlFfQW4bmQ8u4E1097zPaKw5fUCgAcahLPgwW4Ae+Keoc253CSyyaKgTu2v/wniUGchmPaXAsg==} + '@fingerprintjs/commit-lint-dx-team@0.1.0': + resolution: {integrity: sha512-MSYn4bRt9Iyob8hB3Oc/IXz3O8DA2E3ccqlG46pYYhdF090W6u9BNa9uCaVg611FUzqMU41+vs8ztXLkICbKkw==} + '@manypkg/find-root@1.1.0': resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} @@ -114,6 +124,9 @@ packages: argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + array-ify@1.0.0: + resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} + array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -133,6 +146,13 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} + compare-func@2.0.0: + resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + + conventional-changelog-conventionalcommits@6.1.0: + resolution: {integrity: sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==} + engines: {node: '>=14'} + cross-spawn@5.1.0: resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} @@ -144,6 +164,10 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} + dot-prop@5.3.0: + resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} + engines: {node: '>=8'} + enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} @@ -217,6 +241,10 @@ packages: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} + is-obj@2.0.0: + resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} + engines: {node: '>=8'} + is-subdir@1.2.0: resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==} engines: {node: '>=4'} @@ -545,10 +573,18 @@ snapshots: human-id: 1.0.2 prettier: 2.8.8 + '@commitlint/config-conventional@17.8.1': + dependencies: + conventional-changelog-conventionalcommits: 6.1.0 + '@fingerprintjs/changesets-changelog-format@0.2.0': dependencies: '@changesets/types': 6.0.0 + '@fingerprintjs/commit-lint-dx-team@0.1.0': + dependencies: + '@commitlint/config-conventional': 17.8.1 + '@manypkg/find-root@1.1.0': dependencies: '@babel/runtime': 7.25.6 @@ -589,6 +625,8 @@ snapshots: dependencies: sprintf-js: 1.0.3 + array-ify@1.0.0: {} + array-union@2.1.0: {} better-path-resolve@1.0.0: @@ -603,6 +641,15 @@ snapshots: ci-info@3.9.0: {} + compare-func@2.0.0: + dependencies: + array-ify: 1.0.0 + dot-prop: 5.3.0 + + conventional-changelog-conventionalcommits@6.1.0: + dependencies: + compare-func: 2.0.0 + cross-spawn@5.1.0: dependencies: lru-cache: 4.1.5 @@ -615,6 +662,10 @@ snapshots: dependencies: path-type: 4.0.0 + dot-prop@5.3.0: + dependencies: + is-obj: 2.0.0 + enquirer@2.4.1: dependencies: ansi-colors: 4.1.3 @@ -694,6 +745,8 @@ snapshots: is-number@7.0.0: {} + is-obj@2.0.0: {} + is-subdir@1.2.0: dependencies: better-path-resolve: 1.0.0 From 662fd8ccf0073e7211f463af6be7c9b5eb021bc6 Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Thu, 14 Nov 2024 19:34:33 +0100 Subject: [PATCH 3/4] chore: enter to the prerelease mode --- .changeset/pre.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/pre.json diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000..a4b92f9 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,8 @@ +{ + "mode": "pre", + "tag": "develop", + "initialVersions": { + "fingerprint-pro-server-api-java-sdk": "6.2.0" + }, + "changesets": [] +} From 7815e782930c118893b6311ae18f5569e5a76ebb Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Thu, 14 Nov 2024 19:42:02 +0100 Subject: [PATCH 4/4] chore: revert wrong model from the schema --- .changeset/deep-sides-grow.md | 5 - README.md | 1 - docs/FactoryReset.md | 2 +- docs/RelatedVisitor.md | 13 --- docs/WebhookFactoryReset.md | 2 +- res/fingerprint-server-api.yaml | 15 +-- .../com/fingerprint/model/FactoryReset.java | 4 +- .../com/fingerprint/model/RelatedVisitor.java | 97 ------------------- .../model/WebhookFactoryReset.java | 4 +- 9 files changed, 8 insertions(+), 135 deletions(-) delete mode 100644 .changeset/deep-sides-grow.md delete mode 100644 docs/RelatedVisitor.md delete mode 100644 sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java diff --git a/.changeset/deep-sides-grow.md b/.changeset/deep-sides-grow.md deleted file mode 100644 index 0dbc532..0000000 --- a/.changeset/deep-sides-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'fingerprint-pro-server-api-java-sdk': patch ---- - -Fix errors examples `403_feature_not_enabled` and `403_subscription_not_active`. \ No newline at end of file diff --git a/README.md b/README.md index f797288..d11ad8b 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/docs/FactoryReset.md b/docs/FactoryReset.md index d684683..96b0512 100644 --- a/docs/FactoryReset.md +++ b/docs/FactoryReset.md @@ -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. | | diff --git a/docs/RelatedVisitor.md b/docs/RelatedVisitor.md deleted file mode 100644 index c24f4fc..0000000 --- a/docs/RelatedVisitor.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# RelatedVisitor - - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**visitorId** | **String** | Visitor ID of a browser that originates from the same mobile device as the input visitor ID. | | - - - diff --git a/docs/WebhookFactoryReset.md b/docs/WebhookFactoryReset.md index df083a9..415d60c 100644 --- a/docs/WebhookFactoryReset.md +++ b/docs/WebhookFactoryReset.md @@ -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] | diff --git a/res/fingerprint-server-api.yaml b/res/fingerprint-server-api.yaml index fb9cb34..fc8d487 100644 --- a/res/fingerprint-server-api.yaml +++ b/res/fingerprint-server-api.yaml @@ -1400,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 @@ -2022,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 @@ -2290,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. diff --git a/sdk/src/main/java/com/fingerprint/model/FactoryReset.java b/sdk/src/main/java/com/fingerprint/model/FactoryReset.java index 8fcf3b4..71e1156 100644 --- a/sdk/src/main/java/com/fingerprint/model/FactoryReset.java +++ b/sdk/src/main/java/com/fingerprint/model/FactoryReset.java @@ -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) diff --git a/sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java b/sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java deleted file mode 100644 index c809e0a..0000000 --- a/sdk/src/main/java/com/fingerprint/model/RelatedVisitor.java +++ /dev/null @@ -1,97 +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; - -/** - * RelatedVisitor - */ - - -@JsonPropertyOrder({ - RelatedVisitor.JSON_PROPERTY_VISITOR_ID -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0") -public class RelatedVisitor { - public static final String JSON_PROPERTY_VISITOR_ID = "visitorId"; - private String visitorId; - - public RelatedVisitor() { - } - - public RelatedVisitor visitorId(String visitorId) { - this.visitorId = visitorId; - return this; - } - - /** - * Visitor ID of a browser that originates from the same mobile device as the input visitor ID. - * @return visitorId - **/ - @jakarta.annotation.Nonnull - @Schema(required = true, description = "Visitor ID of a browser that originates from the same mobile device as the input visitor ID.") - @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; - } - - - /** - * Return true if this RelatedVisitor object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RelatedVisitor relatedVisitor = (RelatedVisitor) o; - return Objects.equals(this.visitorId, relatedVisitor.visitorId); - } - - @Override - public int hashCode() { - return Objects.hash(visitorId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class RelatedVisitor {\n"); - sb.append(" visitorId: ").append(toIndentedString(visitorId)).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 index 6b83180..f8ecca3 100644 --- a/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java +++ b/sdk/src/main/java/com/fingerprint/model/WebhookFactoryReset.java @@ -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)