Skip to content

Add is_initialized to VaultInfo, public unlocked property, and handle 404 on info#28

Merged
alex-w-99 merged 4 commits intomainfrom
fix-integration-test-failure
Mar 31, 2026
Merged

Add is_initialized to VaultInfo, public unlocked property, and handle 404 on info#28
alex-w-99 merged 4 commits intomainfrom
fix-integration-test-failure

Conversation

@alex-w-99
Copy link
Copy Markdown
Contributor

  • VaultInfo now includes is_initialized field (both Python and TypeScript).
  • vault.info() catches 404 and returns a not-initialized sentinel instead of throwing.
  • VaultResource exposes a public unlocked property (was only _unlocked).

alex-w-99 and others added 3 commits March 30, 2026 22:35
… 404 on info

- VaultInfo now includes is_initialized field (both Python and TypeScript)
- vault.info() catches 404 and returns a not-initialized sentinel instead of throwing
- VaultResource exposes a public unlocked property (was only _unlocked)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
info() now returns None on 404 (vault not initialized) instead of a
sentinel object with nullable id/org/timestamps. VaultInfo fields
stay non-nullable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
updateKey() and unlock() now throw early if info() returns null,
fixing TS2818047 strict-null errors from the nullable return type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alex-w-99 alex-w-99 marked this pull request as ready for review March 30, 2026 22:50
@alex-w-99 alex-w-99 merged commit f561b5f into main Mar 31, 2026
3 checks passed
@alex-w-99 alex-w-99 deleted the fix-integration-test-failure branch March 31, 2026 01:19
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