@antzsoft/chat-core 1.2.9 → 1.3.0
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 +1 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{storage-BgQYwWPH.d.cts → storage-C7amvVjk.d.cts} +12 -1
- package/dist/{storage-BgQYwWPH.d.ts → storage-C7amvVjk.d.ts} +12 -1
- package/package.json +1 -1
|
@@ -201,6 +201,8 @@ interface Conversation {
|
|
|
201
201
|
isPinned?: boolean;
|
|
202
202
|
isMuted?: boolean;
|
|
203
203
|
mutedUntil?: string;
|
|
204
|
+
/** Last message sequence number in this conversation — use as afterSeq cursor for sync */
|
|
205
|
+
lastSeq?: number;
|
|
204
206
|
}
|
|
205
207
|
interface AppConfig {
|
|
206
208
|
maxPinnedConversations: number;
|
|
@@ -334,6 +336,15 @@ interface NewMessageEvent {
|
|
|
334
336
|
senderAvatarUrl?: string;
|
|
335
337
|
message: Message;
|
|
336
338
|
}
|
|
339
|
+
interface ConversationUpdatedEvent {
|
|
340
|
+
id: string;
|
|
341
|
+
lastMessage?: Partial<Message> | null;
|
|
342
|
+
unreadCount?: number;
|
|
343
|
+
updatedAt?: string;
|
|
344
|
+
/** Updated when a new message is sent — use to keep sync cursor up to date */
|
|
345
|
+
lastSeq?: number;
|
|
346
|
+
participants?: Participant[];
|
|
347
|
+
}
|
|
337
348
|
interface MessageUpdatedEvent {
|
|
338
349
|
messageId: string;
|
|
339
350
|
conversationId: string;
|
|
@@ -766,4 +777,4 @@ declare function uploadBatchWithSlots(files: UploadableFile[], platformUploadFn:
|
|
|
766
777
|
slotToFile: Map<string, FileResponse>;
|
|
767
778
|
}>;
|
|
768
779
|
|
|
769
|
-
export { type
|
|
780
|
+
export { type OptimisticAttachment as $, type AuthResponse as A, type BatchUploadResult as B, type CrossConversationSyncResponse as C, type FileSizeLimits as D, type LastReaction as E, type FileResponse as F, type MessageAckEvent as G, type MessageContent as H, type MessageDeletedEvent as I, type MessageDeletedForMeEvent as J, type MessageDeliveredEvent as K, type LoginCredentials as L, type Message as M, type MessageMetadata as N, type MessageReaction as O, type PaginatedResponse as P, type MessageReceiptEntry as Q, type ResolvedCompressionConfig as R, type SendMessagePayload as S, type MessageReplyReference as T, type User as U, type MessageStarUpdatedEvent as V, type MessageUpdatedEvent as W, type MessagesDeliveredEvent as X, type MultipartPartUrl as Y, type MultipartUploadInfo as Z, type NewMessageEvent as _, type RegisterData as a, type PlatformCompressFn as a0, type PlatformUploadFn as a1, type PlatformUploadPartFn as a2, type QuietHours as a3, type ReactionUpdatedEvent as a4, type ReadReceiptEvent as a5, type ReplyAttachmentSnapshot as a6, type ResolvedFileSizeLimits as a7, type SendMessageAttachment as a8, type SyncDeletedForMe as a9, type SyncParticipantChange as aa, type SyncReactions as ab, type SyncReadReceipt as ac, type SyncStarEntry as ad, type SystemMessageMetadata as ae, type TypingIndicatorEvent as af, type UploadConfig as ag, type UploadProgress as ah, type UserStatusEvent as ai, resolveConfig as aj, storageApi as ak, uploadBatch as al, uploadBatchWithSlots as am, type AuthTokens as b, type ConversationSyncResponse as c, type AppConfig as d, type CursorPaginatedResponse as e, type MessageReceiptsResponse as f, type ConversationListParams as g, type Conversation as h, type Participant as i, type ConversationUnreadCount as j, type UnreadSummary as k, type UserPreferences as l, type ResolvedConfig as m, type PersistStorage as n, type PresignedUrlRequest as o, type PresignedUrlResponse as p, type CompletedPart as q, type FileType as r, type AntzChatConfig as s, type UploadableFile as t, type Attachment as u, type CompressedFile as v, type CompressionAlgorithm as w, type CompressionConfig as x, type ConversationType as y, type ConversationUpdatedEvent as z };
|
package/package.json
CHANGED