Chore: create definitions for e2e.setUserPublicAndPrivateKeys api call (#3775)

This commit is contained in:
Gleidson Daniel Silva 2022-02-24 18:59:57 -03:00 committed by GitHub
parent 6b5efcec82
commit 00d9ed1972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,5 @@
export type E2eEndpoints = {
'e2e.setUserPublicAndPrivateKeys': {
POST: (params: { public_key: string; private_key: string }) => void;
};
};

View File

@ -14,6 +14,7 @@ import { OauthCustomConfiguration } from './settings';
import { UserEndpoints } from './user'; import { UserEndpoints } from './user';
import { UsersEndpoints } from './users'; import { UsersEndpoints } from './users';
import { TeamsEndpoints } from './teams'; import { TeamsEndpoints } from './teams';
import { E2eEndpoints } from './e2e';
export type Endpoints = ChannelsEndpoints & export type Endpoints = ChannelsEndpoints &
ChatEndpoints & ChatEndpoints &
@ -30,4 +31,5 @@ export type Endpoints = ChannelsEndpoints &
OauthCustomConfiguration & OauthCustomConfiguration &
UserEndpoints & UserEndpoints &
UsersEndpoints & UsersEndpoints &
TeamsEndpoints; TeamsEndpoints &
E2eEndpoints;

View File

@ -34,10 +34,8 @@ export const createChannel = ({
return sdk.post(type ? 'groups.create' : 'channels.create', params); 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 // RC 2.2.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('e2e.setUserPublicAndPrivateKeys', { public_key, private_key }); sdk.post('e2e.setUserPublicAndPrivateKeys', { public_key, private_key });
export const e2eRequestSubscriptionKeys = (): any => export const e2eRequestSubscriptionKeys = (): any =>