Skip to content

feat: caller-chosen claim visibility on submit (private | unlisted) - #28

Merged
lenzhq merged 1 commit into
mainfrom
feat/api-claim-visibility
Jul 23, 2026
Merged

feat: caller-chosen claim visibility on submit (private | unlisted)#28
lenzhq merged 1 commit into
mainfrom
feat/api-claim-visibility

Conversation

@lenzhq

@lenzhq lenzhq commented Jul 23, 2026

Copy link
Copy Markdown
Owner

What

Adds visibility to the verify family, matching the new /api/v1 contract (lenzhq/Lenz#111).

  • verify / verify_and_wait / verify_batch / verify_batch_and_wait accept visibility="private" (default, owner-only) or visibility="unlisted" (readable by verification_id and at the /c/ URL, but never listed).
  • Batch items may set per-item visibility to override the batch-wide default.
  • Omit-when-empty: no visibility kwarg → no key in the request body, so existing callers are byte-identical and the server applies its private default.
  • Verification.visibility returns "private" | "unlisted" | "public" for read-back ("public" is read-only, for genuinely listed claims).

Tests

tests/test_client.py: default-omits-visibility, sends-when-set, batch batch-wide + per-item override. test_client.py + test_contract.py green.

Note: pre-existing test_cli.py failures in this environment are ANSI/color rendering assertions, unrelated to this change (reproduce on a clean checkout).

Not included

Node SDK + /developers docs are deferred until a real external caller needs them (zero organic API callers today).

🤖 Generated with Claude Code

https://claude.ai/code/session_01GUotnFnktv9yWTFce8cQpW

verify / verify_and_wait / verify_batch / verify_batch_and_wait accept
visibility='private' (default) or 'unlisted' (readable by verification_id
and at /c/, never listed). Batch items may set per-item visibility to
override the batch-wide default. Omit-when-empty keeps existing request
bodies byte-identical for current callers.

Verification.visibility returns 'private' | 'unlisted' | 'public' so
callers can read back what they set ('public' is read-only, for listed
claims). Matches the /api/v1 contract in lenzhq/Lenz#111.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUotnFnktv9yWTFce8cQpW
@lenzhq
lenzhq merged commit 6acb45f into main Jul 23, 2026
9 checks passed
@lenzhq
lenzhq deleted the feat/api-claim-visibility branch August 7, 2026 06:55
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.

1 participant