Repository navigation
feat: URL analysis parity with the platform wave - #6
Merged
Merged
Conversation
Session endpoints, restart, media source, device presets, create options, and the scoring fields shipped by the platform wave.
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.
Summary
URL-analysis parity with the platform wave (Malwation/threatzone#1602). The SDK now covers every
URL-analysis surface the Public API ships.
create_url_submissionacceptsmetafieldsandconfigurations(incl.sessionDurationSeconds,30-600). Both are optional; omitted values keep today's behavior and the platform defaults.
get_device_presets,get_url_analysis_session,start_url_analysis_session,restart_url_analysis_session,restart_url_analysis.list_media_files/get_media_fileacceptsource="url_analysis"; media items carrykind.UrlAnalysisgains the scoring fields (threatScore,riskLevel, privacy, provenance,impersonation) plus
completeness,intelDetections,metafields,scoredAt— all optional,old servers keep working.
Compatibility
No breaking change. All new request options are optional keyword arguments; all new response
fields are optional models.
DEFAULT_BASE_URLis unchanged.Verification
654 tests pass (pytest), ruff check + format clean, mypy strict clean.
Version stays 1.1.1; the changelog entry sits under
## Unreleased— cut the release separately.Deploy note: the session and restart endpoints need the platform wave (threatzone#1602) deployed,
with
INTERNAL_SERVICE_TOKEN/SUBMISSION_SERVICE_URLin the secrets records.