Add vault stats command and API endpoint

This commit is contained in:
thePR0M3TH3AN
2025-07-09 20:10:43 -04:00
parent 55daa22836
commit ce8281c80f
6 changed files with 57 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ Manage the entire vault for a profile.
| Import a vault | `vault import` | `seedpass vault import --file backup.json` |
| Change the master password | `vault change-password` | `seedpass vault change-password` |
| Lock the vault | `vault lock` | `seedpass vault lock` |
| Show profile statistics | `vault stats` | `seedpass vault stats` |
### Nostr Commands
@@ -159,6 +160,7 @@ Code: 123456
- **`seedpass vault import`** Import a vault from an encrypted JSON file.
- **`seedpass vault change-password`** Change the master password used for encryption.
- **`seedpass vault lock`** Clear sensitive data from memory and require reauthentication.
- **`seedpass vault stats`** Display statistics about the active seed profile.
### `nostr` Commands

View File

@@ -29,6 +29,7 @@ Keep this token secret. Every request must include it in the `Authorization` hea
- `POST /api/v1/fingerprint/select` Switch the active fingerprint.
- `GET /api/v1/totp/export` Export all TOTP entries as JSON.
- `GET /api/v1/totp` Return current TOTP codes and remaining time.
- `GET /api/v1/stats` Return statistics about the active seed profile.
- `GET /api/v1/parent-seed` Reveal the parent seed or save it with `?file=`.
- `GET /api/v1/nostr/pubkey` Fetch the Nostr public key for the active seed.
- `POST /api/v1/checksum/verify` Verify the checksum of the running script.