@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
package/dist/index.cjs
CHANGED
|
@@ -854,18 +854,23 @@ var syncApi = {
|
|
|
854
854
|
},
|
|
855
855
|
/**
|
|
856
856
|
* Per-conversation delta sync — call when a conversation has `needs_refresh = true`
|
|
857
|
-
* or on fresh install (omit
|
|
857
|
+
* or on fresh install (omit all opts to receive full history).
|
|
858
858
|
* Covers messages, deletedForMe, full reaction state, stars, participant changes,
|
|
859
859
|
* and read receipts — everything needed to make local SQLite authoritative.
|
|
860
860
|
*
|
|
861
|
-
*
|
|
862
|
-
*
|
|
863
|
-
*
|
|
861
|
+
* Direction:
|
|
862
|
+
* afterSeq — forward (oldest→newest, catch-up/sync). Default when seq is known.
|
|
863
|
+
* beforeSeq — backward (newest→oldest, scroll-back / load history).
|
|
864
|
+
* since — timestamp fallback for old servers or first sync on a new install.
|
|
865
|
+
*
|
|
866
|
+
* When `hasMore` is true, call again with `nextSeq` as the same cursor type you sent.
|
|
864
867
|
*/
|
|
865
868
|
pullConversation(conversationId, opts) {
|
|
866
869
|
const params = {};
|
|
867
870
|
if (opts?.afterSeq !== void 0) {
|
|
868
871
|
params.afterSeq = opts.afterSeq;
|
|
872
|
+
} else if (opts?.beforeSeq !== void 0) {
|
|
873
|
+
params.beforeSeq = opts.beforeSeq;
|
|
869
874
|
} else if (opts?.since) {
|
|
870
875
|
params.since = opts.since;
|
|
871
876
|
}
|
|
@@ -1050,6 +1055,10 @@ var messagesApi = {
|
|
|
1050
1055
|
);
|
|
1051
1056
|
return data;
|
|
1052
1057
|
},
|
|
1058
|
+
async getReactions(messageId) {
|
|
1059
|
+
const { data } = await getApiClient().post(`/messages/${messageId}/reactions/list`);
|
|
1060
|
+
return data;
|
|
1061
|
+
},
|
|
1053
1062
|
async star(messageId) {
|
|
1054
1063
|
await getApiClient().post(`/messages/${messageId}/star`);
|
|
1055
1064
|
},
|