@poolse/sdk 0.2.0-alpha.3 → 0.2.0-alpha.4

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/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ All notable changes to `@poolse/sdk` are documented here. Format follows
6
6
 
7
7
  ## [0.2.0] — 2026-06-01
8
8
 
9
+ ### Added
10
+
11
+ - `Message.reply_count?: number` — number of replies in the thread
12
+ rooted at this message. Populated by REST list; defaults to 0 over
13
+ realtime (a brand-new message can't have replies yet). Drives the
14
+ thread pill in `<MessageRow>` and increments locally in
15
+ `useMessages` when a reply lands.
16
+
9
17
  ### Fixed
10
18
 
11
19
  - `RestClient.request` no longer wraps `AbortError` as a `NetworkError`
package/dist/index.d.cts CHANGED
@@ -227,6 +227,13 @@ interface Message {
227
227
  body: string | null;
228
228
  reply_to_id: Uuid | null;
229
229
  thread_root_id: Uuid | null;
230
+ /**
231
+ * Number of replies in the thread rooted at this message. Server
232
+ * populates on REST list + initial fetch; defaults to 0 for new
233
+ * messages broadcast over realtime. SDK increments locally when a
234
+ * new reply lands so the thread pill ("💬 N replies") updates live.
235
+ */
236
+ reply_count?: number;
230
237
  mentions: Uuid[];
231
238
  reactions: Record<string, Uuid[]>;
232
239
  /**
package/dist/index.d.ts CHANGED
@@ -227,6 +227,13 @@ interface Message {
227
227
  body: string | null;
228
228
  reply_to_id: Uuid | null;
229
229
  thread_root_id: Uuid | null;
230
+ /**
231
+ * Number of replies in the thread rooted at this message. Server
232
+ * populates on REST list + initial fetch; defaults to 0 for new
233
+ * messages broadcast over realtime. SDK increments locally when a
234
+ * new reply lands so the thread pill ("💬 N replies") updates live.
235
+ */
236
+ reply_count?: number;
230
237
  mentions: Uuid[];
231
238
  reactions: Record<string, Uuid[]>;
232
239
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/sdk",
3
- "version": "0.2.0-alpha.3",
3
+ "version": "0.2.0-alpha.4",
4
4
  "description": "Headless TypeScript SDK for poolse — realtime chat infrastructure. REST + WebSocket, framework-agnostic. Use directly, or via @poolse/react.",
5
5
  "license": "MIT",
6
6
  "keywords": [