Skip to content

Commit faf3acf

Browse files
committed
fix: update EncryptionStrategy to require both symmetric and asymmetric fields
1 parent 89c9d1b commit faf3acf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

service/src/public/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export interface IUtils {
4242

4343
/**
4444
* Pluggable encryption strategy passed to createChatInstance().
45-
* Omit either field to keep the default implementation.
45+
* Both fields are required.
4646
*/
4747
export interface EncryptionStrategy {
48-
symmetric?: ISymmetricEncryption;
49-
asymmetric?: IAsymmetricEncryption;
48+
symmetric: ISymmetricEncryption;
49+
asymmetric: IAsymmetricEncryption;
5050
}
5151

5252
export type { ISymmetricEncryption, IAsymmetricEncryption };

0 commit comments

Comments
 (0)