@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.
@@ -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, MessageReaction[]>;
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
- /** Present when server supports seq-based sync. Use as afterSeq in next call. */
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 updated afterSeq. */
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 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 };
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antzsoft/chat-core",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Platform-agnostic core for Antz Chat — API, socket, stores, types. Works in browser, React Native (Expo or bare), and Node.js.",
5
5
  "author": "Antz",
6
6
  "license": "MIT",