@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 +5 -2
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
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}&
|
|
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}&
|
|
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 = {
|