k2-im 0.1.32 → 0.1.34
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.d.ts +24 -2
- package/dist/browser.js +1 -1
- package/dist/chat-kit-pinia.d.ts +175 -26
- package/dist/chat-kit-pinia.js +1 -1
- package/dist/chat-kit-vue.d.ts +24 -4
- package/dist/chat-kit-vue.js +1 -1
- package/dist/chat-kit.d.ts +140 -20
- package/dist/chat-kit.js +1 -1
- package/dist/chunk-4HJR3NAM.js +1 -0
- package/dist/chunk-IEFK5A7T.js +7 -0
- package/dist/chunk-PJ2PW42T.js +2 -0
- package/dist/chunk-QDQNYCIH.js +1 -0
- package/dist/chunk-QK3UXZKZ.js +2 -0
- package/dist/chunk-WQBCUQ6Q.js +2 -0
- package/dist/chunk-YEXLMW5J.js +1 -0
- package/dist/i18n.d.ts +38 -6
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +166 -26
- package/dist/index.js +1 -1
- package/dist/sdk.d.ts +102 -16
- package/dist/sdk.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-GAAHNTJM.js +0 -7
- package/dist/chunk-HSVVRLGM.js +0 -1
- package/dist/chunk-JA5TKCQ2.js +0 -2
- package/dist/chunk-MIFIQ45I.js +0 -2
- package/dist/chunk-OYH7COTJ.js +0 -1
- package/dist/chunk-QQ23QYWK.js +0 -2
- package/dist/chunk-SEHHXKP7.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ interface ConversationDraft$1 {
|
|
|
48
48
|
updatedAt: number;
|
|
49
49
|
}
|
|
50
50
|
/** 消息内容类型。sticker=表情/贴图(BMessage contentType=7);call=单聊通话记录(contentType=10);transfer=转账(contentType=16);gift=礼品/刮刮卡(contentType=17);robot=机器人卡片(contentType=18);miniProgram=小程序分享卡(contentType=22);redPacket=红包卡(contentType=25);game=小游戏(contentType=27);未知 wire 正文统一归一为 unknown。 */
|
|
51
|
-
type MessageContentType = 'text' | 'system' | 'image' | 'video' | 'voice' | 'file' | 'sticker' | 'contact' | 'miniProgram' | 'game' | 'transfer' | 'gift' | 'call' | 'redPacket' | 'mediaAlbum' | 'robot' | 'unknown';
|
|
51
|
+
type MessageContentType = 'text' | 'system' | 'image' | 'video' | 'voice' | 'file' | 'sticker' | 'contact' | 'miniProgram' | 'game' | 'transfer' | 'gift' | 'call' | 'redPacket' | 'mediaAlbum' | 'filesAlbum' | 'robot' | 'unknown';
|
|
52
52
|
/**
|
|
53
53
|
* 发送态(客户端态):消息从本地创建到服务端确认的生命周期。
|
|
54
54
|
* `uploading` 仅媒体消息使用:文件上传阶段(uploading→pending→sending→sent);
|
|
@@ -130,6 +130,12 @@ type LastMessageSummary = {
|
|
|
130
130
|
kind: 'voice';
|
|
131
131
|
durationMs?: number;
|
|
132
132
|
}
|
|
133
|
+
/** 文件合集的有序文件数量与可选配文,文案由 i18n 决定。 */
|
|
134
|
+
| {
|
|
135
|
+
kind: 'filesAlbum';
|
|
136
|
+
count: number;
|
|
137
|
+
caption?: string;
|
|
138
|
+
}
|
|
133
139
|
/**
|
|
134
140
|
* 媒体合集(contentType 28)。
|
|
135
141
|
*
|
|
@@ -222,6 +228,13 @@ interface ImVideoBody {
|
|
|
222
228
|
/** 文件加密类型:1=不加密,3=完整 TEA(BMessage.fileEncryptType;视频与图片同体系走完整 TEA)。 */
|
|
223
229
|
fileEncryptType?: number;
|
|
224
230
|
}
|
|
231
|
+
/** 文件合集正文;接收保留所有有序文件项,首次发送每条只包含一个文件。 */
|
|
232
|
+
interface ImFilesAlbumBody {
|
|
233
|
+
/** 文件下方的配文;无配文时省略。 */
|
|
234
|
+
caption?: string;
|
|
235
|
+
/** 文件元数据与独立解密参数;本地上传占位允许 URL 暂为空。 */
|
|
236
|
+
items: readonly ImFileBody[];
|
|
237
|
+
}
|
|
225
238
|
/**
|
|
226
239
|
* 文件(附件)消息内容体(contentType==='file')。领域友好类型(string/number),协议 BMessage 的 bytes/bigint 字段在 mapping 层互转。
|
|
227
240
|
* 对齐 Android IMFileMsgBody / BMessage 文件字段(见 outputs/architecture/subagent-read-docs/研究Android文件上传实现.md):
|
|
@@ -633,6 +646,8 @@ interface ImMessageBody {
|
|
|
633
646
|
redPacket?: ImRedPacketBody;
|
|
634
647
|
/** contentType==='mediaAlbum' 时的媒体合集正文(配文 + 1~9 个图片/视频项)。 */
|
|
635
648
|
mediaAlbum?: ImMediaAlbumBody;
|
|
649
|
+
/** 文件合集(协议 29),与图片/视频合集独立。 */
|
|
650
|
+
filesAlbum?: ImFilesAlbumBody;
|
|
636
651
|
/** contentType==='robot' 时的机器人卡片。 */
|
|
637
652
|
robot?: ImRobotBody;
|
|
638
653
|
/** contentType==='unknown' 时的稳定未知正文,不含原始 wire type。 */
|
|
@@ -669,7 +684,7 @@ type ImMessageFailureReason = 'timeout' | 'rejected' | 'encrypt_failed' | 'netwo
|
|
|
669
684
|
* 失败**展示语义**码(强类型枚举,非裸串):供 im-i18n 按 locale 渲染失败气泡文案。
|
|
670
685
|
* 由 `reason` / `SendMediaFailReason` / ACK errcode 穷尽映射而来,与 im-i18n failure catalog 键一一对应(media.* 带 mediaKind 参数)。
|
|
671
686
|
*/
|
|
672
|
-
type ImFailureDisplayCode = 'media.empty' | 'media.noCrypto' | 'media.previewFailed' | 'media.encryptFailed' | 'media.uploadFailed' | 'media.cancelled' | 'media.invalidDuration' | 'media.uploadInterrupted' | 'media.contentTooLarge' | 'contactRequired' | 'messageRefused' | 'forbiddenOrLeft' | 'contentRejected' | 'groupDismissed' | 'groupUnavailable' | 'channelDismissed' | 'channelMuted' | 'channelNotMember' | 'channelAdminRequired' | 'conversationUnsupported' | 'sendCanceled' | 'sessionLoggedOut' | 'timeout' | 'network' | 'unknown';
|
|
687
|
+
type ImFailureDisplayCode = 'media.empty' | 'media.noCrypto' | 'media.previewFailed' | 'media.encryptFailed' | 'media.resumeUnavailable' | 'media.cleanupUnconfirmed' | 'media.uploadFailed' | 'media.uploadTimeout' | 'media.cancelled' | 'media.invalidDuration' | 'media.uploadInterrupted' | 'media.contentTooLarge' | 'contactRequired' | 'messageRefused' | 'forbiddenOrLeft' | 'contentRejected' | 'groupDismissed' | 'groupUnavailable' | 'channelDismissed' | 'channelMuted' | 'channelNotMember' | 'channelAdminRequired' | 'conversationUnsupported' | 'sendCanceled' | 'sessionLoggedOut' | 'timeout' | 'network' | 'unknown';
|
|
673
688
|
interface ImMessageFailure {
|
|
674
689
|
/** 归一后的错误码(来自 MESChatAck.errcode 或本地失败码,本地码用负值)。 */
|
|
675
690
|
code: number;
|
|
@@ -695,7 +710,7 @@ interface MediaTaskUpdate {
|
|
|
695
710
|
messageId: string;
|
|
696
711
|
ref: ConversationRef;
|
|
697
712
|
direction: 'upload' | 'download';
|
|
698
|
-
state: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
713
|
+
state: 'queued' | 'running' | 'paused' | 'completed' | 'failed' | 'canceled';
|
|
699
714
|
percent: number;
|
|
700
715
|
/**
|
|
701
716
|
* upload 任务子阶段。
|
|
@@ -703,7 +718,16 @@ interface MediaTaskUpdate {
|
|
|
703
718
|
* `waiting-upload-slot` 与 `state: 'queued'` 同时出现,表示还没开始传字节(在生成缩略图或在等上传槽位),
|
|
704
719
|
* 此时 percent 恒为 0;`transferring` 正在传字节;`finalizing` 是等待远端 URL 最终确认。
|
|
705
720
|
*/
|
|
706
|
-
phase?: 'waiting-upload-slot' | 'transferring' | 'finalizing';
|
|
721
|
+
phase?: 'waiting-upload-slot' | 'waiting-retry' | 'transferring' | 'finalizing';
|
|
722
|
+
/** 当前发送意图的尝试序号与总上限。 */
|
|
723
|
+
attempt?: number;
|
|
724
|
+
maxAttempts?: number;
|
|
725
|
+
/** 已传与总字节数,供共享展示层估算速度。 */
|
|
726
|
+
bytesTransferred?: number;
|
|
727
|
+
bytesTotal?: number;
|
|
728
|
+
/** 跨刷新恢复可用性;缺省尚未建立恢复记录。 */
|
|
729
|
+
recovery?: 'available' | 'session-only';
|
|
730
|
+
recoveryReason?: string;
|
|
707
731
|
failure?: ImMessageFailure;
|
|
708
732
|
}
|
|
709
733
|
interface ImMessageEncryption {
|
|
@@ -2409,6 +2433,11 @@ type ImEvent = {
|
|
|
2409
2433
|
} | {
|
|
2410
2434
|
type: 'sync:complete';
|
|
2411
2435
|
conversations: ConversationRef[];
|
|
2436
|
+
}
|
|
2437
|
+
/** SDK 会话同步或前台内容读取的汇总状态;结束不代表所有请求成功。 */
|
|
2438
|
+
| {
|
|
2439
|
+
type: 'receiving:changed';
|
|
2440
|
+
receiving: boolean;
|
|
2412
2441
|
} | {
|
|
2413
2442
|
type: 'auth:invalid';
|
|
2414
2443
|
issue: ImAuthIssue;
|
|
@@ -2551,6 +2580,7 @@ declare const MEDIA_ALBUM_MAX_ITEMS = 9;
|
|
|
2551
2580
|
*
|
|
2552
2581
|
* 只覆盖**首次发送**。重发走的是已经成型的合集上下文,不会在中途改变消息类型。
|
|
2553
2582
|
*
|
|
2583
|
+
* @param input 首次发送的合集内容。
|
|
2554
2584
|
* @param input.items 合集项;只读项数与首项的 `kind`。
|
|
2555
2585
|
* @param input.caption 配文;`undefined` 与纯空白都算没有配文。
|
|
2556
2586
|
* @returns 首次发送会建出的气泡 contentType。
|
|
@@ -3308,12 +3338,14 @@ interface MediaTransferAdapterConfig {
|
|
|
3308
3338
|
|
|
3309
3339
|
/**
|
|
3310
3340
|
* 媒体传输错误码(稳定业务码,宿主据此给提示或排查):
|
|
3341
|
+
* - `upload-timeout`:实际网络请求连续 30 秒没有推进,已中止该请求;控制请求结果可能未确认。
|
|
3311
3342
|
* - `bucket-unconfigured`:该媒体类型或头像没有配置逻辑桶名(宿主 env 缺该资源类型)。
|
|
3312
3343
|
* - `credentials-provider-missing`:宿主没有注入 `getUploadCredentials`,无法申请临时凭证。
|
|
3313
3344
|
* - `credentials-request-failed`:宿主取凭证失败(网络、鉴权或业务码非成功);`cause` 保留宿主原始错误。
|
|
3314
3345
|
* - `credentials-invalid`:凭证回包缺少必要字段或字段非法,不允许用半份凭证去签名。
|
|
3315
3346
|
* - `upload-source-invalid`:上传内容既不是 `Uint8Array` 也不是 `Blob`(纯 JS 宿主绕过类型时的 fail-fast)。
|
|
3316
3347
|
* - `upload-size-exceeded`:超过单次 PUT 或当前固定分片策略的大小上限,申请凭据前拒绝。
|
|
3348
|
+
* - `upload-resume-unavailable`:原上传已无法继续,必须显式确认重新完整上传。
|
|
3317
3349
|
* - `multipart-etag-missing`:分片响应读不到 ETag,**桶 CORS 缺 `ExposeHeaders: ETag`**,不是网络问题。
|
|
3318
3350
|
* - `multipart-abort-failed`:分片失败后的 `AbortMultipartUpload` 清理本身失败,已上传分片可能残留并计费。
|
|
3319
3351
|
* - `multipart-upload-failed`:分片上传因其它原因失败;`cause` 保留原始错误,消息列出分片对 CORS 的额外要求。
|
|
@@ -3321,7 +3353,7 @@ interface MediaTransferAdapterConfig {
|
|
|
3321
3353
|
* - `download-object-changed`:分段之间的强 ETag 或总长度改变,拒绝混合不同文件版本。
|
|
3322
3354
|
* - `download-range-failed`:下载返回非成功 HTTP 状态。
|
|
3323
3355
|
*/
|
|
3324
|
-
type MediaTransferErrorCode = 'bucket-unconfigured' | 'credentials-provider-missing' | 'credentials-request-failed' | 'credentials-invalid' | 'upload-source-invalid' | 'upload-size-exceeded' | 'multipart-etag-missing' | 'multipart-abort-failed' | 'multipart-upload-failed' | 'download-range-invalid' | 'download-object-changed' | 'download-range-failed';
|
|
3356
|
+
type MediaTransferErrorCode = 'upload-timeout' | 'bucket-unconfigured' | 'credentials-provider-missing' | 'credentials-request-failed' | 'credentials-invalid' | 'upload-source-invalid' | 'upload-size-exceeded' | 'upload-resume-unavailable' | 'multipart-etag-missing' | 'multipart-abort-failed' | 'multipart-upload-failed' | 'download-range-invalid' | 'download-object-changed' | 'download-range-failed';
|
|
3325
3357
|
/** 媒体传输统一错误:携带稳定业务码 + 可选底层 cause(诊断用,永不携带凭证明文)。 */
|
|
3326
3358
|
declare class MediaTransferError extends Error {
|
|
3327
3359
|
readonly code: MediaTransferErrorCode;
|
|
@@ -3652,12 +3684,17 @@ interface ImMessageReactions {
|
|
|
3652
3684
|
aggregates: readonly ImMessageReactionAggregate[];
|
|
3653
3685
|
}
|
|
3654
3686
|
/** 可渲染媒体正文;密钥和底层文件加密策略只允许留在 SDK/Core。 */
|
|
3655
|
-
interface ImMessageViewBody extends Omit<ImMessageBody, 'image' | 'video' | 'voice' | 'file' | 'sticker' | 'mediaAlbum'> {
|
|
3687
|
+
interface ImMessageViewBody extends Omit<ImMessageBody, 'image' | 'video' | 'voice' | 'file' | 'sticker' | 'mediaAlbum' | 'filesAlbum'> {
|
|
3656
3688
|
image?: Readonly<Omit<NonNullable<ImMessageBody['image']>, 'teaKey' | 'fileEncryptType'>>;
|
|
3657
3689
|
video?: Readonly<Omit<NonNullable<ImMessageBody['video']>, 'teaKey' | 'fileEncryptType'>>;
|
|
3658
3690
|
voice?: Readonly<Omit<NonNullable<ImMessageBody['voice']>, 'teaKey' | 'fileEncryptType'>>;
|
|
3659
3691
|
file?: Readonly<Omit<NonNullable<ImMessageBody['file']>, 'teaKey' | 'fileEncryptType'>>;
|
|
3660
3692
|
sticker?: Readonly<NonNullable<ImMessageBody['sticker']>>;
|
|
3693
|
+
/** 文件合集产品视图不包含逐项密钥,下载只接受消息引用与下标。 */
|
|
3694
|
+
filesAlbum?: Readonly<{
|
|
3695
|
+
caption?: string;
|
|
3696
|
+
items: readonly Readonly<Omit<NonNullable<ImMessageBody['file']>, 'teaKey' | 'fileEncryptType'>>[];
|
|
3697
|
+
}>;
|
|
3661
3698
|
/** 合集的每一项都带自己的密钥材料,逐项剥离后才交给产品层;按项下载走 SDK handle,不需要这些字段。 */
|
|
3662
3699
|
mediaAlbum?: Readonly<Omit<NonNullable<ImMessageBody['mediaAlbum']>, 'items'> & {
|
|
3663
3700
|
items: readonly Readonly<Omit<ImMediaAlbumItem, 'teaKey' | 'fileEncryptType'>>[];
|
|
@@ -3820,10 +3857,13 @@ interface VoiceMessageMetadata {
|
|
|
3820
3857
|
/**
|
|
3821
3858
|
* 文件发送附加数据。
|
|
3822
3859
|
*
|
|
3823
|
-
* @remarks 传 `Blob` 时必须提供 `fileName`;传 `File` 时默认读取其 name
|
|
3860
|
+
* @remarks 传 `Blob` 时必须提供 `fileName`;传 `File` 时默认读取其 name。非空 caption 使用协议 29,无配文默认保持 11。
|
|
3824
3861
|
*/
|
|
3825
3862
|
interface FileMessageOptions {
|
|
3863
|
+
/** 文件卡下方配文,最长 1024 字符。 */
|
|
3826
3864
|
caption?: string;
|
|
3865
|
+
/** 同一带配文批次的前序文件使用 29,即使自身没有配文。 */
|
|
3866
|
+
filesAlbum?: boolean;
|
|
3827
3867
|
fileName?: string;
|
|
3828
3868
|
replyToMessageId?: string;
|
|
3829
3869
|
}
|
|
@@ -4488,6 +4528,8 @@ interface ImLifecycleSnapshot {
|
|
|
4488
4528
|
prepared: boolean;
|
|
4489
4529
|
connectionDesired: boolean;
|
|
4490
4530
|
authenticated: boolean;
|
|
4531
|
+
/** 会话同步或前台内容读取仍在进行;不包含后台预取、媒体下载和写操作,也不代表同步成功。 */
|
|
4532
|
+
receiving: boolean;
|
|
4491
4533
|
}
|
|
4492
4534
|
/** logout 的本地数据与在途消息策略。 */
|
|
4493
4535
|
interface ImLogoutOptions {
|
|
@@ -4895,6 +4937,12 @@ type ConversationLastMessageSummary = {
|
|
|
4895
4937
|
kind: 'voice';
|
|
4896
4938
|
durationMs?: number;
|
|
4897
4939
|
}
|
|
4940
|
+
/** 文件合集的文件数量与可选配文,供列表生成摘要。 */
|
|
4941
|
+
| {
|
|
4942
|
+
kind: 'filesAlbum';
|
|
4943
|
+
count: number;
|
|
4944
|
+
caption?: string;
|
|
4945
|
+
}
|
|
4898
4946
|
/**
|
|
4899
4947
|
* 媒体合集(一条消息内 1~9 个图片/视频 + 可选配文)。
|
|
4900
4948
|
*
|
|
@@ -5430,9 +5478,9 @@ interface ConversationMessageApi {
|
|
|
5430
5478
|
/** 显式添加/替换或移除,供参与者详情等不能用 toggle 猜动作的产品交互。 */
|
|
5431
5479
|
setReaction: (messageId: string, emoji: string, action: ImReactionChangeAction) => Promise<ImReactionChangeResult>;
|
|
5432
5480
|
/**
|
|
5433
|
-
*
|
|
5481
|
+
* 为源文件已释放的视频重新选择源文件,并原地替换同一条消息。
|
|
5434
5482
|
*
|
|
5435
|
-
* @remarks
|
|
5483
|
+
* @remarks 只接受上传中断、已取消或超时耗尽后的失败视频;必须重新选择文件。SDK 复用原消息 id 与排序时间,
|
|
5436
5484
|
* 不清理当前 Composer 草稿;重新上传失败仍更新同一条消息。
|
|
5437
5485
|
* @example
|
|
5438
5486
|
* ```ts
|
|
@@ -5441,9 +5489,9 @@ interface ConversationMessageApi {
|
|
|
5441
5489
|
*/
|
|
5442
5490
|
replaceInterruptedVideo: (messageId: string, file: File | Blob, options?: VideoMessageOptions) => Promise<SendMessageResult>;
|
|
5443
5491
|
/**
|
|
5444
|
-
*
|
|
5492
|
+
* 为源文件已释放的文件重新选择源文件,并原地替换同一条消息。
|
|
5445
5493
|
*
|
|
5446
|
-
* @remarks
|
|
5494
|
+
* @remarks 只接受上传中断、已取消或超时耗尽后的失败文件或单项 filesAlbum;保留原配文。SDK 复用原消息 id 与排序时间,
|
|
5447
5495
|
* 不清理当前 Composer 草稿;Blob 没有 name 时仍必须传 `fileName`。
|
|
5448
5496
|
* @example
|
|
5449
5497
|
* ```ts
|
|
@@ -5587,7 +5635,8 @@ interface ChannelConversationMessageApi extends ConversationMessageApi {
|
|
|
5587
5635
|
* 由社群管理员或社群主删除一条全员可见消息。
|
|
5588
5636
|
*
|
|
5589
5637
|
* @remarks 不受本人撤回时间窗限制;权限由 CHANNEL profile 预检并由服务端最终校验。成功后消息进入
|
|
5590
|
-
* `deletedForEveryone`
|
|
5638
|
+
* `deletedForEveryone` 终态;Chat Kit 时间线仅向社群群主和管理员显示删除提示,普通成员隐藏该项。
|
|
5639
|
+
* 该方法不用于本机删除,也不适用于普通群。
|
|
5591
5640
|
* @example
|
|
5592
5641
|
* ```ts
|
|
5593
5642
|
* const channel = await client.openConversation({ conversationType: 'channel', conversationId: '9001' })
|
|
@@ -5779,7 +5828,7 @@ interface ImMediaTask {
|
|
|
5779
5828
|
/** upload 来自发送链路,download 来自本产品 API。 */
|
|
5780
5829
|
direction: 'upload' | 'download';
|
|
5781
5830
|
/** 终态 completed/failed/canceled 不会被同一尝试的迟到 progress 回退。 */
|
|
5782
|
-
state: 'queued' | 'running' | 'completed' | 'failed' | 'canceled';
|
|
5831
|
+
state: 'queued' | 'running' | 'paused' | 'completed' | 'failed' | 'canceled';
|
|
5783
5832
|
/** 0-100 的归一化整数。 */
|
|
5784
5833
|
percent: number;
|
|
5785
5834
|
/**
|
|
@@ -5789,7 +5838,16 @@ interface ImMediaTask {
|
|
|
5789
5838
|
* 等上传槽位),此时 `percent` 恒为 0——宿主应显示「等待中」而不是把 0 当成停住的进度。
|
|
5790
5839
|
* `transferring` 是正在传字节,`finalizing` 是字节已传完、在等对象存储确认。
|
|
5791
5840
|
*/
|
|
5792
|
-
phase?: 'waiting-upload-slot' | 'transferring' | 'finalizing';
|
|
5841
|
+
phase?: 'waiting-upload-slot' | 'waiting-retry' | 'transferring' | 'finalizing';
|
|
5842
|
+
/** 当前发送意图的尝试序号与总上限。 */
|
|
5843
|
+
attempt?: number;
|
|
5844
|
+
maxAttempts?: number;
|
|
5845
|
+
/** 已传与总字节数,供共享展示层估算速度。 */
|
|
5846
|
+
bytesTransferred?: number;
|
|
5847
|
+
bytesTotal?: number;
|
|
5848
|
+
/** 跨刷新恢复可用性;缺省尚未建立恢复记录。 */
|
|
5849
|
+
recovery?: 'available' | 'session-only';
|
|
5850
|
+
recoveryReason?: string;
|
|
5793
5851
|
/** 可供产品按 code/category 决策的稳定错误;不含底层 URL、密钥或响应正文。 */
|
|
5794
5852
|
error?: ImSdkErrorShape;
|
|
5795
5853
|
}
|
|
@@ -5827,11 +5885,31 @@ interface ImMediaTasksApi {
|
|
|
5827
5885
|
* @throws 未知任务、非法状态或底层未受理时以稳定 `IM_SDK_MEDIA_TASK_*` 错误拒绝。
|
|
5828
5886
|
*/
|
|
5829
5887
|
cancel: (taskId: string) => Promise<void>;
|
|
5888
|
+
/** 暂停上传,等待请求收尾后返回;下载不支持暂停。 */
|
|
5889
|
+
pause: (taskId: string) => Promise<void>;
|
|
5890
|
+
/** 恢复已暂停上传,复用同一原文件与消息。 */
|
|
5891
|
+
resume: (taskId: string) => Promise<void>;
|
|
5892
|
+
/** 只暴露恢复可用性,不返回文件密钥或远端分片凭据。 */
|
|
5893
|
+
getUploadRecovery: (message: ImMessageRef) => Promise<{
|
|
5894
|
+
available: boolean;
|
|
5895
|
+
reason?: string;
|
|
5896
|
+
expiresAt?: number;
|
|
5897
|
+
}>;
|
|
5898
|
+
/** 用户重选原文件并通过完整内容校验后恢复原消息。 */
|
|
5899
|
+
resumeUpload: (message: ImMessageRef, input: {
|
|
5900
|
+
file: Blob;
|
|
5901
|
+
}) => Promise<void>;
|
|
5830
5902
|
/**
|
|
5831
5903
|
* 重试 failed/canceled 任务;上传复用保留原文件,下载重新解析同一精确消息引用。
|
|
5904
|
+
* 续传不可用或清理未确认时,必须先征得用户同意重新上传,再传 restartUpload:true。
|
|
5905
|
+
* 用户取消后的重发始终重新上传尚未完成的资源;成功的合集项仍可复用。
|
|
5906
|
+
* 下载取消已受理后即可创建新尝试,不复用旧取消 Promise;旧 loader 结束前仍占用并发槽,但不能覆盖新任务。
|
|
5832
5907
|
* @throws 原文件已淘汰、任务仍在途或消息/下载 capability 不可用时显式拒绝。
|
|
5833
5908
|
*/
|
|
5834
|
-
retry: (taskId: string
|
|
5909
|
+
retry: (taskId: string, options?: {
|
|
5910
|
+
/** 用户已确认放弃旧进度并重新上传;仅上传任务接受,清理失败时仍停止。 */
|
|
5911
|
+
restartUpload?: boolean;
|
|
5912
|
+
}) => Promise<void>;
|
|
5835
5913
|
/**
|
|
5836
5914
|
* 下载并按消息正文合同解密,同一消息并发调用复用同一 Promise,成功返回 Blob。
|
|
5837
5915
|
* @throws 消息不存在/非媒体/无远端 URL/未装配 capability、传输失败、取消或 teardown 均以稳定错误拒绝,不返回空 Blob。
|
|
@@ -6042,6 +6120,10 @@ interface ImProductEventMap {
|
|
|
6042
6120
|
'sync:complete': Readonly<{
|
|
6043
6121
|
conversations: readonly ConversationRef<ProductConversationListType>[];
|
|
6044
6122
|
}>;
|
|
6123
|
+
/** 当前账号仍有会话同步或前台内容读取;false 仅表示读取结束,错误仍走 error 事件。 */
|
|
6124
|
+
'receiving:changed': Readonly<{
|
|
6125
|
+
receiving: boolean;
|
|
6126
|
+
}>;
|
|
6045
6127
|
/** `lastLoginTime` 为服务端记录的上次登录时间(毫秒),仅被踢且走登录 ACK 的路径才有值。 */
|
|
6046
6128
|
'auth:invalid': Readonly<{
|
|
6047
6129
|
code: string;
|
|
@@ -6643,6 +6725,10 @@ interface ImClientOptions {
|
|
|
6643
6725
|
* 缺省则**不装配媒体传输端口** → `sendImage`/`sendVideo`/`loadImage`/`loadVideo` 显式不可用(connection 层 reject,非静默);预览(Canvas 缩略图/封面)不依赖此配置、恒可用。
|
|
6644
6726
|
*/
|
|
6645
6727
|
media?: ImMediaConfig;
|
|
6728
|
+
/** 显式开启视频/文件跨刷新续传。最多 3 条、24 小时,保存加密密钥但不保存文件副本;注销清除。 */
|
|
6729
|
+
uploadRecovery?: {
|
|
6730
|
+
enabled: boolean;
|
|
6731
|
+
};
|
|
6646
6732
|
}
|
|
6647
6733
|
/**
|
|
6648
6734
|
* 官方 UI Kit、调试工具与高级宿主的装配参数。
|
|
@@ -7468,6 +7554,8 @@ interface ImMediaCatalog {
|
|
|
7468
7554
|
gameDice: string;
|
|
7469
7555
|
/** 石头剪刀布消息的回复摘要。 */
|
|
7470
7556
|
gameRockPaperScissors: string;
|
|
7557
|
+
/** 文件合集数量文案,参数 `{count}`;单文件复用 file。 */
|
|
7558
|
+
filesAlbum: string;
|
|
7471
7559
|
/**
|
|
7472
7560
|
* 媒体合集:多张照片,参数 `{count}`(≥2;恰好 1 项时复用 `image`,避免每种语言再写一套单数模板)。
|
|
7473
7561
|
*
|
|
@@ -7496,6 +7584,12 @@ interface ImFailureCatalog {
|
|
|
7496
7584
|
mediaEncryptFailed: string;
|
|
7497
7585
|
/** media.uploadFailed,参数 {label}。 */
|
|
7498
7586
|
mediaUploadFailed: string;
|
|
7587
|
+
/** 网络请求连续无推进,自动恢复预算已耗尽。 */
|
|
7588
|
+
mediaUploadTimeout: string;
|
|
7589
|
+
/** 续传记录不可用,必须确认重新完整上传。 */
|
|
7590
|
+
mediaResumeUnavailable: string;
|
|
7591
|
+
/** 发送已停止,但远端临时上传数据的清理尚未确认。 */
|
|
7592
|
+
mediaCleanupUnconfirmed: string;
|
|
7499
7593
|
/** media.cancelled,参数 {label}。 */
|
|
7500
7594
|
mediaCancelled: string;
|
|
7501
7595
|
/** media.invalidDuration,参数 {label}。 */
|
|
@@ -7539,12 +7633,13 @@ interface ImFailureCatalog {
|
|
|
7539
7633
|
/**
|
|
7540
7634
|
* 会话列表预览文案(formatLastMessageSummary 用;system 复用 formatSystemMessage 带名版)。
|
|
7541
7635
|
*
|
|
7542
|
-
*
|
|
7543
|
-
*
|
|
7636
|
+
* 方括号只保留给**列表里不带类型图标**的那些:文件、名片、小程序、转账、通话、红包、
|
|
7637
|
+
* 小游戏、加密、不支持。它们没有图标,方括号是唯一能和「对方真的发了『文件』两个字」区分开的标记。
|
|
7544
7638
|
* 解密失败例外:对齐 iOS 长句、不加方括号。
|
|
7545
7639
|
*
|
|
7546
|
-
* 照片、视频、GIF
|
|
7547
|
-
*
|
|
7640
|
+
* 照片、视频、GIF、贴图、语音和媒体合集在 PC/H5 会话列表里都带 16px 类型图标
|
|
7641
|
+
* (设计稿 13328:305728;语音为后续补齐的麦克风 glyph),
|
|
7642
|
+
* 图标已经表明类型,所以文案不带方括号、与回复摘要 `media.*` 用同一份词(决策 D26 / D58)。
|
|
7548
7643
|
*/
|
|
7549
7644
|
interface ImLastMessageCatalog {
|
|
7550
7645
|
/** 单张照片,与 `media.image` 同词;列表里前面带照片图标,不加方括号。 */
|
|
@@ -7555,6 +7650,7 @@ interface ImLastMessageCatalog {
|
|
|
7555
7650
|
sticker: string;
|
|
7556
7651
|
/** 单个视频,与 `media.video` 同词;列表里前面带视频图标。 */
|
|
7557
7652
|
video: string;
|
|
7653
|
+
/** 单条语音,与 `media.voice` 同词;列表里前面带麦克风图标,不加方括号。 */
|
|
7558
7654
|
voice: string;
|
|
7559
7655
|
file: string;
|
|
7560
7656
|
contact: string;
|
|
@@ -7574,6 +7670,8 @@ interface ImLastMessageCatalog {
|
|
|
7574
7670
|
redPacket: string;
|
|
7575
7671
|
/** 小游戏消息的统一会话列表摘要;不在列表中暴露骰子/RPS 的具体类型。 */
|
|
7576
7672
|
game: string;
|
|
7673
|
+
/** 文件合集数量文案,参数 `{count}`;单文件复用 file。 */
|
|
7674
|
+
filesAlbum: string;
|
|
7577
7675
|
/**
|
|
7578
7676
|
* 媒体合集:多张照片,参数 `{count}`(≥2;恰好 1 项时复用 `image`,避免各语言再写一套单数模板)。
|
|
7579
7677
|
* 有配文的合集直接显示配文,不用这些 key。合集在列表里带类型图标,所以同样不加方括号。
|
|
@@ -7766,6 +7864,11 @@ interface FormatMediaPlaceholderContext {
|
|
|
7766
7864
|
gameType?: ImGameType;
|
|
7767
7865
|
/** 通话记录媒体类型;缺失时不把损坏正文伪装成语音或视频通话。 */
|
|
7768
7866
|
callKind?: 'audio' | 'video';
|
|
7867
|
+
/** 文件合集有配文时显示文件图标与配文,否则按文件数量生成摘要。 */
|
|
7868
|
+
filesAlbum?: {
|
|
7869
|
+
count: number;
|
|
7870
|
+
caption?: string;
|
|
7871
|
+
};
|
|
7769
7872
|
/**
|
|
7770
7873
|
* 媒体合集的项数构成;缺失或两个计数都是 0 时返回空串,不假装有内容。
|
|
7771
7874
|
*
|
|
@@ -7850,7 +7953,7 @@ type ConversationListPreviewSegment = {
|
|
|
7850
7953
|
* `mediaAlbum` 专指「照片和视频混装」的合集,产品用相机图标;只有照片或只有视频的合集归到
|
|
7851
7954
|
* `image` / `video`,因为用户看到的文案也是「2张照片」「2个视频」。
|
|
7852
7955
|
*/
|
|
7853
|
-
type ConversationListPreviewMediaKind = 'image' | 'video' | 'gif' | 'sticker' | 'mediaAlbum';
|
|
7956
|
+
type ConversationListPreviewMediaKind = 'image' | 'video' | 'gif' | 'sticker' | 'mediaAlbum' | 'voice';
|
|
7854
7957
|
/** 由各宿主按当前产品语言注入的会话列表标签。 */
|
|
7855
7958
|
interface ConversationListPresentationLabels {
|
|
7856
7959
|
/** 没有草稿和最后消息时显示的占位文案。 */
|
|
@@ -7889,7 +7992,7 @@ interface ConversationListPresentation {
|
|
|
7889
7992
|
/**
|
|
7890
7993
|
* 摘要前面该显示哪个类型图标;不需要图标时缺省。
|
|
7891
7994
|
*
|
|
7892
|
-
*
|
|
7995
|
+
* 草稿、撤回、管理员删除、系统事件显示的是整句话而不是类型占位,一律不给图标;文件、
|
|
7893
7996
|
* 名片等没有产品 glyph 的类型同样不给,它们的文案自带方括号来和真实文本区分。
|
|
7894
7997
|
*/
|
|
7895
7998
|
previewMediaKind?: ConversationListPreviewMediaKind;
|
|
@@ -8181,6 +8284,10 @@ interface ChatRuntimeHostDeps {
|
|
|
8181
8284
|
clientType: number;
|
|
8182
8285
|
/** 获取当前环境的媒体上传下载配置;未启用媒体能力时返回 `undefined`。 */
|
|
8183
8286
|
getMediaConfig: () => ImMediaConfig | undefined;
|
|
8287
|
+
/** 显式启用账号隔离的跨刷新恢复记录;保存密钥、不保存原文件,注销清除。 */
|
|
8288
|
+
uploadRecovery?: {
|
|
8289
|
+
enabled: boolean;
|
|
8290
|
+
};
|
|
8184
8291
|
/** 获取 GIF provider 配置;API key 只留在宿主闭包与 SDK adapter,不进入共享 Store。 */
|
|
8185
8292
|
getExpressionOptions?: () => ImExpressionOptions | undefined;
|
|
8186
8293
|
}
|
|
@@ -8797,6 +8904,27 @@ declare namespace forward_service {
|
|
|
8797
8904
|
export type { forward_service_ForwardCommandHooks as ForwardCommandHooks, forward_service_ImForwardOperationResult as ImForwardOperationResult };
|
|
8798
8905
|
}
|
|
8799
8906
|
|
|
8907
|
+
/** 整条消息复制时的文字;合集取配文,预览复制单项图片时不调用此方法。 */
|
|
8908
|
+
declare function getMessageCopyText(message: ImMessageView | undefined): string;
|
|
8909
|
+
/** 与复制资格使用同一图片选择规则,供宿主检测异步操作期间资源是否变化。 */
|
|
8910
|
+
declare function getMessageCopyImageUrl(message: ImMessageView | undefined, itemIndex?: number): string | undefined;
|
|
8911
|
+
/**
|
|
8912
|
+
* 菜单支持单图及单张图片加配文;预览传入合集项下标,视频、终态及未发送消息不开放。
|
|
8913
|
+
* @example canCopyMessageImage(message); canCopyMessageImage(albumMessage, 0);
|
|
8914
|
+
*/
|
|
8915
|
+
declare function canCopyMessageImage(message: ImMessageView | undefined, itemIndex?: number): boolean;
|
|
8916
|
+
/**
|
|
8917
|
+
* 为浏览器剪贴板提供高清与缩略图 Blob,不创建页面资源、不显示 Toast。
|
|
8918
|
+
* SDK media.download 负责缓存、下载和解密;宿主用 isCurrent 绑定页面、菜单或预览的操作身份。
|
|
8919
|
+
* 返回的 isCurrent 还会核验 Runtime 账号;宿主须检查最新消息的终态、资源地址及当前合集项。
|
|
8920
|
+
* @example copyImageToClipboard(createMessageImageCopySource(runtime, message, isCurrent));
|
|
8921
|
+
*/
|
|
8922
|
+
declare function createMessageImageCopySource(runtime: ChatRuntime, message: ImMessageView, isCurrent: () => boolean, itemIndex?: number): {
|
|
8923
|
+
isCurrent: () => boolean;
|
|
8924
|
+
loadOriginal(): Promise<Blob>;
|
|
8925
|
+
loadThumbnail(): Promise<Blob>;
|
|
8926
|
+
};
|
|
8927
|
+
|
|
8800
8928
|
/** 媒体入口的去向;不支持的图片必须提示用户,不能自动作为附件发送。 */
|
|
8801
8929
|
type MediaFileClassification = 'image' | 'video' | 'sticker' | 'file' | 'unsupported-image';
|
|
8802
8930
|
/**
|
|
@@ -8912,7 +9040,7 @@ declare function loadCachedImageObjectUrl(runtime: ChatRuntime, message: ImMessa
|
|
|
8912
9040
|
*
|
|
8913
9041
|
* `onProgress` 可更新下载进度。空文件或失败返回 `null` 并显示提示;保存动作结束后调用方必须撤销地址。
|
|
8914
9042
|
*/
|
|
8915
|
-
declare function loadFileObjectUrl(runtime: ChatRuntime, message: ImMessageView, hooks: ServiceNoteHooks, onProgress?: (percent: number) => void): Promise<string | null>;
|
|
9043
|
+
declare function loadFileObjectUrl(runtime: ChatRuntime, message: ImMessageView, hooks: ServiceNoteHooks, onProgress?: (percent: number) => void, itemIndex?: number): Promise<string | null>;
|
|
8916
9044
|
|
|
8917
9045
|
declare const media_service_acquireMediaBlob: typeof acquireMediaBlob;
|
|
8918
9046
|
declare const media_service_detectImageMime: typeof detectImageMime;
|
|
@@ -9009,10 +9137,14 @@ declare function executeDeleteChannelMessageForEveryone(runtime: ChatRuntime, in
|
|
|
9009
9137
|
*
|
|
9010
9138
|
* 如果该消息有失败或已取消的上传任务,优先重试媒体上传;否则查找 SDK 待发送队列中的普通消息。
|
|
9011
9139
|
* 任务必须同时匹配当前会话类型、会话 ID 和消息 ID,找不到时返回 `not-ready`。
|
|
9140
|
+
* `restartUpload` 只能在宿主明确说明完整重传并取得用户确认后传入;普通重发保留续传资格。
|
|
9012
9141
|
*/
|
|
9013
9142
|
declare function executeRetryMessage(runtime: ChatRuntime, input: {
|
|
9014
9143
|
handle: ProductConversationHandle | undefined;
|
|
9015
9144
|
messageId: string;
|
|
9145
|
+
options?: {
|
|
9146
|
+
restartUpload?: boolean;
|
|
9147
|
+
};
|
|
9016
9148
|
}): Promise<ImMessageActionResult>;
|
|
9017
9149
|
/** 撤回当前线程中的一条消息;成功由 SDK 事件刷新气泡,失败通过稳定文案 key 提示。 */
|
|
9018
9150
|
declare function recallMessage(runtime: ChatRuntime, input: {
|
|
@@ -9504,6 +9636,9 @@ declare function sendText(runtime: ChatRuntime, input: {
|
|
|
9504
9636
|
*/
|
|
9505
9637
|
declare function sendMediaFile(runtime: ChatRuntime, input: {
|
|
9506
9638
|
kind: 'image' | 'video' | 'file' | 'sticker';
|
|
9639
|
+
/** 文件配文与带配文批次标记,仅 file 消费。 */
|
|
9640
|
+
caption?: string;
|
|
9641
|
+
filesAlbum?: boolean;
|
|
9507
9642
|
file: File;
|
|
9508
9643
|
conversationId: string;
|
|
9509
9644
|
conversationType: ConversationType | undefined;
|
|
@@ -9559,6 +9694,8 @@ declare function sendMediaFilesBatch(runtime: ChatRuntime, input: {
|
|
|
9559
9694
|
/** 批量“作为文件发送”;即使选中图片或视频,也生成普通文件消息,不创建图片/视频预览气泡。 */
|
|
9560
9695
|
declare function sendAsFilesBatch(runtime: ChatRuntime, input: {
|
|
9561
9696
|
files: File[];
|
|
9697
|
+
/** 有配文时本批每项发 29,配文只挂数量上限内最后一个通过文件基础校验的文件。 */
|
|
9698
|
+
caption?: string;
|
|
9562
9699
|
conversationId: string;
|
|
9563
9700
|
conversationType: ConversationType | undefined;
|
|
9564
9701
|
refMessageId?: string;
|
|
@@ -9573,10 +9710,13 @@ declare function cancelMediaUpload(runtime: ChatRuntime, messageId: string, hook
|
|
|
9573
9710
|
/**
|
|
9574
9711
|
* 重试当前线程中的一条失败消息。
|
|
9575
9712
|
*
|
|
9576
|
-
*
|
|
9713
|
+
* 上传失败时尝试续传,取消后重新上传未完成资源;restartUpload 只接受宿主明确确认后的完整重传。
|
|
9714
|
+
* 已经完成媒体上传但消息发送失败,或普通文本失败时,重试
|
|
9577
9715
|
* SDK 待发送队列。两种路径都复用原消息 ID,不新增气泡。只有账号未变化且 SDK 接受重试时返回 `true`。
|
|
9578
9716
|
*/
|
|
9579
|
-
declare function retryMessage(runtime: ChatRuntime, messageId: string, hooks: Pick<SendCommandHooks, 'getConversationHandle' | 'refreshActiveMessages' | 'setNote' | 't'
|
|
9717
|
+
declare function retryMessage(runtime: ChatRuntime, messageId: string, hooks: Pick<SendCommandHooks, 'getConversationHandle' | 'refreshActiveMessages' | 'setNote' | 't'>, options?: {
|
|
9718
|
+
restartUpload?: boolean;
|
|
9719
|
+
}): Promise<boolean>;
|
|
9580
9720
|
|
|
9581
9721
|
interface ImThreadDateMarkerMetric {
|
|
9582
9722
|
key: string;
|
|
@@ -10345,5 +10485,5 @@ declare function resampleWaveform(data: readonly number[], targetCount: number):
|
|
|
10345
10485
|
*/
|
|
10346
10486
|
declare function placeholderWaveform(seed: string, count: number): number[];
|
|
10347
10487
|
|
|
10348
|
-
export { DEFAULT_EMOJI_ASSET_BASE, DEFAULT_LOADING_MINIMUM_VISIBLE_MS, DEFAULT_LOADING_SHOW_DELAY_MS, DEFAULT_LOCALE, EDIT_WINDOW_MS, EMOJI_CATALOG, EMOJI_GAME_DICE_STABLE_KEY, EMOJI_GAME_RPS_STABLE_KEY, EMOJI_TOKEN_RE, IMAGE_MESSAGE_ACCEPT, IM_CHAT_FONT_SCALES, IM_DIAGNOSTIC_CATEGORIES, IM_EMOJI_CATALOG, ImPinnedMessageOperationError, MAX_BATCH_FILES, MAX_RECENT_EMOJI_COUNT, MEDIA_ALBUM_CAPTION_MAX_LENGTH, MEDIA_ALBUM_MAX_ITEMS, MINI_PROGRAM_GAME_PREVIEW_FALLBACK_HEIGHT, MINI_PROGRAM_GAME_PREVIEW_FALLBACK_WIDTH, MINI_PROGRAM_LANG_NUMBERS, MediaTransferError, REACTION_SUPPORTED_CONTENT_TYPES, SPIKE_STEP, UNICODE_EMOJI_CATALOG, blockReasonForChannelSession, blockReasonForChannelState, blockReasonForGroupState, blockReasonForSession, buildSessionFavoritePlainBody, calculateMediaBox, canEditMessage, canPinChannelMessage, canPinGroupMessage, canPinMessage, canPromoteMediaPresentationSource, canReactToMessage, canRecallMessage, canTransmit, canTransmitByType, canTransmitContent, cancelMediaUpload, captureRuntimeClientOperation, captureRuntimeOperation, channelMiniProgramRelKey, classifyGifFile, classifyMediaFile, classifyStickerImageType, countUnreadConversations, createChatRuntime, createConversationPrefetchController, createDelayedLoadingIndicator, createEmojiMatcher, createFaceToFaceGroupQrPayload, createImClient, createImConsoleDiagnosticSink, createImDiagnosticMemoryBuffer, createImI18n, createImResourceUploader, createImTextSearchMatcher, createLinkMatcher, createNewMessageBadgeController, createSdkDiagnosticWriter, createThreadItems, createVoicePlayer, createVoiceRecordingSession, csvIncludes, decideChannelMiniProgramRelOpen, decideConversationAction, decideMemberTargetAction, decideMessageAction, detectVoiceCapabilities, emojiAssetUrl, emojiUrlByCode, extractSearchText, fetchConversationFileBatch, fetchConversationImageBatch, fetchConversationMessageBatch, fetchConversationVideoBatch, fetchConversationVoiceBatch, fetchNextConversationSearchBatch, formatChatDateSeparator, formatConversationDisplayTime, formatConversationUnreadBadge, formatFailure, formatFileSize, formatLastMessageSummary, formatMediaDuration, formatMediaPlaceholder, formatMentionAll, formatServiceText, formatSystemMessage, forward_service as forwardService, getFileExtension, getImTextSearchInitial, getImTimeCatalog, getLocalDayKey, hasEmojiCandidate, hasLinkCandidate, highlightSegments, isGifFile, isMessageLocateScrollProtected, isMessageTailChangeFromOlderWindowTrim, isMessageViewportMeasurable, isMessageVisibleForNewMessageBadge, isMiniProgramShowTypeOpenable, isPinnedMessageProtected, isSupportedImageFile, isVoiceStorageConfigured, loadOlderUntilBoundary, mediaBatchBudgetBytes, media_service as mediaService, mediaTransferErrorCodeOf, message_service as messageService, migrateImCachePrefix, normalizeImLocale, normalizeLinkHref, normalizeMediaUploadCredentials, parseSessionFavoriteAlbumItems, parseUnicodeEmojiCode, pinnedMessage_service as pinnedMessageService, placeholderWaveform, prependRecentEmoji, profile_service as profileService, read_service as readService, refreshPrependMessageAnchorPosition, registerImCatalogOverrides, replaceInterruptedMediaFile, requiresConversationEncryption, requiresForwardTypeConfirmation, resampleWaveform, resetImCatalogOverrides, resolveBestMediaPresentationSource, resolveCenteredMessageScrollTop, resolveChannelAccess, resolveChannelMemberAvatarUrl, resolveChannelMemberDisplayName, resolveChannelMiniProgramRelIcon, resolveChannelMiniProgramRelName, resolveChannelMiniProgramRelOpenSurface, resolveChannelMiniProgramRelUrl, resolveChannelPinnedGameCopy, resolveConversationListPresentation, resolveDisplayTimestamp, resolveEmojiToken, resolveFriendDisplayName, resolveImEmojiToken, resolveImProfileAccessDestination, resolveImThreadActiveDate, resolveMediaAlbumSendContentType, resolveMediaPresentation, resolveMemberDisplayName, resolveMessageBodyKind, resolveMessageNotificationDecision, resolveMessageTimelineTimestamp, resolveMiniProgramFloatLinkUrl, resolveMiniProgramGamePreviewLayout, resolveMiniProgramOpenUrl, resolvePrependMessageAnchor, resolvePrependMessageAnchorAdjustment, resolvePrependMessageAnchorPosition, resolvePublicNickname, resolveQuotedMessagePresentation, resolveSenderAvatarUrl, resolveSessionFavoriteAlbumCaption, resolveSessionFavoriteAlbumItemPreviewUrl, resolveSessionFavoriteKindFromMessage, resolveStandaloneEmojiMessage, resolveSurvivingMessageAnchorAdjustment, resolveTextSegments, resolveUnicodeEmoji, resolveVisibleChannelMiniProgramRels, resolveVisibleMessageAnchorPositions, retryMessage, runMediaSendBatch, sendAsFilesBatch, sendBlockReasonForDecision, sendMediaAlbum, sendMediaFile, sendMediaFilesBatch, sendText, sendVoice, shouldCompleteInitialViewport, shouldFillInitialHistoryViewport, shouldFollowIncomingMessage, shouldLoadNewerHistoryPage, shouldPrefetchOlderHistory, shouldRestoreMessageViewportFocus, shouldShowChatDateSeparator, shouldTrackRemoteMessageForBadge, sortChannelMiniProgramFloatingItems, sortSessions, spikeCountForDuration, sumSessionsUnread, supportsConversationMention, unicodeEmojiTextFromCode, voiceErrorCodeOf };
|
|
10349
|
-
export type { ApplySessionResult, BrowseMessagesInput, CanPinMessageInput, CapabilityAvailability, CapabilityDecision, CapabilityReason, CenteredMessageScrollInput, ChannelAccessSnapshot, ChannelBaseSessionState, ChannelConversationCapabilities, ChannelConversationMessageApi, ChannelJoinApplication, ChannelJoinApplicationNotification, ChannelJoinApplicationPage, ChannelMember, ChannelMemberPage, ChannelMentionMember, ChannelMentionMemberPage, ChannelMiniProgramOpenGame, ChannelMiniProgramRel, ChannelMiniProgramRelConfigType, ChannelMiniProgramRelOpenDecision, ChannelMiniProgramRelOpenSurface, ChannelMuteReason, ChannelPermissionSet, ChannelProfile, ChannelRole, ChannelSessionState, ChatMediaMessageRef, ChatProfileAdapter, ChatRuntime, ChatRuntimeCredentials, ChatRuntimeFactories, ChatRuntimeHostDeps, ChatRuntimeOpResult, ContactCardInput, ContactMessageOptions, ConversationBackgroundPreset, ConversationBackgroundSelection, ConversationCapabilityAction, ConversationCapabilitySnapshot, ConversationDraft, ConversationDraftApi, ConversationEntryUnreadSnapshot, ConversationHandle, ConversationHandleSnapshot, ConversationInitialPosition, ConversationLastMessageSummary, ConversationListItem, ConversationListMention, ConversationListPresentation, ConversationListPresentationLabels, ConversationListPresentationOptions, ConversationListPreviewMediaKind, ConversationListPreviewSegment, ConversationMessageApi, ConversationOpenOptions, ConversationPrefetchController, ConversationPrefetchControllerOptions, ConversationPrefetchOptions, ConversationPrefetchResult, ConversationRef, ConversationSearchCategory, ConversationSearchPage, ConversationSearchResult, ConversationSystemSummary, ConversationType, CreateThreadItemsInput, DelayedLoadingIndicator, DelayedLoadingIndicatorOptions, DirectConversationCapabilities, DirectConversationMessageApi, DraftInput, EditTextOptions, EmojiEntry, EmojiRecentItem, EmojiSegment, ExpressionMessageOptions, FileMessageOptions, FormatFailureContext, FormatLastMessageContext, FormatMediaPlaceholderContext, FormatServiceTextContext, FormatSystemMessageContext, FormatTimeDisplayContext, ForwardCommandHooks, ForwardFailReason, ForwardItemStatus, ForwardMessageFailure, ForwardMessagesInput, ForwardMessagesResult, ForwardTarget, ForwardedMessageRef, GameMessageOptions, GifFileClassification, GifMessageOptions, GiftMessageOptions, GroupConversationCapabilities, GroupConversationMessageApi, GroupMemberItem, GroupProfile, HighlightSegment, ImAppearanceSettingsApi, ImApplicationItem, ImApplicationRef, ImApplicationsApi, ImAuthIssue, ImAuthProvider, ImCacheOptions, ImCachePrefixMigrationContext, ImCachePrefixMigrator, ImCallKind, ImCallOutcome, ImCallRecordBody, ImCatalog, ImCatalogOverrides, ImChannelConversationAccessSnapshot, ImChannelMemberPresentation, ImChannelMentionApi, ImChannelMentionPresentation, ImChannelMiniProgramRel, ImChannelPermissions, ImChannelPinnedMessage, ImChannelProfile, ImChannelProfilePresentation, ImChannelRole, ImChannelState, ImChannelsApi, ImChatFontScale, ImClientOptions, ImConnectionState, ImContactBody, ImContactKind, ImContactProfile, ImContactRelationship, ImContactRemarkPhone, ImContactSearchResult, ImContactsApi, ImConversationBackgroundApi, ImConversationCapabilitiesApi, ImConversationListApi, ImConversationListSnapshot, ImConversationListState, ImConversationSearchApi, ImCoreApiOptions, ImCreateChannelInput, ImCreateChannelResult, ImCreateFaceToFaceGroupResult, ImCreateGroupInput, ImCreateGroupResult, ImCreatedChannel, ImCreatedGroup, ImDebugOptions, ImDiagnosticCategory, ImDiagnosticError, ImDiagnosticLayer, ImDiagnosticLevel, ImDiagnosticMemoryBuffer, ImDiagnosticMemoryBufferFilter, ImDiagnosticMemoryBufferOptions, ImDiagnosticMemoryBufferSnapshot, ImDiagnosticMessage, ImDiagnosticRecord, ImDiagnosticSink, ImDiagnosticWriter, ImDirectCallAnswerResult, ImDirectCallFailReason, ImDirectCallHangupInput, ImDirectCallHangupReason, ImDirectCallInviteInput, ImDirectCallNotifyAudioInput, ImDirectCallTargetInput, ImDirectCallsApi, ImDirectReadReceiptSettings, ImDirectoryApi, ImDirectoryFieldMatch, ImDirectoryItem, ImDirectoryKind, ImDirectoryPage, ImDirectorySearchApi, ImDirectorySearchItem, ImDirectorySearchResult, ImDraftsApi, ImEmojiCatalogEntry, ImEndpointProvider, ImEventsApi, ImExpressionAsset, ImExpressionAssetInput, ImExpressionEmojiRecentInput, ImExpressionFavoriteKind, ImExpressionOptions, ImExpressionRecentInput, ImExpressionRecentItem, ImExpressionRecentItemKind, ImExpressionsApi, ImFaceToFaceGroup, ImFailureCatalog, ImFileBody, ImForwardOperationResult, ImFriendshipRequestResult, ImGameBody, ImGameType, ImGifAssetInput, ImGiftBody, ImGiftSessionType, ImGiftStatus, ImGiftType, ImGiphyAsset, ImGiphyPage, ImGiphyPageOptions, ImGroupCallAnswerInput, ImGroupCallBusyInput, ImGroupCallCreateInput, ImGroupCallJoinInput, ImGroupCallMeetingSnapshot, ImGroupCallMember, ImGroupCallMemberStatus, ImGroupCallStatusInput, ImGroupCallTargetInput, ImGroupCallsApi, ImGroupConversationState, ImGroupMemberPresentation, ImGroupMentionApi, ImGroupPinnedMessage, ImGroupProfile, ImGroupsApi, ImI18n, ImImageBody, ImLastMessageCatalog, ImLifecycleSnapshot, ImLocalDataApi, ImLocalDataInfo, ImLocale, ImLogoutOptions, ImMediaAlbumBody, ImMediaAlbumItem, ImMediaBatchSendResult, ImMediaCatalog, ImMediaConfig, ImMediaTask, ImMediaTasksApi, ImMembershipJoinResult, ImMentionCatalog, ImMessageActionResult, ImMessageBodyKind, ImMessageMention, ImMessageReactionAggregate, ImMessageReactions, ImMessageRef, ImMessageSearchApi, ImMessageView, ImMessageViewBody, ImMessagesByIdResult, ImMiniProgramBody, ImMiniProgramShowType, ImOutboxApi, ImOutboxItem, ImPageToken, ImPartialCatalog, ImPinnedMessageActionResult, ImPinnedMessageErrorKind, ImPinnedMessageOperation, ImPinnedMessageSnapshot, ImProductApplicationUpdate, ImProductAuthInvalidReason, ImProductClient, ImProductEvent, ImProductEventError, ImProductEventMap, ImProductMessage, ImProfileAccessDestination, ImPushApi, ImPushSnapshot, ImQuotedMessagePresentation, ImReactionChangeAction, ImReactionChangeResult, ImReadReceiptSettingsApi, ImRedPacketBody, ImRedPacketType, ImRequestError, ImRequestErrorHandler, ImResourceKind, ImResourceUploadInput, ImResourceUploadProgress, ImResourceUploadResult, ImResourceUploader, ImResourceUploaderConfig, ImRobotBody, ImRobotCommand, ImRobotConversationBindInput, ImRobotDirectoryItem, ImRobotDirectoryPage, ImRobotDirectoryScope, ImRobotModule, ImRobotsApi, ImSdkErrorCategory, ImSdkErrorShape, ImSearchApi, ImServiceCatalog, ImServiceTextKey, ImSessionApi, ImSessionFavoriteAlbumItem, ImSessionFavoriteItem, ImSessionFavoriteKind, ImSessionFavoritesApi, ImSessionLifecycleState, ImSettingsApi, ImStickerAssetInput, ImStickerBody, ImStickerPack, ImSupportedConversationRef, ImSystemCatalog, ImTextResolver, ImTextSearchMatch, ImTextSearchMatchOptions, ImTextSearchMatcher, ImTextSearchRange, ImThreadActiveDateSnapshot, ImThreadDateMarkerMetric, ImThreadDecoration, ImThreadEncryptionItem, ImThreadIntent, ImThreadItem, ImThreadPresentationAdapter, ImThreadReadActions, ImThreadReadTargetResolver, ImThreadViewportMetrics, ImTimeCatalog, ImTransferBody, ImTransferSessionType, ImTransferStatus, ImVideoBody, ImVoiceBody, ImWebPushSubscription, ImWeekdayKey, ImageMessageOptions, ImagePreviewMetadata, IncomingMessageFollowInput, InitialHistoryViewportFillInput, InitialViewportCompletionInput, LinkSegment, LocalConversationHistoryClearResult, LocalMessageDeletionResult, MediaAlbumItemInput, MediaAlbumMessageOptions, MediaBatchBudgetOptions, MediaBatchLimitInfo, MediaFileClassification, MediaLimitItem, MediaObjectUrlLease, MediaPresentationFit, MediaPresentationPolicy, MediaPresentationRule, MediaPresentationSourceCandidate, MediaPresentationSourceQuality, MediaSendBatchResult, MediaTransferErrorCode, MediaUploadCredentials, MediaUploadCredentialsProvider, MediaUploadCredentialsRequest, MemberTargetCapabilityAction, MemberTargetCapabilityInput, MentionCandidate, MentionCandidatePage, MentionInput, MessageCapabilityAction, MessageCapabilityInput, MessageContentType, MessageLocateScrollProtectionInput, MessageNotificationDecision, MessageNotificationInput, MessageWindowInfo, MessageWindowPage, MessagesByIdFailure, MigrateImCachePrefixInput, MiniProgramGamePreviewInput, MiniProgramGamePreviewLayout, MiniProgramHostLocale, MiniProgramMessageOptions, MiniProgramOpenUrlInput, NewMessageBadgeController, NewMessageBadgeCountListener, NewMessageBadgeVisibilityInput, NewerHistoryPageTriggerInput, OlderHistoryPrefetchInput, PrependAnchorCandidate, PrependAnchorViewport, PrependMessageAnchorPosition, ProductConversationListType, ProductHandleConversationType, ProductMessageSearchPage, ProductMessageSearchResult, RemoteMessageBadgeTrackingInput, ResolveMediaPresentationInput, ResolveTextOptions, ResolvedConversationBackground, ResolvedMediaPresentation, RichExtraSegment, RobotConversationCapabilities, RuntimeClientOperation, RuntimeOperation, SearchBatchResult, SearchFilesInput, SearchMessagesInput, SearchTextMessagesInput, SegmentMatch, SegmentMatcher, SendCapabilityMode, SendCommandHooks, SendMessageResult, SendVoicePayload, SenderProfileEntry, ServiceNoteHooks, StandaloneEmojiMessage, StickerAssetKind, TextMessageOptions, TextSegment, TransferMessageOptions, UnicodeEmojiEntry, UnknownMessageBody, UserProfile, VideoMessageOptions, VideoPreviewMetadata, VisibleChannelMiniProgramRels, VoiceCapabilities, VoiceErrorCode, VoiceMessageMetadata, VoicePlayer, VoicePlayerOptions, VoicePlayerState, VoiceRecordingResult, VoiceRecordingSession, VoiceRecordingSessionOptions, VoiceRecordingState, VoiceToggleOptions };
|
|
10488
|
+
export { DEFAULT_EMOJI_ASSET_BASE, DEFAULT_LOADING_MINIMUM_VISIBLE_MS, DEFAULT_LOADING_SHOW_DELAY_MS, DEFAULT_LOCALE, EDIT_WINDOW_MS, EMOJI_CATALOG, EMOJI_GAME_DICE_STABLE_KEY, EMOJI_GAME_RPS_STABLE_KEY, EMOJI_TOKEN_RE, IMAGE_MESSAGE_ACCEPT, IM_CHAT_FONT_SCALES, IM_DIAGNOSTIC_CATEGORIES, IM_EMOJI_CATALOG, ImPinnedMessageOperationError, MAX_BATCH_FILES, MAX_RECENT_EMOJI_COUNT, MEDIA_ALBUM_CAPTION_MAX_LENGTH, MEDIA_ALBUM_MAX_ITEMS, MINI_PROGRAM_GAME_PREVIEW_FALLBACK_HEIGHT, MINI_PROGRAM_GAME_PREVIEW_FALLBACK_WIDTH, MINI_PROGRAM_LANG_NUMBERS, MediaTransferError, REACTION_SUPPORTED_CONTENT_TYPES, SPIKE_STEP, UNICODE_EMOJI_CATALOG, blockReasonForChannelSession, blockReasonForChannelState, blockReasonForGroupState, blockReasonForSession, buildSessionFavoritePlainBody, calculateMediaBox, canCopyMessageImage, canEditMessage, canPinChannelMessage, canPinGroupMessage, canPinMessage, canPromoteMediaPresentationSource, canReactToMessage, canRecallMessage, canTransmit, canTransmitByType, canTransmitContent, cancelMediaUpload, captureRuntimeClientOperation, captureRuntimeOperation, channelMiniProgramRelKey, classifyGifFile, classifyMediaFile, classifyStickerImageType, countUnreadConversations, createChatRuntime, createConversationPrefetchController, createDelayedLoadingIndicator, createEmojiMatcher, createFaceToFaceGroupQrPayload, createImClient, createImConsoleDiagnosticSink, createImDiagnosticMemoryBuffer, createImI18n, createImResourceUploader, createImTextSearchMatcher, createLinkMatcher, createMessageImageCopySource, createNewMessageBadgeController, createSdkDiagnosticWriter, createThreadItems, createVoicePlayer, createVoiceRecordingSession, csvIncludes, decideChannelMiniProgramRelOpen, decideConversationAction, decideMemberTargetAction, decideMessageAction, detectVoiceCapabilities, emojiAssetUrl, emojiUrlByCode, extractSearchText, fetchConversationFileBatch, fetchConversationImageBatch, fetchConversationMessageBatch, fetchConversationVideoBatch, fetchConversationVoiceBatch, fetchNextConversationSearchBatch, formatChatDateSeparator, formatConversationDisplayTime, formatConversationUnreadBadge, formatFailure, formatFileSize, formatLastMessageSummary, formatMediaDuration, formatMediaPlaceholder, formatMentionAll, formatServiceText, formatSystemMessage, forward_service as forwardService, getFileExtension, getImTextSearchInitial, getImTimeCatalog, getLocalDayKey, getMessageCopyImageUrl, getMessageCopyText, hasEmojiCandidate, hasLinkCandidate, highlightSegments, isGifFile, isMessageLocateScrollProtected, isMessageTailChangeFromOlderWindowTrim, isMessageViewportMeasurable, isMessageVisibleForNewMessageBadge, isMiniProgramShowTypeOpenable, isPinnedMessageProtected, isSupportedImageFile, isVoiceStorageConfigured, loadOlderUntilBoundary, mediaBatchBudgetBytes, media_service as mediaService, mediaTransferErrorCodeOf, message_service as messageService, migrateImCachePrefix, normalizeImLocale, normalizeLinkHref, normalizeMediaUploadCredentials, parseSessionFavoriteAlbumItems, parseUnicodeEmojiCode, pinnedMessage_service as pinnedMessageService, placeholderWaveform, prependRecentEmoji, profile_service as profileService, read_service as readService, refreshPrependMessageAnchorPosition, registerImCatalogOverrides, replaceInterruptedMediaFile, requiresConversationEncryption, requiresForwardTypeConfirmation, resampleWaveform, resetImCatalogOverrides, resolveBestMediaPresentationSource, resolveCenteredMessageScrollTop, resolveChannelAccess, resolveChannelMemberAvatarUrl, resolveChannelMemberDisplayName, resolveChannelMiniProgramRelIcon, resolveChannelMiniProgramRelName, resolveChannelMiniProgramRelOpenSurface, resolveChannelMiniProgramRelUrl, resolveChannelPinnedGameCopy, resolveConversationListPresentation, resolveDisplayTimestamp, resolveEmojiToken, resolveFriendDisplayName, resolveImEmojiToken, resolveImProfileAccessDestination, resolveImThreadActiveDate, resolveMediaAlbumSendContentType, resolveMediaPresentation, resolveMemberDisplayName, resolveMessageBodyKind, resolveMessageNotificationDecision, resolveMessageTimelineTimestamp, resolveMiniProgramFloatLinkUrl, resolveMiniProgramGamePreviewLayout, resolveMiniProgramOpenUrl, resolvePrependMessageAnchor, resolvePrependMessageAnchorAdjustment, resolvePrependMessageAnchorPosition, resolvePublicNickname, resolveQuotedMessagePresentation, resolveSenderAvatarUrl, resolveSessionFavoriteAlbumCaption, resolveSessionFavoriteAlbumItemPreviewUrl, resolveSessionFavoriteKindFromMessage, resolveStandaloneEmojiMessage, resolveSurvivingMessageAnchorAdjustment, resolveTextSegments, resolveUnicodeEmoji, resolveVisibleChannelMiniProgramRels, resolveVisibleMessageAnchorPositions, retryMessage, runMediaSendBatch, sendAsFilesBatch, sendBlockReasonForDecision, sendMediaAlbum, sendMediaFile, sendMediaFilesBatch, sendText, sendVoice, shouldCompleteInitialViewport, shouldFillInitialHistoryViewport, shouldFollowIncomingMessage, shouldLoadNewerHistoryPage, shouldPrefetchOlderHistory, shouldRestoreMessageViewportFocus, shouldShowChatDateSeparator, shouldTrackRemoteMessageForBadge, sortChannelMiniProgramFloatingItems, sortSessions, spikeCountForDuration, sumSessionsUnread, supportsConversationMention, unicodeEmojiTextFromCode, voiceErrorCodeOf };
|
|
10489
|
+
export type { ApplySessionResult, BrowseMessagesInput, CanPinMessageInput, CapabilityAvailability, CapabilityDecision, CapabilityReason, CenteredMessageScrollInput, ChannelAccessSnapshot, ChannelBaseSessionState, ChannelConversationCapabilities, ChannelConversationMessageApi, ChannelJoinApplication, ChannelJoinApplicationNotification, ChannelJoinApplicationPage, ChannelMember, ChannelMemberPage, ChannelMentionMember, ChannelMentionMemberPage, ChannelMiniProgramOpenGame, ChannelMiniProgramRel, ChannelMiniProgramRelConfigType, ChannelMiniProgramRelOpenDecision, ChannelMiniProgramRelOpenSurface, ChannelMuteReason, ChannelPermissionSet, ChannelProfile, ChannelRole, ChannelSessionState, ChatMediaMessageRef, ChatProfileAdapter, ChatRuntime, ChatRuntimeCredentials, ChatRuntimeFactories, ChatRuntimeHostDeps, ChatRuntimeOpResult, ContactCardInput, ContactMessageOptions, ConversationBackgroundPreset, ConversationBackgroundSelection, ConversationCapabilityAction, ConversationCapabilitySnapshot, ConversationDraft, ConversationDraftApi, ConversationEntryUnreadSnapshot, ConversationHandle, ConversationHandleSnapshot, ConversationInitialPosition, ConversationLastMessageSummary, ConversationListItem, ConversationListMention, ConversationListPresentation, ConversationListPresentationLabels, ConversationListPresentationOptions, ConversationListPreviewMediaKind, ConversationListPreviewSegment, ConversationMessageApi, ConversationOpenOptions, ConversationPrefetchController, ConversationPrefetchControllerOptions, ConversationPrefetchOptions, ConversationPrefetchResult, ConversationRef, ConversationSearchCategory, ConversationSearchPage, ConversationSearchResult, ConversationSystemSummary, ConversationType, CreateThreadItemsInput, DelayedLoadingIndicator, DelayedLoadingIndicatorOptions, DirectConversationCapabilities, DirectConversationMessageApi, DraftInput, EditTextOptions, EmojiEntry, EmojiRecentItem, EmojiSegment, ExpressionMessageOptions, FileMessageOptions, FormatFailureContext, FormatLastMessageContext, FormatMediaPlaceholderContext, FormatServiceTextContext, FormatSystemMessageContext, FormatTimeDisplayContext, ForwardCommandHooks, ForwardFailReason, ForwardItemStatus, ForwardMessageFailure, ForwardMessagesInput, ForwardMessagesResult, ForwardTarget, ForwardedMessageRef, GameMessageOptions, GifFileClassification, GifMessageOptions, GiftMessageOptions, GroupConversationCapabilities, GroupConversationMessageApi, GroupMemberItem, GroupProfile, HighlightSegment, ImAppearanceSettingsApi, ImApplicationItem, ImApplicationRef, ImApplicationsApi, ImAuthIssue, ImAuthProvider, ImCacheOptions, ImCachePrefixMigrationContext, ImCachePrefixMigrator, ImCallKind, ImCallOutcome, ImCallRecordBody, ImCatalog, ImCatalogOverrides, ImChannelConversationAccessSnapshot, ImChannelMemberPresentation, ImChannelMentionApi, ImChannelMentionPresentation, ImChannelMiniProgramRel, ImChannelPermissions, ImChannelPinnedMessage, ImChannelProfile, ImChannelProfilePresentation, ImChannelRole, ImChannelState, ImChannelsApi, ImChatFontScale, ImClientOptions, ImConnectionState, ImContactBody, ImContactKind, ImContactProfile, ImContactRelationship, ImContactRemarkPhone, ImContactSearchResult, ImContactsApi, ImConversationBackgroundApi, ImConversationCapabilitiesApi, ImConversationListApi, ImConversationListSnapshot, ImConversationListState, ImConversationSearchApi, ImCoreApiOptions, ImCreateChannelInput, ImCreateChannelResult, ImCreateFaceToFaceGroupResult, ImCreateGroupInput, ImCreateGroupResult, ImCreatedChannel, ImCreatedGroup, ImDebugOptions, ImDiagnosticCategory, ImDiagnosticError, ImDiagnosticLayer, ImDiagnosticLevel, ImDiagnosticMemoryBuffer, ImDiagnosticMemoryBufferFilter, ImDiagnosticMemoryBufferOptions, ImDiagnosticMemoryBufferSnapshot, ImDiagnosticMessage, ImDiagnosticRecord, ImDiagnosticSink, ImDiagnosticWriter, ImDirectCallAnswerResult, ImDirectCallFailReason, ImDirectCallHangupInput, ImDirectCallHangupReason, ImDirectCallInviteInput, ImDirectCallNotifyAudioInput, ImDirectCallTargetInput, ImDirectCallsApi, ImDirectReadReceiptSettings, ImDirectoryApi, ImDirectoryFieldMatch, ImDirectoryItem, ImDirectoryKind, ImDirectoryPage, ImDirectorySearchApi, ImDirectorySearchItem, ImDirectorySearchResult, ImDraftsApi, ImEmojiCatalogEntry, ImEndpointProvider, ImEventsApi, ImExpressionAsset, ImExpressionAssetInput, ImExpressionEmojiRecentInput, ImExpressionFavoriteKind, ImExpressionOptions, ImExpressionRecentInput, ImExpressionRecentItem, ImExpressionRecentItemKind, ImExpressionsApi, ImFaceToFaceGroup, ImFailureCatalog, ImFileBody, ImFilesAlbumBody, ImForwardOperationResult, ImFriendshipRequestResult, ImGameBody, ImGameType, ImGifAssetInput, ImGiftBody, ImGiftSessionType, ImGiftStatus, ImGiftType, ImGiphyAsset, ImGiphyPage, ImGiphyPageOptions, ImGroupCallAnswerInput, ImGroupCallBusyInput, ImGroupCallCreateInput, ImGroupCallJoinInput, ImGroupCallMeetingSnapshot, ImGroupCallMember, ImGroupCallMemberStatus, ImGroupCallStatusInput, ImGroupCallTargetInput, ImGroupCallsApi, ImGroupConversationState, ImGroupMemberPresentation, ImGroupMentionApi, ImGroupPinnedMessage, ImGroupProfile, ImGroupsApi, ImI18n, ImImageBody, ImLastMessageCatalog, ImLifecycleSnapshot, ImLocalDataApi, ImLocalDataInfo, ImLocale, ImLogoutOptions, ImMediaAlbumBody, ImMediaAlbumItem, ImMediaBatchSendResult, ImMediaCatalog, ImMediaConfig, ImMediaTask, ImMediaTasksApi, ImMembershipJoinResult, ImMentionCatalog, ImMessageActionResult, ImMessageBodyKind, ImMessageMention, ImMessageReactionAggregate, ImMessageReactions, ImMessageRef, ImMessageSearchApi, ImMessageView, ImMessageViewBody, ImMessagesByIdResult, ImMiniProgramBody, ImMiniProgramShowType, ImOutboxApi, ImOutboxItem, ImPageToken, ImPartialCatalog, ImPinnedMessageActionResult, ImPinnedMessageErrorKind, ImPinnedMessageOperation, ImPinnedMessageSnapshot, ImProductApplicationUpdate, ImProductAuthInvalidReason, ImProductClient, ImProductEvent, ImProductEventError, ImProductEventMap, ImProductMessage, ImProfileAccessDestination, ImPushApi, ImPushSnapshot, ImQuotedMessagePresentation, ImReactionChangeAction, ImReactionChangeResult, ImReadReceiptSettingsApi, ImRedPacketBody, ImRedPacketType, ImRequestError, ImRequestErrorHandler, ImResourceKind, ImResourceUploadInput, ImResourceUploadProgress, ImResourceUploadResult, ImResourceUploader, ImResourceUploaderConfig, ImRobotBody, ImRobotCommand, ImRobotConversationBindInput, ImRobotDirectoryItem, ImRobotDirectoryPage, ImRobotDirectoryScope, ImRobotModule, ImRobotsApi, ImSdkErrorCategory, ImSdkErrorShape, ImSearchApi, ImServiceCatalog, ImServiceTextKey, ImSessionApi, ImSessionFavoriteAlbumItem, ImSessionFavoriteItem, ImSessionFavoriteKind, ImSessionFavoritesApi, ImSessionLifecycleState, ImSettingsApi, ImStickerAssetInput, ImStickerBody, ImStickerPack, ImSupportedConversationRef, ImSystemCatalog, ImTextResolver, ImTextSearchMatch, ImTextSearchMatchOptions, ImTextSearchMatcher, ImTextSearchRange, ImThreadActiveDateSnapshot, ImThreadDateMarkerMetric, ImThreadDecoration, ImThreadEncryptionItem, ImThreadIntent, ImThreadItem, ImThreadPresentationAdapter, ImThreadReadActions, ImThreadReadTargetResolver, ImThreadViewportMetrics, ImTimeCatalog, ImTransferBody, ImTransferSessionType, ImTransferStatus, ImVideoBody, ImVoiceBody, ImWebPushSubscription, ImWeekdayKey, ImageMessageOptions, ImagePreviewMetadata, IncomingMessageFollowInput, InitialHistoryViewportFillInput, InitialViewportCompletionInput, LinkSegment, LocalConversationHistoryClearResult, LocalMessageDeletionResult, MediaAlbumItemInput, MediaAlbumMessageOptions, MediaBatchBudgetOptions, MediaBatchLimitInfo, MediaFileClassification, MediaLimitItem, MediaObjectUrlLease, MediaPresentationFit, MediaPresentationPolicy, MediaPresentationRule, MediaPresentationSourceCandidate, MediaPresentationSourceQuality, MediaSendBatchResult, MediaTransferErrorCode, MediaUploadCredentials, MediaUploadCredentialsProvider, MediaUploadCredentialsRequest, MemberTargetCapabilityAction, MemberTargetCapabilityInput, MentionCandidate, MentionCandidatePage, MentionInput, MessageCapabilityAction, MessageCapabilityInput, MessageContentType, MessageLocateScrollProtectionInput, MessageNotificationDecision, MessageNotificationInput, MessageWindowInfo, MessageWindowPage, MessagesByIdFailure, MigrateImCachePrefixInput, MiniProgramGamePreviewInput, MiniProgramGamePreviewLayout, MiniProgramHostLocale, MiniProgramMessageOptions, MiniProgramOpenUrlInput, NewMessageBadgeController, NewMessageBadgeCountListener, NewMessageBadgeVisibilityInput, NewerHistoryPageTriggerInput, OlderHistoryPrefetchInput, PrependAnchorCandidate, PrependAnchorViewport, PrependMessageAnchorPosition, ProductConversationListType, ProductHandleConversationType, ProductMessageSearchPage, ProductMessageSearchResult, RemoteMessageBadgeTrackingInput, ResolveMediaPresentationInput, ResolveTextOptions, ResolvedConversationBackground, ResolvedMediaPresentation, RichExtraSegment, RobotConversationCapabilities, RuntimeClientOperation, RuntimeOperation, SearchBatchResult, SearchFilesInput, SearchMessagesInput, SearchTextMessagesInput, SegmentMatch, SegmentMatcher, SendCapabilityMode, SendCommandHooks, SendMessageResult, SendVoicePayload, SenderProfileEntry, ServiceNoteHooks, StandaloneEmojiMessage, StickerAssetKind, TextMessageOptions, TextSegment, TransferMessageOptions, UnicodeEmojiEntry, UnknownMessageBody, UserProfile, VideoMessageOptions, VideoPreviewMetadata, VisibleChannelMiniProgramRels, VoiceCapabilities, VoiceErrorCode, VoiceMessageMetadata, VoicePlayer, VoicePlayerOptions, VoicePlayerState, VoiceRecordingResult, VoiceRecordingSession, VoiceRecordingSessionOptions, VoiceRecordingState, VoiceToggleOptions };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-IDECJJXC.js';import'./chunk-SXY56EVC.js';export{q as DEFAULT_LOADING_MINIMUM_VISIBLE_MS,p as DEFAULT_LOADING_SHOW_DELAY_MS,v as MINI_PROGRAM_GAME_PREVIEW_FALLBACK_HEIGHT,u as MINI_PROGRAM_GAME_PREVIEW_FALLBACK_WIDTH,e as MINI_PROGRAM_LANG_NUMBERS,
|
|
1
|
+
import'./chunk-IDECJJXC.js';import'./chunk-SXY56EVC.js';export{q as DEFAULT_LOADING_MINIMUM_VISIBLE_MS,p as DEFAULT_LOADING_SHOW_DELAY_MS,v as MINI_PROGRAM_GAME_PREVIEW_FALLBACK_HEIGHT,u as MINI_PROGRAM_GAME_PREVIEW_FALLBACK_WIDTH,e as MINI_PROGRAM_LANG_NUMBERS,Q as SPIKE_STEP,M as calculateMediaBox,C as canCopyMessageImage,t as canPromoteMediaPresentationSource,z as captureRuntimeClientOperation,y as captureRuntimeOperation,n as channelMiniProgramRelKey,x as createConversationPrefetchController,r as createDelayedLoadingIndicator,K as createLinkMatcher,D as createMessageImageCopySource,f as csvIncludes,d as decideChannelMiniProgramRelOpen,O as formatFileSize,N as formatMediaDuration,P as getFileExtension,B as getMessageCopyImageUrl,A as getMessageCopyText,J as hasLinkCandidate,H as highlightSegments,a as isMiniProgramShowTypeOpenable,E as mediaService,I as normalizeLinkHref,T as placeholderWaveform,F as readService,S as resampleWaveform,s as resolveBestMediaPresentationSource,h as resolveChannelMiniProgramRelIcon,g as resolveChannelMiniProgramRelName,j as resolveChannelMiniProgramRelOpenSurface,i as resolveChannelMiniProgramRelUrl,k as resolveChannelPinnedGameCopy,o as resolveConversationListPresentation,L as resolveMediaPresentation,c as resolveMiniProgramFloatLinkUrl,w as resolveMiniProgramGamePreviewLayout,b as resolveMiniProgramOpenUrl,G as resolveQuotedMessagePresentation,m as resolveVisibleChannelMiniProgramRels,l as sortChannelMiniProgramFloatingItems,R as spikeCountForDuration}from'./chunk-QK3UXZKZ.js';export{j as DEFAULT_EMOJI_ASSET_BASE,i as EMOJI_CATALOG,c as EMOJI_GAME_DICE_STABLE_KEY,b as EMOJI_GAME_RPS_STABLE_KEY,m as EMOJI_TOKEN_RE,N as MAX_BATCH_FILES,a as MAX_RECENT_EMOJI_COUNT,g as UNICODE_EMOJI_CATALOG,M as blockReasonForChannelSession,L as blockReasonForChannelState,T as blockReasonForGroupState,W as blockReasonForSession,G as canEditMessage,w as canPinChannelMessage,v as canPinGroupMessage,x as canPinMessage,F as canRecallMessage,da as cancelMediaUpload,R as classifyGifFile,Q as classifyMediaFile,s as countUnreadConversations,u as createChatRuntime,p as createEmojiMatcher,I as decideConversationAction,K as decideMemberTargetAction,J as decideMessageAction,l as emojiAssetUrl,n as emojiUrlByCode,Da as fetchConversationFileBatch,Ea as fetchConversationImageBatch,Ba as fetchConversationMessageBatch,Fa as fetchConversationVideoBatch,Ga as fetchConversationVoiceBatch,Ha as fetchNextConversationSearchBatch,r as formatConversationUnreadBadge,ga as forwardService,o as hasEmojiCandidate,S as isGifFile,y as isPinnedMessageProtected,_ as isVoiceStorageConfigured,O as mediaBatchBudgetBytes,la as messageService,e as parseUnicodeEmojiCode,qa as pinnedMessageService,d as prependRecentEmoji,Aa as profileService,Z as replaceInterruptedMediaFile,U as requiresConversationEncryption,B as resolveChannelMemberAvatarUrl,A as resolveChannelMemberDisplayName,k as resolveEmojiToken,E as resolveFriendDisplayName,ra as resolveImProfileAccessDestination,z as resolveMemberDisplayName,t as resolveMessageNotificationDecision,D as resolvePublicNickname,C as resolveSenderAvatarUrl,q as resolveStandaloneEmojiMessage,h as resolveUnicodeEmoji,ea as retryMessage,P as runMediaSendBatch,ca as sendAsFilesBatch,H as sendBlockReasonForDecision,aa as sendMediaAlbum,Y as sendMediaFile,ba as sendMediaFilesBatch,X as sendText,$ as sendVoice,V as supportsConversationMention,f as unicodeEmojiTextFromCode}from'./chunk-QDQNYCIH.js';export{C as createNewMessageBadgeController,i as createThreadItems,f as formatChatDateSeparator,e as formatConversationDisplayTime,c as getLocalDayKey,l as isMessageLocateScrollProtected,v as isMessageTailChangeFromOlderWindowTrim,k as isMessageViewportMeasurable,B as isMessageVisibleForNewMessageBadge,x as loadOlderUntilBoundary,p as refreshPrependMessageAnchorPosition,j as resolveCenteredMessageScrollTop,a as resolveDisplayTimestamp,g as resolveImThreadActiveDate,h as resolveMessageBodyKind,b as resolveMessageTimelineTimestamp,n as resolvePrependMessageAnchor,q as resolvePrependMessageAnchorAdjustment,o as resolvePrependMessageAnchorPosition,s as resolveSurvivingMessageAnchorAdjustment,r as resolveVisibleMessageAnchorPositions,t as shouldCompleteInitialViewport,y as shouldFillInitialHistoryViewport,u as shouldFollowIncomingMessage,z as shouldLoadNewerHistoryPage,m as shouldPrefetchOlderHistory,w as shouldRestoreMessageViewportFocus,d as shouldShowChatDateSeparator,A as shouldTrackRemoteMessageForBadge}from'./chunk-YEXLMW5J.js';export{a as DEFAULT_LOCALE,k as createImI18n,f as formatFailure,h as formatLastMessageSummary,i as formatMediaPlaceholder,j as formatMentionAll,l as formatServiceText,g as formatSystemMessage,c as getImTimeCatalog,b as normalizeImLocale,d as registerImCatalogOverrides,e as resetImCatalogOverrides}from'./chunk-4HJR3NAM.js';export{e as IMAGE_MESSAGE_ACCEPT,n as IM_CHAT_FONT_SCALES,g as IM_DIAGNOSTIC_CATEGORIES,j as IM_EMOJI_CATALOG,c as ImPinnedMessageOperationError,m as buildSessionFavoritePlainBody,d as createFaceToFaceGroupQrPayload,o as createImClient,h as createImConsoleDiagnosticSink,r as createImDiagnosticMemoryBuffer,s as createImResourceUploader,i as createSdkDiagnosticWriter,f as isSupportedImageFile,a as migrateImCachePrefix,k as resolveImEmojiToken,l as resolveSessionFavoriteKindFromMessage}from'./chunk-WQBCUQ6Q.js';export{Xa as MediaTransferError,jb as createVoicePlayer,kb as createVoiceRecordingSession,hb as detectVoiceCapabilities,Ya as mediaTransferErrorCodeOf,_a as normalizeMediaUploadCredentials,ib as voiceErrorCodeOf}from'./chunk-IEFK5A7T.js';export{ra as EDIT_WINDOW_MS,p as MEDIA_ALBUM_CAPTION_MAX_LENGTH,q as MEDIA_ALBUM_MAX_ITEMS,za as REACTION_SUPPORTED_CONTENT_TYPES,Aa as canReactToMessage,va as canTransmit,ta as canTransmitByType,ua as canTransmitContent,u as classifyStickerImageType,ga as createImTextSearchMatcher,ea as extractSearchText,fa as getImTextSearchInitial,vb as parseSessionFavoriteAlbumItems,sa as requiresForwardTypeConfirmation,Ca as resolveChannelAccess,r as resolveMediaAlbumSendContentType,wb as resolveSessionFavoriteAlbumCaption,ub as resolveSessionFavoriteAlbumItemPreviewUrl,la as resolveTextSegments,Ja as sortSessions,Ka as sumSessionsUnread}from'./chunk-PJ2PW42T.js';import'./chunk-WOT6VMZA.js';
|