Skip to content

Conversation

@huggingbot
Copy link
Member

@huggingbot huggingbot commented Dec 16, 2025

Explanation

This PR adds support for soft deleting secret data items from the metadata store

Add two new methods to SeedlessOnboardingController:

  • deleteSecretDataItem({ itemId }) - Soft deletes a single item
  • batchDeleteSecretDataItems({ itemIds }) - Soft deletes multiple items

References

Related to https://consensyssoftware.atlassian.net/browse/SL-341

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

- Add dataType parameter to createToprfKeyAndBackupSeedPhrase and addNewSecretData
- Add updateSecretDataItem and batchUpdateSecretDataItems methods
- Update fetchAllSecretData to return SecretDataItemWithMetadata[]
…etadata

- Add itemId, dataType, createdAt properties to SecretMetadata class
- Remove SecretDataItemWithMetadata wrapper type
- Update fetchAllSecretData to return SecretMetadata[] directly
- Add tests for storage metadata properties
…EUUID sorting

TIMEUUID strings are not lexicographically sortable. Replace localeCompare
with compareTimeuuid utility that extracts and compares actual timestamps.
@huggingbot huggingbot changed the title Feat/enc soft delete feat(seedless-onboarding-controller): add soft delete APIs for secret data items Dec 16, 2025
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