@roundtable-bb/sdk 0.1.26 → 0.1.28

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 CHANGED
@@ -1,5 +1,723 @@
1
- import { BackupPayload, NotificationCount, CreateApiKey, CreatedApiKey, CreateCategory, Category, CreateForum, Forum, CreateGroup, Group, CreatePost, Post, CreateTenant, Tenant, CreateThread, Thread, TenantToken, UserProfile, TenantOwner, ThreadReadStatus, UserMembership, GrantPlatformOwner, ApiKey, GroupMember, Id, PaginatedResponse, Notification, PlatformSetting, OwnedTenant, ReorderCategory, RestoreTenant, RestoreTenantResponse, SearchResultType, SearchResponse, SetGroupForums, SetGroupPermissions, SetCustomDomain, SetThreadReadStatus, SetUserGroups, TransferTenantOwner, UpdateCategory, UpdateForum, UpdateGroup, UpdateUserProfile, UpdatePlatformSetting, UpdateThread } from '@roundtable-bb/types';
2
- export * from '@roundtable-bb/types';
1
+ import { z } from 'zod';
2
+
3
+ declare const IdSchema: z.ZodUUID;
4
+ declare const PaginationQuerySchema: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodUUID>;
6
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
7
+ }, z.core.$strip>;
8
+ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
9
+ items: z.ZodArray<T>;
10
+ nextCursor: z.ZodNullable<z.ZodUUID>;
11
+ }, z.core.$strip>;
12
+ declare const ErrorSchema: z.ZodObject<{
13
+ code: z.ZodString;
14
+ message: z.ZodString;
15
+ }, z.core.$strip>;
16
+ type Id = z.infer<typeof IdSchema>;
17
+ type PaginationQuery = z.infer<typeof PaginationQuerySchema>;
18
+ type PaginatedResponse<T> = {
19
+ items: T[];
20
+ nextCursor: string | null;
21
+ };
22
+ type ApiError = z.infer<typeof ErrorSchema>;
23
+
24
+ declare const TenantIdParamsSchema: z.ZodObject<{
25
+ tenantId: z.ZodCoercedNumber<unknown>;
26
+ }, z.core.$strip>;
27
+ declare const TenantUuidParamsSchema: z.ZodObject<{
28
+ tenantId: z.ZodUUID;
29
+ }, z.core.$strip>;
30
+ declare const TenantCategoryIdParamsSchema: z.ZodObject<{
31
+ tenantId: z.ZodCoercedNumber<unknown>;
32
+ categoryId: z.ZodUUID;
33
+ }, z.core.$strip>;
34
+ declare const TenantForumIdParamsSchema: z.ZodObject<{
35
+ tenantId: z.ZodCoercedNumber<unknown>;
36
+ forumId: z.ZodUUID;
37
+ }, z.core.$strip>;
38
+ declare const TenantThreadIdParamsSchema: z.ZodObject<{
39
+ tenantId: z.ZodCoercedNumber<unknown>;
40
+ threadId: z.ZodUUID;
41
+ }, z.core.$strip>;
42
+ declare const TenantPostIdParamsSchema: z.ZodObject<{
43
+ tenantId: z.ZodCoercedNumber<unknown>;
44
+ postId: z.ZodUUID;
45
+ }, z.core.$strip>;
46
+ declare const TenantThreadPostIdParamsSchema: z.ZodObject<{
47
+ tenantId: z.ZodCoercedNumber<unknown>;
48
+ threadId: z.ZodUUID;
49
+ postId: z.ZodUUID;
50
+ }, z.core.$strip>;
51
+ declare const TenantGroupIdParamsSchema: z.ZodObject<{
52
+ tenantId: z.ZodCoercedNumber<unknown>;
53
+ groupId: z.ZodUUID;
54
+ }, z.core.$strip>;
55
+ declare const TenantUserIdParamsSchema: z.ZodObject<{
56
+ tenantId: z.ZodCoercedNumber<unknown>;
57
+ userId: z.ZodUUID;
58
+ }, z.core.$strip>;
59
+ declare const NotificationIdParamsSchema: z.ZodObject<{
60
+ notificationId: z.ZodUUID;
61
+ }, z.core.$strip>;
62
+ declare const UserIdParamsSchema: z.ZodObject<{
63
+ userId: z.ZodUUID;
64
+ }, z.core.$strip>;
65
+ declare const KeyIdParamsSchema: z.ZodObject<{
66
+ keyId: z.ZodUUID;
67
+ }, z.core.$strip>;
68
+ declare const PlatformSettingKeyParamsSchema: z.ZodObject<{
69
+ key: z.ZodString;
70
+ }, z.core.$strip>;
71
+ type TenantIdParams = z.infer<typeof TenantIdParamsSchema>;
72
+ type TenantUuidParams = z.infer<typeof TenantUuidParamsSchema>;
73
+ type TenantCategoryIdParams = z.infer<typeof TenantCategoryIdParamsSchema>;
74
+ type TenantForumIdParams = z.infer<typeof TenantForumIdParamsSchema>;
75
+ type TenantThreadIdParams = z.infer<typeof TenantThreadIdParamsSchema>;
76
+ type TenantPostIdParams = z.infer<typeof TenantPostIdParamsSchema>;
77
+ type TenantThreadPostIdParams = z.infer<typeof TenantThreadPostIdParamsSchema>;
78
+ type TenantGroupIdParams = z.infer<typeof TenantGroupIdParamsSchema>;
79
+ type TenantUserIdParams = z.infer<typeof TenantUserIdParamsSchema>;
80
+ type NotificationIdParams = z.infer<typeof NotificationIdParamsSchema>;
81
+ type UserIdParams = z.infer<typeof UserIdParamsSchema>;
82
+ type KeyIdParams = z.infer<typeof KeyIdParamsSchema>;
83
+ type PlatformSettingKeyParams = z.infer<typeof PlatformSettingKeyParamsSchema>;
84
+
85
+ declare const UserProfileSchema: z.ZodObject<{
86
+ userId: z.ZodUUID;
87
+ displayName: z.ZodString;
88
+ avatarUrl: z.ZodNullable<z.ZodURL>;
89
+ bio: z.ZodNullable<z.ZodString>;
90
+ updatedAt: z.ZodISODateTime;
91
+ }, z.core.$strip>;
92
+ declare const UserMembershipSchema: z.ZodObject<{
93
+ userId: z.ZodUUID;
94
+ groups: z.ZodArray<z.ZodObject<{
95
+ id: z.ZodUUID;
96
+ name: z.ZodString;
97
+ }, z.core.$strip>>;
98
+ }, z.core.$strip>;
99
+ declare const UpdateUserProfileSchema: z.ZodObject<{
100
+ displayName: z.ZodOptional<z.ZodString>;
101
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
102
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ }, z.core.$strip>;
104
+ declare const GroupMemberSchema: z.ZodObject<{
105
+ userId: z.ZodUUID;
106
+ displayName: z.ZodString;
107
+ avatarUrl: z.ZodNullable<z.ZodURL>;
108
+ joinedAt: z.ZodISODateTime;
109
+ }, z.core.$strip>;
110
+ type UserProfile = z.infer<typeof UserProfileSchema>;
111
+ type UserMembership = z.infer<typeof UserMembershipSchema>;
112
+ type UpdateUserProfile = z.infer<typeof UpdateUserProfileSchema>;
113
+ type GroupMember = z.infer<typeof GroupMemberSchema>;
114
+
115
+ declare const CategorySchema: z.ZodObject<{
116
+ id: z.ZodUUID;
117
+ name: z.ZodString;
118
+ description: z.ZodNullable<z.ZodString>;
119
+ position: z.ZodNumber;
120
+ createdAt: z.ZodISODateTime;
121
+ }, z.core.$strip>;
122
+ declare const CreateCategorySchema: z.ZodObject<{
123
+ name: z.ZodString;
124
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ }, z.core.$strip>;
126
+ declare const UpdateCategorySchema: z.ZodObject<{
127
+ name: z.ZodOptional<z.ZodString>;
128
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
129
+ }, z.core.$strip>;
130
+ declare const ReorderCategorySchema: z.ZodArray<z.ZodObject<{
131
+ id: z.ZodUUID;
132
+ position: z.ZodNumber;
133
+ }, z.core.$strip>>;
134
+ type Category = z.infer<typeof CategorySchema>;
135
+ type CreateCategory = z.infer<typeof CreateCategorySchema>;
136
+ type UpdateCategory = z.infer<typeof UpdateCategorySchema>;
137
+ type ReorderCategory = z.infer<typeof ReorderCategorySchema>;
138
+
139
+ declare const ForumSchema: z.ZodObject<{
140
+ id: z.ZodUUID;
141
+ categoryId: z.ZodUUID;
142
+ name: z.ZodString;
143
+ description: z.ZodNullable<z.ZodString>;
144
+ position: z.ZodNumber;
145
+ threadCount: z.ZodNumber;
146
+ isHidden: z.ZodBoolean;
147
+ createdAt: z.ZodISODateTime;
148
+ }, z.core.$strip>;
149
+ declare const CreateForumSchema: z.ZodObject<{
150
+ categoryId: z.ZodUUID;
151
+ name: z.ZodString;
152
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ isHidden: z.ZodOptional<z.ZodBoolean>;
154
+ }, z.core.$strip>;
155
+ declare const UpdateForumSchema: z.ZodObject<{
156
+ name: z.ZodOptional<z.ZodString>;
157
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ isHidden: z.ZodOptional<z.ZodBoolean>;
159
+ }, z.core.$strip>;
160
+ declare const ReorderForumSchema: z.ZodArray<z.ZodObject<{
161
+ id: z.ZodUUID;
162
+ position: z.ZodNumber;
163
+ }, z.core.$strip>>;
164
+ type Forum = z.infer<typeof ForumSchema>;
165
+ type CreateForum = z.infer<typeof CreateForumSchema>;
166
+ type UpdateForum = z.infer<typeof UpdateForumSchema>;
167
+ type ReorderForum = z.infer<typeof ReorderForumSchema>;
168
+
169
+ declare const ThreadSchema: z.ZodObject<{
170
+ id: z.ZodUUID;
171
+ forumId: z.ZodUUID;
172
+ title: z.ZodString;
173
+ authorId: z.ZodUUID;
174
+ author: z.ZodObject<{
175
+ userId: z.ZodUUID;
176
+ displayName: z.ZodString;
177
+ avatarUrl: z.ZodNullable<z.ZodURL>;
178
+ bio: z.ZodNullable<z.ZodString>;
179
+ updatedAt: z.ZodISODateTime;
180
+ }, z.core.$strip>;
181
+ postCount: z.ZodNumber;
182
+ isPinned: z.ZodBoolean;
183
+ isLocked: z.ZodBoolean;
184
+ lastPostAt: z.ZodNullable<z.ZodISODateTime>;
185
+ createdAt: z.ZodISODateTime;
186
+ }, z.core.$strip>;
187
+ declare const CreateThreadSchema: z.ZodObject<{
188
+ title: z.ZodString;
189
+ content: z.ZodString;
190
+ }, z.core.$strip>;
191
+ declare const UpdateThreadSchema: z.ZodObject<{
192
+ title: z.ZodOptional<z.ZodString>;
193
+ isPinned: z.ZodOptional<z.ZodBoolean>;
194
+ isLocked: z.ZodOptional<z.ZodBoolean>;
195
+ forumId: z.ZodOptional<z.ZodUUID>;
196
+ }, z.core.$strip>;
197
+ declare const ThreadReadStatusSchema: z.ZodObject<{
198
+ lastReadPostId: z.ZodNullable<z.ZodUUID>;
199
+ }, z.core.$strip>;
200
+ declare const SetThreadReadStatusSchema: z.ZodObject<{
201
+ lastReadPostId: z.ZodUUID;
202
+ }, z.core.$strip>;
203
+ type Thread = z.infer<typeof ThreadSchema>;
204
+ type CreateThread = z.infer<typeof CreateThreadSchema>;
205
+ type UpdateThread = z.infer<typeof UpdateThreadSchema>;
206
+ type ThreadReadStatus = z.infer<typeof ThreadReadStatusSchema>;
207
+ type SetThreadReadStatus = z.infer<typeof SetThreadReadStatusSchema>;
208
+
209
+ declare const PostSchema: z.ZodObject<{
210
+ id: z.ZodUUID;
211
+ threadId: z.ZodUUID;
212
+ authorId: z.ZodUUID;
213
+ author: z.ZodObject<{
214
+ userId: z.ZodUUID;
215
+ displayName: z.ZodString;
216
+ avatarUrl: z.ZodNullable<z.ZodURL>;
217
+ bio: z.ZodNullable<z.ZodString>;
218
+ updatedAt: z.ZodISODateTime;
219
+ }, z.core.$strip>;
220
+ content: z.ZodNullable<z.ZodString>;
221
+ deletedAt: z.ZodNullable<z.ZodISODateTime>;
222
+ createdAt: z.ZodISODateTime;
223
+ updatedAt: z.ZodISODateTime;
224
+ }, z.core.$strip>;
225
+ declare const CreatePostSchema: z.ZodObject<{
226
+ content: z.ZodString;
227
+ }, z.core.$strip>;
228
+ declare const UpdatePostSchema: z.ZodObject<{
229
+ content: z.ZodString;
230
+ }, z.core.$strip>;
231
+ type Post = z.infer<typeof PostSchema>;
232
+ type CreatePost = z.infer<typeof CreatePostSchema>;
233
+ type UpdatePost = z.infer<typeof UpdatePostSchema>;
234
+
235
+ declare const PostsQuerySchema: z.ZodObject<{
236
+ cursor: z.ZodOptional<z.ZodUUID>;
237
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
238
+ from: z.ZodOptional<z.ZodUUID>;
239
+ }, z.core.$strip>;
240
+ type PostsQuery = z.infer<typeof PostsQuerySchema>;
241
+
242
+ declare const PERMISSIONS: {
243
+ readonly 'thread.create': {
244
+ readonly isInternal: false;
245
+ };
246
+ readonly 'thread.manage': {
247
+ readonly isInternal: false;
248
+ };
249
+ readonly 'post.create': {
250
+ readonly isInternal: false;
251
+ };
252
+ readonly 'post.manage': {
253
+ readonly isInternal: false;
254
+ };
255
+ readonly 'category.manage': {
256
+ readonly isInternal: false;
257
+ };
258
+ readonly 'forum.manage': {
259
+ readonly isInternal: false;
260
+ };
261
+ readonly 'group.manage': {
262
+ readonly isInternal: false;
263
+ };
264
+ readonly 'group.manage_protected': {
265
+ readonly isInternal: true;
266
+ };
267
+ };
268
+ type Permission = keyof typeof PERMISSIONS;
269
+ declare const PermissionSchema: z.ZodEnum<{
270
+ "thread.create": "thread.create";
271
+ "thread.manage": "thread.manage";
272
+ "post.create": "post.create";
273
+ "post.manage": "post.manage";
274
+ "category.manage": "category.manage";
275
+ "forum.manage": "forum.manage";
276
+ "group.manage": "group.manage";
277
+ "group.manage_protected": "group.manage_protected";
278
+ }>;
279
+ declare const AssignablePermissionSchema: z.ZodEnum<{
280
+ [x: string]: string;
281
+ }>;
282
+ declare const GroupSchema: z.ZodObject<{
283
+ id: z.ZodUUID;
284
+ name: z.ZodString;
285
+ description: z.ZodNullable<z.ZodString>;
286
+ position: z.ZodNumber;
287
+ isProtected: z.ZodBoolean;
288
+ permissions: z.ZodArray<z.ZodEnum<{
289
+ "thread.create": "thread.create";
290
+ "thread.manage": "thread.manage";
291
+ "post.create": "post.create";
292
+ "post.manage": "post.manage";
293
+ "category.manage": "category.manage";
294
+ "forum.manage": "forum.manage";
295
+ "group.manage": "group.manage";
296
+ "group.manage_protected": "group.manage_protected";
297
+ }>>;
298
+ visibleForumIds: z.ZodArray<z.ZodUUID>;
299
+ }, z.core.$strip>;
300
+ declare const CreateGroupSchema: z.ZodObject<{
301
+ name: z.ZodString;
302
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ }, z.core.$strip>;
304
+ declare const UpdateGroupSchema: z.ZodObject<{
305
+ name: z.ZodOptional<z.ZodString>;
306
+ description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
307
+ }, z.core.$strip>;
308
+ declare const SetGroupPermissionsSchema: z.ZodObject<{
309
+ permissions: z.ZodArray<z.ZodEnum<{
310
+ [x: string]: string;
311
+ }>>;
312
+ }, z.core.$strip>;
313
+ declare const SetGroupForumsSchema: z.ZodObject<{
314
+ forumIds: z.ZodArray<z.ZodUUID>;
315
+ }, z.core.$strip>;
316
+ declare const SetUserGroupsSchema: z.ZodObject<{
317
+ groupIds: z.ZodArray<z.ZodUUID>;
318
+ }, z.core.$strip>;
319
+ declare const ReorderGroupSchema: z.ZodArray<z.ZodObject<{
320
+ id: z.ZodUUID;
321
+ position: z.ZodNumber;
322
+ }, z.core.$strip>>;
323
+ type Group = z.infer<typeof GroupSchema>;
324
+ type CreateGroup = z.infer<typeof CreateGroupSchema>;
325
+ type UpdateGroup = z.infer<typeof UpdateGroupSchema>;
326
+ type SetGroupPermissions = z.infer<typeof SetGroupPermissionsSchema>;
327
+ type SetGroupForums = z.infer<typeof SetGroupForumsSchema>;
328
+ type SetUserGroups = z.infer<typeof SetUserGroupsSchema>;
329
+ type ReorderGroup = z.infer<typeof ReorderGroupSchema>;
330
+
331
+ declare const NotificationTypeSchema: z.ZodEnum<{
332
+ new_post: "new_post";
333
+ }>;
334
+ declare const NotificationSchema: z.ZodObject<{
335
+ id: z.ZodUUID;
336
+ userId: z.ZodUUID;
337
+ tenantId: z.ZodNumber;
338
+ type: z.ZodEnum<{
339
+ new_post: "new_post";
340
+ }>;
341
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
342
+ readAt: z.ZodNullable<z.ZodISODateTime>;
343
+ createdAt: z.ZodISODateTime;
344
+ }, z.core.$strip>;
345
+ type NotificationType = z.infer<typeof NotificationTypeSchema>;
346
+ type Notification = z.infer<typeof NotificationSchema>;
347
+
348
+ declare const NotificationCountSchema: z.ZodObject<{
349
+ read: z.ZodNumber;
350
+ unread: z.ZodNumber;
351
+ }, z.core.$strip>;
352
+ type NotificationCount = z.infer<typeof NotificationCountSchema>;
353
+
354
+ declare const ApiKeySchema: z.ZodObject<{
355
+ id: z.ZodUUID;
356
+ name: z.ZodString;
357
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
358
+ createdAt: z.ZodISODateTime;
359
+ }, z.core.$strip>;
360
+ declare const CreatedApiKeySchema: z.ZodObject<{
361
+ id: z.ZodUUID;
362
+ name: z.ZodString;
363
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
364
+ createdAt: z.ZodISODateTime;
365
+ key: z.ZodString;
366
+ }, z.core.$strip>;
367
+ declare const CreateApiKeySchema: z.ZodObject<{
368
+ name: z.ZodString;
369
+ }, z.core.$strip>;
370
+ type ApiKey = z.infer<typeof ApiKeySchema>;
371
+ type CreatedApiKey = z.infer<typeof CreatedApiKeySchema>;
372
+ type CreateApiKey = z.infer<typeof CreateApiKeySchema>;
373
+
374
+ declare const SearchResultTypeSchema: z.ZodEnum<{
375
+ thread: "thread";
376
+ post: "post";
377
+ }>;
378
+ declare const SearchResultSchema: z.ZodObject<{
379
+ type: z.ZodEnum<{
380
+ thread: "thread";
381
+ post: "post";
382
+ }>;
383
+ id: z.ZodUUID;
384
+ threadId: z.ZodUUID;
385
+ forumId: z.ZodUUID;
386
+ title: z.ZodNullable<z.ZodString>;
387
+ excerpt: z.ZodString;
388
+ authorId: z.ZodUUID;
389
+ createdAt: z.ZodISODateTime;
390
+ }, z.core.$strip>;
391
+ declare const SearchQuerySchema: z.ZodObject<{
392
+ q: z.ZodString;
393
+ type: z.ZodOptional<z.ZodEnum<{
394
+ thread: "thread";
395
+ post: "post";
396
+ }>>;
397
+ categoryId: z.ZodOptional<z.ZodUUID>;
398
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
399
+ }, z.core.$strip>;
400
+ declare const SearchResponseSchema: z.ZodObject<{
401
+ results: z.ZodArray<z.ZodObject<{
402
+ type: z.ZodEnum<{
403
+ thread: "thread";
404
+ post: "post";
405
+ }>;
406
+ id: z.ZodUUID;
407
+ threadId: z.ZodUUID;
408
+ forumId: z.ZodUUID;
409
+ title: z.ZodNullable<z.ZodString>;
410
+ excerpt: z.ZodString;
411
+ authorId: z.ZodUUID;
412
+ createdAt: z.ZodISODateTime;
413
+ }, z.core.$strip>>;
414
+ total: z.ZodNumber;
415
+ }, z.core.$strip>;
416
+ type SearchResultType = z.infer<typeof SearchResultTypeSchema>;
417
+ type SearchResult = z.infer<typeof SearchResultSchema>;
418
+ type SearchQuery = z.infer<typeof SearchQuerySchema>;
419
+ type SearchResponse = z.infer<typeof SearchResponseSchema>;
420
+
421
+ declare const TenantSchema: z.ZodObject<{
422
+ id: z.ZodNumber;
423
+ name: z.ZodString;
424
+ slug: z.ZodString;
425
+ customDomain: z.ZodNullable<z.ZodString>;
426
+ createdAt: z.ZodString;
427
+ }, z.core.$strip>;
428
+ declare const CreateTenantSchema: z.ZodObject<{
429
+ name: z.ZodString;
430
+ slug: z.ZodString;
431
+ }, z.core.$strip>;
432
+ declare const SetCustomDomainSchema: z.ZodObject<{
433
+ domain: z.ZodNullable<z.ZodString>;
434
+ }, z.core.$strip>;
435
+ declare const OwnedTenantSchema: z.ZodObject<{
436
+ id: z.ZodNumber;
437
+ name: z.ZodString;
438
+ slug: z.ZodString;
439
+ customDomain: z.ZodNullable<z.ZodString>;
440
+ }, z.core.$strip>;
441
+ declare const TenantTokenSchema: z.ZodObject<{
442
+ token: z.ZodString;
443
+ expiresIn: z.ZodNumber;
444
+ payload: z.ZodObject<{
445
+ userId: z.ZodString;
446
+ tenantId: z.ZodNumber;
447
+ }, z.core.$strip>;
448
+ }, z.core.$strip>;
449
+ type OwnedTenant = z.infer<typeof OwnedTenantSchema>;
450
+ type Tenant = z.infer<typeof TenantSchema>;
451
+ type CreateTenant = z.infer<typeof CreateTenantSchema>;
452
+ type SetCustomDomain = z.infer<typeof SetCustomDomainSchema>;
453
+ type TenantToken = z.infer<typeof TenantTokenSchema>;
454
+
455
+ declare const TenantOwnerSchema: z.ZodObject<{
456
+ userId: z.ZodNullable<z.ZodString>;
457
+ }, z.core.$strip>;
458
+ declare const TransferTenantOwnerSchema: z.ZodObject<{
459
+ userId: z.ZodString;
460
+ }, z.core.$strip>;
461
+ type TenantOwner = z.infer<typeof TenantOwnerSchema>;
462
+ type TransferTenantOwner = z.infer<typeof TransferTenantOwnerSchema>;
463
+
464
+ declare const BackupSettingsSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
465
+ declare const BackupCategorySchema: z.ZodObject<{
466
+ id: z.ZodString;
467
+ name: z.ZodString;
468
+ description: z.ZodNullable<z.ZodString>;
469
+ position: z.ZodNumber;
470
+ }, z.core.$strip>;
471
+ declare const BackupGroupSchema: z.ZodObject<{
472
+ id: z.ZodString;
473
+ name: z.ZodString;
474
+ description: z.ZodNullable<z.ZodString>;
475
+ position: z.ZodNumber;
476
+ permissions: z.ZodArray<z.ZodString>;
477
+ visibleForumIds: z.ZodArray<z.ZodString>;
478
+ }, z.core.$strip>;
479
+ declare const BackupMembershipSchema: z.ZodObject<{
480
+ userId: z.ZodString;
481
+ groupId: z.ZodString;
482
+ }, z.core.$strip>;
483
+ declare const BackupThreadSchema: z.ZodObject<{
484
+ id: z.ZodString;
485
+ forumId: z.ZodString;
486
+ title: z.ZodString;
487
+ authorId: z.ZodString;
488
+ isPinned: z.ZodBoolean;
489
+ isLocked: z.ZodBoolean;
490
+ lastPostAt: z.ZodNullable<z.ZodString>;
491
+ createdAt: z.ZodString;
492
+ }, z.core.$strip>;
493
+ declare const BackupPostSchema: z.ZodObject<{
494
+ id: z.ZodString;
495
+ threadId: z.ZodString;
496
+ authorId: z.ZodString;
497
+ content: z.ZodNullable<z.ZodString>;
498
+ createdAt: z.ZodString;
499
+ updatedAt: z.ZodString;
500
+ }, z.core.$strip>;
501
+ declare const BackupDataSchema: z.ZodObject<{
502
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
503
+ categories: z.ZodArray<z.ZodObject<{
504
+ id: z.ZodString;
505
+ name: z.ZodString;
506
+ description: z.ZodNullable<z.ZodString>;
507
+ position: z.ZodNumber;
508
+ }, z.core.$strip>>;
509
+ groups: z.ZodArray<z.ZodObject<{
510
+ id: z.ZodString;
511
+ name: z.ZodString;
512
+ description: z.ZodNullable<z.ZodString>;
513
+ position: z.ZodNumber;
514
+ permissions: z.ZodArray<z.ZodString>;
515
+ visibleForumIds: z.ZodArray<z.ZodString>;
516
+ }, z.core.$strip>>;
517
+ memberships: z.ZodArray<z.ZodObject<{
518
+ userId: z.ZodString;
519
+ groupId: z.ZodString;
520
+ }, z.core.$strip>>;
521
+ threads: z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ forumId: z.ZodString;
524
+ title: z.ZodString;
525
+ authorId: z.ZodString;
526
+ isPinned: z.ZodBoolean;
527
+ isLocked: z.ZodBoolean;
528
+ lastPostAt: z.ZodNullable<z.ZodString>;
529
+ createdAt: z.ZodString;
530
+ }, z.core.$strip>>;
531
+ posts: z.ZodArray<z.ZodObject<{
532
+ id: z.ZodString;
533
+ threadId: z.ZodString;
534
+ authorId: z.ZodString;
535
+ content: z.ZodNullable<z.ZodString>;
536
+ createdAt: z.ZodString;
537
+ updatedAt: z.ZodString;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$strip>;
540
+ declare const BackupPayloadSchema: z.ZodObject<{
541
+ version: z.ZodLiteral<1>;
542
+ exportedAt: z.ZodString;
543
+ sourceTenantId: z.ZodNumber;
544
+ includeContent: z.ZodBoolean;
545
+ data: z.ZodObject<{
546
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
547
+ categories: z.ZodArray<z.ZodObject<{
548
+ id: z.ZodString;
549
+ name: z.ZodString;
550
+ description: z.ZodNullable<z.ZodString>;
551
+ position: z.ZodNumber;
552
+ }, z.core.$strip>>;
553
+ groups: z.ZodArray<z.ZodObject<{
554
+ id: z.ZodString;
555
+ name: z.ZodString;
556
+ description: z.ZodNullable<z.ZodString>;
557
+ position: z.ZodNumber;
558
+ permissions: z.ZodArray<z.ZodString>;
559
+ visibleForumIds: z.ZodArray<z.ZodString>;
560
+ }, z.core.$strip>>;
561
+ memberships: z.ZodArray<z.ZodObject<{
562
+ userId: z.ZodString;
563
+ groupId: z.ZodString;
564
+ }, z.core.$strip>>;
565
+ threads: z.ZodArray<z.ZodObject<{
566
+ id: z.ZodString;
567
+ forumId: z.ZodString;
568
+ title: z.ZodString;
569
+ authorId: z.ZodString;
570
+ isPinned: z.ZodBoolean;
571
+ isLocked: z.ZodBoolean;
572
+ lastPostAt: z.ZodNullable<z.ZodString>;
573
+ createdAt: z.ZodString;
574
+ }, z.core.$strip>>;
575
+ posts: z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ threadId: z.ZodString;
578
+ authorId: z.ZodString;
579
+ content: z.ZodNullable<z.ZodString>;
580
+ createdAt: z.ZodString;
581
+ updatedAt: z.ZodString;
582
+ }, z.core.$strip>>;
583
+ }, z.core.$strip>;
584
+ signature: z.ZodString;
585
+ }, z.core.$strip>;
586
+ declare const TenantBackupSchema: z.ZodObject<{
587
+ version: z.ZodLiteral<1>;
588
+ exportedAt: z.ZodString;
589
+ sourceTenantId: z.ZodNumber;
590
+ includeContent: z.ZodBoolean;
591
+ data: z.ZodObject<{
592
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
593
+ categories: z.ZodArray<z.ZodObject<{
594
+ id: z.ZodString;
595
+ name: z.ZodString;
596
+ description: z.ZodNullable<z.ZodString>;
597
+ position: z.ZodNumber;
598
+ }, z.core.$strip>>;
599
+ groups: z.ZodArray<z.ZodObject<{
600
+ id: z.ZodString;
601
+ name: z.ZodString;
602
+ description: z.ZodNullable<z.ZodString>;
603
+ position: z.ZodNumber;
604
+ permissions: z.ZodArray<z.ZodString>;
605
+ visibleForumIds: z.ZodArray<z.ZodString>;
606
+ }, z.core.$strip>>;
607
+ memberships: z.ZodArray<z.ZodObject<{
608
+ userId: z.ZodString;
609
+ groupId: z.ZodString;
610
+ }, z.core.$strip>>;
611
+ threads: z.ZodArray<z.ZodObject<{
612
+ id: z.ZodString;
613
+ forumId: z.ZodString;
614
+ title: z.ZodString;
615
+ authorId: z.ZodString;
616
+ isPinned: z.ZodBoolean;
617
+ isLocked: z.ZodBoolean;
618
+ lastPostAt: z.ZodNullable<z.ZodString>;
619
+ createdAt: z.ZodString;
620
+ }, z.core.$strip>>;
621
+ posts: z.ZodArray<z.ZodObject<{
622
+ id: z.ZodString;
623
+ threadId: z.ZodString;
624
+ authorId: z.ZodString;
625
+ content: z.ZodNullable<z.ZodString>;
626
+ createdAt: z.ZodString;
627
+ updatedAt: z.ZodString;
628
+ }, z.core.$strip>>;
629
+ }, z.core.$strip>;
630
+ signature: z.ZodString;
631
+ }, z.core.$strip>;
632
+ declare const BackupQuerySchema: z.ZodObject<{
633
+ includeContent: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
634
+ }, z.core.$strip>;
635
+ type BackupSettings = z.infer<typeof BackupSettingsSchema>;
636
+ type BackupCategory = z.infer<typeof BackupCategorySchema>;
637
+ type BackupGroup = z.infer<typeof BackupGroupSchema>;
638
+ type BackupMembership = z.infer<typeof BackupMembershipSchema>;
639
+ type BackupThread = z.infer<typeof BackupThreadSchema>;
640
+ type BackupPost = z.infer<typeof BackupPostSchema>;
641
+ type BackupData = z.infer<typeof BackupDataSchema>;
642
+ type BackupPayload = z.infer<typeof BackupPayloadSchema>;
643
+ type TenantBackup = z.infer<typeof TenantBackupSchema>;
644
+ type BackupQuery = z.infer<typeof BackupQuerySchema>;
645
+
646
+ declare const RestoreTenantSchema: z.ZodObject<{
647
+ payload: z.ZodObject<{
648
+ version: z.ZodLiteral<1>;
649
+ exportedAt: z.ZodString;
650
+ sourceTenantId: z.ZodNumber;
651
+ includeContent: z.ZodBoolean;
652
+ data: z.ZodObject<{
653
+ settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
654
+ categories: z.ZodArray<z.ZodObject<{
655
+ id: z.ZodString;
656
+ name: z.ZodString;
657
+ description: z.ZodNullable<z.ZodString>;
658
+ position: z.ZodNumber;
659
+ }, z.core.$strip>>;
660
+ groups: z.ZodArray<z.ZodObject<{
661
+ id: z.ZodString;
662
+ name: z.ZodString;
663
+ description: z.ZodNullable<z.ZodString>;
664
+ position: z.ZodNumber;
665
+ permissions: z.ZodArray<z.ZodString>;
666
+ visibleForumIds: z.ZodArray<z.ZodString>;
667
+ }, z.core.$strip>>;
668
+ memberships: z.ZodArray<z.ZodObject<{
669
+ userId: z.ZodString;
670
+ groupId: z.ZodString;
671
+ }, z.core.$strip>>;
672
+ threads: z.ZodArray<z.ZodObject<{
673
+ id: z.ZodString;
674
+ forumId: z.ZodString;
675
+ title: z.ZodString;
676
+ authorId: z.ZodString;
677
+ isPinned: z.ZodBoolean;
678
+ isLocked: z.ZodBoolean;
679
+ lastPostAt: z.ZodNullable<z.ZodString>;
680
+ createdAt: z.ZodString;
681
+ }, z.core.$strip>>;
682
+ posts: z.ZodArray<z.ZodObject<{
683
+ id: z.ZodString;
684
+ threadId: z.ZodString;
685
+ authorId: z.ZodString;
686
+ content: z.ZodNullable<z.ZodString>;
687
+ createdAt: z.ZodString;
688
+ updatedAt: z.ZodString;
689
+ }, z.core.$strip>>;
690
+ }, z.core.$strip>;
691
+ signature: z.ZodString;
692
+ }, z.core.$strip>;
693
+ includeContent: z.ZodBoolean;
694
+ force: z.ZodDefault<z.ZodBoolean>;
695
+ }, z.core.$strip>;
696
+ declare const RestoreTenantResponseSchema: z.ZodObject<{
697
+ signatureValid: z.ZodBoolean;
698
+ }, z.core.$strip>;
699
+ declare const RestoreErrorSchema: z.ZodObject<{
700
+ code: z.ZodString;
701
+ message: z.ZodString;
702
+ }, z.core.$strip>;
703
+ type RestoreTenant = z.infer<typeof RestoreTenantSchema>;
704
+ type RestoreTenantResponse = z.infer<typeof RestoreTenantResponseSchema>;
705
+ type RestoreError = z.infer<typeof RestoreErrorSchema>;
706
+
707
+ declare const PlatformSettingSchema: z.ZodObject<{
708
+ key: z.ZodString;
709
+ value: z.ZodUnknown;
710
+ updatedAt: z.ZodISODateTime;
711
+ }, z.core.$strip>;
712
+ declare const UpdatePlatformSettingSchema: z.ZodObject<{
713
+ value: z.ZodUnknown;
714
+ }, z.core.$strip>;
715
+ declare const GrantPlatformOwnerSchema: z.ZodObject<{
716
+ userId: z.ZodUUID;
717
+ }, z.core.$strip>;
718
+ type PlatformSetting = z.infer<typeof PlatformSettingSchema>;
719
+ type UpdatePlatformSetting = z.infer<typeof UpdatePlatformSettingSchema>;
720
+ type GrantPlatformOwner = z.infer<typeof GrantPlatformOwnerSchema>;
3
721
 
4
722
  interface RoundtableClientOpts {
5
723
  baseURL: string;
@@ -414,5 +1132,5 @@ declare class TenantClient {
414
1132
  }, body: UpdateThread): Promise<Thread>;
415
1133
  }
416
1134
 
417
- export { AcpClient, TenantClient };
418
- export type { RoundtableClientOpts };
1135
+ export { AcpClient, 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, SearchQuerySchema, SearchResponseSchema, SearchResultSchema, SearchResultTypeSchema, SetCustomDomainSchema, SetGroupForumsSchema, SetGroupPermissionsSchema, SetThreadReadStatusSchema, SetUserGroupsSchema, TenantBackupSchema, TenantCategoryIdParamsSchema, TenantClient, TenantForumIdParamsSchema, TenantGroupIdParamsSchema, TenantIdParamsSchema, TenantOwnerSchema, TenantPostIdParamsSchema, TenantSchema, TenantThreadIdParamsSchema, TenantThreadPostIdParamsSchema, TenantTokenSchema, TenantUserIdParamsSchema, TenantUuidParamsSchema, ThreadReadStatusSchema, ThreadSchema, TransferTenantOwnerSchema, UpdateCategorySchema, UpdateForumSchema, UpdateGroupSchema, UpdatePlatformSettingSchema, UpdatePostSchema, UpdateThreadSchema, UpdateUserProfileSchema, UserIdParamsSchema, UserMembershipSchema, UserProfileSchema };
1136
+ 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, SetThreadReadStatus, SetUserGroups, Tenant, TenantBackup, TenantCategoryIdParams, TenantForumIdParams, TenantGroupIdParams, TenantIdParams, TenantOwner, TenantPostIdParams, TenantThreadIdParams, TenantThreadPostIdParams, TenantToken, TenantUserIdParams, TenantUuidParams, Thread, ThreadReadStatus, TransferTenantOwner, UpdateCategory, UpdateForum, UpdateGroup, UpdatePlatformSetting, UpdatePost, UpdateThread, UpdateUserProfile, UserIdParams, UserMembership, UserProfile };