@roundtable-bb/sdk 0.1.32 → 0.1.33

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +45 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -59,6 +59,9 @@ declare const TenantUserIdParamsSchema: z.ZodObject<{
59
59
  declare const NotificationIdParamsSchema: z.ZodObject<{
60
60
  notificationId: z.ZodUUID;
61
61
  }, z.core.$strip>;
62
+ declare const MessageIdParamsSchema: z.ZodObject<{
63
+ messageId: z.ZodUUID;
64
+ }, z.core.$strip>;
62
65
  declare const UserIdParamsSchema: z.ZodObject<{
63
66
  userId: z.ZodUUID;
64
67
  }, z.core.$strip>;
@@ -78,6 +81,7 @@ type TenantThreadPostIdParams = z.infer<typeof TenantThreadPostIdParamsSchema>;
78
81
  type TenantGroupIdParams = z.infer<typeof TenantGroupIdParamsSchema>;
79
82
  type TenantUserIdParams = z.infer<typeof TenantUserIdParamsSchema>;
80
83
  type NotificationIdParams = z.infer<typeof NotificationIdParamsSchema>;
84
+ type MessageIdParams = z.infer<typeof MessageIdParamsSchema>;
81
85
  type UserIdParams = z.infer<typeof UserIdParamsSchema>;
82
86
  type KeyIdParams = z.infer<typeof KeyIdParamsSchema>;
83
87
  type PlatformSettingKeyParams = z.infer<typeof PlatformSettingKeyParamsSchema>;
@@ -357,6 +361,39 @@ declare const NotificationCountSchema: z.ZodObject<{
357
361
  }, z.core.$strip>;
358
362
  type NotificationCount = z.infer<typeof NotificationCountSchema>;
359
363
 
364
+ declare const MessageSchema: z.ZodObject<{
365
+ id: z.ZodUUID;
366
+ senderId: z.ZodUUID;
367
+ recipientId: z.ZodUUID;
368
+ tenantId: z.ZodNullable<z.ZodNumber>;
369
+ body: z.ZodString;
370
+ readAt: z.ZodNullable<z.ZodISODateTime>;
371
+ createdAt: z.ZodISODateTime;
372
+ }, z.core.$strip>;
373
+ declare const SendMessageBodySchema: z.ZodObject<{
374
+ recipientId: z.ZodUUID;
375
+ body: z.ZodString;
376
+ }, z.core.$strip>;
377
+ declare const ConversationSummarySchema: z.ZodObject<{
378
+ userId: z.ZodUUID;
379
+ lastMessage: z.ZodObject<{
380
+ id: z.ZodUUID;
381
+ senderId: z.ZodUUID;
382
+ recipientId: z.ZodUUID;
383
+ tenantId: z.ZodNullable<z.ZodNumber>;
384
+ body: z.ZodString;
385
+ readAt: z.ZodNullable<z.ZodISODateTime>;
386
+ createdAt: z.ZodISODateTime;
387
+ }, z.core.$strip>;
388
+ unreadCount: z.ZodNumber;
389
+ }, z.core.$strip>;
390
+ declare const MessageCountSchema: z.ZodObject<{
391
+ unread: z.ZodNumber;
392
+ }, z.core.$strip>;
393
+ type Message = z.infer<typeof MessageSchema>;
394
+ type SendMessageBody = z.infer<typeof SendMessageBodySchema>;
395
+ type ConversationSummary = z.infer<typeof ConversationSummarySchema>;
396
+
360
397
  declare const ApiKeySchema: z.ZodObject<{
361
398
  id: z.ZodUUID;
362
399
  name: z.ZodString;
@@ -435,6 +472,11 @@ declare const CreateTenantSchema: z.ZodObject<{
435
472
  name: z.ZodString;
436
473
  slug: z.ZodString;
437
474
  }, z.core.$strip>;
475
+ declare const UpdateTenantSchema: z.ZodObject<{
476
+ name: z.ZodOptional<z.ZodString>;
477
+ slug: z.ZodOptional<z.ZodString>;
478
+ customDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ }, z.core.$strip>;
438
480
  declare const SetCustomDomainSchema: z.ZodObject<{
439
481
  domain: z.ZodNullable<z.ZodString>;
440
482
  }, z.core.$strip>;
@@ -465,6 +507,7 @@ declare const TenantTokenSchema: z.ZodObject<{
465
507
  type OwnedTenant = z.infer<typeof OwnedTenantSchema>;
466
508
  type Tenant = z.infer<typeof TenantSchema>;
467
509
  type CreateTenant = z.infer<typeof CreateTenantSchema>;
510
+ type UpdateTenant = z.infer<typeof UpdateTenantSchema>;
468
511
  type SetCustomDomain = z.infer<typeof SetCustomDomainSchema>;
469
512
  type TenantToken = z.infer<typeof TenantTokenSchema>;
470
513
  type TenantOptions = z.infer<typeof TenantOptionsSchema>;
@@ -1154,5 +1197,5 @@ declare class RoundtableClient {
1154
1197
  }): Promise<Thread>;
1155
1198
  }
1156
1199
 
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, TenantUuidParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema, UserSearchResultSchema, UserSummarySchema };
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, TenantUuidParams, Thread, ThreadReadStatus, TransferTenantOwner, UpdateCategory, UpdateForum, UpdateGroup, UpdatePlatformSetting, UpdatePost, UpdateThread, UpdateUserProfile, UserIdParams, UserMembership, UserProfile, UserSearchResult, UserSummary };
1200
+ 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, TenantUuidParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateTenantSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema, UserSearchResultSchema, UserSummarySchema };
1201
+ 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, TenantUuidParams, Thread, ThreadReadStatus, TransferTenantOwner, UpdateCategory, UpdateForum, UpdateGroup, UpdatePlatformSetting, UpdatePost, UpdateTenant, UpdateThread, UpdateUserProfile, UserIdParams, UserMembership, UserProfile, UserSearchResult, UserSummary };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roundtable-bb/sdk",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"