All notable changes to the Threat.Zone Python SDK are documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
get_behavioursno longer requires or sends the obsoleteosquery parameter.BehavioursResponsenow matches the Public API pagination envelope withpage,limit, andtotal_pagesinstead of the obsoleteosfield.- The SDK version and
User-Agentheader are now1.1.1.
API-sync release: brings the SDK into exact agreement with the current
public-api HTTP contract. Includes three breaking response-shape changes
(jobs, CDR, static-scan) alongside additive fields and endpoints.
- Submission overview
jobsreshape:SubmissionOverviewJobsnow carriestotal,succeeded,failed,skipped, andfinished.completedis retained as a deprecated alias offinished(always equal) for backward compatibility; new code should usefinished. - CDR response is a per-submission singleton:
CdrResponsewas rewritten from an items envelope to a single object (submission,status,sanitized,removed,sanitizedFileInfo,elapsedTime,metafields). The oldCdrResultenvelope is gone. - Static-scan response is a per-format singleton:
StaticScanResponsewas rewritten from an items envelope to a single object discriminated byreportFormat(submission,status,reportFormat,level,score,fileInfo,strings,dieResults,analysisTime,metafields). Format-specific inlined keys are preserved as model extras (extra="allow"). The oldStaticScanResultenvelope is gone.
Submission.score(float | None) andSubmission.family(str | None).ReportStatus.duration(float | None).OverviewSummary.score(float | None) andOverviewSummary.family(str | None).- Config
active/accessibleflags on metafield options, metafield option values, and environment options. get_static_scan_strings(uuid)— streams the raw extracted-strings JSON for a static report.list_network_configs()— lists the workspace's network configurations viaGET /v1/network-configs; newNetworkConfigListItem/NetworkConfigListResponsemodels.- Request parameters:
safe_browsingoncreate_url_submission;sort/orderonlist_submissions;type/process_nameonget_behaviours.
Indicator.categoryis nowlist[str](was a scalarstr).User-Agentheader bumped tothreatzone-python-sdk/1.1.0.- Fixed the
configurationsdocstring key oncreate_sandbox_submission/create_open_in_browser_submissiontonetworkConfig(the only key the API accepts).