k2-im 0.1.47 → 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 +1 -1
- package/dist/chat-kit-pinia.d.ts +17 -8
- package/dist/chat-kit-pinia.js +1 -1
- package/dist/chat-kit-vue.d.ts +33 -7
- package/dist/chat-kit-vue.js +1 -1
- package/dist/chat-kit.d.ts +9 -6
- package/dist/chat-kit.js +1 -1
- package/dist/chunk-527YCOBJ.js +2 -0
- package/dist/chunk-A6UPH4T4.js +1 -0
- package/dist/{chunk-EQWMFGJV.js → chunk-EQSL3SQW.js} +1 -1
- package/dist/chunk-SEFYSJSB.js +2 -0
- package/dist/chunk-SWWW7C2U.js +7 -0
- package/dist/{chunk-QZEZUDJQ.js → chunk-YOS2232I.js} +1 -1
- package/dist/chunk-ZUL5OBYN.js +1 -0
- package/dist/i18n.d.ts +7 -4
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +31 -14
- package/dist/index.js +1 -1
- package/dist/sdk.d.ts +31 -14
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7DVPMFWS.js +0 -1
- package/dist/chunk-7PCBQBZL.js +0 -2
- package/dist/chunk-M4QPM7FW.js +0 -2
- package/dist/chunk-R3MSZLO6.js +0 -7
- package/dist/chunk-TIIRB2JK.js +0 -1
package/dist/browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-
|
|
1
|
+
export{Ua as canCopyImageToClipboard,Va as copyImageToClipboard,B as createLazyBrowserApiProtocolClient}from'./chunk-SWWW7C2U.js';import'./chunk-527YCOBJ.js';import'./chunk-WOT6VMZA.js';
|
package/dist/chat-kit-pinia.d.ts
CHANGED
|
@@ -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-
|
|
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
|
-
|
|
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=文件
|
|
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';
|
|
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;
|
|
@@ -9197,7 +9200,10 @@ interface ImThreadStoreState {
|
|
|
9197
9200
|
}
|
|
9198
9201
|
/** Thread Store 的稳定公共动作;DOM 滚动、路由和反馈仍由宿主负责。 */
|
|
9199
9202
|
interface ImThreadStoreActions {
|
|
9200
|
-
|
|
9203
|
+
/** beforeCommit 在新句柄准备后、替换旧线程前执行;失败关闭新句柄并保留旧线程。 */
|
|
9204
|
+
open: (ref: ConversationRef<ProductHandleConversationType>, options?: {
|
|
9205
|
+
beforeCommit?: () => Promise<void>;
|
|
9206
|
+
}) => Promise<ProductConversationHandle | undefined>;
|
|
9201
9207
|
invalidatePendingOpen: () => void;
|
|
9202
9208
|
/** 默认重新读取最新页;仅在无需取代在途历史操作且已稳定处于最新窗口时允许跳过。 */
|
|
9203
9209
|
loadLatest: (options?: {
|
|
@@ -9215,7 +9221,10 @@ interface ImThreadStoreActions {
|
|
|
9215
9221
|
leave: () => void;
|
|
9216
9222
|
loadOlder: () => Promise<boolean>;
|
|
9217
9223
|
loadNewer: () => Promise<boolean>;
|
|
9218
|
-
|
|
9224
|
+
/** 默认重新定位;skipIfLoaded 仅在目标已显示且没有在途窗口操作时复用当前窗口。 */
|
|
9225
|
+
loadAround: (messageId: string, options?: {
|
|
9226
|
+
skipIfLoaded?: boolean;
|
|
9227
|
+
}) => Promise<boolean>;
|
|
9219
9228
|
resolveMessage: (messageId: string) => Promise<ImMessageView | null>;
|
|
9220
9229
|
retainHandle: (handle?: ProductConversationHandle) => () => void;
|
|
9221
9230
|
retainCurrentHandle: () => () => void;
|