k2-im 0.1.7 → 0.1.8

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/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-VP466VS6.js';import'./chunk-MHIB4PGT.js';import'./chunk-WOT6VMZA.js';
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-TQF5HUEX.js';import'./chunk-BO5YFCS4.js';import'./chunk-WOT6VMZA.js';
package/dist/index.d.ts CHANGED
@@ -2152,6 +2152,69 @@ type ImEvent = {
2152
2152
  callId: string;
2153
2153
  peerId: string;
2154
2154
  reason: ImDirectCallFailReason;
2155
+ }
2156
+ /** 群会议来电;`expired` 为 true 时已过 30s,不得振铃。 */
2157
+ | {
2158
+ type: 'group-call:incoming';
2159
+ conversation: ConversationRef<'group'>;
2160
+ callId: string;
2161
+ groupId: string;
2162
+ inviterId: string;
2163
+ inviteIds: readonly string[];
2164
+ createdAt: number;
2165
+ expired: boolean;
2166
+ }
2167
+ /** 有人响应群会议邀请。 */
2168
+ | {
2169
+ type: 'group-call:answered';
2170
+ conversation: ConversationRef<'group'>;
2171
+ callId: string;
2172
+ groupId: string;
2173
+ userId: string;
2174
+ agreed: boolean;
2175
+ }
2176
+ /** 有人加入群会议;会中再邀时 `isInvite` 为 true。 */
2177
+ | {
2178
+ type: 'group-call:joined';
2179
+ conversation: ConversationRef<'group'>;
2180
+ callId: string;
2181
+ groupId: string;
2182
+ userId: string;
2183
+ inviteIds: readonly string[];
2184
+ isInvite: boolean;
2185
+ }
2186
+ /** 有人退出群会议,会议本身可能仍在进行。 */
2187
+ | {
2188
+ type: 'group-call:left';
2189
+ conversation: ConversationRef<'group'>;
2190
+ callId: string;
2191
+ groupId: string;
2192
+ userId: string;
2193
+ }
2194
+ /** 整场群会议结束。 */
2195
+ | {
2196
+ type: 'group-call:finished';
2197
+ conversation: ConversationRef<'group'>;
2198
+ callId: string;
2199
+ groupId: string;
2200
+ userId: string;
2201
+ }
2202
+ /** 被邀人忙线。 */
2203
+ | {
2204
+ type: 'group-call:busy';
2205
+ conversation: ConversationRef<'group'>;
2206
+ callId: string;
2207
+ groupId: string;
2208
+ userId: string;
2209
+ hintUserId: string;
2210
+ }
2211
+ /** 主叫 createRoom ACK 失败。 */
2212
+ | {
2213
+ type: 'group-call:failed';
2214
+ conversation: ConversationRef<'group'>;
2215
+ callId: string;
2216
+ groupId: string;
2217
+ reason: 'ack-error';
2155
2218
  } | {
2156
2219
  type: 'notification';
2157
2220
  cmdId: number;
@@ -2280,7 +2343,7 @@ type ImDiagnosticLevel = 'error' | 'warn' | 'info' | 'debug' | 'trace';
2280
2343
  /** 诊断产生层;同一 operation 可跨层复用 traceId/operationId。 */
2281
2344
  type ImDiagnosticLayer = 'sdk' | 'core' | 'chat-kit' | 'pinia' | 'worker';
2282
2345
  /** 稳定诊断分类。分类用于构造 payload 前过滤,不能作为业务状态分支。 */
2283
- type ImDiagnosticCategory = 'session' | 'connection' | 'protocol' | 'sync' | 'conversation' | 'history' | 'message' | 'outbox' | 'draft' | 'search' | 'media' | 'profile' | 'storage' | 'crypto';
2346
+ type ImDiagnosticCategory = 'session' | 'connection' | 'protocol' | 'sync' | 'conversation' | 'history' | 'message' | 'outbox' | 'draft' | 'search' | 'media' | 'profile' | 'storage' | 'crypto' | 'call';
2284
2347
  /** 经过安全过滤的错误快照;不会保留原始 cause 引用。 */
2285
2348
  interface ImDiagnosticError {
2286
2349
  name?: string;
@@ -2363,6 +2426,19 @@ declare function sumSessionsUnread(sessions: readonly ImSession[], options?: {
2363
2426
  includeMuted?: boolean;
2364
2427
  }): number;
2365
2428
 
2429
+ type ImGroupCallMemberStatus = 'ringing' | 'in-call';
2430
+ interface ImGroupCallMember {
2431
+ readonly userId: string;
2432
+ readonly status: ImGroupCallMemberStatus;
2433
+ }
2434
+ interface ImGroupCallMeetingSnapshot {
2435
+ readonly groupId: string;
2436
+ readonly callId: string;
2437
+ readonly inviterId: string;
2438
+ readonly members: readonly ImGroupCallMember[];
2439
+ readonly createdAt: number;
2440
+ }
2441
+
2366
2442
  /**
2367
2443
  * 根据 CHANNEL 角色、生命周期和禁言事实计算稳定访问能力。
2368
2444
  *
@@ -5536,6 +5612,55 @@ interface ImProductEventMap {
5536
5612
  peerId: string;
5537
5613
  reason: 'peer-offline' | 'ack-error';
5538
5614
  }>;
5615
+ 'group-call:incoming': Readonly<{
5616
+ ref: ConversationRef<'group'>;
5617
+ callId: string;
5618
+ groupId: string;
5619
+ inviterId: string;
5620
+ inviteIds: readonly string[];
5621
+ createdAt: number;
5622
+ expired: boolean;
5623
+ }>;
5624
+ 'group-call:answered': Readonly<{
5625
+ ref: ConversationRef<'group'>;
5626
+ callId: string;
5627
+ groupId: string;
5628
+ userId: string;
5629
+ agreed: boolean;
5630
+ }>;
5631
+ 'group-call:joined': Readonly<{
5632
+ ref: ConversationRef<'group'>;
5633
+ callId: string;
5634
+ groupId: string;
5635
+ userId: string;
5636
+ inviteIds: readonly string[];
5637
+ isInvite: boolean;
5638
+ }>;
5639
+ 'group-call:left': Readonly<{
5640
+ ref: ConversationRef<'group'>;
5641
+ callId: string;
5642
+ groupId: string;
5643
+ userId: string;
5644
+ }>;
5645
+ 'group-call:finished': Readonly<{
5646
+ ref: ConversationRef<'group'>;
5647
+ callId: string;
5648
+ groupId: string;
5649
+ userId: string;
5650
+ }>;
5651
+ 'group-call:busy': Readonly<{
5652
+ ref: ConversationRef<'group'>;
5653
+ callId: string;
5654
+ groupId: string;
5655
+ userId: string;
5656
+ hintUserId: string;
5657
+ }>;
5658
+ 'group-call:failed': Readonly<{
5659
+ ref: ConversationRef<'group'>;
5660
+ callId: string;
5661
+ groupId: string;
5662
+ reason: 'ack-error';
5663
+ }>;
5539
5664
  }
5540
5665
  /** 从产品事件表推导的全量可判别联合。 */
5541
5666
  type ImProductEvent = {
@@ -5557,6 +5682,50 @@ interface ImEventsApi {
5557
5682
  on: <TType extends keyof ImProductEventMap>(type: TType, listener: (payload: ImProductEventMap[TType]) => void) => () => void;
5558
5683
  }
5559
5684
 
5685
+ interface ImGroupCallCreateInput {
5686
+ groupId: string;
5687
+ callId: string;
5688
+ inviteIds: readonly string[];
5689
+ }
5690
+ interface ImGroupCallJoinInput {
5691
+ groupId: string;
5692
+ callId: string;
5693
+ inviteIds: readonly string[];
5694
+ isInvite: boolean;
5695
+ }
5696
+ interface ImGroupCallTargetInput {
5697
+ groupId: string;
5698
+ callId: string;
5699
+ }
5700
+ interface ImGroupCallAnswerInput extends ImGroupCallTargetInput {
5701
+ agreed: boolean;
5702
+ }
5703
+ interface ImGroupCallStatusInput extends ImGroupCallTargetInput {
5704
+ isMute: boolean;
5705
+ status: boolean;
5706
+ }
5707
+ interface ImGroupCallBusyInput extends ImGroupCallTargetInput {
5708
+ hintUserId: string;
5709
+ }
5710
+ interface ImGroupCallsApi {
5711
+ /** 发起群会议 (0x4101) */
5712
+ createRoom: (input: ImGroupCallCreateInput) => void;
5713
+ /** 加入群会议 (0x4109) */
5714
+ joinRoom: (input: ImGroupCallJoinInput) => void;
5715
+ /** 响应群会议邀请 (0x4105) */
5716
+ answer: (input: ImGroupCallAnswerInput) => void;
5717
+ /** 退出群会议 (0x410d) */
5718
+ hangup: (input: ImGroupCallTargetInput) => void;
5719
+ /** 结束整场群会议 (0x4111) */
5720
+ finish: (input: ImGroupCallTargetInput) => void;
5721
+ /** 修改状态 (0x4115) */
5722
+ setStatus: (input: ImGroupCallStatusInput) => void;
5723
+ /** 忙线 (0x411d) */
5724
+ busy: (input: ImGroupCallBusyInput) => void;
5725
+ /** 当前群的进行中会议;没有则 null。 */
5726
+ inspectMeeting: (groupId: string) => ImGroupCallMeetingSnapshot | null;
5727
+ }
5728
+
5560
5729
  /**
5561
5730
  * 当前 prefix/account 本地数据的分类查询和明确清理动作。
5562
5731
  * API 区分可重建缓存与整账号 purge,严格按 namespace factory 定位;不存在无边界 `clearAll`。
@@ -6223,6 +6392,8 @@ interface ImProductClient {
6223
6392
  interface ImClient extends Omit<ImProductClient, 'capabilities' | 'channels' | 'contacts' | 'conversations' | 'groups'> {
6224
6393
  /** internal/testing 与高级宿主使用的单聊音视频信令;稳定 default 产品门面不暴露此能力。 */
6225
6394
  readonly calls: ImDirectCallsApi;
6395
+ /** internal/testing 群通话门面。 */
6396
+ readonly groupCalls: ImGroupCallsApi;
6226
6397
  /**
6227
6398
  * 打开一个拥有独立连续窗口与生命周期的 direct、GROUP 或 CHANNEL 会话句柄。
6228
6399
  *
@@ -8608,4 +8779,4 @@ declare function resampleWaveform(data: readonly number[], targetCount: number):
8608
8779
  declare function placeholderWaveform(seed: string, count: number): number[];
8609
8780
 
8610
8781
  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, IM_CHAT_FONT_SCALES, IM_DIAGNOSTIC_CATEGORIES, IM_EMOJI_CATALOG, ImPinnedMessageOperationError, MAX_BATCH_FILES, MAX_RECENT_EMOJI_COUNT, SPIKE_STEP, UNICODE_EMOJI_CATALOG, blockReasonForChannelSession, blockReasonForChannelState, blockReasonForGroupState, blockReasonForSession, calculateMediaBox, canEditMessage, canPinChannelMessage, canPinGroupMessage, canPinMessage, canPromoteMediaPresentationSource, canRecallMessage, canTransmit, canTransmitByType, canTransmitContent, cancelMediaUpload, captureRuntimeClientOperation, captureRuntimeOperation, classifyStickerImageType, createChatRuntime, createDelayedLoadingIndicator, createEmojiMatcher, createFaceToFaceGroupQrPayload, createImClient, createImConsoleDiagnosticSink, createImDiagnosticMemoryBuffer, createImI18n, createImTextSearchMatcher, createLinkMatcher, createNewMessageBadgeController, createSdkDiagnosticWriter, createThreadItems, createVoicePlayer, createVoiceRecordingSession, decideConversationAction, decideMemberTargetAction, decideMessageAction, detectVoiceCapabilities, emojiAssetUrl, emojiUrlByCode, extractSearchText, fetchConversationFileBatch, fetchConversationImageBatch, fetchConversationMessageBatch, fetchConversationVideoBatch, fetchConversationVoiceBatch, fetchNextConversationSearchBatch, formatChatDateSeparator, formatConversationDisplayTime, formatFailure, formatFileSize, formatLastMessageSummary, formatMediaDuration, formatMediaPlaceholder, formatMentionAll, formatServiceText, formatSystemMessage, forward_service as forwardService, getFileExtension, getImTextSearchInitial, getImTimeCatalog, getLocalDayKey, hasEmojiCandidate, hasLinkCandidate, highlightSegments, isGifFile, isMessageLocateScrollProtected, isMessageTailChangeFromOlderWindowTrim, isMessageViewportMeasurable, isMessageVisibleForNewMessageBadge, isPinnedMessageProtected, isVoiceStorageConfigured, loadOlderUntilBoundary, mediaBatchBudgetBytes, media_service as mediaService, message_service as messageService, migrateImCachePrefix, normalizeImLocale, normalizeLinkHref, 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, resolveConversationListPresentation, resolveDisplayTimestamp, resolveEmojiToken, resolveFriendDisplayName, resolveImEmojiToken, resolveImProfileAccessDestination, resolveImThreadActiveDate, resolveMediaPresentation, resolveMemberDisplayName, resolveMessageBodyKind, resolveMessageTimelineTimestamp, resolvePrependMessageAnchor, resolvePrependMessageAnchorAdjustment, resolvePrependMessageAnchorPosition, resolvePublicNickname, resolveSenderAvatarUrl, resolveStandaloneEmojiMessage, resolveSurvivingMessageAnchorAdjustment, resolveTextSegments, resolveUnicodeEmoji, resolveVisibleMessageAnchorPositions, retryMessage, runMediaSendBatch, sendAsFilesBatch, sendBlockReasonForDecision, sendMediaFile, sendMediaFilesBatch, sendText, sendVoice, shouldCompleteInitialViewport, shouldFillInitialHistoryViewport, shouldFollowIncomingMessage, shouldLoadNewerHistoryPage, shouldPrefetchOlderHistory, shouldRestoreMessageViewportFocus, shouldShowChatDateSeparator, shouldTrackRemoteMessageForBadge, sortSessions, spikeCountForDuration, sumSessionsUnread, supportsConversationMention, unicodeEmojiTextFromCode, voiceErrorCodeOf };
8611
- export type { ApplySessionResult, BrowseMessagesInput, CanPinMessageInput, CapabilityAvailability, CapabilityDecision, CapabilityReason, CenteredMessageScrollInput, ChannelAccessSnapshot, ChannelBaseSessionState, ChannelConversationCapabilities, ChannelConversationMessageApi, ChannelJoinApplication, ChannelJoinApplicationNotification, ChannelJoinApplicationPage, ChannelMember, ChannelMemberPage, ChannelMentionMember, ChannelMentionMemberPage, ChannelMiniProgramRel, ChannelMiniProgramRelConfigType, 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, ConversationListPreviewSegment, ConversationMessageApi, ConversationOpenOptions, 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, GifMessageOptions, 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, ImGiphyAsset, ImGiphyPage, ImGiphyPageOptions, ImGroupConversationState, ImGroupMemberPresentation, ImGroupMentionApi, ImGroupPinnedMessage, ImGroupProfile, ImGroupsApi, ImI18n, ImImageBody, ImLastMessageCatalog, ImLifecycleSnapshot, ImLocalDataApi, ImLocalDataInfo, ImLocale, ImLogoutOptions, ImMediaBatchSendResult, ImMediaCatalog, ImMediaConfig, ImMediaTask, ImMediaTasksApi, ImMembershipJoinResult, ImMentionCatalog, ImMessageActionResult, ImMessageBodyKind, ImMessageMention, ImMessageReactionAggregate, ImMessageReactions, ImMessageRef, ImMessageSearchApi, ImMessageView, ImMessageViewBody, ImMiniProgramBody, ImMiniProgramShowType, ImOutboxApi, ImOutboxItem, ImPageToken, ImPartialCatalog, ImPinnedMessageActionResult, ImPinnedMessageErrorKind, ImPinnedMessageOperation, ImPinnedMessageSnapshot, ImProductApplicationUpdate, ImProductAuthInvalidReason, ImProductClient, ImProductEvent, ImProductEventError, ImProductEventMap, ImProductMessage, ImProfileAccessDestination, ImReactionChangeAction, ImReactionChangeResult, ImReadReceiptSettingsApi, ImRedPacketBody, ImRedPacketType, ImSdkErrorCategory, ImSdkErrorShape, ImSearchApi, ImServiceCatalog, ImServiceTextKey, ImSessionApi, 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, ImWeekdayKey, ImageMessageOptions, ImagePreviewMetadata, IncomingMessageFollowInput, InitialHistoryViewportFillInput, InitialViewportCompletionInput, LinkSegment, LocalConversationHistoryClearResult, LocalMessageDeletionResult, MediaBatchBudgetOptions, MediaBatchLimitInfo, MediaLimitItem, MediaObjectUrlLease, MediaPresentationFit, MediaPresentationPolicy, MediaPresentationRule, MediaPresentationSourceCandidate, MediaPresentationSourceQuality, MediaSendBatchResult, MemberTargetCapabilityAction, MemberTargetCapabilityInput, MentionCandidate, MentionCandidatePage, MentionInput, MessageCapabilityAction, MessageCapabilityInput, MessageContentType, MessageLocateScrollProtectionInput, MessageWindowInfo, MessageWindowPage, MigrateImCachePrefixInput, MiniProgramMessageOptions, NewMessageBadgeController, NewMessageBadgeCountListener, NewMessageBadgeVisibilityInput, NewerHistoryPageTriggerInput, OlderHistoryPrefetchInput, PrependAnchorCandidate, PrependAnchorViewport, PrependMessageAnchorPosition, ProductConversationListType, ProductHandleConversationType, ProductMessageSearchPage, ProductMessageSearchResult, RemoteMessageBadgeTrackingInput, ResolveMediaPresentationInput, ResolveTextOptions, ResolvedConversationBackground, ResolvedMediaPresentation, RichExtraSegment, RuntimeClientOperation, RuntimeOperation, SearchBatchResult, SearchFilesInput, SearchMessagesInput, SearchTextMessagesInput, SegmentMatch, SegmentMatcher, SendCapabilityMode, SendCommandHooks, SendMessageResult, SendVoicePayload, SenderProfileEntry, ServiceNoteHooks, StandaloneEmojiMessage, StickerAssetKind, TextMessageOptions, TextSegment, TransferMessageOptions, UnicodeEmojiEntry, UnknownMessageBody, UserProfile, VideoMessageOptions, VideoPreviewMetadata, VoiceCapabilities, VoiceErrorCode, VoiceMessageMetadata, VoicePlayer, VoicePlayerOptions, VoicePlayerState, VoiceRecordingResult, VoiceRecordingSession, VoiceRecordingSessionOptions, VoiceRecordingState, VoiceToggleOptions };
8782
+ export type { ApplySessionResult, BrowseMessagesInput, CanPinMessageInput, CapabilityAvailability, CapabilityDecision, CapabilityReason, CenteredMessageScrollInput, ChannelAccessSnapshot, ChannelBaseSessionState, ChannelConversationCapabilities, ChannelConversationMessageApi, ChannelJoinApplication, ChannelJoinApplicationNotification, ChannelJoinApplicationPage, ChannelMember, ChannelMemberPage, ChannelMentionMember, ChannelMentionMemberPage, ChannelMiniProgramRel, ChannelMiniProgramRelConfigType, 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, ConversationListPreviewSegment, ConversationMessageApi, ConversationOpenOptions, 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, GifMessageOptions, 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, 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, ImMediaBatchSendResult, ImMediaCatalog, ImMediaConfig, ImMediaTask, ImMediaTasksApi, ImMembershipJoinResult, ImMentionCatalog, ImMessageActionResult, ImMessageBodyKind, ImMessageMention, ImMessageReactionAggregate, ImMessageReactions, ImMessageRef, ImMessageSearchApi, ImMessageView, ImMessageViewBody, ImMiniProgramBody, ImMiniProgramShowType, ImOutboxApi, ImOutboxItem, ImPageToken, ImPartialCatalog, ImPinnedMessageActionResult, ImPinnedMessageErrorKind, ImPinnedMessageOperation, ImPinnedMessageSnapshot, ImProductApplicationUpdate, ImProductAuthInvalidReason, ImProductClient, ImProductEvent, ImProductEventError, ImProductEventMap, ImProductMessage, ImProfileAccessDestination, ImReactionChangeAction, ImReactionChangeResult, ImReadReceiptSettingsApi, ImRedPacketBody, ImRedPacketType, ImSdkErrorCategory, ImSdkErrorShape, ImSearchApi, ImServiceCatalog, ImServiceTextKey, ImSessionApi, 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, ImWeekdayKey, ImageMessageOptions, ImagePreviewMetadata, IncomingMessageFollowInput, InitialHistoryViewportFillInput, InitialViewportCompletionInput, LinkSegment, LocalConversationHistoryClearResult, LocalMessageDeletionResult, MediaBatchBudgetOptions, MediaBatchLimitInfo, MediaLimitItem, MediaObjectUrlLease, MediaPresentationFit, MediaPresentationPolicy, MediaPresentationRule, MediaPresentationSourceCandidate, MediaPresentationSourceQuality, MediaSendBatchResult, MemberTargetCapabilityAction, MemberTargetCapabilityInput, MentionCandidate, MentionCandidatePage, MentionInput, MessageCapabilityAction, MessageCapabilityInput, MessageContentType, MessageLocateScrollProtectionInput, MessageWindowInfo, MessageWindowPage, MigrateImCachePrefixInput, MiniProgramMessageOptions, NewMessageBadgeController, NewMessageBadgeCountListener, NewMessageBadgeVisibilityInput, NewerHistoryPageTriggerInput, OlderHistoryPrefetchInput, PrependAnchorCandidate, PrependAnchorViewport, PrependMessageAnchorPosition, ProductConversationListType, ProductHandleConversationType, ProductMessageSearchPage, ProductMessageSearchResult, RemoteMessageBadgeTrackingInput, ResolveMediaPresentationInput, ResolveTextOptions, ResolvedConversationBackground, ResolvedMediaPresentation, RichExtraSegment, RuntimeClientOperation, RuntimeOperation, SearchBatchResult, SearchFilesInput, SearchMessagesInput, SearchTextMessagesInput, SegmentMatch, SegmentMatcher, SendCapabilityMode, SendCommandHooks, SendMessageResult, SendVoicePayload, SenderProfileEntry, ServiceNoteHooks, StandaloneEmojiMessage, StickerAssetKind, TextMessageOptions, TextSegment, TransferMessageOptions, UnicodeEmojiEntry, UnknownMessageBody, UserProfile, VideoMessageOptions, VideoPreviewMetadata, 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{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-TRRJA4DI.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,xa as fetchConversationFileBatch,ya as fetchConversationImageBatch,va as fetchConversationMessageBatch,za as fetchConversationVideoBatch,Aa as fetchConversationVoiceBatch,Ba 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,ua as profileService,U as replaceInterruptedMediaFile,P as requiresConversationEncryption,y as resolveChannelMemberAvatarUrl,x as resolveChannelMemberDisplayName,k as resolveEmojiToken,B as resolveFriendDisplayName,la as resolveImProfileAccessDestination,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-RZBGTY6A.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-ATIQZ5XZ.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-VP466VS6.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-A4IDVF3H.js';export{Ra as createVoicePlayer,Sa as createVoiceRecordingSession,Pa as detectVoiceCapabilities,Qa as voiceErrorCodeOf}from'./chunk-GTRMHOHX.js';export{_ as EDIT_WINDOW_MS,ca as canTransmit,aa as canTransmitByType,ba as canTransmitContent,n as classifyStickerImageType,R as createImTextSearchMatcher,P as extractSearchText,Q as getImTextSearchInitial,$ as requiresForwardTypeConfirmation,ga as resolveChannelAccess,U as resolveTextSegments,ma as sortSessions,na as sumSessionsUnread}from'./chunk-MHIB4PGT.js';import'./chunk-WOT6VMZA.js';
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-54BDLB6M.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,xa as fetchConversationFileBatch,ya as fetchConversationImageBatch,va as fetchConversationMessageBatch,za as fetchConversationVideoBatch,Aa as fetchConversationVoiceBatch,Ba 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,ua as profileService,U as replaceInterruptedMediaFile,P as requiresConversationEncryption,y as resolveChannelMemberAvatarUrl,x as resolveChannelMemberDisplayName,k as resolveEmojiToken,B as resolveFriendDisplayName,la as resolveImProfileAccessDestination,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-TD3JY2WE.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-MKV7J6WB.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-TQF5HUEX.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-DFE2F575.js';export{Sa as createVoicePlayer,Ta as createVoiceRecordingSession,Qa as detectVoiceCapabilities,Ra as voiceErrorCodeOf}from'./chunk-6QR5GVQ3.js';export{ba as EDIT_WINDOW_MS,fa as canTransmit,da as canTransmitByType,ea as canTransmitContent,o as classifyStickerImageType,U as createImTextSearchMatcher,S as extractSearchText,T as getImTextSearchInitial,ca as requiresForwardTypeConfirmation,ja as resolveChannelAccess,X as resolveTextSegments,pa as sortSessions,qa as sumSessionsUnread}from'./chunk-BO5YFCS4.js';import'./chunk-WOT6VMZA.js';
package/dist/sdk.d.ts CHANGED
@@ -1473,6 +1473,69 @@ type ImEvent = {
1473
1473
  callId: string;
1474
1474
  peerId: string;
1475
1475
  reason: ImDirectCallFailReason;
1476
+ }
1477
+ /** 群会议来电;`expired` 为 true 时已过 30s,不得振铃。 */
1478
+ | {
1479
+ type: 'group-call:incoming';
1480
+ conversation: ConversationRef<'group'>;
1481
+ callId: string;
1482
+ groupId: string;
1483
+ inviterId: string;
1484
+ inviteIds: readonly string[];
1485
+ createdAt: number;
1486
+ expired: boolean;
1487
+ }
1488
+ /** 有人响应群会议邀请。 */
1489
+ | {
1490
+ type: 'group-call:answered';
1491
+ conversation: ConversationRef<'group'>;
1492
+ callId: string;
1493
+ groupId: string;
1494
+ userId: string;
1495
+ agreed: boolean;
1496
+ }
1497
+ /** 有人加入群会议;会中再邀时 `isInvite` 为 true。 */
1498
+ | {
1499
+ type: 'group-call:joined';
1500
+ conversation: ConversationRef<'group'>;
1501
+ callId: string;
1502
+ groupId: string;
1503
+ userId: string;
1504
+ inviteIds: readonly string[];
1505
+ isInvite: boolean;
1506
+ }
1507
+ /** 有人退出群会议,会议本身可能仍在进行。 */
1508
+ | {
1509
+ type: 'group-call:left';
1510
+ conversation: ConversationRef<'group'>;
1511
+ callId: string;
1512
+ groupId: string;
1513
+ userId: string;
1514
+ }
1515
+ /** 整场群会议结束。 */
1516
+ | {
1517
+ type: 'group-call:finished';
1518
+ conversation: ConversationRef<'group'>;
1519
+ callId: string;
1520
+ groupId: string;
1521
+ userId: string;
1522
+ }
1523
+ /** 被邀人忙线。 */
1524
+ | {
1525
+ type: 'group-call:busy';
1526
+ conversation: ConversationRef<'group'>;
1527
+ callId: string;
1528
+ groupId: string;
1529
+ userId: string;
1530
+ hintUserId: string;
1531
+ }
1532
+ /** 主叫 createRoom ACK 失败。 */
1533
+ | {
1534
+ type: 'group-call:failed';
1535
+ conversation: ConversationRef<'group'>;
1536
+ callId: string;
1537
+ groupId: string;
1538
+ reason: 'ack-error';
1476
1539
  } | {
1477
1540
  type: 'notification';
1478
1541
  cmdId: number;
@@ -1601,7 +1664,7 @@ type ImDiagnosticLevel = 'error' | 'warn' | 'info' | 'debug' | 'trace';
1601
1664
  /** 诊断产生层;同一 operation 可跨层复用 traceId/operationId。 */
1602
1665
  type ImDiagnosticLayer = 'sdk' | 'core' | 'chat-kit' | 'pinia' | 'worker';
1603
1666
  /** 稳定诊断分类。分类用于构造 payload 前过滤,不能作为业务状态分支。 */
1604
- type ImDiagnosticCategory = 'session' | 'connection' | 'protocol' | 'sync' | 'conversation' | 'history' | 'message' | 'outbox' | 'draft' | 'search' | 'media' | 'profile' | 'storage' | 'crypto';
1667
+ type ImDiagnosticCategory = 'session' | 'connection' | 'protocol' | 'sync' | 'conversation' | 'history' | 'message' | 'outbox' | 'draft' | 'search' | 'media' | 'profile' | 'storage' | 'crypto' | 'call';
1605
1668
  /** 经过安全过滤的错误快照;不会保留原始 cause 引用。 */
1606
1669
  interface ImDiagnosticError {
1607
1670
  name?: string;
@@ -1684,6 +1747,19 @@ declare function sumSessionsUnread(sessions: readonly ImSession[], options?: {
1684
1747
  includeMuted?: boolean;
1685
1748
  }): number;
1686
1749
 
1750
+ type ImGroupCallMemberStatus = 'ringing' | 'in-call';
1751
+ interface ImGroupCallMember {
1752
+ readonly userId: string;
1753
+ readonly status: ImGroupCallMemberStatus;
1754
+ }
1755
+ interface ImGroupCallMeetingSnapshot {
1756
+ readonly groupId: string;
1757
+ readonly callId: string;
1758
+ readonly inviterId: string;
1759
+ readonly members: readonly ImGroupCallMember[];
1760
+ readonly createdAt: number;
1761
+ }
1762
+
1687
1763
  /**
1688
1764
  * 根据 CHANNEL 角色、生命周期和禁言事实计算稳定访问能力。
1689
1765
  *
@@ -4220,6 +4296,55 @@ interface ImProductEventMap {
4220
4296
  peerId: string;
4221
4297
  reason: 'peer-offline' | 'ack-error';
4222
4298
  }>;
4299
+ 'group-call:incoming': Readonly<{
4300
+ ref: ConversationRef<'group'>;
4301
+ callId: string;
4302
+ groupId: string;
4303
+ inviterId: string;
4304
+ inviteIds: readonly string[];
4305
+ createdAt: number;
4306
+ expired: boolean;
4307
+ }>;
4308
+ 'group-call:answered': Readonly<{
4309
+ ref: ConversationRef<'group'>;
4310
+ callId: string;
4311
+ groupId: string;
4312
+ userId: string;
4313
+ agreed: boolean;
4314
+ }>;
4315
+ 'group-call:joined': Readonly<{
4316
+ ref: ConversationRef<'group'>;
4317
+ callId: string;
4318
+ groupId: string;
4319
+ userId: string;
4320
+ inviteIds: readonly string[];
4321
+ isInvite: boolean;
4322
+ }>;
4323
+ 'group-call:left': Readonly<{
4324
+ ref: ConversationRef<'group'>;
4325
+ callId: string;
4326
+ groupId: string;
4327
+ userId: string;
4328
+ }>;
4329
+ 'group-call:finished': Readonly<{
4330
+ ref: ConversationRef<'group'>;
4331
+ callId: string;
4332
+ groupId: string;
4333
+ userId: string;
4334
+ }>;
4335
+ 'group-call:busy': Readonly<{
4336
+ ref: ConversationRef<'group'>;
4337
+ callId: string;
4338
+ groupId: string;
4339
+ userId: string;
4340
+ hintUserId: string;
4341
+ }>;
4342
+ 'group-call:failed': Readonly<{
4343
+ ref: ConversationRef<'group'>;
4344
+ callId: string;
4345
+ groupId: string;
4346
+ reason: 'ack-error';
4347
+ }>;
4223
4348
  }
4224
4349
  /** 从产品事件表推导的全量可判别联合。 */
4225
4350
  type ImProductEvent = {
@@ -4241,6 +4366,50 @@ interface ImEventsApi {
4241
4366
  on: <TType extends keyof ImProductEventMap>(type: TType, listener: (payload: ImProductEventMap[TType]) => void) => () => void;
4242
4367
  }
4243
4368
 
4369
+ interface ImGroupCallCreateInput {
4370
+ groupId: string;
4371
+ callId: string;
4372
+ inviteIds: readonly string[];
4373
+ }
4374
+ interface ImGroupCallJoinInput {
4375
+ groupId: string;
4376
+ callId: string;
4377
+ inviteIds: readonly string[];
4378
+ isInvite: boolean;
4379
+ }
4380
+ interface ImGroupCallTargetInput {
4381
+ groupId: string;
4382
+ callId: string;
4383
+ }
4384
+ interface ImGroupCallAnswerInput extends ImGroupCallTargetInput {
4385
+ agreed: boolean;
4386
+ }
4387
+ interface ImGroupCallStatusInput extends ImGroupCallTargetInput {
4388
+ isMute: boolean;
4389
+ status: boolean;
4390
+ }
4391
+ interface ImGroupCallBusyInput extends ImGroupCallTargetInput {
4392
+ hintUserId: string;
4393
+ }
4394
+ interface ImGroupCallsApi {
4395
+ /** 发起群会议 (0x4101) */
4396
+ createRoom: (input: ImGroupCallCreateInput) => void;
4397
+ /** 加入群会议 (0x4109) */
4398
+ joinRoom: (input: ImGroupCallJoinInput) => void;
4399
+ /** 响应群会议邀请 (0x4105) */
4400
+ answer: (input: ImGroupCallAnswerInput) => void;
4401
+ /** 退出群会议 (0x410d) */
4402
+ hangup: (input: ImGroupCallTargetInput) => void;
4403
+ /** 结束整场群会议 (0x4111) */
4404
+ finish: (input: ImGroupCallTargetInput) => void;
4405
+ /** 修改状态 (0x4115) */
4406
+ setStatus: (input: ImGroupCallStatusInput) => void;
4407
+ /** 忙线 (0x411d) */
4408
+ busy: (input: ImGroupCallBusyInput) => void;
4409
+ /** 当前群的进行中会议;没有则 null。 */
4410
+ inspectMeeting: (groupId: string) => ImGroupCallMeetingSnapshot | null;
4411
+ }
4412
+
4244
4413
  /**
4245
4414
  * 当前 prefix/account 本地数据的分类查询和明确清理动作。
4246
4415
  * API 区分可重建缓存与整账号 purge,严格按 namespace factory 定位;不存在无边界 `clearAll`。
@@ -4837,6 +5006,8 @@ interface ImProductClient {
4837
5006
  interface ImClient extends Omit<ImProductClient, 'capabilities' | 'channels' | 'contacts' | 'conversations' | 'groups'> {
4838
5007
  /** internal/testing 与高级宿主使用的单聊音视频信令;稳定 default 产品门面不暴露此能力。 */
4839
5008
  readonly calls: ImDirectCallsApi;
5009
+ /** internal/testing 群通话门面。 */
5010
+ readonly groupCalls: ImGroupCallsApi;
4840
5011
  /**
4841
5012
  * 打开一个拥有独立连续窗口与生命周期的 direct、GROUP 或 CHANNEL 会话句柄。
4842
5013
  *
@@ -4961,4 +5132,4 @@ interface ImDiagnosticMemoryBuffer extends ImDiagnosticSink {
4961
5132
  declare function createImDiagnosticMemoryBuffer(options?: ImDiagnosticMemoryBufferOptions): ImDiagnosticMemoryBuffer;
4962
5133
 
4963
5134
  export { EDIT_WINDOW_MS, IM_CHAT_FONT_SCALES, IM_DIAGNOSTIC_CATEGORIES, IM_EMOJI_CATALOG, ImPinnedMessageOperationError, canTransmit, canTransmitByType, canTransmitContent, classifyStickerImageType, createFaceToFaceGroupQrPayload, createImClient, createImConsoleDiagnosticSink, createImDiagnosticMemoryBuffer, createImTextSearchMatcher, createSdkDiagnosticWriter, createVoicePlayer, createVoiceRecordingSession, detectVoiceCapabilities, extractSearchText, getImTextSearchInitial, migrateImCachePrefix, requiresForwardTypeConfirmation, resolveChannelAccess, resolveImEmojiToken, resolveTextSegments, sortSessions, sumSessionsUnread, voiceErrorCodeOf };
4964
- export type { CapabilityAvailability, CapabilityDecision, CapabilityReason, ChannelAccessSnapshot, ChannelBaseSessionState, ChannelConversationCapabilities, ChannelConversationMessageApi, ChannelJoinApplication, ChannelJoinApplicationNotification, ChannelJoinApplicationPage, ChannelMember, ChannelMemberPage, ChannelMentionMember, ChannelMentionMemberPage, ChannelMiniProgramRel, ChannelMiniProgramRelConfigType, ChannelMuteReason, ChannelPermissionSet, ChannelProfile, ChannelRole, ChannelSessionState, ContactCardInput, ContactMessageOptions, ConversationBackgroundPreset, ConversationBackgroundSelection, ConversationCapabilitySnapshot, ConversationDraft, ConversationDraftApi, ConversationEntryUnreadSnapshot, ConversationHandle, ConversationHandleSnapshot, ConversationInitialPosition, ConversationLastMessageSummary, ConversationListItem, ConversationListMention, ConversationMessageApi, ConversationOpenOptions, ConversationRef, ConversationSearchPage, ConversationSearchResult, ConversationSystemSummary, ConversationType, DirectConversationCapabilities, DirectConversationMessageApi, DraftInput, EditTextOptions, ExpressionMessageOptions, FileMessageOptions, ForwardFailReason, ForwardItemStatus, ForwardMessageFailure, ForwardMessagesInput, ForwardMessagesResult, ForwardTarget, ForwardedMessageRef, GameMessageOptions, GifMessageOptions, GroupConversationCapabilities, GroupConversationMessageApi, GroupMemberItem, GroupProfile, ImAppearanceSettingsApi, ImApplicationItem, ImApplicationRef, ImApplicationsApi, ImAuthIssue, ImAuthProvider, ImCacheOptions, ImCachePrefixMigrationContext, ImCachePrefixMigrator, ImCallKind, ImCallOutcome, ImCallRecordBody, ImChannelConversationAccessSnapshot, ImChannelMentionApi, ImChannelMiniProgramRel, ImChannelPermissions, ImChannelPinnedMessage, ImChannelProfile, 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, ImFileBody, ImFriendshipRequestResult, ImGameBody, ImGameType, ImGifAssetInput, ImGiphyAsset, ImGiphyPage, ImGiphyPageOptions, ImGroupConversationState, ImGroupMentionApi, ImGroupPinnedMessage, ImGroupProfile, ImGroupsApi, ImImageBody, ImLifecycleSnapshot, ImLocalDataApi, ImLocalDataInfo, ImLogoutOptions, ImMediaConfig, ImMediaTask, ImMediaTasksApi, ImMembershipJoinResult, ImMessageMention, ImMessageReactionAggregate, ImMessageReactions, ImMessageRef, ImMessageSearchApi, ImMessageView, ImMessageViewBody, ImMiniProgramBody, ImMiniProgramShowType, ImOutboxApi, ImOutboxItem, ImPageToken, ImPinnedMessageErrorKind, ImPinnedMessageOperation, ImProductApplicationUpdate, ImProductAuthInvalidReason, ImProductClient, ImProductEvent, ImProductEventError, ImProductEventMap, ImProductMessage, ImReactionChangeAction, ImReactionChangeResult, ImReadReceiptSettingsApi, ImRedPacketBody, ImRedPacketType, ImSdkErrorCategory, ImSdkErrorShape, ImSearchApi, ImSessionApi, ImSessionLifecycleState, ImSettingsApi, ImStickerAssetInput, ImStickerBody, ImStickerPack, ImSupportedConversationRef, ImTextSearchMatch, ImTextSearchMatchOptions, ImTextSearchMatcher, ImTextSearchRange, ImTransferBody, ImTransferSessionType, ImTransferStatus, ImVideoBody, ImVoiceBody, ImageMessageOptions, ImagePreviewMetadata, LocalConversationHistoryClearResult, LocalMessageDeletionResult, MentionCandidate, MentionCandidatePage, MentionInput, MessageContentType, MessageWindowInfo, MessageWindowPage, MigrateImCachePrefixInput, MiniProgramMessageOptions, ProductConversationListType, ProductHandleConversationType, ProductMessageSearchPage, ProductMessageSearchResult, ResolveTextOptions, ResolvedConversationBackground, SegmentMatch, SegmentMatcher, SendMessageResult, StickerAssetKind, TextMessageOptions, TextSegment, TransferMessageOptions, UnknownMessageBody, UserProfile, VideoMessageOptions, VideoPreviewMetadata, VoiceCapabilities, VoiceErrorCode, VoiceMessageMetadata, VoicePlayer, VoicePlayerOptions, VoicePlayerState, VoiceRecordingResult, VoiceRecordingSession, VoiceRecordingSessionOptions, VoiceRecordingState, VoiceToggleOptions };
5135
+ export type { CapabilityAvailability, CapabilityDecision, CapabilityReason, ChannelAccessSnapshot, ChannelBaseSessionState, ChannelConversationCapabilities, ChannelConversationMessageApi, ChannelJoinApplication, ChannelJoinApplicationNotification, ChannelJoinApplicationPage, ChannelMember, ChannelMemberPage, ChannelMentionMember, ChannelMentionMemberPage, ChannelMiniProgramRel, ChannelMiniProgramRelConfigType, ChannelMuteReason, ChannelPermissionSet, ChannelProfile, ChannelRole, ChannelSessionState, ContactCardInput, ContactMessageOptions, ConversationBackgroundPreset, ConversationBackgroundSelection, ConversationCapabilitySnapshot, ConversationDraft, ConversationDraftApi, ConversationEntryUnreadSnapshot, ConversationHandle, ConversationHandleSnapshot, ConversationInitialPosition, ConversationLastMessageSummary, ConversationListItem, ConversationListMention, ConversationMessageApi, ConversationOpenOptions, ConversationRef, ConversationSearchPage, ConversationSearchResult, ConversationSystemSummary, ConversationType, DirectConversationCapabilities, DirectConversationMessageApi, DraftInput, EditTextOptions, ExpressionMessageOptions, FileMessageOptions, ForwardFailReason, ForwardItemStatus, ForwardMessageFailure, ForwardMessagesInput, ForwardMessagesResult, ForwardTarget, ForwardedMessageRef, GameMessageOptions, GifMessageOptions, GroupConversationCapabilities, GroupConversationMessageApi, GroupMemberItem, GroupProfile, ImAppearanceSettingsApi, ImApplicationItem, ImApplicationRef, ImApplicationsApi, ImAuthIssue, ImAuthProvider, ImCacheOptions, ImCachePrefixMigrationContext, ImCachePrefixMigrator, ImCallKind, ImCallOutcome, ImCallRecordBody, ImChannelConversationAccessSnapshot, ImChannelMentionApi, ImChannelMiniProgramRel, ImChannelPermissions, ImChannelPinnedMessage, ImChannelProfile, 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, ImFileBody, ImFriendshipRequestResult, ImGameBody, ImGameType, ImGifAssetInput, ImGiphyAsset, ImGiphyPage, ImGiphyPageOptions, ImGroupCallAnswerInput, ImGroupCallBusyInput, ImGroupCallCreateInput, ImGroupCallJoinInput, ImGroupCallMeetingSnapshot, ImGroupCallMember, ImGroupCallMemberStatus, ImGroupCallStatusInput, ImGroupCallTargetInput, ImGroupCallsApi, ImGroupConversationState, ImGroupMentionApi, ImGroupPinnedMessage, ImGroupProfile, ImGroupsApi, ImImageBody, ImLifecycleSnapshot, ImLocalDataApi, ImLocalDataInfo, ImLogoutOptions, ImMediaConfig, ImMediaTask, ImMediaTasksApi, ImMembershipJoinResult, ImMessageMention, ImMessageReactionAggregate, ImMessageReactions, ImMessageRef, ImMessageSearchApi, ImMessageView, ImMessageViewBody, ImMiniProgramBody, ImMiniProgramShowType, ImOutboxApi, ImOutboxItem, ImPageToken, ImPinnedMessageErrorKind, ImPinnedMessageOperation, ImProductApplicationUpdate, ImProductAuthInvalidReason, ImProductClient, ImProductEvent, ImProductEventError, ImProductEventMap, ImProductMessage, ImReactionChangeAction, ImReactionChangeResult, ImReadReceiptSettingsApi, ImRedPacketBody, ImRedPacketType, ImSdkErrorCategory, ImSdkErrorShape, ImSearchApi, ImSessionApi, ImSessionLifecycleState, ImSettingsApi, ImStickerAssetInput, ImStickerBody, ImStickerPack, ImSupportedConversationRef, ImTextSearchMatch, ImTextSearchMatchOptions, ImTextSearchMatcher, ImTextSearchRange, ImTransferBody, ImTransferSessionType, ImTransferStatus, ImVideoBody, ImVoiceBody, ImageMessageOptions, ImagePreviewMetadata, LocalConversationHistoryClearResult, LocalMessageDeletionResult, MentionCandidate, MentionCandidatePage, MentionInput, MessageContentType, MessageWindowInfo, MessageWindowPage, MigrateImCachePrefixInput, MiniProgramMessageOptions, ProductConversationListType, ProductHandleConversationType, ProductMessageSearchPage, ProductMessageSearchResult, ResolveTextOptions, ResolvedConversationBackground, SegmentMatch, SegmentMatcher, SendMessageResult, StickerAssetKind, TextMessageOptions, TextSegment, TransferMessageOptions, UnknownMessageBody, UserProfile, VideoMessageOptions, VideoPreviewMetadata, VoiceCapabilities, VoiceErrorCode, VoiceMessageMetadata, VoicePlayer, VoicePlayerOptions, VoicePlayerState, VoiceRecordingResult, VoiceRecordingSession, VoiceRecordingSessionOptions, VoiceRecordingState, VoiceToggleOptions };
package/dist/sdk.js CHANGED
@@ -1 +1 @@
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-A4IDVF3H.js';export{Ra as createVoicePlayer,Sa as createVoiceRecordingSession,Pa as detectVoiceCapabilities,Qa as voiceErrorCodeOf}from'./chunk-GTRMHOHX.js';export{_ as EDIT_WINDOW_MS,ca as canTransmit,aa as canTransmitByType,ba as canTransmitContent,n as classifyStickerImageType,R as createImTextSearchMatcher,P as extractSearchText,Q as getImTextSearchInitial,$ as requiresForwardTypeConfirmation,ga as resolveChannelAccess,U as resolveTextSegments,ma as sortSessions,na as sumSessionsUnread}from'./chunk-MHIB4PGT.js';import'./chunk-WOT6VMZA.js';
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-DFE2F575.js';export{Sa as createVoicePlayer,Ta as createVoiceRecordingSession,Qa as detectVoiceCapabilities,Ra as voiceErrorCodeOf}from'./chunk-6QR5GVQ3.js';export{ba as EDIT_WINDOW_MS,fa as canTransmit,da as canTransmitByType,ea as canTransmitContent,o as classifyStickerImageType,U as createImTextSearchMatcher,S as extractSearchText,T as getImTextSearchInitial,ca as requiresForwardTypeConfirmation,ja as resolveChannelAccess,X as resolveTextSegments,pa as sortSessions,qa as sumSessionsUnread}from'./chunk-BO5YFCS4.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.7",
4
+ "version": "0.1.8",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "publishConfig": {