diff --git a/CHANGELOG.md b/CHANGELOG.md index f61318a2..dcd89cf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,41 @@ +## [7.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/compare/v6.0.0...v7.0.0) (2024-08-14) + + +### ⚠ BREAKING CHANGES + +* rename `unseal_events_response` to `unseal_event_response` to keep proper naming +* minimum supported Python version is 3.9 now +* rename `error_event403_response`, `error_event403_response_error`, `many_requests_response` to `common403_error_response`, `error_common403_response` `too_many_requests_response` + +### Features + +* add `delete_visitor_data` method ([961a165](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/961a165bd1acf43797dd3767fc3c1d72cc541917)) +* add `developer_tools` signal ([ca25ef7](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/ca25ef7f07acbf47a7e5a55092bd336050cd0967)) +* add `osMismatch` field to the `vpn` signal ([0b95bda](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/0b95bdadaad62285558c442cf36b3990668537c1)) +* add `remoteControl` signal ([5c7b149](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/5c7b1493dfa84ddab2df753c4c856da808bf844d)) +* add `revision` field to the `confidence` signal ([9b42d6b](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/9b42d6b984a0c8c65a98faeea21bd86460a51df1)) +* add `update_event` method ([752b1c9](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/752b1c97054a131afcb3582a58a77f6a4d8b1816)) +* add `velocity` signal ([9b31367](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/9b313677da304c8090518f484406694c7b1123b8)) +* add better error reporting in case of wrong data shape ([40e9e6a](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/40e9e6a4a7d743d853c6defcb2f0ae6aa78f5e7e)) +* add webhook validation method ([d92b1fe](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/d92b1fe9a69e943926c729affa6ef7b91a0857d8)) +* create base class for models and move here utility functions ([bfa2285](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/bfa2285cd45136c970cc3d07b1ada56874011c98)) +* drop Python 3.8 support ([d857954](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/d857954e826b05f2061d195b2a2a8c3cae5b0232)) +* simplify `Configuration` class, use inline types ([8cad048](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/8cad04860ec59b6a57d50827fb288871c2dbf384)) +* simplify `rest.py` and `api_client.py` and add inline types ([a8b1ae6](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/a8b1ae61d74ff5eaca09012741be4a894ff8526e)) +* update schema ([c2e99cd](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/c2e99cd104e6ab9c7e9f670636d984e829eb2747)) +* use inline types for `fingerprint_api.py` ([c466bd5](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/c466bd58f1838baf0b6bbf5aac2de6b0a047630b)) +* use inline types instead of annotations for models ([1121a5c](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/1121a5c5e81d3458595d2bd7920463cce0b661ac)) + + +### Bug Fixes + +* `unseal_event_response` returns correct `EventResponse` structure ([a7a0e2d](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/a7a0e2d3c0c42fb225545673954ee816917d3124)) +* don't serialise empty fields in models ([9643e1d](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/9643e1d7781e0d1eb414f8f5177cdace16ef3063)) +* make `tag` field optional for webhook ([e8a28f6](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/e8a28f69d08a7969af3b1b66ef399aacd4bc14d1)) +* mark optional fields in models ([2c62e20](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/2c62e209de1d09ebd58f3174a0be81e39c6d8bf6)) +* remove Python2 compatibility code ([2621ccd](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/2621ccddb01c495a8a385766d15ea875171260e8)) +* update schema with required `body` field for the `updateEvent` method ([c6eaf5e](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/commit/c6eaf5e64d387ce55a898ba800b8989e77c5cae0)) + ## [6.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk/compare/v5.0.0...v6.0.0) (2024-03-27) diff --git a/README.md b/README.md index 0da0b992..4f4c221b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The Fingerprint Server Python SDK is an easy way to interact with the Fingerprin This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3 -- Package version: 6.0.0 +- Package version: 7.0.0 - Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen ## Requirements diff --git a/fingerprint_pro_server_api_sdk/api/fingerprint_api.py b/fingerprint_pro_server_api_sdk/api/fingerprint_api.py index 0551a51d..29137d70 100644 --- a/fingerprint_pro_server_api_sdk/api/fingerprint_api.py +++ b/fingerprint_pro_server_api_sdk/api/fingerprint_api.py @@ -109,7 +109,7 @@ def delete_visitor_data_with_http_info(self, visitor_id: str, **kwargs): # noqa if 'visitor_id' in params: path_params['visitor_id'] = params['visitor_id'] # noqa: E501 - query_params = [('ii', 'fingerprint-pro-server-python-sdk/6.0.0')] + query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.0')] header_params = {} @@ -219,7 +219,7 @@ def get_event_with_http_info(self, request_id: str, **kwargs): # noqa: E501 if 'request_id' in params: path_params['request_id'] = params['request_id'] # noqa: E501 - query_params = [('ii', 'fingerprint-pro-server-python-sdk/6.0.0')] + query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.0')] header_params = {} @@ -338,7 +338,7 @@ def get_visits_with_http_info(self, visitor_id: str, **kwargs): # noqa: E501 if 'visitor_id' in params: path_params['visitor_id'] = params['visitor_id'] # noqa: E501 - query_params = [('ii', 'fingerprint-pro-server-python-sdk/6.0.0')] + query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.0')] if 'request_id' in params: query_params.append(('request_id', params['request_id'])) # noqa: E501 if 'linked_id' in params: @@ -458,7 +458,7 @@ def update_event_with_http_info(self, body: EventUpdateRequest, request_id: str, if 'request_id' in params: path_params['request_id'] = params['request_id'] # noqa: E501 - query_params = [('ii', 'fingerprint-pro-server-python-sdk/6.0.0')] + query_params = [('ii', 'fingerprint-pro-server-python-sdk/7.0.0')] header_params = {} diff --git a/fingerprint_pro_server_api_sdk/api_client.py b/fingerprint_pro_server_api_sdk/api_client.py index f97a3a12..217022ca 100644 --- a/fingerprint_pro_server_api_sdk/api_client.py +++ b/fingerprint_pro_server_api_sdk/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration: Optional[Configuration] = None, header_name: O self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/6.0.0/python' + self.user_agent = 'Swagger-Codegen/7.0.0/python' def __del__(self): self.pool.close() diff --git a/fingerprint_pro_server_api_sdk/configuration.py b/fingerprint_pro_server_api_sdk/configuration.py index 8d3a9355..f4eea90e 100644 --- a/fingerprint_pro_server_api_sdk/configuration.py +++ b/fingerprint_pro_server_api_sdk/configuration.py @@ -210,5 +210,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 3\n"\ - "SDK Package Version: 6.0.0".\ + "SDK Package Version: 7.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/generate.sh b/generate.sh index 104c0305..ac4af550 100755 --- a/generate.sh +++ b/generate.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION='6.0.0' +VERSION='7.0.0' while getopts "v:" arg; do case $arg in diff --git a/test/test_fingerprint_api.py b/test/test_fingerprint_api.py index 84b5a281..91c86333 100644 --- a/test/test_fingerprint_api.py +++ b/test/test_fingerprint_api.py @@ -25,7 +25,7 @@ API_KEY = 'private_key' -VERSION = '6.0.0' +VERSION = '7.0.0' class MockPoolManager(object):