Chore: create definitions for e2e.setUserPublicAndPrivateKeys api call (#3775)
This commit is contained in:
parent
6b5efcec82
commit
00d9ed1972
|
@ -0,0 +1,5 @@
|
|||
export type E2eEndpoints = {
|
||||
'e2e.setUserPublicAndPrivateKeys': {
|
||||
POST: (params: { public_key: string; private_key: string }) => void;
|
||||
};
|
||||
};
|
|
@ -14,6 +14,7 @@ import { OauthCustomConfiguration } from './settings';
|
|||
import { UserEndpoints } from './user';
|
||||
import { UsersEndpoints } from './users';
|
||||
import { TeamsEndpoints } from './teams';
|
||||
import { E2eEndpoints } from './e2e';
|
||||
|
||||
export type Endpoints = ChannelsEndpoints &
|
||||
ChatEndpoints &
|
||||
|
@ -30,4 +31,5 @@ export type Endpoints = ChannelsEndpoints &
|
|||
OauthCustomConfiguration &
|
||||
UserEndpoints &
|
||||
UsersEndpoints &
|
||||
TeamsEndpoints;
|
||||
TeamsEndpoints &
|
||||
E2eEndpoints;
|
||||
|
|
|
@ -34,10 +34,8 @@ export const createChannel = ({
|
|||
return sdk.post(type ? 'groups.create' : 'channels.create', params);
|
||||
};
|
||||
|
||||
export const e2eSetUserPublicAndPrivateKeys = (public_key: string, private_key: string): any =>
|
||||
export const e2eSetUserPublicAndPrivateKeys = (public_key: string, private_key: string) =>
|
||||
// RC 2.2.0
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.post('e2e.setUserPublicAndPrivateKeys', { public_key, private_key });
|
||||
|
||||
export const e2eRequestSubscriptionKeys = (): any =>
|
||||
|
|
Loading…
Reference in New Issue