@antzsoft/chat-core 1.3.0 → 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 +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{storage-C7amvVjk.d.cts → storage-CNoA242G.d.cts} +29 -4
- package/dist/{storage-C7amvVjk.d.ts → storage-CNoA242G.d.ts} +29 -4
- package/package.json +1 -1
|
@@ -459,22 +459,30 @@ 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 */
|
|
467
473
|
stale: boolean;
|
|
468
474
|
messages: Message[];
|
|
469
475
|
deletedForMe: SyncDeletedForMe[];
|
|
476
|
+
reactions: SyncReactions;
|
|
477
|
+
stars: SyncStarEntry[];
|
|
470
478
|
participantChanges: SyncParticipantChange[];
|
|
471
479
|
readReceipts: SyncReadReceipt[];
|
|
472
480
|
}
|
|
473
481
|
interface ConversationSyncResponse {
|
|
474
482
|
syncedAt: string;
|
|
475
|
-
/**
|
|
483
|
+
/** Cursor for the next page in the same direction — pass as afterSeq or beforeSeq matching what you sent. */
|
|
476
484
|
nextSeq?: number;
|
|
477
|
-
/** True when more pages are available — call again with
|
|
485
|
+
/** True when more pages are available — call again with nextSeq as the same cursor type. */
|
|
478
486
|
hasMore?: boolean;
|
|
479
487
|
messages: Message[];
|
|
480
488
|
deletedForMe: SyncDeletedForMe[];
|
|
@@ -483,6 +491,23 @@ interface ConversationSyncResponse {
|
|
|
483
491
|
participantChanges: SyncParticipantChange[];
|
|
484
492
|
readReceipts: SyncReadReceipt[];
|
|
485
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
|
+
}
|
|
486
511
|
interface SendMessageAttachment {
|
|
487
512
|
fileId: string;
|
|
488
513
|
type: FileType;
|
|
@@ -777,4 +802,4 @@ declare function uploadBatchWithSlots(files: UploadableFile[], platformUploadFn:
|
|
|
777
802
|
slotToFile: Map<string, FileResponse>;
|
|
778
803
|
}>;
|
|
779
804
|
|
|
780
|
-
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