@antzsoft/chat-core 1.3.1 → 1.3.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/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{storage-Df9ya7um.d.cts → storage-CNoA242G.d.cts} +25 -2
- package/dist/{storage-Df9ya7um.d.ts → storage-CNoA242G.d.ts} +25 -2
- package/package.json +1 -1
|
@@ -459,8 +459,14 @@ interface SyncStarEntry {
|
|
|
459
459
|
isActive: boolean;
|
|
460
460
|
updatedAt: string | null;
|
|
461
461
|
}
|
|
462
|
+
interface SyncReactionEntry {
|
|
463
|
+
emoji: string;
|
|
464
|
+
count: number;
|
|
465
|
+
/** True when the current user has reacted with this emoji */
|
|
466
|
+
didIReact: boolean;
|
|
467
|
+
}
|
|
462
468
|
/** Full current reaction state keyed by messageId. Only message IDs with activity since `since` are included. */
|
|
463
|
-
type SyncReactions = Record<string,
|
|
469
|
+
type SyncReactions = Record<string, SyncReactionEntry[]>;
|
|
464
470
|
interface CrossConversationSyncResponse {
|
|
465
471
|
syncedAt: string;
|
|
466
472
|
/** When true the gap exceeds 60 days — app should mark all conversations needs_refresh and lazy-sync on open */
|
|
@@ -485,6 +491,23 @@ interface ConversationSyncResponse {
|
|
|
485
491
|
participantChanges: SyncParticipantChange[];
|
|
486
492
|
readReceipts: SyncReadReceipt[];
|
|
487
493
|
}
|
|
494
|
+
interface ReactionUser {
|
|
495
|
+
userId: string;
|
|
496
|
+
displayName: string;
|
|
497
|
+
avatarUrl?: string;
|
|
498
|
+
}
|
|
499
|
+
interface ReactionGroup {
|
|
500
|
+
emoji: string;
|
|
501
|
+
/** All user IDs who reacted with this emoji */
|
|
502
|
+
userIds: string[];
|
|
503
|
+
count: number;
|
|
504
|
+
/** Resolved user profiles for display in "who reacted" sheet */
|
|
505
|
+
users: ReactionUser[];
|
|
506
|
+
}
|
|
507
|
+
interface MessageReactionsResponse {
|
|
508
|
+
messageId: string;
|
|
509
|
+
reactions: ReactionGroup[];
|
|
510
|
+
}
|
|
488
511
|
interface SendMessageAttachment {
|
|
489
512
|
fileId: string;
|
|
490
513
|
type: FileType;
|
|
@@ -779,4 +802,4 @@ declare function uploadBatchWithSlots(files: UploadableFile[], platformUploadFn:
|
|
|
779
802
|
slotToFile: Map<string, FileResponse>;
|
|
780
803
|
}>;
|
|
781
804
|
|
|
782
|
-
export { type
|
|
805
|
+
export { type NewMessageEvent as $, type AuthResponse as A, type BatchUploadResult as B, type CrossConversationSyncResponse as C, type ConversationUpdatedEvent as D, type FileSizeLimits as E, type FileResponse as F, type LastReaction as G, type MessageAckEvent as H, type MessageContent as I, type MessageDeletedEvent as J, type MessageDeletedForMeEvent as K, type LoginCredentials as L, type Message as M, type MessageDeliveredEvent as N, type MessageMetadata as O, type PaginatedResponse as P, type MessageReaction as Q, type ResolvedCompressionConfig as R, type SendMessagePayload as S, type MessageReceiptEntry as T, type User as U, type MessageReplyReference as V, type MessageStarUpdatedEvent as W, type MessageUpdatedEvent as X, type MessagesDeliveredEvent as Y, type MultipartPartUrl as Z, type MultipartUploadInfo as _, type RegisterData as a, type OptimisticAttachment as a0, type PlatformCompressFn as a1, type PlatformUploadFn as a2, type PlatformUploadPartFn as a3, type QuietHours as a4, type ReactionGroup as a5, type ReactionUpdatedEvent as a6, type ReactionUser as a7, type ReadReceiptEvent as a8, type ReplyAttachmentSnapshot as a9, type ResolvedFileSizeLimits as aa, type SendMessageAttachment as ab, type SyncDeletedForMe as ac, type SyncParticipantChange as ad, type SyncReactionEntry as ae, type SyncReactions as af, type SyncReadReceipt as ag, type SyncStarEntry as ah, type SystemMessageMetadata as ai, type TypingIndicatorEvent as aj, type UploadConfig as ak, type UploadProgress as al, type UserStatusEvent as am, resolveConfig as an, storageApi as ao, uploadBatch as ap, uploadBatchWithSlots as aq, type AuthTokens as b, type ConversationSyncResponse as c, type AppConfig as d, type CursorPaginatedResponse as e, type MessageReactionsResponse as f, type MessageReceiptsResponse as g, type ConversationListParams as h, type Conversation as i, type Participant as j, type ConversationUnreadCount as k, type UnreadSummary as l, type UserPreferences as m, type ResolvedConfig as n, type PersistStorage as o, type PresignedUrlRequest as p, type PresignedUrlResponse as q, type CompletedPart as r, type FileType as s, type AntzChatConfig as t, type UploadableFile as u, type Attachment as v, type CompressedFile as w, type CompressionAlgorithm as x, type CompressionConfig as y, type ConversationType as z };
|
|
@@ -459,8 +459,14 @@ interface SyncStarEntry {
|
|
|
459
459
|
isActive: boolean;
|
|
460
460
|
updatedAt: string | null;
|
|
461
461
|
}
|
|
462
|
+
interface SyncReactionEntry {
|
|
463
|
+
emoji: string;
|
|
464
|
+
count: number;
|
|
465
|
+
/** True when the current user has reacted with this emoji */
|
|
466
|
+
didIReact: boolean;
|
|
467
|
+
}
|
|
462
468
|
/** Full current reaction state keyed by messageId. Only message IDs with activity since `since` are included. */
|
|
463
|
-
type SyncReactions = Record<string,
|
|
469
|
+
type SyncReactions = Record<string, SyncReactionEntry[]>;
|
|
464
470
|
interface CrossConversationSyncResponse {
|
|
465
471
|
syncedAt: string;
|
|
466
472
|
/** When true the gap exceeds 60 days — app should mark all conversations needs_refresh and lazy-sync on open */
|
|
@@ -485,6 +491,23 @@ interface ConversationSyncResponse {
|
|
|
485
491
|
participantChanges: SyncParticipantChange[];
|
|
486
492
|
readReceipts: SyncReadReceipt[];
|
|
487
493
|
}
|
|
494
|
+
interface ReactionUser {
|
|
495
|
+
userId: string;
|
|
496
|
+
displayName: string;
|
|
497
|
+
avatarUrl?: string;
|
|
498
|
+
}
|
|
499
|
+
interface ReactionGroup {
|
|
500
|
+
emoji: string;
|
|
501
|
+
/** All user IDs who reacted with this emoji */
|
|
502
|
+
userIds: string[];
|
|
503
|
+
count: number;
|
|
504
|
+
/** Resolved user profiles for display in "who reacted" sheet */
|
|
505
|
+
users: ReactionUser[];
|
|
506
|
+
}
|
|
507
|
+
interface MessageReactionsResponse {
|
|
508
|
+
messageId: string;
|
|
509
|
+
reactions: ReactionGroup[];
|
|
510
|
+
}
|
|
488
511
|
interface SendMessageAttachment {
|
|
489
512
|
fileId: string;
|
|
490
513
|
type: FileType;
|
|
@@ -779,4 +802,4 @@ declare function uploadBatchWithSlots(files: UploadableFile[], platformUploadFn:
|
|
|
779
802
|
slotToFile: Map<string, FileResponse>;
|
|
780
803
|
}>;
|
|
781
804
|
|
|
782
|
-
export { type
|
|
805
|
+
export { type NewMessageEvent as $, type AuthResponse as A, type BatchUploadResult as B, type CrossConversationSyncResponse as C, type ConversationUpdatedEvent as D, type FileSizeLimits as E, type FileResponse as F, type LastReaction as G, type MessageAckEvent as H, type MessageContent as I, type MessageDeletedEvent as J, type MessageDeletedForMeEvent as K, type LoginCredentials as L, type Message as M, type MessageDeliveredEvent as N, type MessageMetadata as O, type PaginatedResponse as P, type MessageReaction as Q, type ResolvedCompressionConfig as R, type SendMessagePayload as S, type MessageReceiptEntry as T, type User as U, type MessageReplyReference as V, type MessageStarUpdatedEvent as W, type MessageUpdatedEvent as X, type MessagesDeliveredEvent as Y, type MultipartPartUrl as Z, type MultipartUploadInfo as _, type RegisterData as a, type OptimisticAttachment as a0, type PlatformCompressFn as a1, type PlatformUploadFn as a2, type PlatformUploadPartFn as a3, type QuietHours as a4, type ReactionGroup as a5, type ReactionUpdatedEvent as a6, type ReactionUser as a7, type ReadReceiptEvent as a8, type ReplyAttachmentSnapshot as a9, type ResolvedFileSizeLimits as aa, type SendMessageAttachment as ab, type SyncDeletedForMe as ac, type SyncParticipantChange as ad, type SyncReactionEntry as ae, type SyncReactions as af, type SyncReadReceipt as ag, type SyncStarEntry as ah, type SystemMessageMetadata as ai, type TypingIndicatorEvent as aj, type UploadConfig as ak, type UploadProgress as al, type UserStatusEvent as am, resolveConfig as an, storageApi as ao, uploadBatch as ap, uploadBatchWithSlots as aq, type AuthTokens as b, type ConversationSyncResponse as c, type AppConfig as d, type CursorPaginatedResponse as e, type MessageReactionsResponse as f, type MessageReceiptsResponse as g, type ConversationListParams as h, type Conversation as i, type Participant as j, type ConversationUnreadCount as k, type UnreadSummary as l, type UserPreferences as m, type ResolvedConfig as n, type PersistStorage as o, type PresignedUrlRequest as p, type PresignedUrlResponse as q, type CompletedPart as r, type FileType as s, type AntzChatConfig as t, type UploadableFile as u, type Attachment as v, type CompressedFile as w, type CompressionAlgorithm as x, type CompressionConfig as y, type ConversationType as z };
|
package/package.json
CHANGED