k2-im 0.1.48 → 0.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -1 +1 @@
1
- export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-ELGE657I.js';import'./chunk-FMEZINTJ.js';import'./chunk-WOT6VMZA.js';
1
+ export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-SWWW7C2U.js';import'./chunk-527YCOBJ.js';import'./chunk-WOT6VMZA.js';
@@ -614,20 +614,21 @@ interface ImMediaAlbumBody {
614
614
  /** 媒体项,顺序即用户选择顺序(决定宫格 index 与首项朝向)。 */
615
615
  items: readonly ImMediaAlbumItem[];
616
616
  }
617
- /** 直播间分享的直播类型。wire `liveType`:1 视频、2 语音、3 双手机、4 单手机录屏、5 语聊房。 */
617
+ /** 直播间分享的直播类型。wire `liveType`:1 视频、2 语音、3 双手机、4 单手机录屏、5 语聊房。空字符串对应 wire 0,表示调用方没有类型,不猜成某一种直播。 */
618
618
  type ImLiveRoomType = 'video' | 'voice' | 'dual-phone' | 'screen-record' | 'voice-chat';
619
619
  /** 直播间分享的房间状态。wire `liveRoomStatus`:1 预告、2 直播中、3 已结束。 */
620
620
  type ImLiveRoomStatus = 'preview' | 'live' | 'ended';
621
621
  /**
622
- * 直播间分享卡片正文(contentType==='liveRoom',协议 BMessage.contentType=30,fields 98-112)。
622
+ * 直播间分享卡片正文(contentType==='liveRoom',协议 BMessage.contentType=30,fields 98-113)。
623
623
  *
624
624
  * @remarks 调用方先拿到直播间快照再写入本结构。Core 不请求直播接口,也不把缺省枚举猜成某一种直播。
625
625
  * `uid` 是声网 SDK 初始化用的 UID,不是 IM 用户 id。
626
626
  */
627
627
  interface ImLiveRoomBody {
628
- /** 直播间 ID(BMessage.liveRoomId)。 */
628
+ /** 直播间 ID(BMessage.liveRoomId)。没有房间号时为空字符串。 */
629
629
  liveRoomId: string;
630
- liveType: ImLiveRoomType;
630
+ /** 没有直播类型时为空字符串。 */
631
+ liveType: ImLiveRoomType | '';
631
632
  liveRoomStatus: ImLiveRoomStatus;
632
633
  /** 当前账号是否已关注主播。协议 bool 无法区分未设置,false 也是有效状态。 */
633
634
  isFocus: boolean;
@@ -647,6 +648,8 @@ interface ImLiveRoomBody {
647
648
  livePreviewId?: string;
648
649
  /** 直播间人数字符串,保持协议原文,不在 Core 换算。 */
649
650
  liveRoomViewers?: string;
651
+ /** 点赞数十进制字符串,保持协议原文,不在 Core 换算。 */
652
+ liveRoomLikes?: string;
650
653
  }
651
654
  interface ImMessageBody {
652
655
  /** P0 文本内容(明文,解密后的结果)。 */
@@ -1949,10 +1952,10 @@ interface ImProfilePort {
1949
1952
  * 会话收藏可展示的内容类型;与 iOS `isSupportCollectionMsgType` 对齐。
1950
1953
  *
1951
1954
  * @remarks 这些值与收藏接口的 `content_type` 数值一一对应,而那个数值就是消息自己的 contentType
1952
- * (1=文本 2=图片 3=视频 4=语音 5=位置 11=文件 28=媒体合集 29=文件合集),不是另一套收藏专用枚举。
1955
+ * (1=文本 2=图片 3=视频 4=语音 5=位置 11=文件 28=媒体合集 29=文件合集 30=直播间分享),不是另一套收藏专用枚举。
1953
1956
  * Android `MessageCollectExecute` 直接写 `message.getContentType()`,iOS 写 `msg.msgType`,两端一致。
1954
1957
  */
1955
- type ImSessionFavoriteKind = 'text' | 'image' | 'video' | 'voice' | 'location' | 'file' | 'mediaAlbum' | 'filesAlbum';
1958
+ type ImSessionFavoriteKind = 'text' | 'image' | 'video' | 'voice' | 'location' | 'file' | 'mediaAlbum' | 'filesAlbum' | 'liveRoom';
1956
1959
  /** 服务端一条会话收藏快照;列表以 HTTP 为准,不回写原消息。 */
1957
1960
  interface ImSessionFavoriteItem$1 {
1958
1961
  readonly collectId: string;