@portalsdk/wire-protocol 0.4.0 → 0.4.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.d.cts CHANGED
@@ -628,14 +628,17 @@ type ThreadNodeWire = {
628
628
  createdAt: number;
629
629
  };
630
630
  /**
631
- * `GET /v1/channels/{channelId}/threads?parent={id|""}|root={id}&before=&limit=`.
631
+ * `GET /v1/channels/{channelId}/threads?parent={id|""}|root={id}&cursor=&limit=`.
632
632
  *
633
633
  * `parent=""` lists root threads; `parent={id}` lists the threads nested directly under
634
- * one; `root={id}` lists every thread descending from a root.
634
+ * one; `root={id}` lists every thread descending from a root. `cursor` is opaque — the
635
+ * client only ever echoes a `nextCursor` handed back on a prior page.
635
636
  */
636
637
  type ThreadsResponse = {
637
638
  threads: ThreadNodeWire[];
638
639
  hasMore: boolean;
640
+ /** Present when another page follows; pass verbatim as `cursor` to fetch it. */
641
+ nextCursor?: string;
639
642
  };
640
643
  /** One row of the member directory (§3.3). */
641
644
  type MemberRow = {
package/dist/index.d.ts CHANGED
@@ -628,14 +628,17 @@ type ThreadNodeWire = {
628
628
  createdAt: number;
629
629
  };
630
630
  /**
631
- * `GET /v1/channels/{channelId}/threads?parent={id|""}|root={id}&before=&limit=`.
631
+ * `GET /v1/channels/{channelId}/threads?parent={id|""}|root={id}&cursor=&limit=`.
632
632
  *
633
633
  * `parent=""` lists root threads; `parent={id}` lists the threads nested directly under
634
- * one; `root={id}` lists every thread descending from a root.
634
+ * one; `root={id}` lists every thread descending from a root. `cursor` is opaque — the
635
+ * client only ever echoes a `nextCursor` handed back on a prior page.
635
636
  */
636
637
  type ThreadsResponse = {
637
638
  threads: ThreadNodeWire[];
638
639
  hasMore: boolean;
640
+ /** Present when another page follows; pass verbatim as `cursor` to fetch it. */
641
+ nextCursor?: string;
639
642
  };
640
643
  /** One row of the member directory (§3.3). */
641
644
  type MemberRow = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portalsdk/wire-protocol",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Wire format types and codecs for the Portal protocol.",
5
5
  "license": "MIT",
6
6
  "type": "module",