@roundtable-bb/sdk 0.1.42 → 0.1.43
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 +27 -2
- package/dist/index.js +37 -28
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -146,6 +146,18 @@ type CreateCategory = z.infer<typeof CreateCategorySchema>;
|
|
|
146
146
|
type UpdateCategory = z.infer<typeof UpdateCategorySchema>;
|
|
147
147
|
type ReorderCategory = z.infer<typeof ReorderCategorySchema>;
|
|
148
148
|
|
|
149
|
+
declare const ForumLastThreadSchema: z.ZodObject<{
|
|
150
|
+
id: z.ZodUUID;
|
|
151
|
+
createdAt: z.ZodISODateTime;
|
|
152
|
+
authorId: z.ZodUUID;
|
|
153
|
+
author: z.ZodObject<{
|
|
154
|
+
userId: z.ZodUUID;
|
|
155
|
+
displayName: z.ZodString;
|
|
156
|
+
avatarUrl: z.ZodNullable<z.ZodURL>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
title: z.ZodString;
|
|
159
|
+
lastPostAt: z.ZodNullable<z.ZodISODateTime>;
|
|
160
|
+
}, z.core.$strip>;
|
|
149
161
|
declare const ForumSchema: z.ZodObject<{
|
|
150
162
|
id: z.ZodUUID;
|
|
151
163
|
categoryId: z.ZodUUID;
|
|
@@ -156,6 +168,18 @@ declare const ForumSchema: z.ZodObject<{
|
|
|
156
168
|
threadCount: z.ZodNumber;
|
|
157
169
|
isHidden: z.ZodBoolean;
|
|
158
170
|
createdAt: z.ZodISODateTime;
|
|
171
|
+
lastThread: z.ZodNullable<z.ZodObject<{
|
|
172
|
+
id: z.ZodUUID;
|
|
173
|
+
createdAt: z.ZodISODateTime;
|
|
174
|
+
authorId: z.ZodUUID;
|
|
175
|
+
author: z.ZodObject<{
|
|
176
|
+
userId: z.ZodUUID;
|
|
177
|
+
displayName: z.ZodString;
|
|
178
|
+
avatarUrl: z.ZodNullable<z.ZodURL>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
title: z.ZodString;
|
|
181
|
+
lastPostAt: z.ZodNullable<z.ZodISODateTime>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
159
183
|
}, z.core.$strip>;
|
|
160
184
|
declare const CreateForumSchema: z.ZodObject<{
|
|
161
185
|
categoryId: z.ZodUUID;
|
|
@@ -176,6 +200,7 @@ declare const ReorderForumSchema: z.ZodArray<z.ZodObject<{
|
|
|
176
200
|
position: z.ZodNumber;
|
|
177
201
|
}, z.core.$strip>>;
|
|
178
202
|
type Forum = z.infer<typeof ForumSchema>;
|
|
203
|
+
type ForumLastThread = z.infer<typeof ForumLastThreadSchema>;
|
|
179
204
|
type CreateForum = z.infer<typeof CreateForumSchema>;
|
|
180
205
|
type UpdateForum = z.infer<typeof UpdateForumSchema>;
|
|
181
206
|
type ReorderForum = z.infer<typeof ReorderForumSchema>;
|
|
@@ -1267,5 +1292,5 @@ declare class RoundtableClient {
|
|
|
1267
1292
|
}): Promise<Thread>;
|
|
1268
1293
|
}
|
|
1269
1294
|
|
|
1270
|
-
export { ApiKeySchema, AssignablePermissionSchema, BackupPayloadSchema, BackupQuerySchema, CategorySchema, ConversationSummarySchema, CreateApiKeySchema, CreateCategorySchema, CreateForumSchema, CreateGroupSchema, CreatePostSchema, CreateTenantSchema, CreateThreadSchema, CreatedApiKeySchema, ErrorSchema, ForumSchema, GrantPlatformOwnerSchema, GroupMemberSchema, GroupSchema, IdSchema, KeyIdParamsSchema, MessageCountSchema, MessageIdParamsSchema, MessageSchema, NotificationCountSchema, NotificationIdParamsSchema, NotificationSchema, NotificationTypeSchema, OwnedTenantSchema, PERMISSIONS, PaginatedResponseSchema, PaginationQuerySchema, PermissionSchema, PlatformSettingKeyParamsSchema, PlatformSettingSchema, PostSchema, PostsQuerySchema, ReorderCategorySchema, ReorderForumSchema, ReorderGroupSchema, RestoreErrorSchema, RestoreTenantResponseSchema, RestoreTenantSchema, RoundtableClient, SearchQuerySchema, SearchResponseSchema, SearchResultSchema, SearchResultTypeSchema, SendMessageBodySchema, SetGroupForumsSchema, SetGroupPermissionsSchema, SetTenantOptionsSchema, SetThreadReadStatusSchema, SetUserGroupsSchema, TenantBackupSchema, TenantCategoryIdParamsSchema, TenantForumIdParamsSchema, TenantGroupIdParamsSchema, TenantIdParamsSchema, TenantOptionsSchema, TenantOwnerSchema, TenantPostIdParamsSchema, TenantSchema, TenantThreadIdParamsSchema, TenantThreadPostIdParamsSchema, TenantTokenSchema, TenantUserIdParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateTenantSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema, UserSearchResultSchema, UserSummarySchema };
|
|
1271
|
-
export type { ApiError, ApiKey, BackupCategory, BackupData, BackupGroup, BackupMembership, BackupPayload, BackupPost, BackupQuery, BackupSettings, BackupThread, Category, ConversationSummary, CreateApiKey, CreateCategory, CreateForum, CreateGroup, CreatePost, CreateTenant, CreateThread, CreatedApiKey, Forum, GrantPlatformOwner, Group, GroupMember, Id, KeyIdParams, Message, MessageCount, MessageIdParams, Notification, NotificationCount, NotificationIdParams, NotificationType, OwnedTenant, PaginatedResponse, PaginationQuery, Permission, PlatformSetting, PlatformSettingKeyParams, Post, PostsQuery, ReorderCategory, ReorderForum, ReorderGroup, RestoreError, RestoreTenant, RestoreTenantResponse, RoundtableClientOpts, SearchQuery, SearchResponse, SearchResult, SearchResultType, SendMessageBody, SetGroupForums, SetGroupPermissions, SetTenantOptions, SetThreadReadStatus, SetUserGroups, Tenant, TenantBackup, TenantCategoryIdParams, TenantForumIdParams, TenantGroupIdParams, TenantIdParams, TenantOptions, TenantOwner, TenantPostIdParams, TenantThreadIdParams, TenantThreadPostIdParams, TenantToken, TenantUserIdParams, Thread, ThreadReadStatus, TransferTenantOwner, UpdateCategory, UpdateForum, UpdateGroup, UpdatePlatformSetting, UpdatePost, UpdateTenant, UpdateThread, UpdateUserProfile, UserIdParams, UserMembership, UserProfile, UserSearchResult, UserSummary };
|
|
1295
|
+
export { ApiKeySchema, AssignablePermissionSchema, BackupPayloadSchema, BackupQuerySchema, CategorySchema, ConversationSummarySchema, CreateApiKeySchema, CreateCategorySchema, CreateForumSchema, CreateGroupSchema, CreatePostSchema, CreateTenantSchema, CreateThreadSchema, CreatedApiKeySchema, ErrorSchema, ForumLastThreadSchema, ForumSchema, GrantPlatformOwnerSchema, GroupMemberSchema, GroupSchema, IdSchema, KeyIdParamsSchema, MessageCountSchema, MessageIdParamsSchema, MessageSchema, NotificationCountSchema, NotificationIdParamsSchema, NotificationSchema, NotificationTypeSchema, OwnedTenantSchema, PERMISSIONS, PaginatedResponseSchema, PaginationQuerySchema, PermissionSchema, PlatformSettingKeyParamsSchema, PlatformSettingSchema, PostSchema, PostsQuerySchema, ReorderCategorySchema, ReorderForumSchema, ReorderGroupSchema, RestoreErrorSchema, RestoreTenantResponseSchema, RestoreTenantSchema, RoundtableClient, SearchQuerySchema, SearchResponseSchema, SearchResultSchema, SearchResultTypeSchema, SendMessageBodySchema, SetGroupForumsSchema, SetGroupPermissionsSchema, SetTenantOptionsSchema, SetThreadReadStatusSchema, SetUserGroupsSchema, TenantBackupSchema, TenantCategoryIdParamsSchema, TenantForumIdParamsSchema, TenantGroupIdParamsSchema, TenantIdParamsSchema, TenantOptionsSchema, TenantOwnerSchema, TenantPostIdParamsSchema, TenantSchema, TenantThreadIdParamsSchema, TenantThreadPostIdParamsSchema, TenantTokenSchema, TenantUserIdParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateTenantSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema, UserSearchResultSchema, UserSummarySchema };
|
|
1296
|
+
export type { ApiError, ApiKey, BackupCategory, BackupData, BackupGroup, BackupMembership, BackupPayload, BackupPost, BackupQuery, BackupSettings, BackupThread, Category, ConversationSummary, CreateApiKey, CreateCategory, CreateForum, CreateGroup, CreatePost, CreateTenant, CreateThread, CreatedApiKey, Forum, ForumLastThread, GrantPlatformOwner, Group, GroupMember, Id, KeyIdParams, Message, MessageCount, MessageIdParams, Notification, NotificationCount, NotificationIdParams, NotificationType, OwnedTenant, PaginatedResponse, PaginationQuery, Permission, PlatformSetting, PlatformSettingKeyParams, Post, PostsQuery, ReorderCategory, ReorderForum, ReorderGroup, RestoreError, RestoreTenant, RestoreTenantResponse, RoundtableClientOpts, SearchQuery, SearchResponse, SearchResult, SearchResultType, SendMessageBody, SetGroupForums, SetGroupPermissions, SetTenantOptions, SetThreadReadStatus, SetUserGroups, Tenant, TenantBackup, TenantCategoryIdParams, TenantForumIdParams, TenantGroupIdParams, TenantIdParams, TenantOptions, TenantOwner, TenantPostIdParams, TenantThreadIdParams, TenantThreadPostIdParams, TenantToken, TenantUserIdParams, Thread, ThreadReadStatus, TransferTenantOwner, UpdateCategory, UpdateForum, UpdateGroup, UpdatePlatformSetting, UpdatePost, UpdateTenant, UpdateThread, UpdateUserProfile, UserIdParams, UserMembership, UserProfile, UserSearchResult, UserSummary };
|
package/dist/index.js
CHANGED
|
@@ -475,33 +475,6 @@ const CreateCategorySchema = z.object({
|
|
|
475
475
|
const UpdateCategorySchema = CreateCategorySchema.partial();
|
|
476
476
|
const ReorderCategorySchema = z.array(z.object({ id: IdSchema, position: z.number().int().min(0) }));
|
|
477
477
|
|
|
478
|
-
const ForumSchema = z.object({
|
|
479
|
-
id: IdSchema,
|
|
480
|
-
categoryId: IdSchema,
|
|
481
|
-
parentId: IdSchema.nullable(),
|
|
482
|
-
name: z.string(),
|
|
483
|
-
description: z.string().nullable(),
|
|
484
|
-
position: z.number().int(),
|
|
485
|
-
threadCount: z.number().int(),
|
|
486
|
-
isHidden: z.boolean(),
|
|
487
|
-
createdAt: z.iso.datetime(),
|
|
488
|
-
});
|
|
489
|
-
const CreateForumSchema = z.object({
|
|
490
|
-
categoryId: IdSchema,
|
|
491
|
-
parentId: IdSchema.nullable().optional(),
|
|
492
|
-
name: z.string().min(1).max(200),
|
|
493
|
-
description: z.string().max(1000).nullable().optional(),
|
|
494
|
-
isHidden: z.boolean().optional(),
|
|
495
|
-
});
|
|
496
|
-
const UpdateForumSchema = z.object({
|
|
497
|
-
categoryId: IdSchema.optional(),
|
|
498
|
-
parentId: IdSchema.nullable().optional(),
|
|
499
|
-
name: z.string().min(1).max(200).optional(),
|
|
500
|
-
description: z.string().max(1000).nullable().optional(),
|
|
501
|
-
isHidden: z.boolean().optional(),
|
|
502
|
-
});
|
|
503
|
-
const ReorderForumSchema = z.array(z.object({ id: IdSchema, position: z.number().int().min(0) }));
|
|
504
|
-
|
|
505
478
|
const ThreadSchema = z.object({
|
|
506
479
|
id: IdSchema,
|
|
507
480
|
forumId: IdSchema,
|
|
@@ -531,6 +504,42 @@ const SetThreadReadStatusSchema = z.object({
|
|
|
531
504
|
lastReadPostId: IdSchema,
|
|
532
505
|
});
|
|
533
506
|
|
|
507
|
+
const ForumLastThreadSchema = ThreadSchema.pick({
|
|
508
|
+
id: true,
|
|
509
|
+
title: true,
|
|
510
|
+
authorId: true,
|
|
511
|
+
author: true,
|
|
512
|
+
lastPostAt: true,
|
|
513
|
+
createdAt: true,
|
|
514
|
+
});
|
|
515
|
+
const ForumSchema = z.object({
|
|
516
|
+
id: IdSchema,
|
|
517
|
+
categoryId: IdSchema,
|
|
518
|
+
parentId: IdSchema.nullable(),
|
|
519
|
+
name: z.string(),
|
|
520
|
+
description: z.string().nullable(),
|
|
521
|
+
position: z.number().int(),
|
|
522
|
+
threadCount: z.number().int(),
|
|
523
|
+
isHidden: z.boolean(),
|
|
524
|
+
createdAt: z.iso.datetime(),
|
|
525
|
+
lastThread: ForumLastThreadSchema.nullable(),
|
|
526
|
+
});
|
|
527
|
+
const CreateForumSchema = z.object({
|
|
528
|
+
categoryId: IdSchema,
|
|
529
|
+
parentId: IdSchema.nullable().optional(),
|
|
530
|
+
name: z.string().min(1).max(200),
|
|
531
|
+
description: z.string().max(1000).nullable().optional(),
|
|
532
|
+
isHidden: z.boolean().optional(),
|
|
533
|
+
});
|
|
534
|
+
const UpdateForumSchema = z.object({
|
|
535
|
+
categoryId: IdSchema.optional(),
|
|
536
|
+
parentId: IdSchema.nullable().optional(),
|
|
537
|
+
name: z.string().min(1).max(200).optional(),
|
|
538
|
+
description: z.string().max(1000).nullable().optional(),
|
|
539
|
+
isHidden: z.boolean().optional(),
|
|
540
|
+
});
|
|
541
|
+
const ReorderForumSchema = z.array(z.object({ id: IdSchema, position: z.number().int().min(0) }));
|
|
542
|
+
|
|
534
543
|
const PostSchema = z.object({
|
|
535
544
|
id: IdSchema,
|
|
536
545
|
threadId: IdSchema,
|
|
@@ -813,4 +822,4 @@ const GrantPlatformOwnerSchema = z.object({
|
|
|
813
822
|
userId: z.uuid(),
|
|
814
823
|
});
|
|
815
824
|
|
|
816
|
-
export { ApiKeySchema, AssignablePermissionSchema, BackupPayloadSchema, BackupQuerySchema, CategorySchema, ConversationSummarySchema, CreateApiKeySchema, CreateCategorySchema, CreateForumSchema, CreateGroupSchema, CreatePostSchema, CreateTenantSchema, CreateThreadSchema, CreatedApiKeySchema, ErrorSchema, ForumSchema, GrantPlatformOwnerSchema, GroupMemberSchema, GroupSchema, IdSchema, KeyIdParamsSchema, MessageCountSchema, MessageIdParamsSchema, MessageSchema, NotificationCountSchema, NotificationIdParamsSchema, NotificationSchema, NotificationTypeSchema, OwnedTenantSchema, PERMISSIONS, PaginatedResponseSchema, PaginationQuerySchema, PermissionSchema, PlatformSettingKeyParamsSchema, PlatformSettingSchema, PostSchema, PostsQuerySchema, ReorderCategorySchema, ReorderForumSchema, ReorderGroupSchema, RestoreErrorSchema, RestoreTenantResponseSchema, RestoreTenantSchema, RoundtableClient, SearchQuerySchema, SearchResponseSchema, SearchResultSchema, SearchResultTypeSchema, SendMessageBodySchema, SetGroupForumsSchema, SetGroupPermissionsSchema, SetTenantOptionsSchema, SetThreadReadStatusSchema, SetUserGroupsSchema, TenantBackupSchema, TenantCategoryIdParamsSchema, TenantForumIdParamsSchema, TenantGroupIdParamsSchema, TenantIdParamsSchema, TenantOptionsSchema, TenantOwnerSchema, TenantPostIdParamsSchema, TenantSchema, TenantThreadIdParamsSchema, TenantThreadPostIdParamsSchema, TenantTokenSchema, TenantUserIdParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateTenantSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema, UserSearchResultSchema, UserSummarySchema };
|
|
825
|
+
export { ApiKeySchema, AssignablePermissionSchema, BackupPayloadSchema, BackupQuerySchema, CategorySchema, ConversationSummarySchema, CreateApiKeySchema, CreateCategorySchema, CreateForumSchema, CreateGroupSchema, CreatePostSchema, CreateTenantSchema, CreateThreadSchema, CreatedApiKeySchema, ErrorSchema, ForumLastThreadSchema, ForumSchema, GrantPlatformOwnerSchema, GroupMemberSchema, GroupSchema, IdSchema, KeyIdParamsSchema, MessageCountSchema, MessageIdParamsSchema, MessageSchema, NotificationCountSchema, NotificationIdParamsSchema, NotificationSchema, NotificationTypeSchema, OwnedTenantSchema, PERMISSIONS, PaginatedResponseSchema, PaginationQuerySchema, PermissionSchema, PlatformSettingKeyParamsSchema, PlatformSettingSchema, PostSchema, PostsQuerySchema, ReorderCategorySchema, ReorderForumSchema, ReorderGroupSchema, RestoreErrorSchema, RestoreTenantResponseSchema, RestoreTenantSchema, RoundtableClient, SearchQuerySchema, SearchResponseSchema, SearchResultSchema, SearchResultTypeSchema, SendMessageBodySchema, SetGroupForumsSchema, SetGroupPermissionsSchema, SetTenantOptionsSchema, SetThreadReadStatusSchema, SetUserGroupsSchema, TenantBackupSchema, TenantCategoryIdParamsSchema, TenantForumIdParamsSchema, TenantGroupIdParamsSchema, TenantIdParamsSchema, TenantOptionsSchema, TenantOwnerSchema, TenantPostIdParamsSchema, TenantSchema, TenantThreadIdParamsSchema, TenantThreadPostIdParamsSchema, TenantTokenSchema, TenantUserIdParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateTenantSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema, UserSearchResultSchema, UserSummarySchema };
|