@agora-server/contract 0.9.2

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.
@@ -0,0 +1,781 @@
1
+ import { z } from "zod";
2
+ export declare const createEntitySchema: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ foreignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ keywords: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
9
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
10
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
11
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
12
+ isDraft: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ title?: string | null | undefined;
15
+ content?: string | null | undefined;
16
+ foreignId?: string | null | undefined;
17
+ sourceId?: string | null | undefined;
18
+ spaceId?: string | null | undefined;
19
+ keywords?: string[] | null | undefined;
20
+ mentions?: unknown[] | null | undefined;
21
+ attachments?: unknown[] | null | undefined;
22
+ metadata?: Record<string, unknown> | null | undefined;
23
+ isDraft?: boolean | null | undefined;
24
+ }, {
25
+ title?: string | null | undefined;
26
+ content?: string | null | undefined;
27
+ foreignId?: string | null | undefined;
28
+ sourceId?: string | null | undefined;
29
+ spaceId?: string | null | undefined;
30
+ keywords?: string[] | null | undefined;
31
+ mentions?: unknown[] | null | undefined;
32
+ attachments?: unknown[] | null | undefined;
33
+ metadata?: Record<string, unknown> | null | undefined;
34
+ isDraft?: boolean | null | undefined;
35
+ }>;
36
+ export declare const updateEntitySchema: z.ZodEffects<z.ZodObject<{
37
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
40
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
41
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
42
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ title?: string | null | undefined;
45
+ content?: string | null | undefined;
46
+ keywords?: string[] | undefined;
47
+ mentions?: unknown[] | null | undefined;
48
+ attachments?: unknown[] | undefined;
49
+ metadata?: Record<string, unknown> | null | undefined;
50
+ }, {
51
+ title?: string | null | undefined;
52
+ content?: string | null | undefined;
53
+ keywords?: string[] | undefined;
54
+ mentions?: unknown[] | null | undefined;
55
+ attachments?: unknown[] | undefined;
56
+ metadata?: Record<string, unknown> | null | undefined;
57
+ }>, {
58
+ title?: string | null | undefined;
59
+ content?: string | null | undefined;
60
+ keywords?: string[] | undefined;
61
+ mentions?: unknown[] | null | undefined;
62
+ attachments?: unknown[] | undefined;
63
+ metadata?: Record<string, unknown> | null | undefined;
64
+ }, {
65
+ title?: string | null | undefined;
66
+ content?: string | null | undefined;
67
+ keywords?: string[] | undefined;
68
+ mentions?: unknown[] | null | undefined;
69
+ attachments?: unknown[] | undefined;
70
+ metadata?: Record<string, unknown> | null | undefined;
71
+ }>;
72
+ export declare const createCommentSchema: z.ZodObject<{
73
+ entityId: z.ZodString;
74
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ gif: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
77
+ foreignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
79
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ entityId: string;
82
+ content?: string | null | undefined;
83
+ foreignId?: string | null | undefined;
84
+ mentions?: unknown[] | null | undefined;
85
+ metadata?: Record<string, unknown> | null | undefined;
86
+ parentId?: string | null | undefined;
87
+ gif?: unknown;
88
+ }, {
89
+ entityId: string;
90
+ content?: string | null | undefined;
91
+ foreignId?: string | null | undefined;
92
+ mentions?: unknown[] | null | undefined;
93
+ metadata?: Record<string, unknown> | null | undefined;
94
+ parentId?: string | null | undefined;
95
+ gif?: unknown;
96
+ }>;
97
+ export declare const updateCommentSchema: z.ZodEffects<z.ZodObject<{
98
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ gif: z.ZodOptional<z.ZodUnknown>;
100
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
101
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ content?: string | null | undefined;
104
+ mentions?: unknown[] | null | undefined;
105
+ metadata?: Record<string, unknown> | null | undefined;
106
+ gif?: unknown;
107
+ }, {
108
+ content?: string | null | undefined;
109
+ mentions?: unknown[] | null | undefined;
110
+ metadata?: Record<string, unknown> | null | undefined;
111
+ gif?: unknown;
112
+ }>, {
113
+ content?: string | null | undefined;
114
+ mentions?: unknown[] | null | undefined;
115
+ metadata?: Record<string, unknown> | null | undefined;
116
+ gif?: unknown;
117
+ }, {
118
+ content?: string | null | undefined;
119
+ mentions?: unknown[] | null | undefined;
120
+ metadata?: Record<string, unknown> | null | undefined;
121
+ gif?: unknown;
122
+ }>;
123
+ export declare const reactionSchema: z.ZodObject<{
124
+ reactionType: z.ZodEnum<["upvote", "downvote", "like", "love", "wow", "sad", "angry", "funny"]>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ reactionType: "upvote" | "downvote" | "like" | "love" | "wow" | "sad" | "angry" | "funny";
127
+ }, {
128
+ reactionType: "upvote" | "downvote" | "like" | "love" | "wow" | "sad" | "angry" | "funny";
129
+ }>;
130
+ export declare const rankParamsSchema: z.ZodObject<{
131
+ halfLifeHours: z.ZodOptional<z.ZodNumber>;
132
+ gravity: z.ZodOptional<z.ZodNumber>;
133
+ z: z.ZodOptional<z.ZodNumber>;
134
+ C: z.ZodOptional<z.ZodNumber>;
135
+ m: z.ZodOptional<z.ZodNumber>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ halfLifeHours?: number | undefined;
138
+ gravity?: number | undefined;
139
+ z?: number | undefined;
140
+ C?: number | undefined;
141
+ m?: number | undefined;
142
+ }, {
143
+ halfLifeHours?: number | undefined;
144
+ gravity?: number | undefined;
145
+ z?: number | undefined;
146
+ C?: number | undefined;
147
+ m?: number | undefined;
148
+ }>;
149
+ export declare const feedConfigSchema: z.ZodObject<{
150
+ defaultAlgorithm: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
151
+ decayMode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<["stored", "query-time"]>>>>;
152
+ halfLifeHours: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
153
+ gravity: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
154
+ z: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
155
+ C: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
156
+ m: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
157
+ reactionWeights: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["upvote", "downvote", "like", "love", "wow", "sad", "angry", "funny"]>, z.ZodNumber>>>>;
158
+ diversity: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
159
+ perAuthorCap: z.ZodNumber;
160
+ }, "strip", z.ZodTypeAny, {
161
+ perAuthorCap: number;
162
+ }, {
163
+ perAuthorCap: number;
164
+ }>>>>;
165
+ rerankWebhook: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
166
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
+ timeoutMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ overFetch: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ url?: string | null | undefined;
172
+ secret?: string | null | undefined;
173
+ timeoutMs?: number | null | undefined;
174
+ overFetch?: number | null | undefined;
175
+ }, {
176
+ url?: string | null | undefined;
177
+ secret?: string | null | undefined;
178
+ timeoutMs?: number | null | undefined;
179
+ overFetch?: number | null | undefined;
180
+ }>>>>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ halfLifeHours?: number | null | undefined;
183
+ gravity?: number | null | undefined;
184
+ z?: number | null | undefined;
185
+ C?: number | null | undefined;
186
+ m?: number | null | undefined;
187
+ defaultAlgorithm?: string | null | undefined;
188
+ decayMode?: "stored" | "query-time" | null | undefined;
189
+ reactionWeights?: Partial<Record<"upvote" | "downvote" | "like" | "love" | "wow" | "sad" | "angry" | "funny", number>> | null | undefined;
190
+ diversity?: {
191
+ perAuthorCap: number;
192
+ } | null | undefined;
193
+ rerankWebhook?: {
194
+ url?: string | null | undefined;
195
+ secret?: string | null | undefined;
196
+ timeoutMs?: number | null | undefined;
197
+ overFetch?: number | null | undefined;
198
+ } | null | undefined;
199
+ }, {
200
+ halfLifeHours?: number | null | undefined;
201
+ gravity?: number | null | undefined;
202
+ z?: number | null | undefined;
203
+ C?: number | null | undefined;
204
+ m?: number | null | undefined;
205
+ defaultAlgorithm?: string | null | undefined;
206
+ decayMode?: "stored" | "query-time" | null | undefined;
207
+ reactionWeights?: Partial<Record<"upvote" | "downvote" | "like" | "love" | "wow" | "sad" | "angry" | "funny", number>> | null | undefined;
208
+ diversity?: {
209
+ perAuthorCap: number;
210
+ } | null | undefined;
211
+ rerankWebhook?: {
212
+ url?: string | null | undefined;
213
+ secret?: string | null | undefined;
214
+ timeoutMs?: number | null | undefined;
215
+ overFetch?: number | null | undefined;
216
+ } | null | undefined;
217
+ }>;
218
+ export declare const STEWARD_NOTIFY_POLICIES: readonly ["power-aware", "symmetric", "resolution-only"];
219
+ export type StewardNotifyPolicy = (typeof STEWARD_NOTIFY_POLICIES)[number];
220
+ export declare const STEWARD_MEDIATION_MODES: readonly ["caucus", "hybrid"];
221
+ export type StewardMediationMode = (typeof STEWARD_MEDIATION_MODES)[number];
222
+ export declare const STEWARD_MEDIATION_ON_CLOSE: readonly ["archive-read-only", "lock-leave", "leave-open"];
223
+ export type StewardMediationOnClose = (typeof STEWARD_MEDIATION_ON_CLOSE)[number];
224
+ export declare const stewardConfigSchema: z.ZodObject<{
225
+ notifyPolicy: z.ZodOptional<z.ZodEnum<["power-aware", "symmetric", "resolution-only"]>>;
226
+ mediationMode: z.ZodOptional<z.ZodEnum<["caucus", "hybrid"]>>;
227
+ mediationOnClose: z.ZodOptional<z.ZodEnum<["archive-read-only", "lock-leave", "leave-open"]>>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ notifyPolicy?: "power-aware" | "symmetric" | "resolution-only" | undefined;
230
+ mediationMode?: "caucus" | "hybrid" | undefined;
231
+ mediationOnClose?: "archive-read-only" | "lock-leave" | "leave-open" | undefined;
232
+ }, {
233
+ notifyPolicy?: "power-aware" | "symmetric" | "resolution-only" | undefined;
234
+ mediationMode?: "caucus" | "hybrid" | undefined;
235
+ mediationOnClose?: "archive-read-only" | "lock-leave" | "leave-open" | undefined;
236
+ }>;
237
+ export interface StewardConfigView {
238
+ notifyPolicy: StewardNotifyPolicy;
239
+ mediationMode: StewardMediationMode;
240
+ mediationOnClose: StewardMediationOnClose;
241
+ }
242
+ export declare const updateProfileSchema: z.ZodEffects<z.ZodObject<{
243
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
245
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ metadata?: Record<string, unknown> | null | undefined;
250
+ name?: string | null | undefined;
251
+ username?: string | null | undefined;
252
+ avatar?: string | null | undefined;
253
+ bio?: string | null | undefined;
254
+ }, {
255
+ metadata?: Record<string, unknown> | null | undefined;
256
+ name?: string | null | undefined;
257
+ username?: string | null | undefined;
258
+ avatar?: string | null | undefined;
259
+ bio?: string | null | undefined;
260
+ }>, {
261
+ metadata?: Record<string, unknown> | null | undefined;
262
+ name?: string | null | undefined;
263
+ username?: string | null | undefined;
264
+ avatar?: string | null | undefined;
265
+ bio?: string | null | undefined;
266
+ }, {
267
+ metadata?: Record<string, unknown> | null | undefined;
268
+ name?: string | null | undefined;
269
+ username?: string | null | undefined;
270
+ avatar?: string | null | undefined;
271
+ bio?: string | null | undefined;
272
+ }>;
273
+ export declare const createSpaceSchema: z.ZodObject<{
274
+ name: z.ZodString;
275
+ slug: z.ZodOptional<z.ZodString>;
276
+ description: z.ZodOptional<z.ZodString>;
277
+ readingPermission: z.ZodOptional<z.ZodEnum<["anyone", "members"]>>;
278
+ postingPermission: z.ZodOptional<z.ZodEnum<["anyone", "members", "admins"]>>;
279
+ requireJoinApproval: z.ZodOptional<z.ZodBoolean>;
280
+ parentSpaceId: z.ZodOptional<z.ZodString>;
281
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ name: string;
284
+ metadata?: Record<string, unknown> | null | undefined;
285
+ slug?: string | undefined;
286
+ description?: string | undefined;
287
+ readingPermission?: "anyone" | "members" | undefined;
288
+ postingPermission?: "anyone" | "members" | "admins" | undefined;
289
+ requireJoinApproval?: boolean | undefined;
290
+ parentSpaceId?: string | undefined;
291
+ }, {
292
+ name: string;
293
+ metadata?: Record<string, unknown> | null | undefined;
294
+ slug?: string | undefined;
295
+ description?: string | undefined;
296
+ readingPermission?: "anyone" | "members" | undefined;
297
+ postingPermission?: "anyone" | "members" | "admins" | undefined;
298
+ requireJoinApproval?: boolean | undefined;
299
+ parentSpaceId?: string | undefined;
300
+ }>;
301
+ export declare const updateSpaceSchema: z.ZodEffects<z.ZodObject<{
302
+ name: z.ZodOptional<z.ZodString>;
303
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ readingPermission: z.ZodOptional<z.ZodEnum<["anyone", "members"]>>;
306
+ postingPermission: z.ZodOptional<z.ZodEnum<["anyone", "members", "admins"]>>;
307
+ requireJoinApproval: z.ZodOptional<z.ZodBoolean>;
308
+ parentSpaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ metadata?: Record<string, unknown> | null | undefined;
312
+ name?: string | undefined;
313
+ slug?: string | null | undefined;
314
+ description?: string | null | undefined;
315
+ readingPermission?: "anyone" | "members" | undefined;
316
+ postingPermission?: "anyone" | "members" | "admins" | undefined;
317
+ requireJoinApproval?: boolean | undefined;
318
+ parentSpaceId?: string | null | undefined;
319
+ }, {
320
+ metadata?: Record<string, unknown> | null | undefined;
321
+ name?: string | undefined;
322
+ slug?: string | null | undefined;
323
+ description?: string | null | undefined;
324
+ readingPermission?: "anyone" | "members" | undefined;
325
+ postingPermission?: "anyone" | "members" | "admins" | undefined;
326
+ requireJoinApproval?: boolean | undefined;
327
+ parentSpaceId?: string | null | undefined;
328
+ }>, {
329
+ metadata?: Record<string, unknown> | null | undefined;
330
+ name?: string | undefined;
331
+ slug?: string | null | undefined;
332
+ description?: string | null | undefined;
333
+ readingPermission?: "anyone" | "members" | undefined;
334
+ postingPermission?: "anyone" | "members" | "admins" | undefined;
335
+ requireJoinApproval?: boolean | undefined;
336
+ parentSpaceId?: string | null | undefined;
337
+ }, {
338
+ metadata?: Record<string, unknown> | null | undefined;
339
+ name?: string | undefined;
340
+ slug?: string | null | undefined;
341
+ description?: string | null | undefined;
342
+ readingPermission?: "anyone" | "members" | undefined;
343
+ postingPermission?: "anyone" | "members" | "admins" | undefined;
344
+ requireJoinApproval?: boolean | undefined;
345
+ parentSpaceId?: string | null | undefined;
346
+ }>;
347
+ export declare const createRuleSchema: z.ZodObject<{
348
+ title: z.ZodString;
349
+ description: z.ZodOptional<z.ZodString>;
350
+ order: z.ZodOptional<z.ZodNumber>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ title: string;
353
+ description?: string | undefined;
354
+ order?: number | undefined;
355
+ }, {
356
+ title: string;
357
+ description?: string | undefined;
358
+ order?: number | undefined;
359
+ }>;
360
+ export declare const updateRuleSchema: z.ZodEffects<z.ZodObject<{
361
+ title: z.ZodOptional<z.ZodString>;
362
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ order: z.ZodOptional<z.ZodNumber>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ title?: string | undefined;
366
+ description?: string | null | undefined;
367
+ order?: number | undefined;
368
+ }, {
369
+ title?: string | undefined;
370
+ description?: string | null | undefined;
371
+ order?: number | undefined;
372
+ }>, {
373
+ title?: string | undefined;
374
+ description?: string | null | undefined;
375
+ order?: number | undefined;
376
+ }, {
377
+ title?: string | undefined;
378
+ description?: string | null | undefined;
379
+ order?: number | undefined;
380
+ }>;
381
+ export declare const reorderRulesSchema: z.ZodObject<{
382
+ order: z.ZodArray<z.ZodString, "many">;
383
+ }, "strip", z.ZodTypeAny, {
384
+ order: string[];
385
+ }, {
386
+ order: string[];
387
+ }>;
388
+ export declare const memberRoleSchema: z.ZodObject<{
389
+ role: z.ZodEnum<["admin", "moderator", "member"]>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ role: "admin" | "moderator" | "member";
392
+ }, {
393
+ role: "admin" | "moderator" | "member";
394
+ }>;
395
+ export declare const moderationSchema: z.ZodObject<{
396
+ status: z.ZodEnum<["approved", "removed"]>;
397
+ reason: z.ZodOptional<z.ZodString>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ status: "approved" | "removed";
400
+ reason?: string | undefined;
401
+ }, {
402
+ status: "approved" | "removed";
403
+ reason?: string | undefined;
404
+ }>;
405
+ export declare const createCollectionSchema: z.ZodObject<{
406
+ name: z.ZodString;
407
+ parentId: z.ZodOptional<z.ZodString>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ name: string;
410
+ parentId?: string | undefined;
411
+ }, {
412
+ name: string;
413
+ parentId?: string | undefined;
414
+ }>;
415
+ export declare const addEntitySchema: z.ZodObject<{
416
+ entityId: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ entityId: string;
419
+ }, {
420
+ entityId: string;
421
+ }>;
422
+ export declare const createReportSchema: z.ZodObject<{
423
+ targetType: z.ZodEnum<["entity", "comment"]>;
424
+ targetId: z.ZodString;
425
+ reason: z.ZodString;
426
+ details: z.ZodOptional<z.ZodString>;
427
+ spaceId: z.ZodOptional<z.ZodString>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ reason: string;
430
+ targetType: "entity" | "comment";
431
+ targetId: string;
432
+ spaceId?: string | undefined;
433
+ details?: string | undefined;
434
+ }, {
435
+ reason: string;
436
+ targetType: "entity" | "comment";
437
+ targetId: string;
438
+ spaceId?: string | undefined;
439
+ details?: string | undefined;
440
+ }>;
441
+ export declare const signUpSchema: z.ZodObject<{
442
+ email: z.ZodString;
443
+ password: z.ZodString;
444
+ name: z.ZodOptional<z.ZodString>;
445
+ username: z.ZodOptional<z.ZodString>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ email: string;
448
+ password: string;
449
+ name?: string | undefined;
450
+ username?: string | undefined;
451
+ }, {
452
+ email: string;
453
+ password: string;
454
+ name?: string | undefined;
455
+ username?: string | undefined;
456
+ }>;
457
+ export declare const signInSchema: z.ZodObject<{
458
+ email: z.ZodString;
459
+ password: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ email: string;
462
+ password: string;
463
+ }, {
464
+ email: string;
465
+ password: string;
466
+ }>;
467
+ export declare const refreshSchema: z.ZodObject<{
468
+ refreshToken: z.ZodString;
469
+ }, "strip", z.ZodTypeAny, {
470
+ refreshToken: string;
471
+ }, {
472
+ refreshToken: string;
473
+ }>;
474
+ export declare const signOutSchema: z.ZodObject<{
475
+ refreshToken: z.ZodOptional<z.ZodString>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ refreshToken?: string | undefined;
478
+ }, {
479
+ refreshToken?: string | undefined;
480
+ }>;
481
+ export declare const changePasswordSchema: z.ZodObject<{
482
+ currentPassword: z.ZodString;
483
+ newPassword: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ currentPassword: string;
486
+ newPassword: string;
487
+ }, {
488
+ currentPassword: string;
489
+ newPassword: string;
490
+ }>;
491
+ export declare const emailSchema: z.ZodObject<{
492
+ email: z.ZodString;
493
+ }, "strip", z.ZodTypeAny, {
494
+ email: string;
495
+ }, {
496
+ email: string;
497
+ }>;
498
+ export declare const verifyEmailSchema: z.ZodObject<{
499
+ tokenHash: z.ZodString;
500
+ type: z.ZodOptional<z.ZodEnum<["signup", "email", "recovery"]>>;
501
+ }, "strip", z.ZodTypeAny, {
502
+ tokenHash: string;
503
+ type?: "email" | "signup" | "recovery" | undefined;
504
+ }, {
505
+ tokenHash: string;
506
+ type?: "email" | "signup" | "recovery" | undefined;
507
+ }>;
508
+ export declare const externalUserSchema: z.ZodEffects<z.ZodObject<{
509
+ userJwt: z.ZodOptional<z.ZodString>;
510
+ token: z.ZodOptional<z.ZodString>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ userJwt?: string | undefined;
513
+ token?: string | undefined;
514
+ }, {
515
+ userJwt?: string | undefined;
516
+ token?: string | undefined;
517
+ }>, {
518
+ userJwt?: string | undefined;
519
+ token?: string | undefined;
520
+ }, {
521
+ userJwt?: string | undefined;
522
+ token?: string | undefined;
523
+ }>;
524
+ export declare const signTestingJwtSchema: z.ZodObject<{
525
+ privateKey: z.ZodString;
526
+ userData: z.ZodObject<{
527
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
528
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
529
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
530
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
531
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
532
+ }, z.ZodTypeAny, "passthrough">>;
533
+ projectId: z.ZodOptional<z.ZodString>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ privateKey: string;
536
+ userData: {
537
+ id: string | number;
538
+ } & {
539
+ [k: string]: unknown;
540
+ };
541
+ projectId?: string | undefined;
542
+ }, {
543
+ privateKey: string;
544
+ userData: {
545
+ id: string | number;
546
+ } & {
547
+ [k: string]: unknown;
548
+ };
549
+ projectId?: string | undefined;
550
+ }>;
551
+ export declare const webhookConfigSchema: z.ZodObject<{
552
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
+ events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ url?: string | null | undefined;
557
+ secret?: string | null | undefined;
558
+ events?: string[] | null | undefined;
559
+ }, {
560
+ url?: string | null | undefined;
561
+ secret?: string | null | undefined;
562
+ events?: string[] | null | undefined;
563
+ }>;
564
+ export declare const DEFAULT_MODERATION_CATEGORIES: readonly ["fake-news", "conspiracy", "racism", "alcohol-promotion", "drug-promotion", "foul-language", "harassment", "hate-promotion", "sexual", "violence-promotion", "self-harm", "spam", "illicit", "pii"];
565
+ export declare const moderatorConfigSchema: z.ZodObject<{
566
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
+ blockAutoActionThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
569
+ reviewAutoActionThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
570
+ llmProvider: z.ZodOptional<z.ZodNullable<z.ZodEnum<["openai", "anthropic"]>>>;
571
+ llmBaseUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
+ llmApiKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
+ llmModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
+ llmMaxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
575
+ categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ url?: string | null | undefined;
578
+ secret?: string | null | undefined;
579
+ blockAutoActionThreshold?: number | null | undefined;
580
+ reviewAutoActionThreshold?: number | null | undefined;
581
+ llmProvider?: "openai" | "anthropic" | null | undefined;
582
+ llmBaseUrl?: string | null | undefined;
583
+ llmApiKey?: string | null | undefined;
584
+ llmModel?: string | null | undefined;
585
+ llmMaxTokens?: number | null | undefined;
586
+ categories?: string[] | null | undefined;
587
+ }, {
588
+ url?: string | null | undefined;
589
+ secret?: string | null | undefined;
590
+ blockAutoActionThreshold?: number | null | undefined;
591
+ reviewAutoActionThreshold?: number | null | undefined;
592
+ llmProvider?: "openai" | "anthropic" | null | undefined;
593
+ llmBaseUrl?: string | null | undefined;
594
+ llmApiKey?: string | null | undefined;
595
+ llmModel?: string | null | undefined;
596
+ llmMaxTokens?: number | null | undefined;
597
+ categories?: string[] | null | undefined;
598
+ }>;
599
+ export declare const moderationAnalyzeSchema: z.ZodObject<{
600
+ targetType: z.ZodEnum<["entity", "comment", "message"]>;
601
+ targetId: z.ZodString;
602
+ spaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
+ text: z.ZodString;
604
+ context: z.ZodOptional<z.ZodString>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ targetType: "entity" | "comment" | "message";
607
+ targetId: string;
608
+ text: string;
609
+ spaceId?: string | null | undefined;
610
+ context?: string | undefined;
611
+ }, {
612
+ targetType: "entity" | "comment" | "message";
613
+ targetId: string;
614
+ text: string;
615
+ spaceId?: string | null | undefined;
616
+ context?: string | undefined;
617
+ }>;
618
+ export declare const oauthAuthorizeSchema: z.ZodObject<{
619
+ provider: z.ZodString;
620
+ redirectAfterAuth: z.ZodString;
621
+ }, "strip", z.ZodTypeAny, {
622
+ provider: string;
623
+ redirectAfterAuth: string;
624
+ }, {
625
+ provider: string;
626
+ redirectAfterAuth: string;
627
+ }>;
628
+ export declare const createConversationSchema: z.ZodObject<{
629
+ type: z.ZodOptional<z.ZodEnum<["group", "space"]>>;
630
+ name: z.ZodOptional<z.ZodString>;
631
+ description: z.ZodOptional<z.ZodString>;
632
+ spaceId: z.ZodOptional<z.ZodString>;
633
+ memberIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
634
+ postingPermission: z.ZodOptional<z.ZodEnum<["members", "admins"]>>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ type?: "group" | "space" | undefined;
637
+ spaceId?: string | undefined;
638
+ name?: string | undefined;
639
+ description?: string | undefined;
640
+ postingPermission?: "members" | "admins" | undefined;
641
+ memberIds?: string[] | undefined;
642
+ }, {
643
+ type?: "group" | "space" | undefined;
644
+ spaceId?: string | undefined;
645
+ name?: string | undefined;
646
+ description?: string | undefined;
647
+ postingPermission?: "members" | "admins" | undefined;
648
+ memberIds?: string[] | undefined;
649
+ }>;
650
+ export declare const directConversationSchema: z.ZodObject<{
651
+ userId: z.ZodString;
652
+ }, "strip", z.ZodTypeAny, {
653
+ userId: string;
654
+ }, {
655
+ userId: string;
656
+ }>;
657
+ export declare const updateConversationSchema: z.ZodEffects<z.ZodObject<{
658
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ name?: string | null | undefined;
662
+ description?: string | null | undefined;
663
+ }, {
664
+ name?: string | null | undefined;
665
+ description?: string | null | undefined;
666
+ }>, {
667
+ name?: string | null | undefined;
668
+ description?: string | null | undefined;
669
+ }, {
670
+ name?: string | null | undefined;
671
+ description?: string | null | undefined;
672
+ }>;
673
+ export declare const sendMessageSchema: z.ZodEffects<z.ZodObject<{
674
+ parentMessageId: z.ZodOptional<z.ZodString>;
675
+ quotedMessageId: z.ZodOptional<z.ZodString>;
676
+ localId: z.ZodOptional<z.ZodString>;
677
+ content: z.ZodOptional<z.ZodString>;
678
+ gif: z.ZodOptional<z.ZodUnknown>;
679
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
680
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ content?: string | undefined;
683
+ mentions?: unknown[] | null | undefined;
684
+ metadata?: Record<string, unknown> | null | undefined;
685
+ gif?: unknown;
686
+ parentMessageId?: string | undefined;
687
+ quotedMessageId?: string | undefined;
688
+ localId?: string | undefined;
689
+ }, {
690
+ content?: string | undefined;
691
+ mentions?: unknown[] | null | undefined;
692
+ metadata?: Record<string, unknown> | null | undefined;
693
+ gif?: unknown;
694
+ parentMessageId?: string | undefined;
695
+ quotedMessageId?: string | undefined;
696
+ localId?: string | undefined;
697
+ }>, {
698
+ content?: string | undefined;
699
+ mentions?: unknown[] | null | undefined;
700
+ metadata?: Record<string, unknown> | null | undefined;
701
+ gif?: unknown;
702
+ parentMessageId?: string | undefined;
703
+ quotedMessageId?: string | undefined;
704
+ localId?: string | undefined;
705
+ }, {
706
+ content?: string | undefined;
707
+ mentions?: unknown[] | null | undefined;
708
+ metadata?: Record<string, unknown> | null | undefined;
709
+ gif?: unknown;
710
+ parentMessageId?: string | undefined;
711
+ quotedMessageId?: string | undefined;
712
+ localId?: string | undefined;
713
+ }>;
714
+ export declare const editMessageSchema: z.ZodEffects<z.ZodObject<{
715
+ content: z.ZodOptional<z.ZodString>;
716
+ gif: z.ZodOptional<z.ZodUnknown>;
717
+ mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>>;
718
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ content?: string | undefined;
721
+ mentions?: unknown[] | null | undefined;
722
+ metadata?: Record<string, unknown> | null | undefined;
723
+ gif?: unknown;
724
+ }, {
725
+ content?: string | undefined;
726
+ mentions?: unknown[] | null | undefined;
727
+ metadata?: Record<string, unknown> | null | undefined;
728
+ gif?: unknown;
729
+ }>, {
730
+ content?: string | undefined;
731
+ mentions?: unknown[] | null | undefined;
732
+ metadata?: Record<string, unknown> | null | undefined;
733
+ gif?: unknown;
734
+ }, {
735
+ content?: string | undefined;
736
+ mentions?: unknown[] | null | undefined;
737
+ metadata?: Record<string, unknown> | null | undefined;
738
+ gif?: unknown;
739
+ }>;
740
+ export declare const messageReactionSchema: z.ZodObject<{
741
+ emoji: z.ZodString;
742
+ }, "strip", z.ZodTypeAny, {
743
+ emoji: string;
744
+ }, {
745
+ emoji: string;
746
+ }>;
747
+ export declare const reportMessageSchema: z.ZodObject<{
748
+ reason: z.ZodString;
749
+ details: z.ZodOptional<z.ZodString>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ reason: string;
752
+ details?: string | undefined;
753
+ }, {
754
+ reason: string;
755
+ details?: string | undefined;
756
+ }>;
757
+ export declare const addConversationMemberSchema: z.ZodObject<{
758
+ userId: z.ZodString;
759
+ role: z.ZodOptional<z.ZodEnum<["admin", "member"]>>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ userId: string;
762
+ role?: "admin" | "member" | undefined;
763
+ }, {
764
+ userId: string;
765
+ role?: "admin" | "member" | undefined;
766
+ }>;
767
+ export declare const convMemberRoleSchema: z.ZodObject<{
768
+ role: z.ZodEnum<["admin", "member"]>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ role: "admin" | "member";
771
+ }, {
772
+ role: "admin" | "member";
773
+ }>;
774
+ export declare const connectionRequestSchema: z.ZodObject<{
775
+ message: z.ZodOptional<z.ZodString>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ message?: string | undefined;
778
+ }, {
779
+ message?: string | undefined;
780
+ }>;
781
+ //# sourceMappingURL=schemas.d.ts.map