Repository navigation
feat: add the remaining endpoints and webhook verification - #6
Merged
Merged
Conversation
Bulk and signed-in scans, AI review and summaries, subdomain search, host reputation, the demo scan and a webhook signature check. A lost login marks the result incomplete, and addresses get a scheme where the server needs one.
A server without working AI returns the findings unchanged, which looked like a review that found nothing wrong, so verify() and verify_batch() now raise when no finding got a verdict. Webhook checking refuses a tolerance that would accept any age and no longer crashes on an odd header, and the README shows what a subdomain entry holds.
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.
Adds the calls an API key can make that the SDK did not cover yet:
verify_webhook()for both signature formats. A bad timestamped signature is not accepted on the older one, andrequire_timestamp=Truerefuses deliveries without it.authenticated-sessioninincomplete.https://where the server needs one, so a bulk request does not drop them.Slow calls are given 330 seconds and, like every write, are sent once.
Tested locally on Windows: 389 offline tests pass on Python 3.11 to 3.13, ruff and
mypy --strictpass on 3.13. Written against the server source; not run against a live server.