@roundtable-bb/sdk 0.1.41 → 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 +28 -2
- package/dist/index.js +37 -27
- 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;
|
|
@@ -165,6 +189,7 @@ declare const CreateForumSchema: z.ZodObject<{
|
|
|
165
189
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
166
190
|
}, z.core.$strip>;
|
|
167
191
|
declare const UpdateForumSchema: z.ZodObject<{
|
|
192
|
+
categoryId: z.ZodOptional<z.ZodUUID>;
|
|
168
193
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
169
194
|
name: z.ZodOptional<z.ZodString>;
|
|
170
195
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -175,6 +200,7 @@ declare const ReorderForumSchema: z.ZodArray<z.ZodObject<{
|
|
|
175
200
|
position: z.ZodNumber;
|
|
176
201
|
}, z.core.$strip>>;
|
|
177
202
|
type Forum = z.infer<typeof ForumSchema>;
|
|
203
|
+
type ForumLastThread = z.infer<typeof ForumLastThreadSchema>;
|
|
178
204
|
type CreateForum = z.infer<typeof CreateForumSchema>;
|
|
179
205
|
type UpdateForum = z.infer<typeof UpdateForumSchema>;
|
|
180
206
|
type ReorderForum = z.infer<typeof ReorderForumSchema>;
|
|
@@ -1266,5 +1292,5 @@ declare class RoundtableClient {
|
|
|
1266
1292
|
}): Promise<Thread>;
|
|
1267
1293
|
}
|
|
1268
1294
|
|
|
1269
|
-
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 };
|
|
1270
|
-
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,32 +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
|
-
parentId: IdSchema.nullable().optional(),
|
|
498
|
-
name: z.string().min(1).max(200).optional(),
|
|
499
|
-
description: z.string().max(1000).nullable().optional(),
|
|
500
|
-
isHidden: z.boolean().optional(),
|
|
501
|
-
});
|
|
502
|
-
const ReorderForumSchema = z.array(z.object({ id: IdSchema, position: z.number().int().min(0) }));
|
|
503
|
-
|
|
504
478
|
const ThreadSchema = z.object({
|
|
505
479
|
id: IdSchema,
|
|
506
480
|
forumId: IdSchema,
|
|
@@ -530,6 +504,42 @@ const SetThreadReadStatusSchema = z.object({
|
|
|
530
504
|
lastReadPostId: IdSchema,
|
|
531
505
|
});
|
|
532
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
|
+
|
|
533
543
|
const PostSchema = z.object({
|
|
534
544
|
id: IdSchema,
|
|
535
545
|
threadId: IdSchema,
|
|
@@ -812,4 +822,4 @@ const GrantPlatformOwnerSchema = z.object({
|
|
|
812
822
|
userId: z.uuid(),
|
|
813
823
|
});
|
|
814
824
|
|
|
815
|
-
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 };
|