Skip to content

Align History domain reads, entity responses and cursor lists - #16

Merged
EgorMajj merged 3 commits into
mainfrom
feat/history-methods
Oct 29, 2026
Merged

EgorMajj merged 3 commits into
mainfrom
feat/history-methods

Conversation

@KonstantinSerebryakov

@KonstantinSerebryakov KonstantinSerebryakov commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

History reads use the public domain UUID and /api/v1/domains/{domain_id}/history/{resource}/{resource_id}. Domain discovery and entity lists send the supported flat filters; non-zero offset is rejected before IO.

Entity-card responses preserve ID, nested Risk Score, RFC3339 time, addresses, traffic and confirmed signal names. The original card remains in raw data. The new EntityPage returned by entity lists preserves aggregate fields and unavailable states and exposes the opaque next_page_token without a global total. Compatibility identification reads reject unavailable or invalid entity scores rather than inventing zero. README and changelog describe the list and compatibility contracts.

Validation: 594 tests including sync/async entity cards, null/unavailable aggregates, opaque cursors and FastAPI example; 98.34% coverage. Ruff and strict mypy pass.

Generated models were rebuilt from the vendored OpenAPI contract in the original change; CI rechecks generation and the supported runtime matrix. This PR changes source only and does not publish package versions.

KonstantinSerebryakov and others added 2 commits October 29, 2026 05:33
The public client lists domains and reads identifications through the domain-scoped History paths, and it no longer sends the retired unscoped search.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signup lookups now go to the domain History card, so the example reads SHIELDLABS_DOMAIN_ID.

Co-authored-by: Cursor <cursoragent@cursor.com>
@EgorMajj EgorMajj changed the title Point the History client at domain reads with flat filters Align History domain reads, entity responses and cursor lists Oct 29, 2026
@EgorMajj
EgorMajj merged commit 0c241ef into main Oct 29, 2026
8 checks passed
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.

2 participants