@roundtable-bb/sdk 0.1.38 → 0.1.41

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.ts CHANGED
@@ -149,6 +149,7 @@ type ReorderCategory = z.infer<typeof ReorderCategorySchema>;
149
149
  declare const ForumSchema: z.ZodObject<{
150
150
  id: z.ZodUUID;
151
151
  categoryId: z.ZodUUID;
152
+ parentId: z.ZodNullable<z.ZodUUID>;
152
153
  name: z.ZodString;
153
154
  description: z.ZodNullable<z.ZodString>;
154
155
  position: z.ZodNumber;
@@ -158,11 +159,13 @@ declare const ForumSchema: z.ZodObject<{
158
159
  }, z.core.$strip>;
159
160
  declare const CreateForumSchema: z.ZodObject<{
160
161
  categoryId: z.ZodUUID;
162
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
161
163
  name: z.ZodString;
162
164
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
165
  isHidden: z.ZodOptional<z.ZodBoolean>;
164
166
  }, z.core.$strip>;
165
167
  declare const UpdateForumSchema: z.ZodObject<{
168
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
166
169
  name: z.ZodOptional<z.ZodString>;
167
170
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
171
  isHidden: z.ZodOptional<z.ZodBoolean>;
@@ -302,6 +305,9 @@ declare const GroupSchema: z.ZodObject<{
302
305
  "group.manage_protected": "group.manage_protected";
303
306
  }>>;
304
307
  visibleForumIds: z.ZodArray<z.ZodUUID>;
308
+ minMembers: z.ZodNullable<z.ZodNumber>;
309
+ maxMembers: z.ZodNullable<z.ZodNumber>;
310
+ memberCount: z.ZodNumber;
305
311
  }, z.core.$strip>;
306
312
  declare const CreateGroupSchema: z.ZodObject<{
307
313
  name: z.ZodString;
@@ -993,7 +999,32 @@ declare class RoundtableClient {
993
999
  listConversations(options?: {
994
1000
  authMethod?: AuthMethod;
995
1001
  }): Promise<ConversationSummary[]>;
996
- /** List visible forums for the requesting user */
1002
+ /** List latest posts across all visible forums */
1003
+ listFeedPosts(params: {
1004
+ tenantId: string;
1005
+ }, query?: {
1006
+ cursor?: Id;
1007
+ limit?: number;
1008
+ }, options?: {
1009
+ authMethod?: AuthMethod;
1010
+ }): Promise<PaginatedResponse<Post>>;
1011
+ /** List latest threads across all visible forums */
1012
+ listFeedThreads(params: {
1013
+ tenantId: string;
1014
+ }, query?: {
1015
+ cursor?: Id;
1016
+ limit?: number;
1017
+ }, options?: {
1018
+ authMethod?: AuthMethod;
1019
+ }): Promise<PaginatedResponse<Thread>>;
1020
+ /** List the direct sub-forums of a forum */
1021
+ listForumChildren(params: {
1022
+ tenantId: string;
1023
+ forumId: string;
1024
+ }, options?: {
1025
+ authMethod?: AuthMethod;
1026
+ }): Promise<Forum[]>;
1027
+ /** List visible root forums (no parent) for the requesting user */
997
1028
  listForums(params: {
998
1029
  tenantId: string;
999
1030
  }, options?: {
package/dist/index.js CHANGED
@@ -204,7 +204,19 @@ class RoundtableClient {
204
204
  listConversations(options) {
205
205
  return request(this.opts, 'GET', '/messages/conversations', { ...options, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
206
206
  }
207
- /** List visible forums for the requesting user */
207
+ /** List latest posts across all visible forums */
208
+ listFeedPosts(params, query, options) {
209
+ return request(this.opts, 'GET', `/tenants/${params.tenantId}/feed/posts`, { ...options, query, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
210
+ }
211
+ /** List latest threads across all visible forums */
212
+ listFeedThreads(params, query, options) {
213
+ return request(this.opts, 'GET', `/tenants/${params.tenantId}/feed/threads`, { ...options, query, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
214
+ }
215
+ /** List the direct sub-forums of a forum */
216
+ listForumChildren(params, options) {
217
+ return request(this.opts, 'GET', `/tenants/${params.tenantId}/forums/${params.forumId}/children`, { ...options, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
218
+ }
219
+ /** List visible root forums (no parent) for the requesting user */
208
220
  listForums(params, options) {
209
221
  return request(this.opts, 'GET', `/tenants/${params.tenantId}/forums`, { ...options, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
210
222
  }
@@ -466,6 +478,7 @@ const ReorderCategorySchema = z.array(z.object({ id: IdSchema, position: z.numbe
466
478
  const ForumSchema = z.object({
467
479
  id: IdSchema,
468
480
  categoryId: IdSchema,
481
+ parentId: IdSchema.nullable(),
469
482
  name: z.string(),
470
483
  description: z.string().nullable(),
471
484
  position: z.number().int(),
@@ -475,11 +488,13 @@ const ForumSchema = z.object({
475
488
  });
476
489
  const CreateForumSchema = z.object({
477
490
  categoryId: IdSchema,
491
+ parentId: IdSchema.nullable().optional(),
478
492
  name: z.string().min(1).max(200),
479
493
  description: z.string().max(1000).nullable().optional(),
480
494
  isHidden: z.boolean().optional(),
481
495
  });
482
496
  const UpdateForumSchema = z.object({
497
+ parentId: IdSchema.nullable().optional(),
483
498
  name: z.string().min(1).max(200).optional(),
484
499
  description: z.string().max(1000).nullable().optional(),
485
500
  isHidden: z.boolean().optional(),
@@ -560,6 +575,9 @@ const GroupSchema = z.object({
560
575
  isProtected: z.boolean(),
561
576
  permissions: z.array(PermissionSchema),
562
577
  visibleForumIds: z.array(IdSchema),
578
+ minMembers: z.number().int().nullable(),
579
+ maxMembers: z.number().int().nullable(),
580
+ memberCount: z.number().int(),
563
581
  });
564
582
  const CreateGroupSchema = z.object({
565
583
  name: z.string().min(1).max(100),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roundtable-bb/sdk",
3
- "version": "0.1.38",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"