k2-im 0.1.24 → 0.1.26
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 +5 -5
- package/dist/chat-kit-pinia.js +1 -1
- package/dist/chat-kit-vue.d.ts +2 -2
- package/dist/chat-kit-vue.js +1 -1
- package/dist/chat-kit.d.ts +130 -26
- package/dist/chat-kit.js +1 -1
- package/dist/chunk-GMVR64GN.js +7 -0
- package/dist/chunk-LX7YEO5G.js +2 -0
- package/dist/chunk-SVJGRV4M.js +2 -0
- package/dist/chunk-UNGWXAYA.js +1 -0
- package/dist/{chunk-FUEAUHMC.js → chunk-V7ULSSTZ.js} +1 -1
- package/dist/chunk-VMKTMZ3K.js +1 -0
- package/dist/chunk-WYQXQOLW.js +2 -0
- package/dist/i18n.d.ts +2 -2
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +1039 -937
- package/dist/index.js +1 -1
- package/dist/sdk.d.ts +9 -9
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EM4YNWX4.js +0 -2
- package/dist/chunk-HNSTHP6F.js +0 -2
- package/dist/chunk-HQ7FTY2C.js +0 -1
- package/dist/chunk-MO2EU56Q.js +0 -7
- package/dist/chunk-W5SQGPRQ.js +0 -2
- package/dist/chunk-YQSRQ25X.js +0 -1
package/dist/browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as createLazyBrowserApiProtocolClient}from'./chunk-
|
|
1
|
+
export{A as createLazyBrowserApiProtocolClient}from'./chunk-GMVR64GN.js';import'./chunk-LX7YEO5G.js';import'./chunk-WOT6VMZA.js';
|
package/dist/chat-kit-pinia.d.ts
CHANGED
|
@@ -613,12 +613,12 @@ interface ImMessage {
|
|
|
613
613
|
body: ImMessageBody;
|
|
614
614
|
/** P0 统一毫秒 number(本地创建时间,乐观渲染用)。 */
|
|
615
615
|
createdAt: number;
|
|
616
|
-
/**
|
|
616
|
+
/** SDK 内部排序键;有效服务端时间优先,ACK 后可以更新。宿主不解析它,消息身份始终使用 id。 */
|
|
617
617
|
sortKey: string;
|
|
618
618
|
status: MessageSendStatus;
|
|
619
619
|
/** 失败原因(status==='failed' 时)。 */
|
|
620
620
|
failure?: ImMessageFailure;
|
|
621
|
-
/**
|
|
621
|
+
/** 服务端回传的 epoch 毫秒时间;有效时用于正式排序与展示,createdAt 仍保留创建记录。 */
|
|
622
622
|
serverTime?: number;
|
|
623
623
|
/** P0 默认 'unread'。 */
|
|
624
624
|
receipt: MessageReceipt;
|
|
@@ -1020,8 +1020,8 @@ type ChannelMiniProgramRelConfigType = 'pinned-game' | 'float-link' | 'float-gam
|
|
|
1020
1020
|
/**
|
|
1021
1021
|
* 频道资料上的关联小程序(`/user_radio/info` 的 `mini_program_rel_list`)。
|
|
1022
1022
|
*
|
|
1023
|
-
* @remarks 这不是消息 22。语言/币种 CSV
|
|
1024
|
-
*
|
|
1023
|
+
* @remarks 这不是消息 22。语言/币种 CSV 原样保留,SDK 不过滤;可见性与打开资格由 Chat Kit 纯函数处理。
|
|
1024
|
+
* 打开器、半屏 iframe 与鉴权属于宿主,不进本 DTO。
|
|
1025
1025
|
*/
|
|
1026
1026
|
interface ChannelMiniProgramRel {
|
|
1027
1027
|
configType: ChannelMiniProgramRelConfigType;
|
|
@@ -5408,7 +5408,7 @@ interface ConversationSearchPage<TType extends ProductHandleConversationType = P
|
|
|
5408
5408
|
/**
|
|
5409
5409
|
* 产品消息搜索结果;只暴露稳定定位身份和搜索面板所需的展示字段。
|
|
5410
5410
|
*
|
|
5411
|
-
* @remarks `
|
|
5411
|
+
* @remarks `createdAt` 是搜索面板展示时间,与线程一致优先使用服务端时间;结果不携带 sortKey 或 history cursor。
|
|
5412
5412
|
*/
|
|
5413
5413
|
interface ProductMessageSearchResult<TContent extends MessageContentType = MessageContentType> {
|
|
5414
5414
|
ref: ConversationRef<ProductHandleConversationType>;
|