feat: allow messageSecret as param to poll create

This commit is contained in:
Adhiraj Singh
2023-03-02 17:42:34 +05:30
parent 7d5aca54e9
commit cd42881201
3 changed files with 24 additions and 72 deletions

View File

@@ -84,7 +84,9 @@ type WithDimensions = {
export type PollMessageOptions = {
name: string
selectableCount?: number
values: Array<string>
values: string[]
/** 32 byte message secret to encrypt poll selections */
messageSecret?: Uint8Array
}
export type MediaType = keyof typeof MEDIA_HKDF_KEY_MAPPING