@roundtable-bb/sdk 0.1.32 → 0.1.34
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 +45 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,9 +24,6 @@ type ApiError = z.infer<typeof ErrorSchema>;
|
|
|
24
24
|
declare const TenantIdParamsSchema: z.ZodObject<{
|
|
25
25
|
tenantId: z.ZodCoercedNumber<unknown>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
-
declare const TenantUuidParamsSchema: z.ZodObject<{
|
|
28
|
-
tenantId: z.ZodUUID;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
27
|
declare const TenantCategoryIdParamsSchema: z.ZodObject<{
|
|
31
28
|
tenantId: z.ZodCoercedNumber<unknown>;
|
|
32
29
|
categoryId: z.ZodUUID;
|
|
@@ -59,6 +56,9 @@ declare const TenantUserIdParamsSchema: z.ZodObject<{
|
|
|
59
56
|
declare const NotificationIdParamsSchema: z.ZodObject<{
|
|
60
57
|
notificationId: z.ZodUUID;
|
|
61
58
|
}, z.core.$strip>;
|
|
59
|
+
declare const MessageIdParamsSchema: z.ZodObject<{
|
|
60
|
+
messageId: z.ZodUUID;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
62
|
declare const UserIdParamsSchema: z.ZodObject<{
|
|
63
63
|
userId: z.ZodUUID;
|
|
64
64
|
}, z.core.$strip>;
|
|
@@ -69,7 +69,6 @@ declare const PlatformSettingKeyParamsSchema: z.ZodObject<{
|
|
|
69
69
|
key: z.ZodString;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
type TenantIdParams = z.infer<typeof TenantIdParamsSchema>;
|
|
72
|
-
type TenantUuidParams = z.infer<typeof TenantUuidParamsSchema>;
|
|
73
72
|
type TenantCategoryIdParams = z.infer<typeof TenantCategoryIdParamsSchema>;
|
|
74
73
|
type TenantForumIdParams = z.infer<typeof TenantForumIdParamsSchema>;
|
|
75
74
|
type TenantThreadIdParams = z.infer<typeof TenantThreadIdParamsSchema>;
|
|
@@ -78,6 +77,7 @@ type TenantThreadPostIdParams = z.infer<typeof TenantThreadPostIdParamsSchema>;
|
|
|
78
77
|
type TenantGroupIdParams = z.infer<typeof TenantGroupIdParamsSchema>;
|
|
79
78
|
type TenantUserIdParams = z.infer<typeof TenantUserIdParamsSchema>;
|
|
80
79
|
type NotificationIdParams = z.infer<typeof NotificationIdParamsSchema>;
|
|
80
|
+
type MessageIdParams = z.infer<typeof MessageIdParamsSchema>;
|
|
81
81
|
type UserIdParams = z.infer<typeof UserIdParamsSchema>;
|
|
82
82
|
type KeyIdParams = z.infer<typeof KeyIdParamsSchema>;
|
|
83
83
|
type PlatformSettingKeyParams = z.infer<typeof PlatformSettingKeyParamsSchema>;
|
|
@@ -357,6 +357,39 @@ declare const NotificationCountSchema: z.ZodObject<{
|
|
|
357
357
|
}, z.core.$strip>;
|
|
358
358
|
type NotificationCount = z.infer<typeof NotificationCountSchema>;
|
|
359
359
|
|
|
360
|
+
declare const MessageSchema: z.ZodObject<{
|
|
361
|
+
id: z.ZodUUID;
|
|
362
|
+
senderId: z.ZodUUID;
|
|
363
|
+
recipientId: z.ZodUUID;
|
|
364
|
+
tenantId: z.ZodNullable<z.ZodNumber>;
|
|
365
|
+
body: z.ZodString;
|
|
366
|
+
readAt: z.ZodNullable<z.ZodISODateTime>;
|
|
367
|
+
createdAt: z.ZodISODateTime;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
declare const SendMessageBodySchema: z.ZodObject<{
|
|
370
|
+
recipientId: z.ZodUUID;
|
|
371
|
+
body: z.ZodString;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
declare const ConversationSummarySchema: z.ZodObject<{
|
|
374
|
+
userId: z.ZodUUID;
|
|
375
|
+
lastMessage: z.ZodObject<{
|
|
376
|
+
id: z.ZodUUID;
|
|
377
|
+
senderId: z.ZodUUID;
|
|
378
|
+
recipientId: z.ZodUUID;
|
|
379
|
+
tenantId: z.ZodNullable<z.ZodNumber>;
|
|
380
|
+
body: z.ZodString;
|
|
381
|
+
readAt: z.ZodNullable<z.ZodISODateTime>;
|
|
382
|
+
createdAt: z.ZodISODateTime;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
unreadCount: z.ZodNumber;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
declare const MessageCountSchema: z.ZodObject<{
|
|
387
|
+
unread: z.ZodNumber;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
type Message = z.infer<typeof MessageSchema>;
|
|
390
|
+
type SendMessageBody = z.infer<typeof SendMessageBodySchema>;
|
|
391
|
+
type ConversationSummary = z.infer<typeof ConversationSummarySchema>;
|
|
392
|
+
|
|
360
393
|
declare const ApiKeySchema: z.ZodObject<{
|
|
361
394
|
id: z.ZodUUID;
|
|
362
395
|
name: z.ZodString;
|
|
@@ -435,6 +468,11 @@ declare const CreateTenantSchema: z.ZodObject<{
|
|
|
435
468
|
name: z.ZodString;
|
|
436
469
|
slug: z.ZodString;
|
|
437
470
|
}, z.core.$strip>;
|
|
471
|
+
declare const UpdateTenantSchema: z.ZodObject<{
|
|
472
|
+
name: z.ZodOptional<z.ZodString>;
|
|
473
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
474
|
+
customDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
}, z.core.$strip>;
|
|
438
476
|
declare const SetCustomDomainSchema: z.ZodObject<{
|
|
439
477
|
domain: z.ZodNullable<z.ZodString>;
|
|
440
478
|
}, z.core.$strip>;
|
|
@@ -465,6 +503,7 @@ declare const TenantTokenSchema: z.ZodObject<{
|
|
|
465
503
|
type OwnedTenant = z.infer<typeof OwnedTenantSchema>;
|
|
466
504
|
type Tenant = z.infer<typeof TenantSchema>;
|
|
467
505
|
type CreateTenant = z.infer<typeof CreateTenantSchema>;
|
|
506
|
+
type UpdateTenant = z.infer<typeof UpdateTenantSchema>;
|
|
468
507
|
type SetCustomDomain = z.infer<typeof SetCustomDomainSchema>;
|
|
469
508
|
type TenantToken = z.infer<typeof TenantTokenSchema>;
|
|
470
509
|
type TenantOptions = z.infer<typeof TenantOptionsSchema>;
|
|
@@ -1154,5 +1193,5 @@ declare class RoundtableClient {
|
|
|
1154
1193
|
}): Promise<Thread>;
|
|
1155
1194
|
}
|
|
1156
1195
|
|
|
1157
|
-
export { ApiKeySchema, AssignablePermissionSchema, BackupPayloadSchema, BackupQuerySchema, CategorySchema, CreateApiKeySchema, CreateCategorySchema, CreateForumSchema, CreateGroupSchema, CreatePostSchema, CreateTenantSchema, CreateThreadSchema, CreatedApiKeySchema, ErrorSchema, ForumSchema, GrantPlatformOwnerSchema, GroupMemberSchema, GroupSchema, IdSchema, KeyIdParamsSchema, NotificationCountSchema, NotificationIdParamsSchema, NotificationSchema, NotificationTypeSchema, OwnedTenantSchema, PERMISSIONS, PaginatedResponseSchema, PaginationQuerySchema, PermissionSchema, PlatformSettingKeyParamsSchema, PlatformSettingSchema, PostSchema, PostsQuerySchema, ReorderCategorySchema, ReorderForumSchema, ReorderGroupSchema, RestoreErrorSchema, RestoreTenantResponseSchema, RestoreTenantSchema, RoundtableClient, SearchQuerySchema, SearchResponseSchema, SearchResultSchema, SearchResultTypeSchema, SetCustomDomainSchema, SetGroupForumsSchema, SetGroupPermissionsSchema, SetTenantOptionsSchema, SetThreadReadStatusSchema, SetUserGroupsSchema, TenantBackupSchema, TenantCategoryIdParamsSchema, TenantForumIdParamsSchema, TenantGroupIdParamsSchema, TenantIdParamsSchema, TenantOptionsSchema, TenantOwnerSchema, TenantPostIdParamsSchema, TenantSchema, TenantThreadIdParamsSchema, TenantThreadPostIdParamsSchema, TenantTokenSchema, TenantUserIdParamsSchema,
|
|
1158
|
-
export type { ApiError, ApiKey, BackupCategory, BackupData, BackupGroup, BackupMembership, BackupPayload, BackupPost, BackupQuery, BackupSettings, BackupThread, Category, CreateApiKey, CreateCategory, CreateForum, CreateGroup, CreatePost, CreateTenant, CreateThread, CreatedApiKey, Forum, GrantPlatformOwner, Group, GroupMember, Id, KeyIdParams, Notification, NotificationCount, NotificationIdParams, NotificationType, OwnedTenant, PaginatedResponse, PaginationQuery, Permission, PlatformSetting, PlatformSettingKeyParams, Post, PostsQuery, ReorderCategory, ReorderForum, ReorderGroup, RestoreError, RestoreTenant, RestoreTenantResponse, RoundtableClientOpts, SearchQuery, SearchResponse, SearchResult, SearchResultType, SetCustomDomain, SetGroupForums, SetGroupPermissions, SetTenantOptions, SetThreadReadStatus, SetUserGroups, Tenant, TenantBackup, TenantCategoryIdParams, TenantForumIdParams, TenantGroupIdParams, TenantIdParams, TenantOptions, TenantOwner, TenantPostIdParams, TenantThreadIdParams, TenantThreadPostIdParams, TenantToken, TenantUserIdParams,
|
|
1196
|
+
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, SetCustomDomainSchema, 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 };
|
|
1197
|
+
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, 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, SetCustomDomain, 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 };
|