Skip to content

chore: add space encryption capabilities type definitions#692

Merged
BravoNatalie merged 3 commits intomainfrom
chore/add-space-encryption-capabilities-type-definitions
Mar 24, 2026
Merged

chore: add space encryption capabilities type definitions#692
BravoNatalie merged 3 commits intomainfrom
chore/add-space-encryption-capabilities-type-definitions

Conversation

@BravoNatalie
Copy link
Copy Markdown
Contributor

Adds missing Success and Failure return types for the three encryption capabilities in space.js:

  • SpaceEncryptionSetupSuccess{ publicKey, provider, algorithm } returned by space/encryption/setup
  • SpaceEncryptionKeyDecryptSuccess{ decryptedSymmetricKey } returned by space/encryption/key/decrypt
  • SpaceDecryptSuccess / SpaceDecryptFailure — authorization result for space/content/decrypt
  • SpaceDecrypt invoked capability type
  • All three added to ServiceAbilityArray

Re-exports the new success types from encrypt-upload-client/src/types.ts and replaces the inline anonymous object literals in KMSCryptoAdapter (getSpacePublicKey, getDecryptedSymmetricKey) with the canonical named types.

@BravoNatalie BravoNatalie requested a review from fforbeck March 23, 2026 19:56
@BravoNatalie BravoNatalie requested a review from alanshaw as a code owner March 23, 2026 19:56
@BravoNatalie BravoNatalie force-pushed the chore/add-space-encryption-capabilities-type-definitions branch from 8aad9a8 to d693f16 Compare March 24, 2026 00:31
@BravoNatalie BravoNatalie merged commit 1651da0 into main Mar 24, 2026
1 check 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