1
1
/**
2
- * Type Definitions for Sendbird SDK v3.0.135
2
+ * Type Definitions for Sendbird SDK v3.0.136
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
@@ -286,15 +286,15 @@ declare namespace SendBird {
286
286
}
287
287
288
288
interface UserEventHandlerStatic {
289
- new ( ) : UserEventHandler ;
289
+ new ( ) : UserEventHandler ;
290
290
}
291
291
interface UserEventHandler {
292
292
onFriendsDiscovered ( users : Array < User > ) : void ;
293
293
onTotalUnreadMessageCountUpdated ( totalCount : Number , countByCustomTypes : Object ) : void ;
294
294
}
295
295
296
296
interface ChannelHandlerStatic {
297
- new ( ) : ChannelHandler ;
297
+ new ( ) : ChannelHandler ;
298
298
}
299
299
interface ChannelHandler {
300
300
onMessageReceived ( channel : OpenChannel | GroupChannel , message : AdminMessage | UserMessage | FileMessage ) : void ;
@@ -330,7 +330,7 @@ declare namespace SendBird {
330
330
}
331
331
332
332
interface ConnectionHandlerStatic {
333
- new ( ) : ConnectionHandler ;
333
+ new ( ) : ConnectionHandler ;
334
334
}
335
335
interface ConnectionHandler {
336
336
onReconnectStarted ( ) : void ;
@@ -392,7 +392,7 @@ declare namespace SendBird {
392
392
}
393
393
394
394
interface GroupChannelTotalUnreadMessageCountParams {
395
- new ( ) : GroupChannelTotalUnreadMessageCountParams ;
395
+ new ( ) : GroupChannelTotalUnreadMessageCountParams ;
396
396
channelCustomTypesFilter : Array < string > ;
397
397
superChannelFilter : 'all' | 'super' | 'nonsuper' ;
398
398
}
@@ -415,7 +415,7 @@ declare namespace SendBird {
415
415
}
416
416
417
417
interface UserMessageParams {
418
- new ( ) : UserMessageParams ;
418
+ new ( ) : UserMessageParams ;
419
419
message : string ;
420
420
data : string ;
421
421
customType : string ;
@@ -448,7 +448,7 @@ declare namespace SendBird {
448
448
}
449
449
450
450
interface FileMessageParams {
451
- new ( ) : FileMessageParams ;
451
+ new ( ) : FileMessageParams ;
452
452
file : File ;
453
453
fileUrl : string ;
454
454
fileName : string ;
@@ -488,7 +488,7 @@ declare namespace SendBird {
488
488
}
489
489
490
490
interface MessageRetrievalParams {
491
- new ( ) : MessageRetrievalParams ;
491
+ new ( ) : MessageRetrievalParams ;
492
492
channelUrl : string ;
493
493
channelType : string ;
494
494
messageId : number ;
@@ -497,7 +497,7 @@ declare namespace SendBird {
497
497
includeThreadInfo : boolean ;
498
498
}
499
499
interface MessageListParams {
500
- new ( ) : MessageListParams ;
500
+ new ( ) : MessageListParams ;
501
501
prevResultSize : number ;
502
502
nextResultSize : number ;
503
503
isInclusive : boolean ;
@@ -510,9 +510,10 @@ declare namespace SendBird {
510
510
includeReplies : boolean ;
511
511
includeParentMessageText : boolean ;
512
512
includeThreadInfo : boolean ;
513
+ showSubchannelMessagesOnly : boolean ;
513
514
}
514
515
interface ThreadedMessageListParams {
515
- new ( ) : ThreadedMessageListParams ;
516
+ new ( ) : ThreadedMessageListParams ;
516
517
prevResultSize : number ;
517
518
nextResultSize : number ;
518
519
isInclusive : boolean ;
@@ -525,7 +526,7 @@ declare namespace SendBird {
525
526
includeParentMessageText : boolean ;
526
527
}
527
528
interface MessageChangeLogsParams {
528
- new ( ) : MessageChangeLogsParams ;
529
+ new ( ) : MessageChangeLogsParams ;
529
530
includeMetaArray : boolean ;
530
531
includeReactions : boolean ;
531
532
includeReplies : boolean ;
@@ -1252,6 +1253,7 @@ declare namespace SendBird {
1252
1253
includeReplies : boolean ;
1253
1254
includeParentMessageText : boolean ;
1254
1255
includeThreadInfo : boolean ;
1256
+ showSubchannelMessagesOnly : boolean ;
1255
1257
1256
1258
load ( limit : number , reverse : boolean , callback : messageListCallback ) : void ;
1257
1259
load ( limit : number , reverse : boolean , messageType : number , callback : messageListCallback ) : void ;
@@ -1480,7 +1482,7 @@ declare namespace SendBird {
1480
1482
* GroupChannel
1481
1483
*/
1482
1484
interface GroupChannelParams {
1483
- new ( ) : GroupChannelParams ;
1485
+ new ( ) : GroupChannelParams ;
1484
1486
isDistinct : boolean ;
1485
1487
isSuper : boolean ;
1486
1488
isBroadcast : boolean ;
@@ -1506,7 +1508,7 @@ declare namespace SendBird {
1506
1508
}
1507
1509
1508
1510
interface ScheduledUserMessageParams {
1509
- new ( ) : ScheduledUserMessageParams ;
1511
+ new ( ) : ScheduledUserMessageParams ;
1510
1512
message : string ;
1511
1513
data : string ;
1512
1514
customType : string ;
@@ -1528,7 +1530,7 @@ declare namespace SendBird {
1528
1530
}
1529
1531
1530
1532
interface GroupChannelChangeLogsParams {
1531
- new ( ) : GroupChannelChangeLogsParams ;
1533
+ new ( ) : GroupChannelChangeLogsParams ;
1532
1534
customTypes : Array < string > ;
1533
1535
includeEmpty : boolean ;
1534
1536
includeFrozen : boolean ;
@@ -1540,18 +1542,18 @@ declare namespace SendBird {
1540
1542
}
1541
1543
1542
1544
interface MessageMetaArray {
1543
- new ( key : string , value : Array < string > ) : MessageMetaArray ;
1545
+ new ( key : string , value : Array < string > ) : MessageMetaArray ;
1544
1546
key : string ;
1545
1547
value : Array < string > ;
1546
1548
}
1547
1549
interface Reaction {
1548
- new ( ) : Reaction ;
1550
+ new ( ) : Reaction ;
1549
1551
key : string ;
1550
1552
userIds : Array < string > ;
1551
1553
updatedAt : number ;
1552
1554
}
1553
1555
interface ReactionEvent {
1554
- new ( ) : ReactionEvent ;
1556
+ new ( ) : ReactionEvent ;
1555
1557
messageId : number ;
1556
1558
userId : string ;
1557
1559
key : string ;
@@ -1560,29 +1562,29 @@ declare namespace SendBird {
1560
1562
}
1561
1563
1562
1564
interface ThreadInfo {
1563
- new ( ) : ThreadInfo ;
1565
+ new ( ) : ThreadInfo ;
1564
1566
replyCount : number ;
1565
1567
mostRepliedUsers : Array < User > ;
1566
1568
lastRepliedAt : number ;
1567
1569
updatedAt : number ;
1568
1570
}
1569
1571
interface ThreadInfoUpdateEvent {
1570
- new ( ) : ThreadInfoUpdateEvent ;
1572
+ new ( ) : ThreadInfoUpdateEvent ;
1571
1573
threadInfo : ThreadInfo ;
1572
1574
targetMessageId : number ;
1573
1575
channelUrl : string ;
1574
1576
channelType : string ;
1575
1577
}
1576
1578
1577
1579
interface OGMetaData {
1578
- new ( ) : OGMetaData ;
1580
+ new ( ) : OGMetaData ;
1579
1581
title : string ;
1580
1582
url : string ;
1581
1583
description : string ;
1582
1584
defaultImage : OGImage ;
1583
1585
}
1584
1586
interface OGImage {
1585
- new ( ) : OGImage ;
1587
+ new ( ) : OGImage ;
1586
1588
url : string ;
1587
1589
secureUrl : string ;
1588
1590
type : string ;
0 commit comments