@antzsoft/chat-core 1.2.8 → 1.2.9
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 +20 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/{storage-CW70b4vi.d.cts → storage-BgQYwWPH.d.cts} +7 -0
- package/dist/{storage-CW70b4vi.d.ts → storage-BgQYwWPH.d.ts} +7 -0
- package/package.json +1 -1
|
@@ -150,6 +150,7 @@ interface Message {
|
|
|
150
150
|
pinnedBy?: string;
|
|
151
151
|
pinnedAt?: string;
|
|
152
152
|
uploadProgress?: number;
|
|
153
|
+
seq?: number;
|
|
153
154
|
sentAt: string;
|
|
154
155
|
createdAt: string;
|
|
155
156
|
sender?: User;
|
|
@@ -389,6 +390,8 @@ interface MessageAckEvent {
|
|
|
389
390
|
tempId: string;
|
|
390
391
|
messageId: string;
|
|
391
392
|
status: MessageStatus;
|
|
393
|
+
/** Present when server supports seq — monotonic counter for this conversation. */
|
|
394
|
+
seq?: number;
|
|
392
395
|
}
|
|
393
396
|
interface MessageDeliveredEvent {
|
|
394
397
|
messageId: string;
|
|
@@ -458,6 +461,10 @@ interface CrossConversationSyncResponse {
|
|
|
458
461
|
}
|
|
459
462
|
interface ConversationSyncResponse {
|
|
460
463
|
syncedAt: string;
|
|
464
|
+
/** Present when server supports seq-based sync. Use as afterSeq in next call. */
|
|
465
|
+
nextSeq?: number;
|
|
466
|
+
/** True when more pages are available — call again with updated afterSeq. */
|
|
467
|
+
hasMore?: boolean;
|
|
461
468
|
messages: Message[];
|
|
462
469
|
deletedForMe: SyncDeletedForMe[];
|
|
463
470
|
reactions: SyncReactions;
|
|
@@ -150,6 +150,7 @@ interface Message {
|
|
|
150
150
|
pinnedBy?: string;
|
|
151
151
|
pinnedAt?: string;
|
|
152
152
|
uploadProgress?: number;
|
|
153
|
+
seq?: number;
|
|
153
154
|
sentAt: string;
|
|
154
155
|
createdAt: string;
|
|
155
156
|
sender?: User;
|
|
@@ -389,6 +390,8 @@ interface MessageAckEvent {
|
|
|
389
390
|
tempId: string;
|
|
390
391
|
messageId: string;
|
|
391
392
|
status: MessageStatus;
|
|
393
|
+
/** Present when server supports seq — monotonic counter for this conversation. */
|
|
394
|
+
seq?: number;
|
|
392
395
|
}
|
|
393
396
|
interface MessageDeliveredEvent {
|
|
394
397
|
messageId: string;
|
|
@@ -458,6 +461,10 @@ interface CrossConversationSyncResponse {
|
|
|
458
461
|
}
|
|
459
462
|
interface ConversationSyncResponse {
|
|
460
463
|
syncedAt: string;
|
|
464
|
+
/** Present when server supports seq-based sync. Use as afterSeq in next call. */
|
|
465
|
+
nextSeq?: number;
|
|
466
|
+
/** True when more pages are available — call again with updated afterSeq. */
|
|
467
|
+
hasMore?: boolean;
|
|
461
468
|
messages: Message[];
|
|
462
469
|
deletedForMe: SyncDeletedForMe[];
|
|
463
470
|
reactions: SyncReactions;
|
package/package.json
CHANGED