1
1
/**
2
- * Type Definitions for SendBird SDK v3.0.125
2
+ * Type Definitions for SendBird SDK v3.0.126
3
3
* homepage: https://sendbird.com/
4
4
* git: https://github.com/sendbird/SendBird-SDK-JavaScript
5
5
*/
@@ -11,7 +11,7 @@ declare const SendBird: SendBirdStatic;
11
11
12
12
interface SendBirdStatic {
13
13
version : number ;
14
- new ( { appId } : { appId : string } ) : SendBird . SendBirdInstance ;
14
+ new ( { appId } : { appId : string } ) : SendBird . SendBirdInstance ;
15
15
getInstance ( ) : SendBird . SendBirdInstance ;
16
16
}
17
17
@@ -277,15 +277,15 @@ declare namespace SendBird {
277
277
}
278
278
279
279
interface UserEventHandlerStatic {
280
- new ( ) : UserEventHandler ;
280
+ new ( ) : UserEventHandler ;
281
281
}
282
282
interface UserEventHandler {
283
283
onFriendsDiscovered ( users : Array < User > ) : void ;
284
284
onTotalUnreadMessageCountUpdated ( totalCount : Number , countByCustomTypes : Object ) : void ;
285
285
}
286
286
287
287
interface ChannelHandlerStatic {
288
- new ( ) : ChannelHandler ;
288
+ new ( ) : ChannelHandler ;
289
289
}
290
290
interface ChannelHandler {
291
291
onMessageReceived ( channel : OpenChannel | GroupChannel , message : AdminMessage | UserMessage | FileMessage ) : void ;
@@ -321,7 +321,7 @@ declare namespace SendBird {
321
321
}
322
322
323
323
interface ConnectionHandlerStatic {
324
- new ( ) : ConnectionHandler ;
324
+ new ( ) : ConnectionHandler ;
325
325
}
326
326
interface ConnectionHandler {
327
327
onReconnectStarted ( ) : void ;
@@ -343,6 +343,7 @@ declare namespace SendBird {
343
343
reactions : Array < Reaction > ;
344
344
mentionType : string ;
345
345
mentionedUsers : Array < User > ;
346
+ silent : boolean ;
346
347
createdAt : number ;
347
348
updatedAt : number ;
348
349
parentMessageId : number ;
@@ -381,7 +382,7 @@ declare namespace SendBird {
381
382
}
382
383
383
384
interface GroupChannelTotalUnreadMessageCountParams {
384
- new ( ) : GroupChannelTotalUnreadMessageCountParams ;
385
+ new ( ) : GroupChannelTotalUnreadMessageCountParams ;
385
386
channelCustomTypesFilter : Array < string > ;
386
387
superChannelFilter : 'all' | 'super' | 'nonsuper' ;
387
388
}
@@ -404,7 +405,7 @@ declare namespace SendBird {
404
405
}
405
406
406
407
interface UserMessageParams {
407
- new ( ) : UserMessageParams ;
408
+ new ( ) : UserMessageParams ;
408
409
message : string ;
409
410
data : string ;
410
411
customType : string ;
@@ -437,7 +438,7 @@ declare namespace SendBird {
437
438
}
438
439
439
440
interface FileMessageParams {
440
- new ( ) : FileMessageParams ;
441
+ new ( ) : FileMessageParams ;
441
442
file : File ;
442
443
fileUrl : string ;
443
444
fileName : string ;
@@ -476,7 +477,7 @@ declare namespace SendBird {
476
477
}
477
478
478
479
interface MessageRetrievalParams {
479
- new ( ) : MessageRetrievalParams ;
480
+ new ( ) : MessageRetrievalParams ;
480
481
channelUrl : string ;
481
482
channelType : string ;
482
483
messageId : number ;
@@ -485,7 +486,7 @@ declare namespace SendBird {
485
486
includeThreadInfo : boolean ;
486
487
}
487
488
interface MessageListParams {
488
- new ( ) : MessageListParams ;
489
+ new ( ) : MessageListParams ;
489
490
prevResultSize : number ;
490
491
nextResultSize : number ;
491
492
isInclusive : boolean ;
@@ -500,7 +501,7 @@ declare namespace SendBird {
500
501
includeThreadInfo : boolean ;
501
502
}
502
503
interface ThreadedMessageListParams {
503
- new ( ) : ThreadedMessageListParams ;
504
+ new ( ) : ThreadedMessageListParams ;
504
505
prevResultSize : number ;
505
506
nextResultSize : number ;
506
507
isInclusive : boolean ;
@@ -513,7 +514,7 @@ declare namespace SendBird {
513
514
includeParentMessageText : boolean ;
514
515
}
515
516
interface MessageChangeLogsParams {
516
- new ( ) : MessageChangeLogsParams ;
517
+ new ( ) : MessageChangeLogsParams ;
517
518
includeMetaArray : boolean ;
518
519
includeReactions : boolean ;
519
520
includeReplies : boolean ;
@@ -1445,7 +1446,7 @@ declare namespace SendBird {
1445
1446
* GroupChannel
1446
1447
*/
1447
1448
interface GroupChannelParams {
1448
- new ( ) : GroupChannelParams ;
1449
+ new ( ) : GroupChannelParams ;
1449
1450
isDistinct : boolean ;
1450
1451
isSuper : boolean ;
1451
1452
isBroadcast : boolean ;
@@ -1471,7 +1472,7 @@ declare namespace SendBird {
1471
1472
}
1472
1473
1473
1474
interface ScheduledUserMessageParams {
1474
- new ( ) : ScheduledUserMessageParams ;
1475
+ new ( ) : ScheduledUserMessageParams ;
1475
1476
message : string ;
1476
1477
data : string ;
1477
1478
customType : string ;
@@ -1505,18 +1506,18 @@ declare namespace SendBird {
1505
1506
}
1506
1507
1507
1508
interface MessageMetaArray {
1508
- new ( key : string , value : Array < string > ) : MessageMetaArray ;
1509
+ new ( key : string , value : Array < string > ) : MessageMetaArray ;
1509
1510
key : string ;
1510
1511
value : Array < string > ;
1511
1512
}
1512
1513
interface Reaction {
1513
- new ( ) : Reaction ;
1514
+ new ( ) : Reaction ;
1514
1515
key : string ;
1515
1516
userIds : Array < string > ;
1516
1517
updatedAt : number ;
1517
1518
}
1518
1519
interface ReactionEvent {
1519
- new ( ) : ReactionEvent ;
1520
+ new ( ) : ReactionEvent ;
1520
1521
messageId : string ;
1521
1522
userId : string ;
1522
1523
key : string ;
@@ -1525,14 +1526,14 @@ declare namespace SendBird {
1525
1526
}
1526
1527
1527
1528
interface ThreadInfo {
1528
- new ( ) : ThreadInfo ;
1529
+ new ( ) : ThreadInfo ;
1529
1530
replyCount : number ;
1530
1531
mostRepliedUsers : Array < User > ;
1531
1532
lastRepliedAt : number ;
1532
1533
updatedAt : number ;
1533
1534
}
1534
1535
interface ThreadInfoUpdateEvent {
1535
- new ( ) : ThreadInfoUpdateEvent ;
1536
+ new ( ) : ThreadInfoUpdateEvent ;
1536
1537
threadInfo : ThreadInfo ;
1537
1538
targetMessageId : number ;
1538
1539
channelUrl : string ;
0 commit comments