Repository navigation
feat: expose the Windows V2 score scale and network availability - #7
Merged
Merged
Conversation
batuhanisildak-malwation
marked this pull request as ready for review
October 3, 2026 12:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows V2 score scale and network availability types
Branch:
feat/windows-v2-score-scaleintomain(repositorythreatzone-python-sdk).Companion to the platform PR
feat/windows-v2-scoring-platform(Windows V2 report cutover).Summary
The platform adds Windows V2 fields to the public REST API. This PR adds the same fields to the SDK types.
Each new field is optional. An older server omits it, and the SDK gives
None.Changes
af375caIndicator.score_maximum(scoreMaximum): the scale ofIndicator.score. It is10for legacy reports and100for Windows V2 reports. New modelNetworkAvailability(state,reason,coverage).NetworkSummaryaddscounts_available,availabilityandsource_scope.DnsQuery,HttpRequest,ConnectionandNetworkThreataddsource_scope.2bf930eNetworkAvailabilityState,NetworkCoverage,NetworkSourceScope) areLiteral[...] | str, andscore_maximumisint | None. A new server value does not fail the call.b184adbSummaryNetwork(OverviewSummary.network) addscounts_available,availabilityandsource_scope.The package exports
NetworkAvailability,NetworkAvailabilityState,NetworkCoverageandNetworkSourceScope.CHANGELOG.mdanddocs/TYPES.mddescribe the fields.The
X-Network-Evidence-Availabilityheader of the list endpoints is not exposed, because the list methods return plain lists. Useget_network_summary().availability.Size: 3 commits, 7 files, +226 / -7.
Compatibility
counts_available=True,availability=Noneandsource_scope=None.None.Test evidence
pytest: 666 passed.mypy src: no issues in 33 source files.ruff check .: all checks passed.ruff format --check src/ tests/(the CI scope): 64 files already formatted.