Skip to content

Support risk intelligence#16

Open
rokostik wants to merge 16 commits intomainfrom
rok/support-risk-intelligence
Open

Support risk intelligence#16
rokostik wants to merge 16 commits intomainfrom
rok/support-risk-intelligence

Conversation

@rokostik
Copy link
Collaborator

@rokostik rokostik commented Mar 4, 2026

This PR adds support for risk intelligence on siteverify as well as risk intelligence retrieval from a token.

@rokostik rokostik self-assigned this Mar 4, 2026
@rokostik rokostik requested review from greenberga and gzuidhof March 9, 2026 14:22
# friendly-captcha-client==0.0.2

# TODO remove this line when the new SDK version is released
-e ../..

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still necessary? Or is it referencing this SDK (the Python SDK)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's a reference to the SDK, because we have it fixed to a release and this hasn't been released yet. We could actually just leave it as -e ../.. to always have an up to date SDK in the example without us needing to bump the version but that means that it's not copy-pastable outside of the project for anyone wanting to implement it in their project.
What do you think? We could just add a comment explaining that they need to add friendly-captcha-client==x.y.z. and remove the -e ../..

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, I think it's fine to leave it as -e ../.. and have a comment that says if you use this outside of this project, you should replace this line with friendly-captcha-client==x.y.z

@greenberga greenberga force-pushed the rok/support-risk-intelligence branch from e784cad to e878e50 Compare March 10, 2026 11:24
These validators should now be instance methods rather than class
methods.
Copy link

@greenberga greenberga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested locally and the tests passed. I made a small tweak to schemas.py to fix some deprecation warnings after the version bump of pydantic.

@gzuidhof
Copy link
Contributor

Maybe the version requirement for requests can be relaxed to be "greater-than-or-equal", then I think we can close #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants