k2-im 0.1.0 → 0.1.2
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 +365 -0
- package/dist/browser.js +1 -0
- package/dist/chat-kit-pinia.d.ts +28 -7
- package/dist/chat-kit-pinia.js +1 -1
- package/dist/chat-kit-vue.js +1 -1
- package/dist/chat-kit.d.ts +28 -7
- package/dist/chat-kit.js +1 -1
- package/dist/chunk-FO2MMPPT.js +7 -0
- package/dist/{chunk-I6FUD7EW.js → chunk-JUJCY6DH.js} +1 -1
- package/dist/chunk-QGGCU24I.js +1 -0
- package/dist/chunk-VSMNRAAM.js +1 -0
- package/dist/{chunk-YMH6LM5Q.js → chunk-WYHMM3QR.js} +1 -1
- package/dist/chunk-ZJBW4MOG.js +2 -0
- package/dist/{chunk-RZFMPR6C.js → chunk-ZXNH42G2.js} +1 -1
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +28 -7
- package/dist/index.js +1 -1
- package/dist/sdk.d.ts +28 -7
- package/dist/sdk.js +1 -1
- package/package.json +5 -1
- package/dist/chunk-BRHUZPIB.js +0 -1
- package/dist/chunk-UWQHGBMV.js +0 -1
- package/dist/chunk-VKSMKG6Q.js +0 -7
package/dist/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-SXY56EVC.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-
|
|
1
|
+
import'./chunk-SXY56EVC.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-ZXNH42G2.js';import'./chunk-VSMNRAAM.js';import'./chunk-WOT6VMZA.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -2115,7 +2115,7 @@ type ImEvent = {
|
|
|
2115
2115
|
createdAt: number;
|
|
2116
2116
|
expired: boolean;
|
|
2117
2117
|
}
|
|
2118
|
-
/** 对端应答 0x4008;accept
|
|
2118
|
+
/** 对端应答 0x4008;accept 后仍须等匹配的首帧事件才算接通。 */
|
|
2119
2119
|
| {
|
|
2120
2120
|
type: 'call:answered';
|
|
2121
2121
|
conversation: ConversationRef<'direct'>;
|
|
@@ -2131,13 +2131,20 @@ type ImEvent = {
|
|
|
2131
2131
|
peerId: string;
|
|
2132
2132
|
outcome: ImCallOutcome;
|
|
2133
2133
|
}
|
|
2134
|
-
/** 对端 PEER_AUDIO_BEGIN(5)
|
|
2134
|
+
/** 对端 PEER_AUDIO_BEGIN(5)。Android TrackSubscribed 后发送;iOS LiveKit 不发此包。收到才算语音接通,不把 accept 当成接通。 */
|
|
2135
2135
|
| {
|
|
2136
2136
|
type: 'call:peer-audio-begin';
|
|
2137
2137
|
conversation: ConversationRef<'direct'>;
|
|
2138
2138
|
callId: string;
|
|
2139
2139
|
peerId: string;
|
|
2140
2140
|
}
|
|
2141
|
+
/** 对端 PEER_VIDEO_BEGIN(6)。Android TrackSubscribed 后发送;iOS LiveKit 不发此包。收到才算视频接通,不把 accept 当成接通。 */
|
|
2142
|
+
| {
|
|
2143
|
+
type: 'call:peer-video-begin';
|
|
2144
|
+
conversation: ConversationRef<'direct'>;
|
|
2145
|
+
callId: string;
|
|
2146
|
+
peerId: string;
|
|
2147
|
+
}
|
|
2141
2148
|
/** 主叫 invite ACK 失败(对端离线等);本机已写入 cancelled 记录。 */
|
|
2142
2149
|
| {
|
|
2143
2150
|
type: 'call:failed';
|
|
@@ -4298,7 +4305,7 @@ interface ImApplicationsApi {
|
|
|
4298
4305
|
}
|
|
4299
4306
|
|
|
4300
4307
|
/**
|
|
4301
|
-
* 单聊 1v1
|
|
4308
|
+
* 单聊 1v1 音视频信令产品门面。
|
|
4302
4309
|
*
|
|
4303
4310
|
* 宿主先完成 LiveKit Connected,再 `invite`;来电订阅 `call:incoming`。
|
|
4304
4311
|
* SDK 不持有 getUserMedia / LiveKit;token 与进房留在宿主。
|
|
@@ -4307,6 +4314,8 @@ interface ImApplicationsApi {
|
|
|
4307
4314
|
interface ImDirectCallInviteInput {
|
|
4308
4315
|
peerId: string;
|
|
4309
4316
|
callId: string;
|
|
4317
|
+
/** 默认 audio。视频发信令 callType=0。接通仍等对端首帧事件,不把 accept 当成接通。 */
|
|
4318
|
+
callKind?: ImCallKind;
|
|
4310
4319
|
}
|
|
4311
4320
|
interface ImDirectCallTargetInput {
|
|
4312
4321
|
peerId: string;
|
|
@@ -4321,13 +4330,13 @@ interface ImDirectCallNotifyAudioInput extends ImDirectCallTargetInput {
|
|
|
4321
4330
|
interface ImDirectCallsApi {
|
|
4322
4331
|
/**
|
|
4323
4332
|
* 主叫在 LiveKit Connected 之后发送 0x4001。
|
|
4324
|
-
*
|
|
4333
|
+
* `callKind` 默认 audio;video 发 callType=0。
|
|
4325
4334
|
*/
|
|
4326
4335
|
invite: (input: ImDirectCallInviteInput) => {
|
|
4327
4336
|
callId: string;
|
|
4328
4337
|
conversation: ConversationRef<'direct'>;
|
|
4329
4338
|
};
|
|
4330
|
-
/** 被叫同意:发 0x4005 NON_ERR
|
|
4339
|
+
/** 被叫同意:发 0x4005 NON_ERR。接通仍等匹配的首帧事件。 */
|
|
4331
4340
|
accept: (input: ImDirectCallTargetInput) => void;
|
|
4332
4341
|
/** 被叫拒绝:发 0x4005 0x8400,并插入 rejected 记录。 */
|
|
4333
4342
|
reject: (input: ImDirectCallTargetInput) => void;
|
|
@@ -4336,10 +4345,17 @@ interface ImDirectCallsApi {
|
|
|
4336
4345
|
/** 挂断:发 0x400d,并插入通话记录(msgId=callId)。 */
|
|
4337
4346
|
hangup: (input: ImDirectCallHangupInput) => void;
|
|
4338
4347
|
/**
|
|
4339
|
-
*
|
|
4348
|
+
* 语音 TrackSubscribed 后通知对端 PEER_AUDIO_BEGIN(5)。
|
|
4340
4349
|
* `role` 映射 Android notifyValue:caller=1 / callee=2。
|
|
4350
|
+
* iOS LiveKit 现行不发此包;宿主不得因对端是 iOS 而改发或不发。
|
|
4341
4351
|
*/
|
|
4342
4352
|
notifyPeerAudioBegin: (input: ImDirectCallNotifyAudioInput) => void;
|
|
4353
|
+
/**
|
|
4354
|
+
* 视频 TrackSubscribed 后通知对端 PEER_VIDEO_BEGIN(6)。
|
|
4355
|
+
* `role` 映射与语音相同。当前通话不是视频时 fail-fast。
|
|
4356
|
+
* iOS LiveKit 现行不发此包。
|
|
4357
|
+
*/
|
|
4358
|
+
notifyPeerVideoBegin: (input: ImDirectCallNotifyAudioInput) => void;
|
|
4343
4359
|
}
|
|
4344
4360
|
|
|
4345
4361
|
/**
|
|
@@ -5509,6 +5525,11 @@ interface ImProductEventMap {
|
|
|
5509
5525
|
callId: string;
|
|
5510
5526
|
peerId: string;
|
|
5511
5527
|
}>;
|
|
5528
|
+
'call:peer-video-begin': Readonly<{
|
|
5529
|
+
ref: ConversationRef<'direct'>;
|
|
5530
|
+
callId: string;
|
|
5531
|
+
peerId: string;
|
|
5532
|
+
}>;
|
|
5512
5533
|
'call:failed': Readonly<{
|
|
5513
5534
|
ref: ConversationRef<'direct'>;
|
|
5514
5535
|
callId: string;
|
|
@@ -6200,7 +6221,7 @@ interface ImProductClient {
|
|
|
6200
6221
|
* 普通宿主只使用 `ImProductClient`;官方 Chat Kit 和受控诊断从 internal 子入口取得 `ImAdvancedClient`。
|
|
6201
6222
|
*/
|
|
6202
6223
|
interface ImClient extends Omit<ImProductClient, 'capabilities' | 'channels' | 'contacts' | 'conversations' | 'groups'> {
|
|
6203
|
-
/** internal/testing
|
|
6224
|
+
/** internal/testing 与高级宿主使用的单聊音视频信令;稳定 default 产品门面不暴露此能力。 */
|
|
6204
6225
|
readonly calls: ImDirectCallsApi;
|
|
6205
6226
|
/**
|
|
6206
6227
|
* 打开一个拥有独立连续窗口与生命周期的 direct、GROUP 或 CHANNEL 会话句柄。
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-IDECJJXC.js';import'./chunk-SXY56EVC.js';export{c as DEFAULT_LOADING_MINIMUM_VISIBLE_MS,b as DEFAULT_LOADING_SHOW_DELAY_MS,t as SPIKE_STEP,p as calculateMediaBox,f as canPromoteMediaPresentationSource,h as captureRuntimeClientOperation,g as captureRuntimeOperation,d as createDelayedLoadingIndicator,n as createLinkMatcher,r as formatFileSize,q as formatMediaDuration,s as getFileExtension,m as hasLinkCandidate,k as highlightSegments,i as mediaService,l as normalizeLinkHref,w as placeholderWaveform,j as readService,v as resampleWaveform,e as resolveBestMediaPresentationSource,a as resolveConversationListPresentation,o as resolveMediaPresentation,u as spikeCountForDuration}from'./chunk-
|
|
1
|
+
import'./chunk-IDECJJXC.js';import'./chunk-SXY56EVC.js';export{c as DEFAULT_LOADING_MINIMUM_VISIBLE_MS,b as DEFAULT_LOADING_SHOW_DELAY_MS,t as SPIKE_STEP,p as calculateMediaBox,f as canPromoteMediaPresentationSource,h as captureRuntimeClientOperation,g as captureRuntimeOperation,d as createDelayedLoadingIndicator,n as createLinkMatcher,r as formatFileSize,q as formatMediaDuration,s as getFileExtension,m as hasLinkCandidate,k as highlightSegments,i as mediaService,l as normalizeLinkHref,w as placeholderWaveform,j as readService,v as resampleWaveform,e as resolveBestMediaPresentationSource,a as resolveConversationListPresentation,o as resolveMediaPresentation,u as spikeCountForDuration}from'./chunk-WYHMM3QR.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,K as MAX_BATCH_FILES,a as MAX_RECENT_EMOJI_COUNT,g as UNICODE_EMOJI_CATALOG,J as blockReasonForChannelSession,I as blockReasonForChannelState,O as blockReasonForGroupState,R as blockReasonForSession,D as canEditMessage,t as canPinChannelMessage,s as canPinGroupMessage,u as canPinMessage,C as canRecallMessage,Z as cancelMediaUpload,r as createChatRuntime,p as createEmojiMatcher,F as decideConversationAction,H as decideMemberTargetAction,G as decideMessageAction,l as emojiAssetUrl,n as emojiUrlByCode,wa as fetchConversationFileBatch,xa as fetchConversationImageBatch,ua as fetchConversationMessageBatch,ya as fetchConversationVideoBatch,za as fetchConversationVoiceBatch,Aa as fetchNextConversationSearchBatch,aa as forwardService,o as hasEmojiCandidate,N as isGifFile,v as isPinnedMessageProtected,V as isVoiceStorageConfigured,L as mediaBatchBudgetBytes,fa as messageService,e as parseUnicodeEmojiCode,ka as pinnedMessageService,d as prependRecentEmoji,ta as profileService,U as replaceInterruptedMediaFile,P as requiresConversationEncryption,y as resolveChannelMemberAvatarUrl,x as resolveChannelMemberDisplayName,k as resolveEmojiToken,B as resolveFriendDisplayName,w as resolveMemberDisplayName,A as resolvePublicNickname,z as resolveSenderAvatarUrl,q as resolveStandaloneEmojiMessage,h as resolveUnicodeEmoji,_ as retryMessage,M as runMediaSendBatch,Y as sendAsFilesBatch,E as sendBlockReasonForDecision,T as sendMediaFile,X as sendMediaFilesBatch,S as sendText,W as sendVoice,Q as supportsConversationMention,f as unicodeEmojiTextFromCode}from'./chunk-QGGCU24I.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-JUJCY6DH.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-ZXNH42G2.js';export{j as IM_CHAT_FONT_SCALES,e as IM_DIAGNOSTIC_CATEGORIES,h as IM_EMOJI_CATALOG,c as ImPinnedMessageOperationError,d as createFaceToFaceGroupQrPayload,k as createImClient,f as createImConsoleDiagnosticSink,n as createImDiagnosticMemoryBuffer,g as createSdkDiagnosticWriter,a as migrateImCachePrefix,i as resolveImEmojiToken}from'./chunk-ZJBW4MOG.js';export{Ra as createVoicePlayer,Sa as createVoiceRecordingSession,Pa as detectVoiceCapabilities,Qa as voiceErrorCodeOf}from'./chunk-FO2MMPPT.js';export{Z as EDIT_WINDOW_MS,ba as canTransmit,$ as canTransmitByType,aa as canTransmitContent,n as classifyStickerImageType,R as createImTextSearchMatcher,P as extractSearchText,Q as getImTextSearchInitial,_ as requiresForwardTypeConfirmation,fa as resolveChannelAccess,T as resolveTextSegments,la as sortSessions,ma as sumSessionsUnread}from'./chunk-VSMNRAAM.js';import'./chunk-WOT6VMZA.js';
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1436,7 +1436,7 @@ type ImEvent = {
|
|
|
1436
1436
|
createdAt: number;
|
|
1437
1437
|
expired: boolean;
|
|
1438
1438
|
}
|
|
1439
|
-
/** 对端应答 0x4008;accept
|
|
1439
|
+
/** 对端应答 0x4008;accept 后仍须等匹配的首帧事件才算接通。 */
|
|
1440
1440
|
| {
|
|
1441
1441
|
type: 'call:answered';
|
|
1442
1442
|
conversation: ConversationRef<'direct'>;
|
|
@@ -1452,13 +1452,20 @@ type ImEvent = {
|
|
|
1452
1452
|
peerId: string;
|
|
1453
1453
|
outcome: ImCallOutcome;
|
|
1454
1454
|
}
|
|
1455
|
-
/** 对端 PEER_AUDIO_BEGIN(5)
|
|
1455
|
+
/** 对端 PEER_AUDIO_BEGIN(5)。Android TrackSubscribed 后发送;iOS LiveKit 不发此包。收到才算语音接通,不把 accept 当成接通。 */
|
|
1456
1456
|
| {
|
|
1457
1457
|
type: 'call:peer-audio-begin';
|
|
1458
1458
|
conversation: ConversationRef<'direct'>;
|
|
1459
1459
|
callId: string;
|
|
1460
1460
|
peerId: string;
|
|
1461
1461
|
}
|
|
1462
|
+
/** 对端 PEER_VIDEO_BEGIN(6)。Android TrackSubscribed 后发送;iOS LiveKit 不发此包。收到才算视频接通,不把 accept 当成接通。 */
|
|
1463
|
+
| {
|
|
1464
|
+
type: 'call:peer-video-begin';
|
|
1465
|
+
conversation: ConversationRef<'direct'>;
|
|
1466
|
+
callId: string;
|
|
1467
|
+
peerId: string;
|
|
1468
|
+
}
|
|
1462
1469
|
/** 主叫 invite ACK 失败(对端离线等);本机已写入 cancelled 记录。 */
|
|
1463
1470
|
| {
|
|
1464
1471
|
type: 'call:failed';
|
|
@@ -2982,7 +2989,7 @@ interface ImApplicationsApi {
|
|
|
2982
2989
|
}
|
|
2983
2990
|
|
|
2984
2991
|
/**
|
|
2985
|
-
* 单聊 1v1
|
|
2992
|
+
* 单聊 1v1 音视频信令产品门面。
|
|
2986
2993
|
*
|
|
2987
2994
|
* 宿主先完成 LiveKit Connected,再 `invite`;来电订阅 `call:incoming`。
|
|
2988
2995
|
* SDK 不持有 getUserMedia / LiveKit;token 与进房留在宿主。
|
|
@@ -2991,6 +2998,8 @@ interface ImApplicationsApi {
|
|
|
2991
2998
|
interface ImDirectCallInviteInput {
|
|
2992
2999
|
peerId: string;
|
|
2993
3000
|
callId: string;
|
|
3001
|
+
/** 默认 audio。视频发信令 callType=0。接通仍等对端首帧事件,不把 accept 当成接通。 */
|
|
3002
|
+
callKind?: ImCallKind;
|
|
2994
3003
|
}
|
|
2995
3004
|
interface ImDirectCallTargetInput {
|
|
2996
3005
|
peerId: string;
|
|
@@ -3005,13 +3014,13 @@ interface ImDirectCallNotifyAudioInput extends ImDirectCallTargetInput {
|
|
|
3005
3014
|
interface ImDirectCallsApi {
|
|
3006
3015
|
/**
|
|
3007
3016
|
* 主叫在 LiveKit Connected 之后发送 0x4001。
|
|
3008
|
-
*
|
|
3017
|
+
* `callKind` 默认 audio;video 发 callType=0。
|
|
3009
3018
|
*/
|
|
3010
3019
|
invite: (input: ImDirectCallInviteInput) => {
|
|
3011
3020
|
callId: string;
|
|
3012
3021
|
conversation: ConversationRef<'direct'>;
|
|
3013
3022
|
};
|
|
3014
|
-
/** 被叫同意:发 0x4005 NON_ERR
|
|
3023
|
+
/** 被叫同意:发 0x4005 NON_ERR。接通仍等匹配的首帧事件。 */
|
|
3015
3024
|
accept: (input: ImDirectCallTargetInput) => void;
|
|
3016
3025
|
/** 被叫拒绝:发 0x4005 0x8400,并插入 rejected 记录。 */
|
|
3017
3026
|
reject: (input: ImDirectCallTargetInput) => void;
|
|
@@ -3020,10 +3029,17 @@ interface ImDirectCallsApi {
|
|
|
3020
3029
|
/** 挂断:发 0x400d,并插入通话记录(msgId=callId)。 */
|
|
3021
3030
|
hangup: (input: ImDirectCallHangupInput) => void;
|
|
3022
3031
|
/**
|
|
3023
|
-
*
|
|
3032
|
+
* 语音 TrackSubscribed 后通知对端 PEER_AUDIO_BEGIN(5)。
|
|
3024
3033
|
* `role` 映射 Android notifyValue:caller=1 / callee=2。
|
|
3034
|
+
* iOS LiveKit 现行不发此包;宿主不得因对端是 iOS 而改发或不发。
|
|
3025
3035
|
*/
|
|
3026
3036
|
notifyPeerAudioBegin: (input: ImDirectCallNotifyAudioInput) => void;
|
|
3037
|
+
/**
|
|
3038
|
+
* 视频 TrackSubscribed 后通知对端 PEER_VIDEO_BEGIN(6)。
|
|
3039
|
+
* `role` 映射与语音相同。当前通话不是视频时 fail-fast。
|
|
3040
|
+
* iOS LiveKit 现行不发此包。
|
|
3041
|
+
*/
|
|
3042
|
+
notifyPeerVideoBegin: (input: ImDirectCallNotifyAudioInput) => void;
|
|
3027
3043
|
}
|
|
3028
3044
|
|
|
3029
3045
|
/**
|
|
@@ -4193,6 +4209,11 @@ interface ImProductEventMap {
|
|
|
4193
4209
|
callId: string;
|
|
4194
4210
|
peerId: string;
|
|
4195
4211
|
}>;
|
|
4212
|
+
'call:peer-video-begin': Readonly<{
|
|
4213
|
+
ref: ConversationRef<'direct'>;
|
|
4214
|
+
callId: string;
|
|
4215
|
+
peerId: string;
|
|
4216
|
+
}>;
|
|
4196
4217
|
'call:failed': Readonly<{
|
|
4197
4218
|
ref: ConversationRef<'direct'>;
|
|
4198
4219
|
callId: string;
|
|
@@ -4814,7 +4835,7 @@ interface ImProductClient {
|
|
|
4814
4835
|
* 普通宿主只使用 `ImProductClient`;官方 Chat Kit 和受控诊断从 internal 子入口取得 `ImAdvancedClient`。
|
|
4815
4836
|
*/
|
|
4816
4837
|
interface ImClient extends Omit<ImProductClient, 'capabilities' | 'channels' | 'contacts' | 'conversations' | 'groups'> {
|
|
4817
|
-
/** internal/testing
|
|
4838
|
+
/** internal/testing 与高级宿主使用的单聊音视频信令;稳定 default 产品门面不暴露此能力。 */
|
|
4818
4839
|
readonly calls: ImDirectCallsApi;
|
|
4819
4840
|
/**
|
|
4820
4841
|
* 打开一个拥有独立连续窗口与生命周期的 direct、GROUP 或 CHANNEL 会话句柄。
|
package/dist/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-IDECJJXC.js';export{
|
|
1
|
+
import'./chunk-IDECJJXC.js';export{j as IM_CHAT_FONT_SCALES,e as IM_DIAGNOSTIC_CATEGORIES,h as IM_EMOJI_CATALOG,c as ImPinnedMessageOperationError,d as createFaceToFaceGroupQrPayload,k as createImClient,f as createImConsoleDiagnosticSink,n as createImDiagnosticMemoryBuffer,g as createSdkDiagnosticWriter,a as migrateImCachePrefix,i as resolveImEmojiToken}from'./chunk-ZJBW4MOG.js';export{Ra as createVoicePlayer,Sa as createVoiceRecordingSession,Pa as detectVoiceCapabilities,Qa as voiceErrorCodeOf}from'./chunk-FO2MMPPT.js';export{Z as EDIT_WINDOW_MS,ba as canTransmit,$ as canTransmitByType,aa as canTransmitContent,n as classifyStickerImageType,R as createImTextSearchMatcher,P as extractSearchText,Q as getImTextSearchInitial,_ as requiresForwardTypeConfirmation,fa as resolveChannelAccess,T as resolveTextSegments,la as sortSessions,ma as sumSessionsUnread}from'./chunk-VSMNRAAM.js';import'./chunk-WOT6VMZA.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "k2-im",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"types": "./dist/sdk.d.ts",
|
|
18
18
|
"import": "./dist/sdk.js"
|
|
19
19
|
},
|
|
20
|
+
"./browser": {
|
|
21
|
+
"types": "./dist/browser.d.ts",
|
|
22
|
+
"import": "./dist/browser.js"
|
|
23
|
+
},
|
|
20
24
|
"./i18n": {
|
|
21
25
|
"types": "./dist/i18n.d.ts",
|
|
22
26
|
"import": "./dist/i18n.js"
|