Rocket.Chat.ReactNative/app/definitions/rest/v1/e2e.ts

16 lines
388 B
TypeScript

import { IUser } from '../../IUser';
export type E2eEndpoints = {
'e2e.setUserPublicAndPrivateKeys': {
POST: (params: { public_key: string; private_key: string }) => void;
};
'e2e.getUsersOfRoomWithoutKey': {
GET: (params: { rid: string }) => {
users: Pick<IUser, '_id' | 'e2e'>[];
};
};
'e2e.setRoomKeyID': {
POST: (params: { rid: string; keyID: string }) => {};
};
};