Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark optional fields in models #70

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

ilfa
Copy link
Member

@ilfa ilfa commented Aug 14, 2024

No description provided.

@ilfa ilfa requested a review from TheUnderScorer as a code owner August 14, 2024 08:52
Copy link
Contributor

This PR will create a major release 🚀

7.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)
  • add developer_tools signal (ca25ef7)
  • add osMismatch field to the vpn signal (0b95bda)
  • add remoteControl signal (5c7b149)
  • add revision field to the confidence signal (9b42d6b)
  • add update_event method (752b1c9)
  • add velocity signal (9b31367)
  • add better error reporting in case of wrong data shape (40e9e6a)
  • add webhook validation method (d92b1fe)
  • create base class for models and move here utility functions (bfa2285)
  • drop Python 3.8 support (d857954)
  • simplify Configuration class, use inline types (8cad048)
  • simplify rest.py and api_client.py and add inline types (a8b1ae6)
  • update schema (c2e99cd)
  • use inline types for fingerprint_api.py (c466bd5)
  • use inline types instead of annotations for models (1121a5c)

Bug Fixes

  • unseal_event_response returns correct EventResponse structure (a7a0e2d)
  • don't serialise empty fields in models (9643e1d)
  • make tag field optional for webhook (e8a28f6)
  • mark optional fields in models (2c62e20)
  • remove Python2 compatibility code (2621ccd)
  • update schema with required body field for the updateEvent method (c6eaf5e)

Copy link
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
4727 3973 84% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
fingerprint_pro_server_api_sdk/models/asn.py 87% 🟢
fingerprint_pro_server_api_sdk/models/botd_detection_result.py 94% 🟢
fingerprint_pro_server_api_sdk/models/botd_result.py 90% 🟢
fingerprint_pro_server_api_sdk/models/browser_details.py 92% 🟢
fingerprint_pro_server_api_sdk/models/cloned_app_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/common403_error_response.py 84% 🟢
fingerprint_pro_server_api_sdk/models/confidence.py 89% 🟢
fingerprint_pro_server_api_sdk/models/data_center.py 89% 🟢
fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py 100% 🟢
fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py 100% 🟢
fingerprint_pro_server_api_sdk/models/developer_tools_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/emulator_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/error_common403_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_common429_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_common429_response_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/error_event404_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_event404_response_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/error_update_event400_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_update_event400_response_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/error_update_event409_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_update_event409_response_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/error_visitor400_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_visitor400_response_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/error_visitor404_response.py 95% 🟢
fingerprint_pro_server_api_sdk/models/error_visitor404_response_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/error_visits403.py 89% 🟢
fingerprint_pro_server_api_sdk/models/event_response.py 93% 🟢
fingerprint_pro_server_api_sdk/models/event_update_request.py 100% 🟢
fingerprint_pro_server_api_sdk/models/factory_reset_result.py 87% 🟢
fingerprint_pro_server_api_sdk/models/frida_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/high_activity_result.py 82% 🟢
fingerprint_pro_server_api_sdk/models/identification_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/incognito_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/ip_block_list_result.py 87% 🟢
fingerprint_pro_server_api_sdk/models/ip_block_list_result_details.py 86% 🟢
fingerprint_pro_server_api_sdk/models/ip_info_result.py 93% 🟢
fingerprint_pro_server_api_sdk/models/ip_info_result_v4.py 88% 🟢
fingerprint_pro_server_api_sdk/models/ip_info_result_v6.py 88% 🟢
fingerprint_pro_server_api_sdk/models/ip_location.py 90% 🟢
fingerprint_pro_server_api_sdk/models/ip_location_city.py 94% 🟢
fingerprint_pro_server_api_sdk/models/jailbroken_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/location.py 93% 🟢
fingerprint_pro_server_api_sdk/models/location_spoofing_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/privacy_settings_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/product_error.py 84% 🟢
fingerprint_pro_server_api_sdk/models/products_response.py 100% 🟢
fingerprint_pro_server_api_sdk/models/products_response_botd.py 100% 🟢
fingerprint_pro_server_api_sdk/models/products_response_identification.py 100% 🟢
fingerprint_pro_server_api_sdk/models/products_response_identification_data.py 93% 🟢
fingerprint_pro_server_api_sdk/models/proxy_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/raw_device_attributes_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/remote_control_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/response.py 92% 🟢
fingerprint_pro_server_api_sdk/models/response_visits.py 82% 🟢
fingerprint_pro_server_api_sdk/models/root_apps_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/seen_at.py 100% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_cloned_app.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_developer_tools.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_emulator.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_factory_reset.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_frida.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_high_activity.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_incognito.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_ip_blocklist.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_ip_info.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_location_spoofing.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_privacy_settings.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_proxy.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_raw_device_attributes.py 86% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_remote_control.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_root_apps.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_suspect_score.py 86% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_tampering.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_tor.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_velocity.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_virtual_machine.py 93% 🟢
fingerprint_pro_server_api_sdk/models/signal_response_vpn.py 93% 🟢
fingerprint_pro_server_api_sdk/models/subdivision.py 100% 🟢
fingerprint_pro_server_api_sdk/models/suspect_score_result.py 63% 🟢
fingerprint_pro_server_api_sdk/models/tampering_result.py 86% 🟢
fingerprint_pro_server_api_sdk/models/tor_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/velocity_interval_result.py 87% 🟢
fingerprint_pro_server_api_sdk/models/velocity_intervals.py 95% 🟢
fingerprint_pro_server_api_sdk/models/velocity_result.py 85% 🟢
fingerprint_pro_server_api_sdk/models/virtual_machine_result.py 89% 🟢
fingerprint_pro_server_api_sdk/models/visit.py 46% 🟢
fingerprint_pro_server_api_sdk/models/vpn_result.py 86% 🟢
fingerprint_pro_server_api_sdk/models/vpn_result_methods.py 84% 🟢
fingerprint_pro_server_api_sdk/models/webhook_visit.py 48% 🟢
TOTAL 90% 🟢

updated for commit: 2c62e20 by action🐍

@ilfa ilfa merged commit 826a5ef into main Aug 14, 2024
31 checks passed
@ilfa ilfa deleted the better-types-for-optional-fields-INTER-821 branch August 14, 2024 09:59
@fingerprint-dx-team
Copy link

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants