11/**
2- * Type Definitions for Sendbird SDK v3.0.138
2+ * Type Definitions for Sendbird SDK v3.0.139
33 * homepage: https://sendbird.com/
44 * git: https://github.com/sendbird/Sendbird-SDK-JavaScript
55 */
@@ -73,12 +73,17 @@ declare namespace SendBird {
7373 ConnectionHandler : ConnectionHandlerStatic ;
7474
7575 GroupChannelParams : GroupChannelParams ;
76+ OpenChannelParams : OpenChannelParams ;
7677 GroupChannelListQuery : GroupChannelListQueryStatic ;
7778 UserMessageParams : UserMessageParams ;
7879 FileMessageParams : FileMessageParams ;
7980 GroupChannelTotalUnreadMessageCountParams : GroupChannelTotalUnreadMessageCountParams ;
8081 ScheduledUserMessageParams : ScheduledUserMessageParams ;
8182 GroupChannelChangeLogsParams : GroupChannelChangeLogsParams ;
83+ MessageRetrievalParams : MessageRetrievalParams ;
84+ MessageListParams : MessageListParams ;
85+ ThreadedMessageListParams : ThreadedMessageListParams ;
86+ MessageChangeLogsParams : MessageChangeLogsParams ;
8287 MessageMetaArray : MessageMetaArray ;
8388 Options : Options ;
8489
@@ -433,6 +438,12 @@ declare namespace SendBird {
433438 emojiCategories : Array < EmojiCategory > ;
434439 }
435440
441+ interface Plugin {
442+ type : string ;
443+ vendor : string ;
444+ detail : { } ;
445+ }
446+
436447 interface UserMessageParams {
437448 new ( ) : UserMessageParams ;
438449 message : string ;
@@ -459,6 +470,7 @@ declare namespace SendBird {
459470 requestedMentionUserIds : Array < string > ;
460471 errorCode : number ;
461472 messageSurvivalSeconds : number ;
473+ plugins : Plugin [ ] ;
462474 isResendable ( ) : boolean ;
463475 }
464476 interface UserMessageStatic {
@@ -1284,6 +1296,18 @@ declare namespace SendBird {
12841296 */
12851297 type commonCallback = ( response : Object , error : SendBirdError ) => void ;
12861298 type openChannelCallback = ( openChannel : OpenChannel , error : SendBirdError ) => void ;
1299+
1300+ interface OpenChannelParams {
1301+ new ( ) : OpenChannelParams ;
1302+ channelUrl : string ;
1303+ name : string ;
1304+ coverUrlOrImage : string | File ;
1305+ data : string ;
1306+ customType : string ;
1307+
1308+ operatorUserIds ( userIds : string [ ] ) : void ;
1309+ }
1310+
12871311 interface OpenChannel extends BaseChannel {
12881312 participantCount : number ;
12891313 operators : Array < User > ;
@@ -1297,6 +1321,7 @@ declare namespace SendBird {
12971321 createMutedUserListQuery ( ) : MutedUserListQuery ;
12981322 createBannedUserListQuery ( ) : BannedUserListQuery ;
12991323
1324+ updateChannel ( params : OpenChannelParams , callback : openChannelCallback ) : void ;
13001325 updateChannel ( name : string , coverUrlOrImageFile : string | File , data : string , callback : openChannelCallback ) : void ;
13011326 updateChannel (
13021327 name : string ,
@@ -1419,6 +1444,7 @@ declare namespace SendBird {
14191444 getChannelWithoutCache ( channelUrl : string , callback : openChannelCallback ) : void ;
14201445
14211446 createChannel ( callback : openChannelCallback ) : void ;
1447+ createChannel ( params : OpenChannelParams , callback : openChannelCallback ) : void ;
14221448 createChannel ( name : string , coverUrlOrImageFile : string | File , data : string , callback : openChannelCallback ) : void ; // DEPRECATED
14231449 createChannel (
14241450 name : string ,
0 commit comments