switch to v2/calling/relays endpoint

This commit is contained in:
adel-signal 2024-10-28 09:37:16 -07:00 committed by GitHub
parent 40ac288a3a
commit 251ffc289f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 35 deletions

View file

@ -626,7 +626,7 @@ const URL_CALLS = {
discovery: 'v1/discovery',
getGroupAvatarUpload: 'v1/groups/avatar/form',
getGroupCredentials: 'v1/certificate/auth/group',
getIceServers: 'v1/calling/relays',
getIceServers: 'v2/calling/relays',
getOnboardingStoryManifest:
'dynamic/desktop/stories/onboarding/manifest.json',
getStickerPackUpload: 'v1/sticker/pack/form',
@ -902,12 +902,7 @@ export type GetAccountForUsernameResultType = z.infer<
>;
export type GetIceServersResultType = Readonly<{
username?: string;
password?: string;
urls?: ReadonlyArray<string>;
urlsWithIps?: ReadonlyArray<string>;
hostname?: string;
iceServers?: ReadonlyArray<IceServerGroupType>;
relays?: ReadonlyArray<IceServerGroupType>;
}>;
export type IceServerGroupType = Readonly<{