diff --git a/.changeset/pre.json b/.changeset/pre.json index fdbaf79..a7f0e3a 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -4,11 +4,5 @@ "initialVersions": { "fingerprint-pro-server-api-go-sdk": "6.1.0" }, - "changesets": [ - "angry-crabs-roll", - "cuddly-wasps-try", - "sour-moose-exist", - "tough-roses-grow", - "wild-oranges-feel" - ] + "changesets": [] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ed4ac1..c199527 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,35 +1,18 @@ # Fingerprint Pro Server Go SDK -## 7.0.0-test.0 - -### Major Changes - -- make `tag` field optional for Webhook ([406a373](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/406a3738e7f280a29bb691257c5b76ef936b387a)) -- Change `ModelMap` to contain any possible property, not just strings ([f4a0749](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/f4a07499a69e758690313380a0138052ead5f327)) -- Rename errors models related to visits: - - rename `ErrorVisitsDelete400Response` to `ErrorVisitor400Response` - - rename `ErrorVisitsDelete404ResponseError` to `ErrorVisitor404ResponseError` - - rename `ErrorVisitsDelete404Response` to `ErrorVisitor404Response` ([fe7e9f7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/fe7e9f74c82347043e41e7755a97790e77ed35e2)) - -### Minor Changes - -- **events**: Introduce `PUT` endpoint for `/events` API ([e9df386](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e9df386d101da407e6bf16b59bca4f47d5690246)) - -### Patch Changes - -- Remove unused `Model` struct ([d398848](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/d39884830b68ebe5eb8a600b14bb862ac36a949d)) - ## [6.1.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v6.0.0...v6.1.0) (2024-07-30) + ### Features -- add velocity, remote control and developer tools smart signals ([a66f05c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a66f05cc3b743f3ddf3467bc79afaa9311cf2073)) +* add velocity, remote control and developer tools smart signals ([a66f05c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a66f05cc3b743f3ddf3467bc79afaa9311cf2073)) ## [6.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v5.0.2...v6.0.0) (2024-06-27) + ### ⚠ BREAKING CHANGES -- it is now easier to check for too many requests error (429): +* it is now easier to check for too many requests error (429): ```go response, httpRes, err := client.FingerprintApi.GetVisits(auth, visitorId, &opts) @@ -45,307 +28,349 @@ } } ``` - -- rename `GenericSwaggerError` to `ApiError` -- rename `ManyRequestsResponse` to `TooManyRequestsResponse` -- go 1.20 has reached EOL. Minimal supported version of go is now 1.21 -- right now we use native `errors` package for joining errors, meaning that multiple error messages are now joined by new line rather than colon (:) -- optional pkg is no longer used in this SDK. Please pass native GO types instead. +* rename `GenericSwaggerError` to `ApiError` +* rename `ManyRequestsResponse` to `TooManyRequestsResponse` +* go 1.20 has reached EOL. Minimal supported version of go is now 1.21 +* right now we use native `errors` package for joining errors, meaning that multiple error messages are now joined by new line rather than colon (:) +* optional pkg is no longer used in this SDK. Please pass native GO types instead. ### Features -- add `IsValidWebhookSignature` function for validating webhook signature ([a5bf13d](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a5bf13d62171ce06ec031e26a33d27d3f0b851bb)) -- add delete API ([0e077c3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0e077c3546c4a29d4ca8ae42da2eff6c587fee6f)) -- add os Mismatch ([30b0215](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/30b0215128f488db116ce29e8c531cbb8718eafb)) -- add revision string field to confidence object ([8a2f270](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8a2f270a3cc057dec78bf7b4aaa36522ca960d9c)) -- drop support for go 1.20 ([46953bc](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/46953bc345e5d6c8acdb215c2b665b54c91fe5a8)) -- drop usage of `github.com/pkg/errors` ([186d30a](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/186d30a6ae0135a02f6abd20e0746ee59bee024a)) -- introduce `TooManyRequestsError` ([85f3307](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/85f3307c19991a0cb716a6c8f313ed7fa83bccf9)) -- provide `HttpResponse()` in `ApiError` ([acd1274](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/acd1274a1e7b157f0b3dad1ff1d9b53a2730b4e6)) -- re-write request handling logic ([14b7e7f](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/14b7e7f2f26280e5ffe59269273995b17ab19126)) -- remove usage of github.com/antihax/optional package ([62db97f](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/62db97f9373b7bf929cee3f8b5fccb50d8b82bd8)) -- rename `GenericSwaggerError` to `ApiError` ([259b7b4](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/259b7b417c7dcab31021e67aaa34e8daa3e41d82)) -- rename `ManyRequestsResponse` to `TooManyRequestsResponse` ([3f66641](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3f66641c610d34db4cd0657833ff2696948f2f3b)) +* add `IsValidWebhookSignature` function for validating webhook signature ([a5bf13d](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a5bf13d62171ce06ec031e26a33d27d3f0b851bb)) +* add delete API ([0e077c3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0e077c3546c4a29d4ca8ae42da2eff6c587fee6f)) +* add os Mismatch ([30b0215](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/30b0215128f488db116ce29e8c531cbb8718eafb)) +* add revision string field to confidence object ([8a2f270](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8a2f270a3cc057dec78bf7b4aaa36522ca960d9c)) +* drop support for go 1.20 ([46953bc](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/46953bc345e5d6c8acdb215c2b665b54c91fe5a8)) +* drop usage of `github.com/pkg/errors` ([186d30a](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/186d30a6ae0135a02f6abd20e0746ee59bee024a)) +* introduce `TooManyRequestsError` ([85f3307](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/85f3307c19991a0cb716a6c8f313ed7fa83bccf9)) +* provide `HttpResponse()` in `ApiError` ([acd1274](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/acd1274a1e7b157f0b3dad1ff1d9b53a2730b4e6)) +* re-write request handling logic ([14b7e7f](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/14b7e7f2f26280e5ffe59269273995b17ab19126)) +* remove usage of github.com/antihax/optional package ([62db97f](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/62db97f9373b7bf929cee3f8b5fccb50d8b82bd8)) +* rename `GenericSwaggerError` to `ApiError` ([259b7b4](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/259b7b417c7dcab31021e67aaa34e8daa3e41d82)) +* rename `ManyRequestsResponse` to `TooManyRequestsResponse` ([3f66641](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3f66641c610d34db4cd0657833ff2696948f2f3b)) + ### Bug Fixes -- allow passing `nil` configuration to `NewAPIClient` ([8234fbe](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8234fbef2bd91cbc4b62ac7061b5c907759e9527)) -- move test related dependencies to test module ([298275d](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/298275d75d13298745304916425539f905b0225f)) -- use correct error type for `incognito`, `rawDeviceAttributes` and `tampering` in the `GetEvent` method ([c29aea9](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/c29aea98fb7f814f19b46225a5656318fc4f81fd)) +* allow passing `nil` configuration to `NewAPIClient` ([8234fbe](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8234fbef2bd91cbc4b62ac7061b5c907759e9527)) +* move test related dependencies to test module ([298275d](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/298275d75d13298745304916425539f905b0225f)) +* use correct error type for `incognito`, `rawDeviceAttributes` and `tampering` in the `GetEvent` method ([c29aea9](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/c29aea98fb7f814f19b46225a5656318fc4f81fd)) + ### Reverts -- Revert "chore(release): 6.0.0-test.1 [skip ci]" ([9916b45](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/9916b459c455951a6247636a9bbccc7cecc3b285)) -- "chore(release): 6.0.0-test.1 [skip ci]" ([84ec138](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/84ec138b42fe10a7ffe649c031692da68e2cfaff)) +* Revert "chore(release): 6.0.0-test.1 [skip ci]" ([9916b45](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/9916b459c455951a6247636a9bbccc7cecc3b285)) +* "chore(release): 6.0.0-test.1 [skip ci]" ([84ec138](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/84ec138b42fe10a7ffe649c031692da68e2cfaff)) ## [5.0.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v5.0.1...v5.0.2) (2024-03-28) + ### Build System -- **deps:** bump google.golang.org/protobuf from 1.32.0 to 1.33.0 ([b749ff0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b749ff0c678b761c9994290cdf1937033a81cabb)) -- **deps:** bump google.golang.org/protobuf in /example ([2fd6964](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2fd6964c4712d5ade810f96ad91ed0666df784d3)) +* **deps:** bump google.golang.org/protobuf from 1.32.0 to 1.33.0 ([b749ff0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b749ff0c678b761c9994290cdf1937033a81cabb)) +* **deps:** bump google.golang.org/protobuf in /example ([2fd6964](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2fd6964c4712d5ade810f96ad91ed0666df784d3)) ## [5.0.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v5.0.0...v5.0.1) (2024-02-27) + ### Bug Fixes -- fix version references after a major release ([df759d6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/df759d6f10b10903535dcca4b2ebdf20210d8bf7)) +* fix version references after a major release ([df759d6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/df759d6f10b10903535dcca4b2ebdf20210d8bf7)) + ### Documentation -- **README:** update readme requirements section ([4c4776b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/4c4776b0c85bd4cf6392b72058439f47a6925598)) +* **README:** update readme requirements section ([4c4776b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/4c4776b0c85bd4cf6392b72058439f47a6925598)) + ### Build System -- **deps:** bump go version to 1.20 ([469f36a](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/469f36a6c25653f6139ca4db06296a1e5dc31980)) -- **deps:** dump go to 1.20 in examples ([f88ae65](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/f88ae65521c451d5d76b108a553480e7072bd91b)) -- **deps:** update dependencies to latest versions ([ae0189b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae0189b4b0fa7b9d3a8250b744b5cc55f05fdc7a)) -- **deps:** update example project dependencies ([6944d46](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/6944d4662b61a506325c3c5fe1ab7673545d9959)) -- **deps:** update project dependencies to latest versions ([b2332a6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b2332a6d92e1e4fdf0192e6b5160c80462dcb27c)) +* **deps:** bump go version to 1.20 ([469f36a](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/469f36a6c25653f6139ca4db06296a1e5dc31980)) +* **deps:** dump go to 1.20 in examples ([f88ae65](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/f88ae65521c451d5d76b108a553480e7072bd91b)) +* **deps:** update dependencies to latest versions ([ae0189b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae0189b4b0fa7b9d3a8250b744b5cc55f05fdc7a)) +* **deps:** update example project dependencies ([6944d46](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/6944d4662b61a506325c3c5fe1ab7673545d9959)) +* **deps:** update project dependencies to latest versions ([b2332a6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b2332a6d92e1e4fdf0192e6b5160c80462dcb27c)) ## [5.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v4.1.0...v5.0.0) (2024-02-27) + ### ⚠ BREAKING CHANGES -- change models for the most smart signals -- make identification field `confidence` optional -- deprecated `ipLocation` field uses `DeprecatedIpLocation` model +* change models for the most smart signals +* make identification field `confidence` optional +* deprecated `ipLocation` field uses `DeprecatedIpLocation` model ### Features -- add `linkedId` field to the `BotdResult` type ([f3dec04](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/f3dec04387eb9f8c1efd889cb2ab28c7822479b2)) -- add `SuspectScore` smart signal support ([a6fe1a5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a6fe1a5090109f97514ad2d3db7263080b19ad9b)) -- add missed errors structures ([903bf6b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/903bf6b8fd4a931c80ebae1998ad78604343be06)) -- fix `ipLocation` deprecation ([ec59bc6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ec59bc6e581f623c6675403d9bf215a811f07a73)) -- make identification field `tag` required ([b6e841e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b6e841e7ef77830f281e2b73e53b36711d86c4d4)) -- update `originCountry` field to the`vpn` signal ([6ce55a7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/6ce55a7a6c65c7ec02a7dbb832694393cf7e8b57)) -- use shared structures for webhooks and event ([01c1132](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/01c11328af7d5cc10dfa0c01047d6318baf0a24c)) +* add `linkedId` field to the `BotdResult` type ([f3dec04](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/f3dec04387eb9f8c1efd889cb2ab28c7822479b2)) +* add `SuspectScore` smart signal support ([a6fe1a5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a6fe1a5090109f97514ad2d3db7263080b19ad9b)) +* add missed errors structures ([903bf6b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/903bf6b8fd4a931c80ebae1998ad78604343be06)) +* fix `ipLocation` deprecation ([ec59bc6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ec59bc6e581f623c6675403d9bf215a811f07a73)) +* make identification field `tag` required ([b6e841e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b6e841e7ef77830f281e2b73e53b36711d86c4d4)) +* update `originCountry` field to the`vpn` signal ([6ce55a7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/6ce55a7a6c65c7ec02a7dbb832694393cf7e8b57)) +* use shared structures for webhooks and event ([01c1132](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/01c11328af7d5cc10dfa0c01047d6318baf0a24c)) + ### Bug Fixes -- make fields required according to real API response ([a1c7578](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a1c757859632107bec1e5bd6212185f1d462c417)) +* make fields required according to real API response ([a1c7578](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a1c757859632107bec1e5bd6212185f1d462c417)) ## [4.1.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v4.0.0...v4.1.0) (2024-01-31) + ### Features -- add method for decoding sealed results ([5ed5c5b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/5ed5c5bb7222727f4816e4e7a4a7cc62b8a055de)) +* add method for decoding sealed results ([5ed5c5b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/5ed5c5bb7222727f4816e4e7a4a7cc62b8a055de)) + ### Bug Fixes -- update module to v4 ([be9c14e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/be9c14ecfa6ed869f03cac0c4a4de2d641af5217)) +* update module to v4 ([be9c14e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/be9c14ecfa6ed869f03cac0c4a4de2d641af5217)) ## [4.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.5.0...v4.0.0) (2024-01-12) + ### ⚠ BREAKING CHANGES -- `IpInfo` field `DataCenter` renamed to `Datacenter` +* `IpInfo` field `DataCenter` renamed to `Datacenter` ### Features -- deprecate `IPLocation` ([3d142eb](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3d142eb82f9bbd9267e5b068fbd30f69e8606dd0)) -- use `datacenter` instead of the wrong `dataCenter` ([c1d0c01](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/c1d0c0134b984242bb6c026f9c3b10e8582a7a2f)) +* deprecate `IPLocation` ([3d142eb](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3d142eb82f9bbd9267e5b068fbd30f69e8606dd0)) +* use `datacenter` instead of the wrong `dataCenter` ([c1d0c01](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/c1d0c0134b984242bb6c026f9c3b10e8582a7a2f)) ## [3.5.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.4.2...v3.5.0) (2023-11-27) + ### Features -- add `highActivity` and `locationSpoofing` signals, support `originTimezone` for `vpn` signal ([81cc2ab](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/81cc2ab49b7910dc6752b468fa56224f0fd810ab)) +* add `highActivity` and `locationSpoofing` signals, support `originTimezone` for `vpn` signal ([81cc2ab](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/81cc2ab49b7910dc6752b468fa56224f0fd810ab)) + ### Documentation -- **README:** mention license ([61d5a6a](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/61d5a6a189d20a882acbecbcc8e20b07d39cc464)) +* **README:** mention license ([61d5a6a](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/61d5a6a189d20a882acbecbcc8e20b07d39cc464)) ## [3.4.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.4.1...v3.4.2) (2023-09-20) + ### Bug Fixes -- update OpenAPI Schema with `asn` and `dataCenter` signals ([0164fe0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0164fe009898afb42068fc28f4f7084a72dc27de)) -- update OpenAPI Schema with `auxiliaryMobile` method for VPN signal ([193b787](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/193b787ae6378c71bc6da82842afdd53af972894)) +* update OpenAPI Schema with `asn` and `dataCenter` signals ([0164fe0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0164fe009898afb42068fc28f4f7084a72dc27de)) +* update OpenAPI Schema with `auxiliaryMobile` method for VPN signal ([193b787](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/193b787ae6378c71bc6da82842afdd53af972894)) ## [3.4.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.4.0...v3.4.1) (2023-08-25) + ### Build System -- **deps:** bump golang.org/x/net ([4b21e0b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/4b21e0bae4ceb181310024f510463d4b4c2c0339)) +* **deps:** bump golang.org/x/net ([4b21e0b](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/4b21e0bae4ceb181310024f510463d4b4c2c0339)) ## [3.4.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.3.0...v3.4.0) (2023-07-31) + ### Features -- add raw device attributes ([17cac0f](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/17cac0fd1fa3bd08ebe472bd31a143d814f4e046)) +* add raw device attributes ([17cac0f](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/17cac0fd1fa3bd08ebe472bd31a143d814f4e046)) ## [3.3.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.2.0...v3.3.0) (2023-07-14) + ### Features -- add smart signals support ([17e5854](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/17e5854d90a40641379b0b77839f2d3f47fbc763)) +* add smart signals support ([17e5854](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/17e5854d90a40641379b0b77839f2d3f47fbc763)) ## [3.2.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.1.0...v3.2.0) (2023-06-06) + ### Features -- update schema with correct `IpLocation` format and doc updates ([e3b5f78](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e3b5f789b85863bcc81d342878331c870b58f44d)) +* update schema with correct `IpLocation` format and doc updates ([e3b5f78](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e3b5f789b85863bcc81d342878331c870b58f44d)) + ### Bug Fixes -- fix backtick problem in comments and documentation ([0063c75](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0063c751b61c8d3990e2e6fbe5c27fd13d3c299f)) +* fix backtick problem in comments and documentation ([0063c75](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0063c751b61c8d3990e2e6fbe5c27fd13d3c299f)) ## [3.1.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.0.1...v3.1.0) (2023-05-11) + ### Features -- update schema and add more signals ([8a7b0c3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8a7b0c3705bd3ae310b2278048868699e3137b99)) +* update schema and add more signals ([8a7b0c3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8a7b0c3705bd3ae310b2278048868699e3137b99)) + ### Bug Fixes -- update schema with correct Webhook Signals description ([54f2085](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/54f2085449eb172ca8db511f2ad62051640101fd)) -- update schema, add test for undescribed fields case ([2d071a9](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2d071a9adfc46dd71381368e8f1e554e4f5e9e94)) +* update schema with correct Webhook Signals description ([54f2085](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/54f2085449eb172ca8db511f2ad62051640101fd)) +* update schema, add test for undescribed fields case ([2d071a9](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2d071a9adfc46dd71381368e8f1e554e4f5e9e94)) ## [3.0.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v3.0.0...v3.0.1) (2023-01-30) + ### Bug Fixes -- bump version in module name to v3 ([3988bf6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3988bf62a50aaa48acaa27b58e12997a021a48d0)) +* bump version in module name to v3 ([3988bf6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3988bf62a50aaa48acaa27b58e12997a021a48d0)) ## [3.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v2.0.0...v3.0.0) (2023-01-30) + ### ⚠ BREAKING CHANGES -- changed `before` parameter type from `int32` to `int64` +* changed `before` parameter type from `int32` to `int64` ### Features -- change `before` parameter type in /visits endpoint ([436f3bf](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/436f3bfa14bbd6a4f31eaecc477324b5c0023352)) +* change `before` parameter type in /visits endpoint ([436f3bf](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/436f3bfa14bbd6a4f31eaecc477324b5c0023352)) + ### Documentation -- **README:** fix invalid install command ([fbb1769](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/fbb1769287dc83b89848455df35943fde8567b70)) +* **README:** fix invalid install command ([fbb1769](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/fbb1769287dc83b89848455df35943fde8567b70)) ## [2.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.2.0...v2.0.0) (2023-01-23) + ### ⚠ BREAKING CHANGES -- `StSeenAt` type renamed to `SeenAt` +* `StSeenAt` type renamed to `SeenAt` ### Features -- generate new source file with updated swagger ([1d94e69](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1d94e698850a2f753b7f1398cdd667a6ae5aea10)) -- introduce identification error into EventsResponse ([925334e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/925334e52b4046b97d6b814f734b81ff2086fee7)) -- store RetryAfter in TooManyRequestsResponse ([8239e3c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8239e3cae5e6246440f4ab76fcd605fb78aa50ab)) -- Update list of examples in generate.go (new errors) ([a328ad6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a328ad6defbeff6cedc6769b87595fb18f56ba9e)) -- update module name to github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v2 ([aec4af5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/aec4af5bd7ec823dabbbf10ef77203c7881079a0)) +* generate new source file with updated swagger ([1d94e69](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1d94e698850a2f753b7f1398cdd667a6ae5aea10)) +* introduce identification error into EventsResponse ([925334e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/925334e52b4046b97d6b814f734b81ff2086fee7)) +* store RetryAfter in TooManyRequestsResponse ([8239e3c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8239e3cae5e6246440f4ab76fcd605fb78aa50ab)) +* Update list of examples in generate.go (new errors) ([a328ad6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a328ad6defbeff6cedc6769b87595fb18f56ba9e)) +* update module name to github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v2 ([aec4af5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/aec4af5bd7ec823dabbbf10ef77203c7881079a0)) + ### Documentation -- **README:** update referenced module name ([78f5dac](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/78f5dac76507a993ce4f553ece7b4ceb5c39d67f)) +* **README:** update referenced module name ([78f5dac](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/78f5dac76507a993ce4f553ece7b4ceb5c39d67f)) ## [2.0.0-test.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v2.0.0-test.2...v2.0.0-test.3) (2023-01-23) + ### Features -- update module name to github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v2 ([aec4af5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/aec4af5bd7ec823dabbbf10ef77203c7881079a0)) +* update module name to github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v2 ([aec4af5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/aec4af5bd7ec823dabbbf10ef77203c7881079a0)) ## [2.0.0-test.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v2.0.0-test.1...v2.0.0-test.2) (2023-01-23) + ### Features -- introduce identification error into EventsResponse ([925334e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/925334e52b4046b97d6b814f734b81ff2086fee7)) -- store RetryAfter in TooManyRequestsResponse ([8239e3c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8239e3cae5e6246440f4ab76fcd605fb78aa50ab)) +* introduce identification error into EventsResponse ([925334e](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/925334e52b4046b97d6b814f734b81ff2086fee7)) +* store RetryAfter in TooManyRequestsResponse ([8239e3c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/8239e3cae5e6246440f4ab76fcd605fb78aa50ab)) ## [2.0.0-test.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.2.0...v2.0.0-test.1) (2023-01-18) + ### ⚠ BREAKING CHANGES -- `StSeenAt` type renamed to `SeenAt` +* `StSeenAt` type renamed to `SeenAt` ### Features -- generate new source file with updated swagger ([1d94e69](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1d94e698850a2f753b7f1398cdd667a6ae5aea10)) -- Update list of examples in generate.go (new errors) ([a328ad6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a328ad6defbeff6cedc6769b87595fb18f56ba9e)) +* generate new source file with updated swagger ([1d94e69](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1d94e698850a2f753b7f1398cdd667a6ae5aea10)) +* Update list of examples in generate.go (new errors) ([a328ad6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a328ad6defbeff6cedc6769b87595fb18f56ba9e)) ## [1.2.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.1.0...v1.2.0) (2022-10-24) + ### Features -- update schema to support url field for botd result ([5e0ec6c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/5e0ec6c9c65ec79e20dfbb062c6a7471215852cd)) +* update schema to support url field for botd result ([5e0ec6c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/5e0ec6c9c65ec79e20dfbb062c6a7471215852cd)) + ### Documentation -- **README:** add different region to code example ([3986d6d](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3986d6df1306666bb03812be05c408ed91ecf0d9)) -- **README:** add region section ([a2342cd](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a2342cdc0451982ee5c33bd46704d193a263ddd1)) +* **README:** add different region to code example ([3986d6d](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/3986d6df1306666bb03812be05c408ed91ecf0d9)) +* **README:** add region section ([a2342cd](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a2342cdc0451982ee5c33bd46704d193a263ddd1)) ## [1.1.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.2...v1.1.0) (2022-09-19) + ### Features -- introduce /event/{request_id} endpoint ([74a39b6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/74a39b609b64ef2f9b7eae76972d7e4532b1867b)) +* introduce /event/{request_id} endpoint ([74a39b6](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/74a39b609b64ef2f9b7eae76972d7e4532b1867b)) ## [1.0.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.1...v1.0.2) (2022-09-01) + ### Documentation -- **README:** update template ([0bb3917](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0bb391711ec3625af7c8ffb2de6bdc525758fbf1)) +* **README:** update template ([0bb3917](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/0bb391711ec3625af7c8ffb2de6bdc525758fbf1)) ## [1.0.1](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0...v1.0.1) (2022-09-01) + ### Documentation -- **README:** remove WIP label ([5d910ae](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/5d910ae9a0d43e19647d5982eefec536502f616f)) +* **README:** remove WIP label ([5d910ae](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/5d910ae9a0d43e19647d5982eefec536502f616f)) ## 1.0.0 (2022-09-01) + ### Features -- add "integrationsInfo" query param ([b326815](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b326815f69b92c3c1d2d691a99c8483753ec6e49)) -- create Go SDK ([a5e03b5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a5e03b5b1ad5e58441d88faf992f5f6e08033d55)) -- support passing region ([1ba2e94](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1ba2e941ae8fe65abd706f7e5506953b03cde9ab)) +* add "integrationsInfo" query param ([b326815](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b326815f69b92c3c1d2d691a99c8483753ec6e49)) +* create Go SDK ([a5e03b5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a5e03b5b1ad5e58441d88faf992f5f6e08033d55)) +* support passing region ([1ba2e94](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1ba2e941ae8fe65abd706f7e5506953b03cde9ab)) + ### Bug Fixes -- send API key only in headers ([92a4f88](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/92a4f886b6876d878d9c7ca61f6b4e3af34445d6)) -- support nil values for time.Time ([459ba4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/459ba4c8dde6c6e1428fdeb9b0c2975de1a2f1d6)) -- use config.json as single source of truth ([519f0d7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/519f0d7b0c7c84fc164c4cf71440a83c87ab6239)) +* send API key only in headers ([92a4f88](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/92a4f886b6876d878d9c7ca61f6b4e3af34445d6)) +* support nil values for time.Time ([459ba4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/459ba4c8dde6c6e1428fdeb9b0c2975de1a2f1d6)) +* use config.json as single source of truth ([519f0d7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/519f0d7b0c7c84fc164c4cf71440a83c87ab6239)) + ### Documentation -- **README:** fix installation cmd typo ([2017b4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2017b4c890cf7d0cb6b9dd1df5a374a8af2e96a4)) -- **README:** remove unnecessary import from example ([e6759e7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e6759e71e712cff1508fbfc88a941e68244bbd66)) -- **README:** update readme ([ae4e0ea](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae4e0ea67c95598f3771cd1e7c89189bab17793e)) +* **README:** fix installation cmd typo ([2017b4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2017b4c890cf7d0cb6b9dd1df5a374a8af2e96a4)) +* **README:** remove unnecessary import from example ([e6759e7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e6759e71e712cff1508fbfc88a941e68244bbd66)) +* **README:** update readme ([ae4e0ea](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae4e0ea67c95598f3771cd1e7c89189bab17793e)) ## [1.0.0-test.5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.4...v1.0.0-test.5) (2022-08-29) + ### Bug Fixes -- send API key only in headers ([92a4f88](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/92a4f886b6876d878d9c7ca61f6b4e3af34445d6)) -- support nil values for time.Time ([459ba4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/459ba4c8dde6c6e1428fdeb9b0c2975de1a2f1d6)) +* send API key only in headers ([92a4f88](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/92a4f886b6876d878d9c7ca61f6b4e3af34445d6)) +* support nil values for time.Time ([459ba4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/459ba4c8dde6c6e1428fdeb9b0c2975de1a2f1d6)) + ### Documentation -- **README:** fix installation cmd typo ([2017b4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2017b4c890cf7d0cb6b9dd1df5a374a8af2e96a4)) -- **README:** remove unnecessary import from example ([e6759e7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e6759e71e712cff1508fbfc88a941e68244bbd66)) +* **README:** fix installation cmd typo ([2017b4c](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/2017b4c890cf7d0cb6b9dd1df5a374a8af2e96a4)) +* **README:** remove unnecessary import from example ([e6759e7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/e6759e71e712cff1508fbfc88a941e68244bbd66)) ## [1.0.0-test.4](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.3...v1.0.0-test.4) (2022-08-25) + ### Documentation -- **README:** update readme ([ae4e0ea](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae4e0ea67c95598f3771cd1e7c89189bab17793e)) +* **README:** update readme ([ae4e0ea](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/ae4e0ea67c95598f3771cd1e7c89189bab17793e)) ## [1.0.0-test.3](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.2...v1.0.0-test.3) (2022-08-24) + ### Bug Fixes -- use config.json as single source of truth ([519f0d7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/519f0d7b0c7c84fc164c4cf71440a83c87ab6239)) +* use config.json as single source of truth ([519f0d7](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/519f0d7b0c7c84fc164c4cf71440a83c87ab6239)) ## [1.0.0-test.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/compare/v1.0.0-test.1...v1.0.0-test.2) (2022-08-19) + ### Features -- add "integrationsInfo" query param ([b326815](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b326815f69b92c3c1d2d691a99c8483753ec6e49)) +* add "integrationsInfo" query param ([b326815](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/b326815f69b92c3c1d2d691a99c8483753ec6e49)) ## 1.0.0-test.1 (2022-08-19) + ### Features -- create Go SDK ([a5e03b5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a5e03b5b1ad5e58441d88faf992f5f6e08033d55)) -- support passing region ([1ba2e94](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1ba2e941ae8fe65abd706f7e5506953b03cde9ab)) +* create Go SDK ([a5e03b5](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/a5e03b5b1ad5e58441d88faf992f5f6e08033d55)) +* support passing region ([1ba2e94](https://github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/commit/1ba2e941ae8fe65abd706f7e5506953b03cde9ab)) diff --git a/README.md b/README.md index 151817f..afbd5c5 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Fingerprint Pro Server API allows you to get information about visitors and abou This Go package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 -- Package version: 7.0.0-test.0 +- Package version: 6.1.0 - Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen ## Requirements @@ -35,7 +35,7 @@ We keep the [Go support policy](https://go.dev/doc/devel/release) and support th 1. Get the package from GitHub: ```shell -go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk +go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk ``` 2. Import and use the library: @@ -46,7 +46,7 @@ package main import ( "context" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "log" ) @@ -97,7 +97,7 @@ If your subscription is in region other than US, you need to change the region i ```go import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" ) func main() { @@ -112,7 +112,7 @@ func main() { This SDK provides utility methods for decoding [sealed results](https://dev.fingerprint.com/docs/sealed-client-results). Install the sealed results dependency as below: ```shell -go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed +go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed ``` Then you can use below code to unseal results: ```go @@ -121,7 +121,7 @@ package main import ( "encoding/base64" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed" "os" ) @@ -163,7 +163,7 @@ func main() { This SDK provides utility method for verifing the HMAC signature of the incoming [webhook](https://dev.fingerprint.com/docs/webhooks) request. Install the webhook dependency as below: ```shell -go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook +go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook ``` Then you can use below code to verify signature: @@ -171,7 +171,7 @@ Then you can use below code to verify signature: package main import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook" ) func main() { diff --git a/changeset-publish.sh b/changeset-publish.sh index fd54edb..16a23e1 100644 --- a/changeset-publish.sh +++ b/changeset-publish.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -pnpm exec changeset publish && go run generate.go +go run generate.go && pnpm exec changeset publish diff --git a/config.json b/config.json index ee30ab6..b373e4b 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "packageVersion": "7.0.0-test.0", + "packageVersion": "6.1.0", "gitRepoId": "fingerprint-pro-server-api-go-sdk", "gitUserId": "fingerprintjs", "packageName": "sdk", diff --git a/example/deleteVisit.go b/example/deleteVisit.go index a9db57a..ce3c7db 100644 --- a/example/deleteVisit.go +++ b/example/deleteVisit.go @@ -3,7 +3,7 @@ package main import ( "context" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "log" "os" diff --git a/example/getEvent.go b/example/getEvent.go index d5e85c7..6ae0b37 100644 --- a/example/getEvent.go +++ b/example/getEvent.go @@ -7,7 +7,7 @@ import ( "log" "os" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/joho/godotenv" ) diff --git a/example/getVisits.go b/example/getVisits.go index 8767eda..d800d37 100644 --- a/example/getVisits.go +++ b/example/getVisits.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "log" "os" diff --git a/example/sealedResults.go b/example/sealedResults.go index e6b1f2a..7c35a2e 100644 --- a/example/sealedResults.go +++ b/example/sealedResults.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "encoding/json" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed" "github.com/joho/godotenv" "log" "os" diff --git a/example/updateEvent.go b/example/updateEvent.go index 1bd3279..e460125 100644 --- a/example/updateEvent.go +++ b/example/updateEvent.go @@ -6,7 +6,7 @@ import ( "log" "os" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/joho/godotenv" ) diff --git a/example/webhookSignature.go b/example/webhookSignature.go index ed24d4b..90e1551 100644 --- a/example/webhookSignature.go +++ b/example/webhookSignature.go @@ -1,7 +1,7 @@ package main import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook" "log" ) diff --git a/generate.go b/generate.go index 687894f..89fb020 100644 --- a/generate.go +++ b/generate.go @@ -10,7 +10,7 @@ import ( "path/filepath" "strings" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config" ) var files = []string{"README.md", "docs", ".swagger-codegen"} diff --git a/go.mod b/go.mod index 7ab0ab5..f595afa 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7 +module github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6 go 1.21 diff --git a/package.json b/package.json index b8c29cb..b88a94c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fingerprint-pro-server-api-go-sdk", - "version": "7.0.0-test.0", + "version": "6.1.0", "private": true, "devDependencies": { "@changesets/cli": "^2.27.8", diff --git a/sdk/api_fingerprint.go b/sdk/api_fingerprint.go index fc70409..d7f513e 100644 --- a/sdk/api_fingerprint.go +++ b/sdk/api_fingerprint.go @@ -15,7 +15,7 @@ import ( "strings" ) -const IntegrationInfo = "fingerprint-pro-server-go-sdk/7.0.0-test.0" +const IntegrationInfo = "fingerprint-pro-server-go-sdk/6.1.0" type FingerprintApiServiceInterface interface { /* diff --git a/sdk/configuration.go b/sdk/configuration.go index 57e3f4f..8d619e8 100644 --- a/sdk/configuration.go +++ b/sdk/configuration.go @@ -93,7 +93,7 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/7.0.0-test.0/go", + UserAgent: "Swagger-Codegen/6.1.0/go", region: RegionUS, } cfg.basePath = resolveBasePath(cfg.region) diff --git a/sdk/sealed/unseal.go b/sdk/sealed/unseal.go index 55ce499..0cb5185 100644 --- a/sdk/sealed/unseal.go +++ b/sdk/sealed/unseal.go @@ -7,7 +7,7 @@ import ( "crypto/cipher" "encoding/json" "errors" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "io" ) diff --git a/template/README.mustache b/template/README.mustache index ba11674..235b6c2 100644 --- a/template/README.mustache +++ b/template/README.mustache @@ -43,7 +43,7 @@ We keep the [Go support policy](https://go.dev/doc/devel/release) and support th 1. Get the package from GitHub: ```shell -go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk +go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk ``` 2. Import and use the library: @@ -54,7 +54,7 @@ package main import ( "context" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "log" ) @@ -105,7 +105,7 @@ If your subscription is in region other than US, you need to change the region i ```go import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" ) func main() { @@ -120,7 +120,7 @@ func main() { This SDK provides utility methods for decoding [sealed results](https://dev.fingerprint.com/docs/sealed-client-results). Install the sealed results dependency as below: ```shell -go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed +go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed ``` Then you can use below code to unseal results: ```go @@ -129,7 +129,7 @@ package main import ( "encoding/base64" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed" "os" ) @@ -171,7 +171,7 @@ func main() { This SDK provides utility method for verifing the HMAC signature of the incoming [webhook](https://dev.fingerprint.com/docs/webhooks) request. Install the webhook dependency as below: ```shell -go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook +go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook ``` Then you can use below code to verify signature: @@ -179,7 +179,7 @@ Then you can use below code to verify signature: package main import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook" ) func main() { diff --git a/test/DeleteVisitorData_test.go b/test/DeleteVisitorData_test.go index be2d2f2..fa26dfa 100644 --- a/test/DeleteVisitorData_test.go +++ b/test/DeleteVisitorData_test.go @@ -5,8 +5,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" diff --git a/test/GetEvent_test.go b/test/GetEvent_test.go index 6058d54..4877e9f 100644 --- a/test/GetEvent_test.go +++ b/test/GetEvent_test.go @@ -5,8 +5,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/stretchr/testify/assert" "log" "net/http" diff --git a/test/GetVisits_test.go b/test/GetVisits_test.go index b66f7dd..67ac2cd 100644 --- a/test/GetVisits_test.go +++ b/test/GetVisits_test.go @@ -5,8 +5,8 @@ import ( "encoding/json" "errors" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/stretchr/testify/assert" "log" "net/http" diff --git a/test/Region_test.go b/test/Region_test.go index 7f9ba79..b2ba004 100644 --- a/test/Region_test.go +++ b/test/Region_test.go @@ -1,7 +1,7 @@ package test import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/stretchr/testify/assert" "testing" ) diff --git a/test/Unseal_test.go b/test/Unseal_test.go index 24deae1..c91b3ba 100644 --- a/test/Unseal_test.go +++ b/test/Unseal_test.go @@ -4,8 +4,8 @@ import ( "encoding/base64" "encoding/json" "errors" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed" "github.com/stretchr/testify/assert" "reflect" "testing" diff --git a/test/UpdateEvent_test.go b/test/UpdateEvent_test.go index 95f2244..425d7fb 100644 --- a/test/UpdateEvent_test.go +++ b/test/UpdateEvent_test.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" diff --git a/test/api_fingerprint_test.go b/test/api_fingerprint_test.go index 661fb97..94a145b 100644 --- a/test/api_fingerprint_test.go +++ b/test/api_fingerprint_test.go @@ -1,7 +1,7 @@ package test import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" "github.com/stretchr/testify/assert" "testing" ) diff --git a/test/webhook_test.go b/test/webhook_test.go index 2cb0768..bdcbd28 100644 --- a/test/webhook_test.go +++ b/test/webhook_test.go @@ -1,8 +1,8 @@ package test import ( - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk" - "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk" + "github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook" "github.com/stretchr/testify/assert" "testing" )