@@ -931,6 +931,32 @@ export type TranslateRequest = {
931
931
translation_language : TranslationLanguage ;
932
932
} ;
933
933
934
+ export type CallStartResponse = {
935
+ result : true ;
936
+ join_link : string ;
937
+ } ;
938
+
939
+ export type CallJoinRequest = {
940
+ join_link : string ;
941
+ } ;
942
+
943
+ export type CallJoinResponse = {
944
+ result : true ;
945
+ } ;
946
+
947
+ export type CallGetStatusResponse = {
948
+ result : true ;
949
+ is_active : boolean ;
950
+ } ;
951
+
952
+ export type CallLeftResponse = {
953
+ reason : string ;
954
+ } ;
955
+
956
+ export type CallFinishedResponse = {
957
+ result : true ;
958
+ } ;
959
+
934
960
export enum EGrantedPermission {
935
961
CAMERA = 'camera' ,
936
962
LOCATION = 'location' ,
@@ -1147,6 +1173,9 @@ export type RequestPropsMap = {
1147
1173
VKWebAppScrollTopStop : { } ;
1148
1174
VKWebAppShowSlidesSheet : ShowSlidesSheetRequest ;
1149
1175
VKWebAppTranslate : TranslateRequest ;
1176
+ VKWebAppCallStart : { } ;
1177
+ VKWebAppCallJoin : CallJoinRequest ;
1178
+ VKWebAppCallGetStatus : { } ;
1150
1179
} ;
1151
1180
1152
1181
/**
@@ -1261,6 +1290,11 @@ export type ReceiveDataMap = {
1261
1290
VKWebAppScrollTopStop : { result : true } ;
1262
1291
VKWebAppShowSlidesSheet : ShowSlidesSheetResponse ;
1263
1292
VKWebAppTranslate : TranslateResponse ;
1293
+ VKWebAppCallStart : CallStartResponse ;
1294
+ VKWebAppCallJoin : CallJoinResponse ;
1295
+ VKWebAppCallGetStatus : CallGetStatusResponse ;
1296
+ VKWebAppCallLeft : CallLeftResponse ;
1297
+ VKWebAppCallFinished : CallFinishedResponse ;
1264
1298
} ;
1265
1299
/* eslint-enable @typescript-eslint/ban-types */
1266
1300
@@ -1624,4 +1658,11 @@ export type ReceiveEventMap = EventReceiveNames<
1624
1658
'VKWebAppShowSlidesSheetResult' ,
1625
1659
'VKWebAppShowSlidesSheetFailed'
1626
1660
> &
1627
- EventReceiveNames < 'VKWebAppTranslate' , 'VKWebAppTranslateResult' , 'VKWebAppTranslateFailed' > ;
1661
+ EventReceiveNames < 'VKWebAppTranslate' , 'VKWebAppTranslateResult' , 'VKWebAppTranslateFailed' > &
1662
+ EventReceiveNames < 'VKWebAppCallStart' , 'VKWebAppCallStartResult' , 'VKWebAppCallStartFailed' > &
1663
+ EventReceiveNames < 'VKWebAppCallJoin' , 'VKWebAppCallJoinResult' , 'VKWebAppCallJoinFailed' > &
1664
+ EventReceiveNames <
1665
+ 'VKWebAppCallGetStatus' ,
1666
+ 'VKWebAppCallGetStatusResult' ,
1667
+ 'VKWebAppCallGetStatusFailed'
1668
+ > ;
0 commit comments