@roundtable-bb/sdk 0.1.38 → 0.1.40
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 +21 -0
- package/dist/index.js +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -302,6 +302,9 @@ declare const GroupSchema: z.ZodObject<{
|
|
|
302
302
|
"group.manage_protected": "group.manage_protected";
|
|
303
303
|
}>>;
|
|
304
304
|
visibleForumIds: z.ZodArray<z.ZodUUID>;
|
|
305
|
+
minMembers: z.ZodNullable<z.ZodNumber>;
|
|
306
|
+
maxMembers: z.ZodNullable<z.ZodNumber>;
|
|
307
|
+
memberCount: z.ZodNumber;
|
|
305
308
|
}, z.core.$strip>;
|
|
306
309
|
declare const CreateGroupSchema: z.ZodObject<{
|
|
307
310
|
name: z.ZodString;
|
|
@@ -993,6 +996,24 @@ declare class RoundtableClient {
|
|
|
993
996
|
listConversations(options?: {
|
|
994
997
|
authMethod?: AuthMethod;
|
|
995
998
|
}): Promise<ConversationSummary[]>;
|
|
999
|
+
/** List latest posts across all visible forums */
|
|
1000
|
+
listFeedPosts(params: {
|
|
1001
|
+
tenantId: string;
|
|
1002
|
+
}, query?: {
|
|
1003
|
+
cursor?: Id;
|
|
1004
|
+
limit?: number;
|
|
1005
|
+
}, options?: {
|
|
1006
|
+
authMethod?: AuthMethod;
|
|
1007
|
+
}): Promise<PaginatedResponse<Post>>;
|
|
1008
|
+
/** List latest threads across all visible forums */
|
|
1009
|
+
listFeedThreads(params: {
|
|
1010
|
+
tenantId: string;
|
|
1011
|
+
}, query?: {
|
|
1012
|
+
cursor?: Id;
|
|
1013
|
+
limit?: number;
|
|
1014
|
+
}, options?: {
|
|
1015
|
+
authMethod?: AuthMethod;
|
|
1016
|
+
}): Promise<PaginatedResponse<Thread>>;
|
|
996
1017
|
/** List visible forums for the requesting user */
|
|
997
1018
|
listForums(params: {
|
|
998
1019
|
tenantId: string;
|
package/dist/index.js
CHANGED
|
@@ -204,6 +204,14 @@ 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 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
|
+
}
|
|
207
215
|
/** List visible forums for the requesting user */
|
|
208
216
|
listForums(params, options) {
|
|
209
217
|
return request(this.opts, 'GET', `/tenants/${params.tenantId}/forums`, { ...options, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
|
|
@@ -560,6 +568,9 @@ const GroupSchema = z.object({
|
|
|
560
568
|
isProtected: z.boolean(),
|
|
561
569
|
permissions: z.array(PermissionSchema),
|
|
562
570
|
visibleForumIds: z.array(IdSchema),
|
|
571
|
+
minMembers: z.number().int().nullable(),
|
|
572
|
+
maxMembers: z.number().int().nullable(),
|
|
573
|
+
memberCount: z.number().int(),
|
|
563
574
|
});
|
|
564
575
|
const CreateGroupSchema = z.object({
|
|
565
576
|
name: z.string().min(1).max(100),
|