2022-03-02 19:53:41 +00:00
|
|
|
import { IUser } from '../../IUser';
|
|
|
|
|
2022-02-24 21:59:57 +00:00
|
|
|
export type E2eEndpoints = {
|
|
|
|
'e2e.setUserPublicAndPrivateKeys': {
|
|
|
|
POST: (params: { public_key: string; private_key: string }) => void;
|
|
|
|
};
|
2022-03-02 19:53:41 +00:00
|
|
|
'e2e.getUsersOfRoomWithoutKey': {
|
|
|
|
GET: (params: { rid: string }) => {
|
|
|
|
users: Pick<IUser, '_id' | 'e2e'>[];
|
|
|
|
};
|
|
|
|
};
|
2022-03-04 14:08:36 +00:00
|
|
|
'e2e.updateGroupKey': {
|
|
|
|
POST: (params: { uid: string; rid: string; key: string }) => {};
|
|
|
|
};
|
2022-03-04 13:51:39 +00:00
|
|
|
'e2e.setRoomKeyID': {
|
|
|
|
POST: (params: { rid: string; keyID: string }) => {};
|
|
|
|
};
|
2022-02-24 21:59:57 +00:00
|
|
|
};
|