@openora/core 0.4.1-canary.72 → 0.4.1-canary.73
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/.tsbuildinfo +1 -1
- package/dist/admin-console/plugin.d.ts +1 -0
- package/dist/admin-console/plugin.d.ts.map +1 -1
- package/dist/analytics/plugin.d.ts +1 -0
- package/dist/analytics/plugin.d.ts.map +1 -1
- package/dist/audit/plugin.d.ts +1 -0
- package/dist/audit/plugin.d.ts.map +1 -1
- package/dist/audit/plugin.js +6 -0
- package/dist/audit/plugin.js.map +1 -1
- package/dist/casino/gaming/plugin.d.ts +1 -0
- package/dist/casino/gaming/plugin.d.ts.map +1 -1
- package/dist/casino/lobby/plugin.d.ts +1 -0
- package/dist/casino/lobby/plugin.d.ts.map +1 -1
- package/dist/cms/plugin.d.ts +1 -0
- package/dist/cms/plugin.d.ts.map +1 -1
- package/dist/compliance/plugin.d.ts +1 -0
- package/dist/compliance/plugin.d.ts.map +1 -1
- package/dist/contracts/adapters/admin-user-directory.d.ts +2 -1
- package/dist/contracts/adapters/admin-user-directory.d.ts.map +1 -1
- package/dist/contracts/adapters/admin-user-directory.js.map +1 -1
- package/dist/contracts/adapters/chat-moderation.d.ts +75 -0
- package/dist/contracts/adapters/chat-moderation.d.ts.map +1 -0
- package/dist/contracts/adapters/chat-moderation.js +3 -0
- package/dist/contracts/adapters/chat-moderation.js.map +1 -0
- package/dist/contracts/adapters/index.d.ts +2 -0
- package/dist/contracts/adapters/index.d.ts.map +1 -1
- package/dist/contracts/adapters/index.js +1 -0
- package/dist/contracts/adapters/index.js.map +1 -1
- package/dist/contracts/adapters/realtime.d.ts +9 -1
- package/dist/contracts/adapters/realtime.d.ts.map +1 -1
- package/dist/contracts/adapters/realtime.js.map +1 -1
- package/dist/contracts/schemas/events.d.ts +19 -4
- package/dist/contracts/schemas/events.d.ts.map +1 -1
- package/dist/contracts/schemas/events.js +12 -5
- package/dist/contracts/schemas/events.js.map +1 -1
- package/dist/engagement/chat/__tests__/chat.service.int.test.js +314 -19
- package/dist/engagement/chat/__tests__/chat.service.int.test.js.map +1 -1
- package/dist/engagement/chat/contract/constants.d.ts +1 -1
- package/dist/engagement/chat/contract/constants.d.ts.map +1 -1
- package/dist/engagement/chat/contract/constants.js +1 -1
- package/dist/engagement/chat/contract/constants.js.map +1 -1
- package/dist/engagement/chat/contract/index.d.ts +764 -18
- package/dist/engagement/chat/contract/index.d.ts.map +1 -1
- package/dist/engagement/chat/contract/index.js +236 -5
- package/dist/engagement/chat/contract/index.js.map +1 -1
- package/dist/engagement/chat/drizzle/migrations/0005_tranquil_gwen_stacy.sql +100 -0
- package/dist/engagement/chat/drizzle/migrations/0006_tiny_ultron.sql +3 -0
- package/dist/engagement/chat/drizzle/migrations/meta/0005_snapshot.json +1422 -0
- package/dist/engagement/chat/drizzle/migrations/meta/0006_snapshot.json +1456 -0
- package/dist/engagement/chat/drizzle/migrations/meta/_journal.json +14 -0
- package/dist/engagement/chat/plugin.d.ts +2 -1
- package/dist/engagement/chat/plugin.d.ts.map +1 -1
- package/dist/engagement/chat/plugin.js +25 -13
- package/dist/engagement/chat/plugin.js.map +1 -1
- package/dist/engagement/chat/router/index.d.ts +518 -18
- package/dist/engagement/chat/router/index.d.ts.map +1 -1
- package/dist/engagement/chat/router/index.js +140 -20
- package/dist/engagement/chat/router/index.js.map +1 -1
- package/dist/engagement/chat/schema/index.d.ts +1017 -16
- package/dist/engagement/chat/schema/index.d.ts.map +1 -1
- package/dist/engagement/chat/schema/index.js +110 -4
- package/dist/engagement/chat/schema/index.js.map +1 -1
- package/dist/engagement/chat/service/chat-ban.service.d.ts +26 -0
- package/dist/engagement/chat/service/chat-ban.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-ban.service.js +139 -0
- package/dist/engagement/chat/service/chat-ban.service.js.map +1 -0
- package/dist/engagement/chat/service/chat-message-moderation.service.d.ts +14 -0
- package/dist/engagement/chat/service/chat-message-moderation.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-message-moderation.service.js +48 -0
- package/dist/engagement/chat/service/chat-message-moderation.service.js.map +1 -0
- package/dist/engagement/chat/service/chat-moderation.service.d.ts +30 -0
- package/dist/engagement/chat/service/chat-moderation.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-moderation.service.js +40 -0
- package/dist/engagement/chat/service/chat-moderation.service.js.map +1 -0
- package/dist/engagement/chat/service/chat-mute.service.d.ts +26 -0
- package/dist/engagement/chat/service/chat-mute.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-mute.service.js +143 -0
- package/dist/engagement/chat/service/chat-mute.service.js.map +1 -0
- package/dist/engagement/chat/service/chat-room-ban.service.d.ts +29 -0
- package/dist/engagement/chat/service/chat-room-ban.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-room-ban.service.js +105 -0
- package/dist/engagement/chat/service/chat-room-ban.service.js.map +1 -0
- package/dist/engagement/chat/service/chat-room-membership.service.d.ts +72 -0
- package/dist/engagement/chat/service/chat-room-membership.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-room-membership.service.js +176 -0
- package/dist/engagement/chat/service/chat-room-membership.service.js.map +1 -0
- package/dist/engagement/chat/service/chat-room-mute.service.d.ts +25 -0
- package/dist/engagement/chat/service/chat-room-mute.service.d.ts.map +1 -0
- package/dist/engagement/chat/service/chat-room-mute.service.js +89 -0
- package/dist/engagement/chat/service/chat-room-mute.service.js.map +1 -0
- package/dist/engagement/chat/service/chat.service.d.ts +348 -61
- package/dist/engagement/chat/service/chat.service.d.ts.map +1 -1
- package/dist/engagement/chat/service/chat.service.js +460 -194
- package/dist/engagement/chat/service/chat.service.js.map +1 -1
- package/dist/engagement/chat/service/errors/chat-moderation.errors.d.ts +21 -0
- package/dist/engagement/chat/service/errors/chat-moderation.errors.d.ts.map +1 -0
- package/dist/engagement/chat/service/errors/chat-moderation.errors.js +31 -0
- package/dist/engagement/chat/service/errors/chat-moderation.errors.js.map +1 -0
- package/dist/engagement/chat-commands/contract/index.js +1 -1
- package/dist/engagement/chat-commands/contract/index.js.map +1 -1
- package/dist/engagement/chat-commands/drizzle/migrations/0001_sturdy_barracuda.sql +1 -0
- package/dist/engagement/chat-commands/drizzle/migrations/meta/0001_snapshot.json +83 -0
- package/dist/engagement/chat-commands/drizzle/migrations/meta/_journal.json +7 -0
- package/dist/engagement/chat-commands/plugin.d.ts +1 -0
- package/dist/engagement/chat-commands/plugin.d.ts.map +1 -1
- package/dist/engagement/chat-commands/schema/index.d.ts +0 -199
- package/dist/engagement/chat-commands/schema/index.d.ts.map +1 -1
- package/dist/engagement/chat-commands/schema/index.js +1 -19
- package/dist/engagement/chat-commands/schema/index.js.map +1 -1
- package/dist/engagement/chat-commands/service/__tests__/chat-commands.service.test.js +15 -1
- package/dist/engagement/chat-commands/service/__tests__/chat-commands.service.test.js.map +1 -1
- package/dist/engagement/chat-commands/service/chat-commands.service.d.ts +1 -0
- package/dist/engagement/chat-commands/service/chat-commands.service.d.ts.map +1 -1
- package/dist/engagement/chat-commands/service/chat-commands.service.js +38 -3
- package/dist/engagement/chat-commands/service/chat-commands.service.js.map +1 -1
- package/dist/engagement/notifications/plugin.d.ts +1 -0
- package/dist/engagement/notifications/plugin.d.ts.map +1 -1
- package/dist/engagement/social/plugin.d.ts +1 -0
- package/dist/engagement/social/plugin.d.ts.map +1 -1
- package/dist/engagement/social-transfers/plugin.d.ts +1 -0
- package/dist/engagement/social-transfers/plugin.d.ts.map +1 -1
- package/dist/engagement/social-transfers/schema/index.d.ts +1 -2
- package/dist/engagement/social-transfers/schema/index.d.ts.map +1 -1
- package/dist/engagement/social-transfers/schema/index.js +1 -2
- package/dist/engagement/social-transfers/schema/index.js.map +1 -1
- package/dist/engagement/social-transfers/service/__tests__/social-transfers.service.test.js +10 -0
- package/dist/engagement/social-transfers/service/__tests__/social-transfers.service.test.js.map +1 -1
- package/dist/iam/plugin.d.ts +1 -0
- package/dist/iam/plugin.d.ts.map +1 -1
- package/dist/iam/seed/data/default-admin-roles.d.ts.map +1 -1
- package/dist/iam/seed/data/default-admin-roles.js +3 -0
- package/dist/iam/seed/data/default-admin-roles.js.map +1 -1
- package/dist/pam/identity/admin-user-directory.d.ts +10 -0
- package/dist/pam/identity/admin-user-directory.d.ts.map +1 -1
- package/dist/pam/identity/admin-user-directory.js +12 -2
- package/dist/pam/identity/admin-user-directory.js.map +1 -1
- package/dist/pam/identity/plugin.d.ts +1 -0
- package/dist/pam/identity/plugin.d.ts.map +1 -1
- package/dist/pam/player-management/plugin.d.ts +1 -0
- package/dist/pam/player-management/plugin.d.ts.map +1 -1
- package/dist/pam/player-note/plugin.d.ts +1 -0
- package/dist/pam/player-note/plugin.d.ts.map +1 -1
- package/dist/pam/profile/plugin.d.ts +1 -0
- package/dist/pam/profile/plugin.d.ts.map +1 -1
- package/dist/pam/tag/plugin.d.ts +1 -0
- package/dist/pam/tag/plugin.d.ts.map +1 -1
- package/dist/server/auth/permissions.d.ts +12 -12
- package/dist/server/auth/permissions.js +2 -2
- package/dist/server/auth/permissions.js.map +1 -1
- package/dist/server/kernel/__tests__/realtime-transport.test.js +7 -0
- package/dist/server/kernel/__tests__/realtime-transport.test.js.map +1 -1
- package/dist/server/kernel/orpc-error-map.d.ts.map +1 -1
- package/dist/server/kernel/orpc-error-map.js +4 -1
- package/dist/server/kernel/orpc-error-map.js.map +1 -1
- package/dist/server/kernel/realtime-transport.d.ts +3 -1
- package/dist/server/kernel/realtime-transport.d.ts.map +1 -1
- package/dist/server/kernel/realtime-transport.js +22 -4
- package/dist/server/kernel/realtime-transport.js.map +1 -1
- package/dist/server/runtime/core-token-catalog.d.ts +1 -0
- package/dist/server/runtime/core-token-catalog.d.ts.map +1 -1
- package/dist/server/runtime/core-token-catalog.js +2 -1
- package/dist/server/runtime/core-token-catalog.js.map +1 -1
- package/dist/testing/realtime-transport-conformance.d.ts.map +1 -1
- package/dist/testing/realtime-transport-conformance.js +4 -0
- package/dist/testing/realtime-transport-conformance.js.map +1 -1
- package/dist/wallet/plugin.d.ts +1 -0
- package/dist/wallet/plugin.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,10 +7,16 @@ export declare const AdminRoomSortBySchema: z.ZodDefault<z.ZodEnum<{
|
|
|
7
7
|
name: "name";
|
|
8
8
|
}>>;
|
|
9
9
|
export type AdminRoomSortBy = z.infer<typeof AdminRoomSortBySchema>;
|
|
10
|
+
export declare const ModeratedRoomSortBySchema: z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
createdAt: "createdAt";
|
|
12
|
+
name: "name";
|
|
13
|
+
}>>;
|
|
14
|
+
export type ModeratedRoomSortBy = z.infer<typeof ModeratedRoomSortBySchema>;
|
|
10
15
|
export type SortOrder = z.infer<typeof SortOrderSchema>;
|
|
11
16
|
export declare const ChatRoomSlugSchema: z.ZodString;
|
|
12
17
|
export declare const MessageContentSchema: z.ZodString;
|
|
13
18
|
export declare const ChatRoomRoleSchema: z.ZodEnum<{
|
|
19
|
+
owner: "owner";
|
|
14
20
|
member: "member";
|
|
15
21
|
moderator: "moderator";
|
|
16
22
|
}>;
|
|
@@ -27,21 +33,24 @@ export declare const ChatRoomSchema: z.ZodObject<{
|
|
|
27
33
|
id: z.ZodUUID;
|
|
28
34
|
name: z.ZodString;
|
|
29
35
|
slug: z.ZodString;
|
|
30
|
-
category: z.ZodEnum<{
|
|
36
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
31
37
|
"games-sports": "games-sports";
|
|
32
38
|
regions: "regions";
|
|
33
39
|
languages: "languages";
|
|
34
40
|
"private-channels": "private-channels";
|
|
35
|
-
}
|
|
41
|
+
}>>;
|
|
36
42
|
isPublic: z.ZodBoolean;
|
|
37
43
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
38
44
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
39
45
|
createdAt: z.ZodISODateTime;
|
|
46
|
+
isBanned: z.ZodBoolean;
|
|
47
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
40
48
|
}, z.core.$strip>;
|
|
41
49
|
export type ChatRoom = z.infer<typeof ChatRoomSchema>;
|
|
42
50
|
export declare const ChatRoomMemberSchema: z.ZodObject<{
|
|
43
51
|
userId: z.ZodUUID;
|
|
44
52
|
role: z.ZodEnum<{
|
|
53
|
+
owner: "owner";
|
|
45
54
|
member: "member";
|
|
46
55
|
moderator: "moderator";
|
|
47
56
|
}>;
|
|
@@ -49,6 +58,58 @@ export declare const ChatRoomMemberSchema: z.ZodObject<{
|
|
|
49
58
|
username: z.ZodNullable<z.ZodString>;
|
|
50
59
|
}, z.core.$strip>;
|
|
51
60
|
export type ChatRoomMember = z.infer<typeof ChatRoomMemberSchema>;
|
|
61
|
+
export declare const ChatRoomRuleSchema: z.ZodObject<{
|
|
62
|
+
id: z.ZodUUID;
|
|
63
|
+
roomId: z.ZodUUID;
|
|
64
|
+
createdBy: z.ZodUUID;
|
|
65
|
+
orderNum: z.ZodNumber;
|
|
66
|
+
content: z.ZodString;
|
|
67
|
+
createdAt: z.ZodISODateTime;
|
|
68
|
+
updatedAt: z.ZodISODateTime;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type ChatRoomRule = z.infer<typeof ChatRoomRuleSchema>;
|
|
71
|
+
export declare const ChatRoomConfigurationSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodUUID;
|
|
73
|
+
roomId: z.ZodUUID;
|
|
74
|
+
slowMode: z.ZodBoolean;
|
|
75
|
+
slowModeSeconds: z.ZodNumber;
|
|
76
|
+
readOnlyMode: z.ZodBoolean;
|
|
77
|
+
onlyInvitedCanJoin: z.ZodBoolean;
|
|
78
|
+
lockRoom: z.ZodBoolean;
|
|
79
|
+
moderatorInvite: z.ZodBoolean;
|
|
80
|
+
createdAt: z.ZodISODateTime;
|
|
81
|
+
updatedAt: z.ZodISODateTime;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type ChatRoomConfiguration = z.infer<typeof ChatRoomConfigurationSchema>;
|
|
84
|
+
export declare const ChatRoomAccessStatusSchema: z.ZodEnum<{
|
|
85
|
+
owner: "owner";
|
|
86
|
+
member: "member";
|
|
87
|
+
all: "all";
|
|
88
|
+
}>;
|
|
89
|
+
export type ChatRoomAccessStatus = z.infer<typeof ChatRoomAccessStatusSchema>;
|
|
90
|
+
export declare const ChatRoomUserSchema: z.ZodObject<{
|
|
91
|
+
userId: z.ZodUUID;
|
|
92
|
+
username: z.ZodNullable<z.ZodString>;
|
|
93
|
+
role: z.ZodEnum<{
|
|
94
|
+
owner: "owner";
|
|
95
|
+
member: "member";
|
|
96
|
+
moderator: "moderator";
|
|
97
|
+
}>;
|
|
98
|
+
joinedAt: z.ZodISODateTime;
|
|
99
|
+
blocked: z.ZodBoolean;
|
|
100
|
+
banId: z.ZodNullable<z.ZodUUID>;
|
|
101
|
+
banExpiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type ChatRoomUser = z.infer<typeof ChatRoomUserSchema>;
|
|
104
|
+
export declare const ChatRoomBanSchema: z.ZodObject<{
|
|
105
|
+
id: z.ZodUUID;
|
|
106
|
+
roomId: z.ZodUUID;
|
|
107
|
+
userId: z.ZodUUID;
|
|
108
|
+
bannedBy: z.ZodUUID;
|
|
109
|
+
createdAt: z.ZodISODateTime;
|
|
110
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
111
|
+
liftedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
112
|
+
}, z.core.$strip>;
|
|
52
113
|
export declare const ChatMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
114
|
id: z.ZodUUID;
|
|
54
115
|
roomId: z.ZodNullable<z.ZodUUID>;
|
|
@@ -182,6 +243,151 @@ export declare const ChatMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
243
|
createdAt: z.ZodString;
|
|
183
244
|
}, z.core.$strip>], "type">;
|
|
184
245
|
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
|
|
246
|
+
export declare const AdminChatMessageDetailSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
+
id: z.ZodUUID;
|
|
248
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
249
|
+
userId: z.ZodUUID;
|
|
250
|
+
username: z.ZodString;
|
|
251
|
+
content: z.ZodString;
|
|
252
|
+
type: z.ZodLiteral<"user">;
|
|
253
|
+
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
254
|
+
command: z.ZodLiteral<"profile">;
|
|
255
|
+
targetUserId: z.ZodUUID;
|
|
256
|
+
displayName: z.ZodString;
|
|
257
|
+
level: z.ZodNumber;
|
|
258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
259
|
+
command: z.ZodLiteral<"gift">;
|
|
260
|
+
giftId: z.ZodUUID;
|
|
261
|
+
senderId: z.ZodUUID;
|
|
262
|
+
senderUsername: z.ZodString;
|
|
263
|
+
amount: z.ZodString;
|
|
264
|
+
currency: z.ZodString;
|
|
265
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
available: "available";
|
|
267
|
+
claimed: "claimed";
|
|
268
|
+
}>>;
|
|
269
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
270
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
271
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
+
command: z.ZodLiteral<"rain">;
|
|
274
|
+
fromUserId: z.ZodUUID;
|
|
275
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
276
|
+
amount: z.ZodString;
|
|
277
|
+
currency: z.ZodString;
|
|
278
|
+
recipientCount: z.ZodNumber;
|
|
279
|
+
perRecipient: z.ZodString;
|
|
280
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
281
|
+
userId: z.ZodUUID;
|
|
282
|
+
username: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>>;
|
|
284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
command: z.ZodLiteral<"block">;
|
|
286
|
+
targetUserId: z.ZodUUID;
|
|
287
|
+
displayName: z.ZodString;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
command: z.ZodLiteral<"unblock">;
|
|
290
|
+
targetUserId: z.ZodUUID;
|
|
291
|
+
displayName: z.ZodString;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
command: z.ZodLiteral<"ignore">;
|
|
294
|
+
targetUserId: z.ZodUUID;
|
|
295
|
+
displayName: z.ZodString;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
command: z.ZodLiteral<"unignore">;
|
|
298
|
+
targetUserId: z.ZodUUID;
|
|
299
|
+
displayName: z.ZodString;
|
|
300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
+
command: z.ZodLiteral<"donate">;
|
|
302
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
303
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
304
|
+
recipientId: z.ZodUUID;
|
|
305
|
+
recipientUsername: z.ZodString;
|
|
306
|
+
amount: z.ZodString;
|
|
307
|
+
currency: z.ZodString;
|
|
308
|
+
}, z.core.$strip>], "command">>;
|
|
309
|
+
isDeleted: z.ZodBoolean;
|
|
310
|
+
createdAt: z.ZodISODateTime;
|
|
311
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
+
id: z.ZodUUID;
|
|
313
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
314
|
+
actorId: z.ZodUUID;
|
|
315
|
+
userId: z.ZodUUID;
|
|
316
|
+
username: z.ZodString;
|
|
317
|
+
content: z.ZodString;
|
|
318
|
+
type: z.ZodLiteral<"system">;
|
|
319
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
320
|
+
command: z.ZodLiteral<"profile">;
|
|
321
|
+
targetUserId: z.ZodUUID;
|
|
322
|
+
displayName: z.ZodString;
|
|
323
|
+
level: z.ZodNumber;
|
|
324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
+
command: z.ZodLiteral<"gift">;
|
|
326
|
+
giftId: z.ZodUUID;
|
|
327
|
+
senderId: z.ZodUUID;
|
|
328
|
+
senderUsername: z.ZodString;
|
|
329
|
+
amount: z.ZodString;
|
|
330
|
+
currency: z.ZodString;
|
|
331
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
332
|
+
available: "available";
|
|
333
|
+
claimed: "claimed";
|
|
334
|
+
}>>;
|
|
335
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
336
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
337
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
339
|
+
command: z.ZodLiteral<"rain">;
|
|
340
|
+
fromUserId: z.ZodUUID;
|
|
341
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
342
|
+
amount: z.ZodString;
|
|
343
|
+
currency: z.ZodString;
|
|
344
|
+
recipientCount: z.ZodNumber;
|
|
345
|
+
perRecipient: z.ZodString;
|
|
346
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
+
userId: z.ZodUUID;
|
|
348
|
+
username: z.ZodString;
|
|
349
|
+
}, z.core.$strip>>>;
|
|
350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
351
|
+
command: z.ZodLiteral<"block">;
|
|
352
|
+
targetUserId: z.ZodUUID;
|
|
353
|
+
displayName: z.ZodString;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
command: z.ZodLiteral<"unblock">;
|
|
356
|
+
targetUserId: z.ZodUUID;
|
|
357
|
+
displayName: z.ZodString;
|
|
358
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
359
|
+
command: z.ZodLiteral<"ignore">;
|
|
360
|
+
targetUserId: z.ZodUUID;
|
|
361
|
+
displayName: z.ZodString;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
command: z.ZodLiteral<"unignore">;
|
|
364
|
+
targetUserId: z.ZodUUID;
|
|
365
|
+
displayName: z.ZodString;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
command: z.ZodLiteral<"donate">;
|
|
368
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
369
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
370
|
+
recipientId: z.ZodUUID;
|
|
371
|
+
recipientUsername: z.ZodString;
|
|
372
|
+
amount: z.ZodString;
|
|
373
|
+
currency: z.ZodString;
|
|
374
|
+
}, z.core.$strip>], "command">;
|
|
375
|
+
isDeleted: z.ZodBoolean;
|
|
376
|
+
createdAt: z.ZodString;
|
|
377
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
378
|
+
playerId: z.ZodNullable<z.ZodUUID>;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
export type AdminChatMessageDetail = z.infer<typeof AdminChatMessageDetailSchema>;
|
|
381
|
+
export declare const AdminChatMessageSchema: z.ZodObject<{
|
|
382
|
+
id: z.ZodUUID;
|
|
383
|
+
date: z.ZodISODateTime;
|
|
384
|
+
roomId: z.ZodUnion<[z.ZodUUID, z.ZodLiteral<"__global">]>;
|
|
385
|
+
playerId: z.ZodNullable<z.ZodUUID>;
|
|
386
|
+
roomName: z.ZodString;
|
|
387
|
+
content: z.ZodString;
|
|
388
|
+
time: z.ZodString;
|
|
389
|
+
}, z.core.$strip>;
|
|
390
|
+
export type AdminChatMessage = z.infer<typeof AdminChatMessageSchema>;
|
|
185
391
|
export declare const BlockedUserSchema: z.ZodObject<{
|
|
186
392
|
blockedId: z.ZodUUID;
|
|
187
393
|
createdAt: z.ZodISODateTime;
|
|
@@ -217,22 +423,105 @@ export declare const ChatConnectionGrantSchema: z.ZodObject<{
|
|
|
217
423
|
provider: z.ZodString;
|
|
218
424
|
channels: z.ZodArray<z.ZodString>;
|
|
219
425
|
}, z.core.$loose>;
|
|
426
|
+
export declare const ChatModerationResultSchema: z.ZodObject<{
|
|
427
|
+
success: z.ZodLiteral<true>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
export declare const CHAT_MODERATION_SCOPES: readonly ["__global", "__all_public", "__all"];
|
|
430
|
+
export declare const CHAT_MODERATION_SCOPE_VALUES: readonly ["__global", "__all_public", "__all", "room"];
|
|
431
|
+
export declare const ChatModerationScopeSchema: z.ZodEnum<{
|
|
432
|
+
__global: "__global";
|
|
433
|
+
__all_public: "__all_public";
|
|
434
|
+
__all: "__all";
|
|
435
|
+
room: "room";
|
|
436
|
+
}>;
|
|
437
|
+
export type ChatModerationScope = z.infer<typeof ChatModerationScopeSchema>;
|
|
438
|
+
export declare const ChatModerationRoomIdSchema: z.ZodUnion<readonly [z.ZodUUID, z.ZodEnum<{
|
|
439
|
+
__global: "__global";
|
|
440
|
+
__all_public: "__all_public";
|
|
441
|
+
__all: "__all";
|
|
442
|
+
}>]>;
|
|
443
|
+
export type ChatModerationRoomId = z.infer<typeof ChatModerationRoomIdSchema>;
|
|
444
|
+
export declare const ChatModerationEntrySchema: z.ZodObject<{
|
|
445
|
+
id: z.ZodUUID;
|
|
446
|
+
userId: z.ZodUUID;
|
|
447
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
448
|
+
scope: z.ZodEnum<{
|
|
449
|
+
__global: "__global";
|
|
450
|
+
__all_public: "__all_public";
|
|
451
|
+
__all: "__all";
|
|
452
|
+
room: "room";
|
|
453
|
+
}>;
|
|
454
|
+
reason: z.ZodString;
|
|
455
|
+
createdAt: z.ZodISODateTime;
|
|
456
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
457
|
+
}, z.core.$strip>;
|
|
458
|
+
export declare const ChatPlatformBanSchema: z.ZodObject<{
|
|
459
|
+
id: z.ZodUUID;
|
|
460
|
+
userId: z.ZodUUID;
|
|
461
|
+
reason: z.ZodString;
|
|
462
|
+
createdAt: z.ZodISODateTime;
|
|
463
|
+
liftedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
464
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
465
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
466
|
+
scope: z.ZodEnum<{
|
|
467
|
+
__global: "__global";
|
|
468
|
+
__all_public: "__all_public";
|
|
469
|
+
__all: "__all";
|
|
470
|
+
room: "room";
|
|
471
|
+
}>;
|
|
472
|
+
}, z.core.$strip>;
|
|
220
473
|
export declare const chatContract: {
|
|
221
474
|
listRooms: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
222
475
|
id: z.ZodUUID;
|
|
223
476
|
name: z.ZodString;
|
|
224
477
|
slug: z.ZodString;
|
|
225
|
-
category: z.ZodEnum<{
|
|
478
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
226
479
|
"games-sports": "games-sports";
|
|
227
480
|
regions: "regions";
|
|
228
481
|
languages: "languages";
|
|
229
482
|
"private-channels": "private-channels";
|
|
230
|
-
}
|
|
483
|
+
}>>;
|
|
231
484
|
isPublic: z.ZodBoolean;
|
|
232
485
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
233
486
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
234
487
|
createdAt: z.ZodISODateTime;
|
|
488
|
+
isBanned: z.ZodBoolean;
|
|
489
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
235
490
|
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
491
|
+
listModeratedRooms: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
492
|
+
name: z.ZodOptional<z.ZodString>;
|
|
493
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
494
|
+
createdAt: "createdAt";
|
|
495
|
+
name: "name";
|
|
496
|
+
}>>;
|
|
497
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
498
|
+
asc: "asc";
|
|
499
|
+
desc: "desc";
|
|
500
|
+
}>>;
|
|
501
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
502
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
503
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
504
|
+
items: z.ZodArray<z.ZodObject<{
|
|
505
|
+
id: z.ZodUUID;
|
|
506
|
+
name: z.ZodString;
|
|
507
|
+
slug: z.ZodString;
|
|
508
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
509
|
+
"games-sports": "games-sports";
|
|
510
|
+
regions: "regions";
|
|
511
|
+
languages: "languages";
|
|
512
|
+
"private-channels": "private-channels";
|
|
513
|
+
}>>;
|
|
514
|
+
isPublic: z.ZodBoolean;
|
|
515
|
+
joinCode: z.ZodNullable<z.ZodString>;
|
|
516
|
+
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
517
|
+
createdAt: z.ZodISODateTime;
|
|
518
|
+
isBanned: z.ZodBoolean;
|
|
519
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
total: z.ZodNumber;
|
|
522
|
+
page: z.ZodNumber;
|
|
523
|
+
limit: z.ZodNumber;
|
|
524
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
236
525
|
getRoomMessages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
237
526
|
roomId: z.ZodUUID;
|
|
238
527
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1103,16 +1392,18 @@ export declare const chatContract: {
|
|
|
1103
1392
|
id: z.ZodUUID;
|
|
1104
1393
|
name: z.ZodString;
|
|
1105
1394
|
slug: z.ZodString;
|
|
1106
|
-
category: z.ZodEnum<{
|
|
1395
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1107
1396
|
"games-sports": "games-sports";
|
|
1108
1397
|
regions: "regions";
|
|
1109
1398
|
languages: "languages";
|
|
1110
1399
|
"private-channels": "private-channels";
|
|
1111
|
-
}
|
|
1400
|
+
}>>;
|
|
1112
1401
|
isPublic: z.ZodBoolean;
|
|
1113
1402
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
1114
1403
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1115
1404
|
createdAt: z.ZodISODateTime;
|
|
1405
|
+
isBanned: z.ZodBoolean;
|
|
1406
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1116
1407
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1117
1408
|
deletePrivateRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1118
1409
|
roomId: z.ZodUUID;
|
|
@@ -1125,16 +1416,56 @@ export declare const chatContract: {
|
|
|
1125
1416
|
id: z.ZodUUID;
|
|
1126
1417
|
name: z.ZodString;
|
|
1127
1418
|
slug: z.ZodString;
|
|
1128
|
-
category: z.ZodEnum<{
|
|
1419
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1129
1420
|
"games-sports": "games-sports";
|
|
1130
1421
|
regions: "regions";
|
|
1131
1422
|
languages: "languages";
|
|
1132
1423
|
"private-channels": "private-channels";
|
|
1133
|
-
}
|
|
1424
|
+
}>>;
|
|
1425
|
+
isPublic: z.ZodBoolean;
|
|
1426
|
+
joinCode: z.ZodNullable<z.ZodString>;
|
|
1427
|
+
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1428
|
+
createdAt: z.ZodISODateTime;
|
|
1429
|
+
isBanned: z.ZodBoolean;
|
|
1430
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1431
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1432
|
+
joinPublicRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1433
|
+
roomId: z.ZodUUID;
|
|
1434
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1435
|
+
id: z.ZodUUID;
|
|
1436
|
+
name: z.ZodString;
|
|
1437
|
+
slug: z.ZodString;
|
|
1438
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1439
|
+
"games-sports": "games-sports";
|
|
1440
|
+
regions: "regions";
|
|
1441
|
+
languages: "languages";
|
|
1442
|
+
"private-channels": "private-channels";
|
|
1443
|
+
}>>;
|
|
1134
1444
|
isPublic: z.ZodBoolean;
|
|
1135
1445
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
1136
1446
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1137
1447
|
createdAt: z.ZodISODateTime;
|
|
1448
|
+
isBanned: z.ZodBoolean;
|
|
1449
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1450
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1451
|
+
adminJoinRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1452
|
+
roomId: z.ZodUUID;
|
|
1453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1454
|
+
id: z.ZodUUID;
|
|
1455
|
+
name: z.ZodString;
|
|
1456
|
+
slug: z.ZodString;
|
|
1457
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1458
|
+
"games-sports": "games-sports";
|
|
1459
|
+
regions: "regions";
|
|
1460
|
+
languages: "languages";
|
|
1461
|
+
"private-channels": "private-channels";
|
|
1462
|
+
}>>;
|
|
1463
|
+
isPublic: z.ZodBoolean;
|
|
1464
|
+
joinCode: z.ZodNullable<z.ZodString>;
|
|
1465
|
+
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1466
|
+
createdAt: z.ZodISODateTime;
|
|
1467
|
+
isBanned: z.ZodBoolean;
|
|
1468
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1138
1469
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1139
1470
|
leaveRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1140
1471
|
roomId: z.ZodUUID;
|
|
@@ -1147,24 +1478,177 @@ export declare const chatContract: {
|
|
|
1147
1478
|
id: z.ZodUUID;
|
|
1148
1479
|
name: z.ZodString;
|
|
1149
1480
|
slug: z.ZodString;
|
|
1150
|
-
category: z.ZodEnum<{
|
|
1481
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1151
1482
|
"games-sports": "games-sports";
|
|
1152
1483
|
regions: "regions";
|
|
1153
1484
|
languages: "languages";
|
|
1154
1485
|
"private-channels": "private-channels";
|
|
1155
|
-
}
|
|
1486
|
+
}>>;
|
|
1487
|
+
isPublic: z.ZodBoolean;
|
|
1488
|
+
joinCode: z.ZodNullable<z.ZodString>;
|
|
1489
|
+
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1490
|
+
createdAt: z.ZodISODateTime;
|
|
1491
|
+
isBanned: z.ZodBoolean;
|
|
1492
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1493
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1494
|
+
getRoomRules: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1495
|
+
roomId: z.ZodUnion<[z.ZodUUID, z.ZodLiteral<"__global">]>;
|
|
1496
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1497
|
+
id: z.ZodUUID;
|
|
1498
|
+
roomId: z.ZodUUID;
|
|
1499
|
+
createdBy: z.ZodUUID;
|
|
1500
|
+
orderNum: z.ZodNumber;
|
|
1501
|
+
content: z.ZodString;
|
|
1502
|
+
createdAt: z.ZodISODateTime;
|
|
1503
|
+
updatedAt: z.ZodISODateTime;
|
|
1504
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1505
|
+
createRoomRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1506
|
+
roomId: z.ZodUUID;
|
|
1507
|
+
orderNum: z.ZodOptional<z.ZodNumber>;
|
|
1508
|
+
content: z.ZodString;
|
|
1509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1510
|
+
id: z.ZodUUID;
|
|
1511
|
+
roomId: z.ZodUUID;
|
|
1512
|
+
createdBy: z.ZodUUID;
|
|
1513
|
+
orderNum: z.ZodNumber;
|
|
1514
|
+
content: z.ZodString;
|
|
1515
|
+
createdAt: z.ZodISODateTime;
|
|
1516
|
+
updatedAt: z.ZodISODateTime;
|
|
1517
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1518
|
+
updateRoomRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1519
|
+
roomId: z.ZodUUID;
|
|
1520
|
+
id: z.ZodUUID;
|
|
1521
|
+
orderNum: z.ZodOptional<z.ZodNumber>;
|
|
1522
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1524
|
+
id: z.ZodUUID;
|
|
1525
|
+
roomId: z.ZodUUID;
|
|
1526
|
+
createdBy: z.ZodUUID;
|
|
1527
|
+
orderNum: z.ZodNumber;
|
|
1528
|
+
content: z.ZodString;
|
|
1529
|
+
createdAt: z.ZodISODateTime;
|
|
1530
|
+
updatedAt: z.ZodISODateTime;
|
|
1531
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1532
|
+
updatePrivateRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1533
|
+
id: z.ZodUUID;
|
|
1534
|
+
name: z.ZodString;
|
|
1535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1536
|
+
id: z.ZodUUID;
|
|
1537
|
+
name: z.ZodString;
|
|
1538
|
+
slug: z.ZodString;
|
|
1539
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1540
|
+
"games-sports": "games-sports";
|
|
1541
|
+
regions: "regions";
|
|
1542
|
+
languages: "languages";
|
|
1543
|
+
"private-channels": "private-channels";
|
|
1544
|
+
}>>;
|
|
1156
1545
|
isPublic: z.ZodBoolean;
|
|
1157
1546
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
1158
1547
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1159
1548
|
createdAt: z.ZodISODateTime;
|
|
1549
|
+
isBanned: z.ZodBoolean;
|
|
1550
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1160
1551
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1161
|
-
|
|
1552
|
+
deleteRoomRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1162
1553
|
roomId: z.ZodUUID;
|
|
1554
|
+
id: z.ZodUUID;
|
|
1555
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1556
|
+
success: z.ZodLiteral<true>;
|
|
1557
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1558
|
+
getRoomConfiguration: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1559
|
+
roomId: z.ZodUUID;
|
|
1560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1561
|
+
id: z.ZodUUID;
|
|
1562
|
+
roomId: z.ZodUUID;
|
|
1563
|
+
slowMode: z.ZodBoolean;
|
|
1564
|
+
slowModeSeconds: z.ZodNumber;
|
|
1565
|
+
readOnlyMode: z.ZodBoolean;
|
|
1566
|
+
onlyInvitedCanJoin: z.ZodBoolean;
|
|
1567
|
+
lockRoom: z.ZodBoolean;
|
|
1568
|
+
moderatorInvite: z.ZodBoolean;
|
|
1569
|
+
createdAt: z.ZodISODateTime;
|
|
1570
|
+
updatedAt: z.ZodISODateTime;
|
|
1571
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1572
|
+
updateRoomConfiguration: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1573
|
+
roomId: z.ZodUUID;
|
|
1574
|
+
slowMode: z.ZodOptional<z.ZodBoolean>;
|
|
1575
|
+
slowModeSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1576
|
+
readOnlyMode: z.ZodOptional<z.ZodBoolean>;
|
|
1577
|
+
onlyInvitedCanJoin: z.ZodOptional<z.ZodBoolean>;
|
|
1578
|
+
lockRoom: z.ZodOptional<z.ZodBoolean>;
|
|
1579
|
+
moderatorInvite: z.ZodOptional<z.ZodBoolean>;
|
|
1580
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1581
|
+
id: z.ZodUUID;
|
|
1582
|
+
roomId: z.ZodUUID;
|
|
1583
|
+
slowMode: z.ZodBoolean;
|
|
1584
|
+
slowModeSeconds: z.ZodNumber;
|
|
1585
|
+
readOnlyMode: z.ZodBoolean;
|
|
1586
|
+
onlyInvitedCanJoin: z.ZodBoolean;
|
|
1587
|
+
lockRoom: z.ZodBoolean;
|
|
1588
|
+
moderatorInvite: z.ZodBoolean;
|
|
1589
|
+
createdAt: z.ZodISODateTime;
|
|
1590
|
+
updatedAt: z.ZodISODateTime;
|
|
1591
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1592
|
+
listRoomUsers: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1593
|
+
roomId: z.ZodUUID;
|
|
1594
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
1595
|
+
owner: "owner";
|
|
1596
|
+
member: "member";
|
|
1597
|
+
all: "all";
|
|
1598
|
+
}>>;
|
|
1599
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1163
1600
|
userId: z.ZodUUID;
|
|
1601
|
+
username: z.ZodNullable<z.ZodString>;
|
|
1602
|
+
role: z.ZodEnum<{
|
|
1603
|
+
owner: "owner";
|
|
1604
|
+
member: "member";
|
|
1605
|
+
moderator: "moderator";
|
|
1606
|
+
}>;
|
|
1607
|
+
joinedAt: z.ZodISODateTime;
|
|
1608
|
+
blocked: z.ZodBoolean;
|
|
1609
|
+
banId: z.ZodNullable<z.ZodUUID>;
|
|
1610
|
+
banExpiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1611
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1612
|
+
listRoomBlockedUsers: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1613
|
+
roomId: z.ZodUUID;
|
|
1614
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1615
|
+
id: z.ZodUUID;
|
|
1616
|
+
roomId: z.ZodUUID;
|
|
1617
|
+
userId: z.ZodUUID;
|
|
1618
|
+
bannedBy: z.ZodUUID;
|
|
1619
|
+
createdAt: z.ZodISODateTime;
|
|
1620
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1621
|
+
liftedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1622
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1623
|
+
removeMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1624
|
+
roomId: z.ZodUUID;
|
|
1625
|
+
userId: z.ZodUUID;
|
|
1626
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1627
|
+
success: z.ZodLiteral<true>;
|
|
1628
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1629
|
+
banRoomMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1630
|
+
roomId: z.ZodUUID;
|
|
1631
|
+
userId: z.ZodUUID;
|
|
1632
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
1633
|
+
durationSeconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1164
1634
|
}, z.core.$strip>, z.ZodObject<{
|
|
1165
1635
|
success: z.ZodLiteral<true>;
|
|
1166
1636
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1167
|
-
|
|
1637
|
+
unbanRoomMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1638
|
+
roomId: z.ZodUUID;
|
|
1639
|
+
userId: z.ZodUUID;
|
|
1640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1641
|
+
success: z.ZodLiteral<true>;
|
|
1642
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1643
|
+
muteRoomMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1644
|
+
roomId: z.ZodUUID;
|
|
1645
|
+
userId: z.ZodUUID;
|
|
1646
|
+
reason: z.ZodDefault<z.ZodString>;
|
|
1647
|
+
durationSeconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1648
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1649
|
+
success: z.ZodLiteral<true>;
|
|
1650
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1651
|
+
unmuteRoomMember: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1168
1652
|
roomId: z.ZodUUID;
|
|
1169
1653
|
userId: z.ZodUUID;
|
|
1170
1654
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1175,6 +1659,7 @@ export declare const chatContract: {
|
|
|
1175
1659
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1176
1660
|
userId: z.ZodUUID;
|
|
1177
1661
|
role: z.ZodEnum<{
|
|
1662
|
+
owner: "owner";
|
|
1178
1663
|
member: "member";
|
|
1179
1664
|
moderator: "moderator";
|
|
1180
1665
|
}>;
|
|
@@ -1194,16 +1679,18 @@ export declare const chatContract: {
|
|
|
1194
1679
|
id: z.ZodUUID;
|
|
1195
1680
|
name: z.ZodString;
|
|
1196
1681
|
slug: z.ZodString;
|
|
1197
|
-
category: z.ZodEnum<{
|
|
1682
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1198
1683
|
"games-sports": "games-sports";
|
|
1199
1684
|
regions: "regions";
|
|
1200
1685
|
languages: "languages";
|
|
1201
1686
|
"private-channels": "private-channels";
|
|
1202
|
-
}
|
|
1687
|
+
}>>;
|
|
1203
1688
|
isPublic: z.ZodBoolean;
|
|
1204
1689
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
1205
1690
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1206
1691
|
createdAt: z.ZodISODateTime;
|
|
1692
|
+
isBanned: z.ZodBoolean;
|
|
1693
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1207
1694
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1208
1695
|
updateRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1209
1696
|
id: z.ZodUUID;
|
|
@@ -1219,18 +1706,21 @@ export declare const chatContract: {
|
|
|
1219
1706
|
id: z.ZodUUID;
|
|
1220
1707
|
name: z.ZodString;
|
|
1221
1708
|
slug: z.ZodString;
|
|
1222
|
-
category: z.ZodEnum<{
|
|
1709
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1223
1710
|
"games-sports": "games-sports";
|
|
1224
1711
|
regions: "regions";
|
|
1225
1712
|
languages: "languages";
|
|
1226
1713
|
"private-channels": "private-channels";
|
|
1227
|
-
}
|
|
1714
|
+
}>>;
|
|
1228
1715
|
isPublic: z.ZodBoolean;
|
|
1229
1716
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
1230
1717
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1231
1718
|
createdAt: z.ZodISODateTime;
|
|
1719
|
+
isBanned: z.ZodBoolean;
|
|
1720
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1232
1721
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1233
1722
|
listAdminRooms: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1723
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1234
1724
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
1235
1725
|
createdAt: "createdAt";
|
|
1236
1726
|
name: "name";
|
|
@@ -1246,21 +1736,200 @@ export declare const chatContract: {
|
|
|
1246
1736
|
id: z.ZodUUID;
|
|
1247
1737
|
name: z.ZodString;
|
|
1248
1738
|
slug: z.ZodString;
|
|
1249
|
-
category: z.ZodEnum<{
|
|
1739
|
+
category: z.ZodNullable<z.ZodEnum<{
|
|
1250
1740
|
"games-sports": "games-sports";
|
|
1251
1741
|
regions: "regions";
|
|
1252
1742
|
languages: "languages";
|
|
1253
1743
|
"private-channels": "private-channels";
|
|
1254
|
-
}
|
|
1744
|
+
}>>;
|
|
1255
1745
|
isPublic: z.ZodBoolean;
|
|
1256
1746
|
joinCode: z.ZodNullable<z.ZodString>;
|
|
1257
1747
|
creatorId: z.ZodNullable<z.ZodUUID>;
|
|
1258
1748
|
createdAt: z.ZodISODateTime;
|
|
1749
|
+
isBanned: z.ZodBoolean;
|
|
1750
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
1259
1751
|
}, z.core.$strip>>;
|
|
1260
1752
|
total: z.ZodNumber;
|
|
1261
1753
|
page: z.ZodNumber;
|
|
1262
1754
|
limit: z.ZodNumber;
|
|
1263
1755
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1756
|
+
adminListRoomMessages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1757
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
1758
|
+
playerId: z.ZodOptional<z.ZodUUID>;
|
|
1759
|
+
includeDeleted: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
1760
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1761
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1762
|
+
roomId: z.ZodUnion<[z.ZodUUID, z.ZodLiteral<"__global">]>;
|
|
1763
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1764
|
+
items: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1765
|
+
id: z.ZodUUID;
|
|
1766
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
1767
|
+
userId: z.ZodUUID;
|
|
1768
|
+
username: z.ZodString;
|
|
1769
|
+
content: z.ZodString;
|
|
1770
|
+
type: z.ZodLiteral<"user">;
|
|
1771
|
+
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1772
|
+
command: z.ZodLiteral<"profile">;
|
|
1773
|
+
targetUserId: z.ZodUUID;
|
|
1774
|
+
displayName: z.ZodString;
|
|
1775
|
+
level: z.ZodNumber;
|
|
1776
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1777
|
+
command: z.ZodLiteral<"gift">;
|
|
1778
|
+
giftId: z.ZodUUID;
|
|
1779
|
+
senderId: z.ZodUUID;
|
|
1780
|
+
senderUsername: z.ZodString;
|
|
1781
|
+
amount: z.ZodString;
|
|
1782
|
+
currency: z.ZodString;
|
|
1783
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1784
|
+
available: "available";
|
|
1785
|
+
claimed: "claimed";
|
|
1786
|
+
}>>;
|
|
1787
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1788
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1789
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1790
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1791
|
+
command: z.ZodLiteral<"rain">;
|
|
1792
|
+
fromUserId: z.ZodUUID;
|
|
1793
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
amount: z.ZodString;
|
|
1795
|
+
currency: z.ZodString;
|
|
1796
|
+
recipientCount: z.ZodNumber;
|
|
1797
|
+
perRecipient: z.ZodString;
|
|
1798
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1799
|
+
userId: z.ZodUUID;
|
|
1800
|
+
username: z.ZodString;
|
|
1801
|
+
}, z.core.$strip>>>;
|
|
1802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1803
|
+
command: z.ZodLiteral<"block">;
|
|
1804
|
+
targetUserId: z.ZodUUID;
|
|
1805
|
+
displayName: z.ZodString;
|
|
1806
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1807
|
+
command: z.ZodLiteral<"unblock">;
|
|
1808
|
+
targetUserId: z.ZodUUID;
|
|
1809
|
+
displayName: z.ZodString;
|
|
1810
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1811
|
+
command: z.ZodLiteral<"ignore">;
|
|
1812
|
+
targetUserId: z.ZodUUID;
|
|
1813
|
+
displayName: z.ZodString;
|
|
1814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1815
|
+
command: z.ZodLiteral<"unignore">;
|
|
1816
|
+
targetUserId: z.ZodUUID;
|
|
1817
|
+
displayName: z.ZodString;
|
|
1818
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1819
|
+
command: z.ZodLiteral<"donate">;
|
|
1820
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
1821
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
1822
|
+
recipientId: z.ZodUUID;
|
|
1823
|
+
recipientUsername: z.ZodString;
|
|
1824
|
+
amount: z.ZodString;
|
|
1825
|
+
currency: z.ZodString;
|
|
1826
|
+
}, z.core.$strip>], "command">>;
|
|
1827
|
+
isDeleted: z.ZodBoolean;
|
|
1828
|
+
createdAt: z.ZodISODateTime;
|
|
1829
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1830
|
+
id: z.ZodUUID;
|
|
1831
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
1832
|
+
actorId: z.ZodUUID;
|
|
1833
|
+
userId: z.ZodUUID;
|
|
1834
|
+
username: z.ZodString;
|
|
1835
|
+
content: z.ZodString;
|
|
1836
|
+
type: z.ZodLiteral<"system">;
|
|
1837
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1838
|
+
command: z.ZodLiteral<"profile">;
|
|
1839
|
+
targetUserId: z.ZodUUID;
|
|
1840
|
+
displayName: z.ZodString;
|
|
1841
|
+
level: z.ZodNumber;
|
|
1842
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1843
|
+
command: z.ZodLiteral<"gift">;
|
|
1844
|
+
giftId: z.ZodUUID;
|
|
1845
|
+
senderId: z.ZodUUID;
|
|
1846
|
+
senderUsername: z.ZodString;
|
|
1847
|
+
amount: z.ZodString;
|
|
1848
|
+
currency: z.ZodString;
|
|
1849
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1850
|
+
available: "available";
|
|
1851
|
+
claimed: "claimed";
|
|
1852
|
+
}>>;
|
|
1853
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
1854
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1855
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1857
|
+
command: z.ZodLiteral<"rain">;
|
|
1858
|
+
fromUserId: z.ZodUUID;
|
|
1859
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
amount: z.ZodString;
|
|
1861
|
+
currency: z.ZodString;
|
|
1862
|
+
recipientCount: z.ZodNumber;
|
|
1863
|
+
perRecipient: z.ZodString;
|
|
1864
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1865
|
+
userId: z.ZodUUID;
|
|
1866
|
+
username: z.ZodString;
|
|
1867
|
+
}, z.core.$strip>>>;
|
|
1868
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1869
|
+
command: z.ZodLiteral<"block">;
|
|
1870
|
+
targetUserId: z.ZodUUID;
|
|
1871
|
+
displayName: z.ZodString;
|
|
1872
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1873
|
+
command: z.ZodLiteral<"unblock">;
|
|
1874
|
+
targetUserId: z.ZodUUID;
|
|
1875
|
+
displayName: z.ZodString;
|
|
1876
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1877
|
+
command: z.ZodLiteral<"ignore">;
|
|
1878
|
+
targetUserId: z.ZodUUID;
|
|
1879
|
+
displayName: z.ZodString;
|
|
1880
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1881
|
+
command: z.ZodLiteral<"unignore">;
|
|
1882
|
+
targetUserId: z.ZodUUID;
|
|
1883
|
+
displayName: z.ZodString;
|
|
1884
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1885
|
+
command: z.ZodLiteral<"donate">;
|
|
1886
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
1887
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
1888
|
+
recipientId: z.ZodUUID;
|
|
1889
|
+
recipientUsername: z.ZodString;
|
|
1890
|
+
amount: z.ZodString;
|
|
1891
|
+
currency: z.ZodString;
|
|
1892
|
+
}, z.core.$strip>], "command">;
|
|
1893
|
+
isDeleted: z.ZodBoolean;
|
|
1894
|
+
createdAt: z.ZodString;
|
|
1895
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1896
|
+
playerId: z.ZodNullable<z.ZodUUID>;
|
|
1897
|
+
}, z.core.$strip>>>;
|
|
1898
|
+
total: z.ZodNumber;
|
|
1899
|
+
page: z.ZodNumber;
|
|
1900
|
+
limit: z.ZodNumber;
|
|
1901
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1902
|
+
adminListMessages: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1903
|
+
roomId: z.ZodOptional<z.ZodUnion<[z.ZodUUID, z.ZodLiteral<"__global">]>>;
|
|
1904
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
1905
|
+
playerId: z.ZodOptional<z.ZodUUID>;
|
|
1906
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
includeDeleted: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
1908
|
+
sortOrder: z.ZodDefault<z.ZodEnum<{
|
|
1909
|
+
asc: "asc";
|
|
1910
|
+
desc: "desc";
|
|
1911
|
+
}>>;
|
|
1912
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1913
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
1914
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1915
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1916
|
+
id: z.ZodUUID;
|
|
1917
|
+
date: z.ZodISODateTime;
|
|
1918
|
+
roomId: z.ZodUnion<[z.ZodUUID, z.ZodLiteral<"__global">]>;
|
|
1919
|
+
playerId: z.ZodNullable<z.ZodUUID>;
|
|
1920
|
+
roomName: z.ZodString;
|
|
1921
|
+
content: z.ZodString;
|
|
1922
|
+
time: z.ZodString;
|
|
1923
|
+
}, z.core.$strip>>;
|
|
1924
|
+
total: z.ZodNumber;
|
|
1925
|
+
page: z.ZodNumber;
|
|
1926
|
+
limit: z.ZodNumber;
|
|
1927
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1928
|
+
adminDeleteMessage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1929
|
+
id: z.ZodUUID;
|
|
1930
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1931
|
+
success: z.ZodLiteral<true>;
|
|
1932
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1264
1933
|
deleteRoom: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1265
1934
|
id: z.ZodUUID;
|
|
1266
1935
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1306,5 +1975,82 @@ export declare const chatContract: {
|
|
|
1306
1975
|
page: z.ZodNumber;
|
|
1307
1976
|
limit: z.ZodNumber;
|
|
1308
1977
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1978
|
+
adminMute: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1979
|
+
userId: z.ZodUUID;
|
|
1980
|
+
reason: z.ZodString;
|
|
1981
|
+
roomId: z.ZodUnion<readonly [z.ZodUUID, z.ZodEnum<{
|
|
1982
|
+
__global: "__global";
|
|
1983
|
+
__all_public: "__all_public";
|
|
1984
|
+
__all: "__all";
|
|
1985
|
+
}>]>;
|
|
1986
|
+
durationSeconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1988
|
+
success: z.ZodLiteral<true>;
|
|
1989
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1990
|
+
adminUnmute: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1991
|
+
userId: z.ZodUUID;
|
|
1992
|
+
roomId: z.ZodUnion<readonly [z.ZodUUID, z.ZodEnum<{
|
|
1993
|
+
__global: "__global";
|
|
1994
|
+
__all_public: "__all_public";
|
|
1995
|
+
__all: "__all";
|
|
1996
|
+
}>]>;
|
|
1997
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1998
|
+
success: z.ZodLiteral<true>;
|
|
1999
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2000
|
+
adminListMutes: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2001
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
2002
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2003
|
+
id: z.ZodUUID;
|
|
2004
|
+
userId: z.ZodUUID;
|
|
2005
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
2006
|
+
scope: z.ZodEnum<{
|
|
2007
|
+
__global: "__global";
|
|
2008
|
+
__all_public: "__all_public";
|
|
2009
|
+
__all: "__all";
|
|
2010
|
+
room: "room";
|
|
2011
|
+
}>;
|
|
2012
|
+
reason: z.ZodString;
|
|
2013
|
+
createdAt: z.ZodISODateTime;
|
|
2014
|
+
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2015
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
2016
|
+
adminBan: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2017
|
+
userId: z.ZodUUID;
|
|
2018
|
+
reason: z.ZodString;
|
|
2019
|
+
roomId: z.ZodUnion<readonly [z.ZodUUID, z.ZodEnum<{
|
|
2020
|
+
__global: "__global";
|
|
2021
|
+
__all_public: "__all_public";
|
|
2022
|
+
__all: "__all";
|
|
2023
|
+
}>]>;
|
|
2024
|
+
durationSeconds: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2025
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2026
|
+
success: z.ZodLiteral<true>;
|
|
2027
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2028
|
+
adminUnban: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2029
|
+
userId: z.ZodUUID;
|
|
2030
|
+
roomId: z.ZodUnion<readonly [z.ZodUUID, z.ZodEnum<{
|
|
2031
|
+
__global: "__global";
|
|
2032
|
+
__all_public: "__all_public";
|
|
2033
|
+
__all: "__all";
|
|
2034
|
+
}>]>;
|
|
2035
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2036
|
+
success: z.ZodLiteral<true>;
|
|
2037
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
2038
|
+
adminListBans: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2039
|
+
userId: z.ZodOptional<z.ZodUUID>;
|
|
2040
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2041
|
+
id: z.ZodUUID;
|
|
2042
|
+
userId: z.ZodUUID;
|
|
2043
|
+
reason: z.ZodString;
|
|
2044
|
+
createdAt: z.ZodISODateTime;
|
|
2045
|
+
liftedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
2046
|
+
bannedUntil: z.ZodNullable<z.ZodISODateTime>;
|
|
2047
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
2048
|
+
scope: z.ZodEnum<{
|
|
2049
|
+
__global: "__global";
|
|
2050
|
+
__all_public: "__all_public";
|
|
2051
|
+
__all: "__all";
|
|
2052
|
+
room: "room";
|
|
2053
|
+
}>;
|
|
2054
|
+
}, z.core.$strip>>, Record<never, never>, Record<never, never>>;
|
|
1309
2055
|
};
|
|
1310
2056
|
//# sourceMappingURL=index.d.ts.map
|