k2-im 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/chat-kit-pinia.d.ts +22 -1
- package/dist/chat-kit-pinia.js +1 -1
- package/dist/chat-kit-vue.js +1 -1
- package/dist/chat-kit.d.ts +17 -4
- package/dist/chat-kit.js +1 -1
- package/dist/chunk-AFW5LCKV.js +1 -0
- package/dist/chunk-CVBX4JM4.js +2 -0
- package/dist/chunk-EBM5MOQO.js +1 -0
- package/dist/{chunk-JUJCY6DH.js → chunk-GHGVAACK.js} +1 -1
- package/dist/{chunk-WYHMM3QR.js → chunk-JWNOOU2B.js} +1 -1
- package/dist/{chunk-FO2MMPPT.js → chunk-K3DSNX5G.js} +1 -1
- package/dist/{chunk-ZXNH42G2.js → chunk-OQT455AV.js} +1 -1
- package/dist/i18n.js +1 -1
- package/dist/index.d.ts +17 -4
- package/dist/index.js +1 -1
- package/dist/sdk.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QGGCU24I.js +0 -1
- package/dist/chunk-VSMNRAAM.js +0 -1
- package/dist/chunk-ZJBW4MOG.js +0 -2
package/dist/browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as createLazyBrowserApiProtocolClient}from'./chunk-
|
|
1
|
+
export{A as createLazyBrowserApiProtocolClient}from'./chunk-K3DSNX5G.js';import'./chunk-AFW5LCKV.js';import'./chunk-WOT6VMZA.js';
|
package/dist/chat-kit-pinia.d.ts
CHANGED
|
@@ -6918,6 +6918,9 @@ type GroupProfileResultFor<TResult, TOperation extends ImGroupProfileOperation>
|
|
|
6918
6918
|
/** 指定 GROUP 资料 action 的精确结果。 */
|
|
6919
6919
|
type ImGroupProfileActionResultFor<TOperation extends ImGroupProfileOperation> = GroupProfileResultFor<ImGroupProfileActionResult, TOperation>;
|
|
6920
6920
|
|
|
6921
|
+
/** 目标用户资料入口的跨宿主语义;宿主只负责把结果映射为自己的路由或 Sheet。 */
|
|
6922
|
+
type ImProfileAccessDestination = 'friend-profile' | 'friend-contact' | 'blocked';
|
|
6923
|
+
|
|
6921
6924
|
/**
|
|
6922
6925
|
* 读取单聊联系人、普通群、社群及三类通讯录所需的稳定展示数据。
|
|
6923
6926
|
*
|
|
@@ -6951,6 +6954,15 @@ type ImProfileDirectoryResult = Readonly<{
|
|
|
6951
6954
|
reason: 'not-ready' | 'not-found' | 'busy' | 'exhausted' | 'stale' | 'failed';
|
|
6952
6955
|
error?: ImSdkErrorShape;
|
|
6953
6956
|
}>;
|
|
6957
|
+
/** 目标用户资料入口读取结果;页面层只映射 destination,不读取频道开关或关系原始字段。 */
|
|
6958
|
+
type ImProfileAccessResult = Readonly<{
|
|
6959
|
+
ok: true;
|
|
6960
|
+
destination: ImProfileAccessDestination;
|
|
6961
|
+
} | {
|
|
6962
|
+
ok: false;
|
|
6963
|
+
reason: 'stale' | 'channel-profile' | 'direct-profile';
|
|
6964
|
+
result: ImProfileDirectoryResult;
|
|
6965
|
+
}>;
|
|
6954
6966
|
/** 名片资料页发起的入群结果;等待审核与已成为成员必须由宿主分别反馈。 */
|
|
6955
6967
|
type ImMembershipJoinActionResult = Readonly<({
|
|
6956
6968
|
ok: true;
|
|
@@ -7034,6 +7046,9 @@ declare function defineImProfileDirectoryStore(pinia: Pinia): pinia.StoreDefinit
|
|
|
7034
7046
|
loadDirect: (ref: ConversationRef<"direct">, options?: {
|
|
7035
7047
|
forceRefresh?: boolean;
|
|
7036
7048
|
}) => Promise<ImProfileDirectoryResult>;
|
|
7049
|
+
resolveProfileAccess: (conversation: ConversationRef<"direct" | "group" | "channel">, userId: string, options?: {
|
|
7050
|
+
forceRefresh?: boolean;
|
|
7051
|
+
}) => Promise<ImProfileAccessResult>;
|
|
7037
7052
|
loadDirectMutualGroups: (ref: ConversationRef<"direct">) => Promise<ImProfileDirectoryResult>;
|
|
7038
7053
|
setDirectContactRemark: (ref: ConversationRef<"direct">, remark: {
|
|
7039
7054
|
name?: string;
|
|
@@ -7205,6 +7220,9 @@ declare function defineImProfileDirectoryStore(pinia: Pinia): pinia.StoreDefinit
|
|
|
7205
7220
|
loadDirect: (ref: ConversationRef<"direct">, options?: {
|
|
7206
7221
|
forceRefresh?: boolean;
|
|
7207
7222
|
}) => Promise<ImProfileDirectoryResult>;
|
|
7223
|
+
resolveProfileAccess: (conversation: ConversationRef<"direct" | "group" | "channel">, userId: string, options?: {
|
|
7224
|
+
forceRefresh?: boolean;
|
|
7225
|
+
}) => Promise<ImProfileAccessResult>;
|
|
7208
7226
|
loadDirectMutualGroups: (ref: ConversationRef<"direct">) => Promise<ImProfileDirectoryResult>;
|
|
7209
7227
|
setDirectContactRemark: (ref: ConversationRef<"direct">, remark: {
|
|
7210
7228
|
name?: string;
|
|
@@ -7376,6 +7394,9 @@ declare function defineImProfileDirectoryStore(pinia: Pinia): pinia.StoreDefinit
|
|
|
7376
7394
|
loadDirect: (ref: ConversationRef<"direct">, options?: {
|
|
7377
7395
|
forceRefresh?: boolean;
|
|
7378
7396
|
}) => Promise<ImProfileDirectoryResult>;
|
|
7397
|
+
resolveProfileAccess: (conversation: ConversationRef<"direct" | "group" | "channel">, userId: string, options?: {
|
|
7398
|
+
forceRefresh?: boolean;
|
|
7399
|
+
}) => Promise<ImProfileAccessResult>;
|
|
7379
7400
|
loadDirectMutualGroups: (ref: ConversationRef<"direct">) => Promise<ImProfileDirectoryResult>;
|
|
7380
7401
|
setDirectContactRemark: (ref: ConversationRef<"direct">, remark: {
|
|
7381
7402
|
name?: string;
|
|
@@ -7771,4 +7792,4 @@ type ImThreadStore = Store<'k2-im-thread', ImThreadStoreState, Record<string, ne
|
|
|
7771
7792
|
declare function useImThreadStore(pinia?: Pinia): ImThreadStore;
|
|
7772
7793
|
|
|
7773
7794
|
export { applicationKey, createAndInstallImChatKit, createImChatKitContext, disposeImChatKit, ensureImChatKitSelfProfile, getImChatKitContext, installImChatKit, useImApplicationsStore, useImCapabilitiesStore, useImComposerStore, useImConversationActivationCoordinator, useImConversationDeletionCoordinator, useImConversationListStore, useImExpressionStore, useImHistoryReturnAfterSendCoordinator, useImMediaStore, useImMessageOperationsStore, useImProfileDirectoryStore, useImReactionStore, useImSearchStore, useImSessionStore, useImThreadPagingStore, useImThreadReturnToLatestCoordinator, useImThreadStore };
|
|
7774
|
-
export type { ApplyImSessionInput, ChatRuntimeFactories, ChatRuntimeHostDeps, ImApplicationDomainCounts, ImApplicationReviewOperation, ImApplicationReviewResult, ImApplicationsReloadResult, ImApplicationsStoreError, ImCapabilitiesStore, ImChannelManagementMemberTarget, ImChannelMemberManagementOperation, ImChannelMemberManagementResult, ImChannelMemberManagementResultFor, ImChannelProfileActionResult, ImChannelProfileActionResultFor, ImChannelProfileOperation, ImChatKitContext, ImChatKitInstallation, ImComposerStore, ImComposerStoreActions, ImComposerStoreState, ImComposerSubmitResult, ImConversationActivationCoordinator, ImConversationActivationError, ImConversationActivationResult, ImConversationDeletionCoordinator, ImConversationDeletionError, ImConversationDeletionResult, ImConversationListActionError, ImConversationListMutationOperation, ImConversationListMutationResult, ImConversationListRefreshResult, ImConversationListStore, ImDirectContactActionResult, ImDirectContactActionResultFor, ImDirectContactOperation, ImDirectoryState, ImEmojiPanelRecentEntry, ImEmojiRecentEntry, ImExpressionLoadStatus, ImExpressionOperation, ImExpressionOperationResult, ImExpressionRecentPersistencePort, ImExpressionRecentPersistenceSnapshot, ImExpressionRecentViewItem, ImExpressionResetOptions, ImExpressionSendResult, ImExpressionStore, ImExpressionStoreActions, ImExpressionStoreError, ImExpressionStoreGetters, ImExpressionStoreState, ImForwardPreparationResult, ImGameRecentEntry, ImGroupMemberManagementOperation, ImGroupMemberManagementResult, ImGroupMemberManagementResultFor, ImGroupProfileActionResult, ImGroupProfileActionResultFor, ImGroupProfileOperation, ImHistoryReturnAfterSendCoordinator, ImHistoryReturnError, ImHistoryReturnExecution, ImHistoryReturnResult, ImMediaOperationResult, ImMediaReplacementRequest, ImMediaStoreError, ImMediaTaskPresentation, ImMembershipJoinActionResult, ImMembershipJoinOperation, ImMessageOperationsStore, ImMessageOperationsStoreActions, ImMessageOperationsStoreState, ImMessageSelectionResult, ImPersistedEmojiPanelRecentEntry, ImPersistedEmojiRecentEntry, ImPersistedExpressionAssetRecentEntry, ImPersistedGameRecentEntry, ImProfileDirectoryResult, ImReactionOperationResult, ImReactionStore, ImReactionStoreActions, ImReactionStoreError, ImReactionStoreState, ImSearchOperationResult, ImSessionPhase, ImSessionStore, ImThreadPagingActions, ImThreadPagingState, ImThreadPagingStore, ImThreadReturnToLatestCoordinator, ImThreadStore, ImThreadStoreActions, ImThreadStoreState };
|
|
7795
|
+
export type { ApplyImSessionInput, ChatRuntimeFactories, ChatRuntimeHostDeps, ImApplicationDomainCounts, ImApplicationReviewOperation, ImApplicationReviewResult, ImApplicationsReloadResult, ImApplicationsStoreError, ImCapabilitiesStore, ImChannelManagementMemberTarget, ImChannelMemberManagementOperation, ImChannelMemberManagementResult, ImChannelMemberManagementResultFor, ImChannelProfileActionResult, ImChannelProfileActionResultFor, ImChannelProfileOperation, ImChatKitContext, ImChatKitInstallation, ImComposerStore, ImComposerStoreActions, ImComposerStoreState, ImComposerSubmitResult, ImConversationActivationCoordinator, ImConversationActivationError, ImConversationActivationResult, ImConversationDeletionCoordinator, ImConversationDeletionError, ImConversationDeletionResult, ImConversationListActionError, ImConversationListMutationOperation, ImConversationListMutationResult, ImConversationListRefreshResult, ImConversationListStore, ImDirectContactActionResult, ImDirectContactActionResultFor, ImDirectContactOperation, ImDirectoryState, ImEmojiPanelRecentEntry, ImEmojiRecentEntry, ImExpressionLoadStatus, ImExpressionOperation, ImExpressionOperationResult, ImExpressionRecentPersistencePort, ImExpressionRecentPersistenceSnapshot, ImExpressionRecentViewItem, ImExpressionResetOptions, ImExpressionSendResult, ImExpressionStore, ImExpressionStoreActions, ImExpressionStoreError, ImExpressionStoreGetters, ImExpressionStoreState, ImForwardPreparationResult, ImGameRecentEntry, ImGroupMemberManagementOperation, ImGroupMemberManagementResult, ImGroupMemberManagementResultFor, ImGroupProfileActionResult, ImGroupProfileActionResultFor, ImGroupProfileOperation, ImHistoryReturnAfterSendCoordinator, ImHistoryReturnError, ImHistoryReturnExecution, ImHistoryReturnResult, ImMediaOperationResult, ImMediaReplacementRequest, ImMediaStoreError, ImMediaTaskPresentation, ImMembershipJoinActionResult, ImMembershipJoinOperation, ImMessageOperationsStore, ImMessageOperationsStoreActions, ImMessageOperationsStoreState, ImMessageSelectionResult, ImPersistedEmojiPanelRecentEntry, ImPersistedEmojiRecentEntry, ImPersistedExpressionAssetRecentEntry, ImPersistedGameRecentEntry, ImProfileAccessDestination, ImProfileAccessResult, ImProfileDirectoryResult, ImReactionOperationResult, ImReactionStore, ImReactionStoreActions, ImReactionStoreError, ImReactionStoreState, ImSearchOperationResult, ImSessionPhase, ImSessionStore, ImThreadPagingActions, ImThreadPagingState, ImThreadPagingStore, ImThreadReturnToLatestCoordinator, ImThreadStore, ImThreadStoreActions, ImThreadStoreState };
|