@openora/core 0.4.1-canary.62 → 0.4.1-canary.63
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/contracts/adapters/chat-system-writer.d.ts +7 -1
- package/dist/contracts/adapters/chat-system-writer.d.ts.map +1 -1
- package/dist/contracts/adapters/chat-system-writer.js.map +1 -1
- package/dist/contracts/adapters/gift-commands.d.ts +6 -2
- package/dist/contracts/adapters/gift-commands.d.ts.map +1 -1
- package/dist/contracts/adapters/gift-commands.js.map +1 -1
- package/dist/contracts/adapters/index.d.ts +1 -1
- package/dist/contracts/adapters/index.d.ts.map +1 -1
- package/dist/contracts/adapters/index.js.map +1 -1
- package/dist/contracts/adapters/rain-commands.d.ts +6 -2
- package/dist/contracts/adapters/rain-commands.d.ts.map +1 -1
- package/dist/contracts/adapters/rain-commands.js.map +1 -1
- package/dist/contracts/schemas/chat-command-metadata.d.ts +14 -0
- package/dist/contracts/schemas/chat-command-metadata.d.ts.map +1 -1
- package/dist/contracts/schemas/chat-command-metadata.js +15 -0
- package/dist/contracts/schemas/chat-command-metadata.js.map +1 -1
- package/dist/contracts/schemas/chat-command.d.ts +101 -0
- package/dist/contracts/schemas/chat-command.d.ts.map +1 -1
- package/dist/contracts/schemas/chat-command.js +6 -0
- package/dist/contracts/schemas/chat-command.js.map +1 -1
- package/dist/engagement/chat/contract/index.d.ts +565 -32
- package/dist/engagement/chat/contract/index.d.ts.map +1 -1
- package/dist/engagement/chat/contract/index.js +7 -3
- package/dist/engagement/chat/contract/index.js.map +1 -1
- package/dist/engagement/chat/router/index.d.ts +482 -26
- package/dist/engagement/chat/router/index.d.ts.map +1 -1
- package/dist/engagement/chat/schema/index.d.ts +22 -0
- package/dist/engagement/chat/schema/index.d.ts.map +1 -1
- package/dist/engagement/chat/service/chat.service.d.ts +326 -25
- package/dist/engagement/chat/service/chat.service.d.ts.map +1 -1
- package/dist/engagement/chat/service/chat.service.js +40 -16
- package/dist/engagement/chat/service/chat.service.js.map +1 -1
- package/dist/engagement/chat-commands/contract/index.d.ts +38 -2
- package/dist/engagement/chat-commands/contract/index.d.ts.map +1 -1
- package/dist/engagement/chat-commands/contract/index.js +4 -4
- package/dist/engagement/chat-commands/contract/index.js.map +1 -1
- package/dist/engagement/chat-commands/router/index.d.ts +36 -0
- package/dist/engagement/chat-commands/router/index.d.ts.map +1 -1
- package/dist/engagement/chat-commands/router/index.js +3 -3
- package/dist/engagement/chat-commands/router/index.js.map +1 -1
- package/dist/engagement/chat-commands/service/__tests__/chat-commands.service.test.js +8 -0
- 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 +4 -3
- package/dist/engagement/chat-commands/service/chat-commands.service.d.ts.map +1 -1
- package/dist/engagement/chat-commands/service/chat-commands.service.js +5 -0
- package/dist/engagement/chat-commands/service/chat-commands.service.js.map +1 -1
- package/dist/engagement/social-transfers/contract/index.d.ts +20 -2
- package/dist/engagement/social-transfers/contract/index.d.ts.map +1 -1
- package/dist/engagement/social-transfers/contract/index.js +3 -3
- package/dist/engagement/social-transfers/contract/index.js.map +1 -1
- package/dist/engagement/social-transfers/router/index.d.ts +18 -0
- package/dist/engagement/social-transfers/router/index.d.ts.map +1 -1
- package/dist/engagement/social-transfers/service/__tests__/social-transfers.service.test.js +89 -4
- package/dist/engagement/social-transfers/service/__tests__/social-transfers.service.test.js.map +1 -1
- package/dist/engagement/social-transfers/service/social-transfers.service.d.ts +6 -3
- package/dist/engagement/social-transfers/service/social-transfers.service.d.ts.map +1 -1
- package/dist/engagement/social-transfers/service/social-transfers.service.js +86 -23
- package/dist/engagement/social-transfers/service/social-transfers.service.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,16 +26,13 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
26
26
|
roomId: import("zod").ZodUUID;
|
|
27
27
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
28
|
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
29
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
30
30
|
id: import("zod").ZodUUID;
|
|
31
31
|
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
32
32
|
userId: import("zod").ZodUUID;
|
|
33
33
|
username: import("zod").ZodString;
|
|
34
34
|
content: import("zod").ZodString;
|
|
35
|
-
type: import("zod").
|
|
36
|
-
system: "system";
|
|
37
|
-
user: "user";
|
|
38
|
-
}>;
|
|
35
|
+
type: import("zod").ZodLiteral<"user">;
|
|
39
36
|
metadata: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
40
37
|
command: import("zod").ZodLiteral<"profile">;
|
|
41
38
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -48,13 +45,25 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
48
45
|
senderUsername: import("zod").ZodString;
|
|
49
46
|
amount: import("zod").ZodString;
|
|
50
47
|
currency: import("zod").ZodString;
|
|
48
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
49
|
+
available: "available";
|
|
50
|
+
claimed: "claimed";
|
|
51
|
+
}>>;
|
|
52
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
53
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
54
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
51
55
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
52
56
|
command: import("zod").ZodLiteral<"rain">;
|
|
53
57
|
fromUserId: import("zod").ZodUUID;
|
|
58
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
59
|
amount: import("zod").ZodString;
|
|
55
60
|
currency: import("zod").ZodString;
|
|
56
61
|
recipientCount: import("zod").ZodNumber;
|
|
57
62
|
perRecipient: import("zod").ZodString;
|
|
63
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
64
|
+
userId: import("zod").ZodUUID;
|
|
65
|
+
username: import("zod").ZodString;
|
|
66
|
+
}, import("zod/v4/core").$strip>>>;
|
|
58
67
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
59
68
|
command: import("zod").ZodLiteral<"block">;
|
|
60
69
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -73,6 +82,8 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
73
82
|
displayName: import("zod").ZodString;
|
|
74
83
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
75
84
|
command: import("zod").ZodLiteral<"donate">;
|
|
85
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
86
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
76
87
|
recipientId: import("zod").ZodUUID;
|
|
77
88
|
recipientUsername: import("zod").ZodString;
|
|
78
89
|
amount: import("zod").ZodString;
|
|
@@ -80,20 +91,83 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
80
91
|
}, import("zod/v4/core").$strip>], "command">>;
|
|
81
92
|
isDeleted: import("zod").ZodBoolean;
|
|
82
93
|
createdAt: import("zod").ZodISODateTime;
|
|
83
|
-
}, import("zod/v4/core").$strip
|
|
94
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
95
|
+
id: import("zod").ZodUUID;
|
|
96
|
+
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
97
|
+
actorId: import("zod").ZodUUID;
|
|
98
|
+
userId: import("zod").ZodUUID;
|
|
99
|
+
username: import("zod").ZodString;
|
|
100
|
+
content: import("zod").ZodString;
|
|
101
|
+
type: import("zod").ZodLiteral<"system">;
|
|
102
|
+
metadata: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
103
|
+
command: import("zod").ZodLiteral<"profile">;
|
|
104
|
+
targetUserId: import("zod").ZodUUID;
|
|
105
|
+
displayName: import("zod").ZodString;
|
|
106
|
+
level: import("zod").ZodNumber;
|
|
107
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
108
|
+
command: import("zod").ZodLiteral<"gift">;
|
|
109
|
+
giftId: import("zod").ZodUUID;
|
|
110
|
+
senderId: import("zod").ZodUUID;
|
|
111
|
+
senderUsername: import("zod").ZodString;
|
|
112
|
+
amount: import("zod").ZodString;
|
|
113
|
+
currency: import("zod").ZodString;
|
|
114
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
115
|
+
available: "available";
|
|
116
|
+
claimed: "claimed";
|
|
117
|
+
}>>;
|
|
118
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
119
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
120
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
121
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
122
|
+
command: import("zod").ZodLiteral<"rain">;
|
|
123
|
+
fromUserId: import("zod").ZodUUID;
|
|
124
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
125
|
+
amount: import("zod").ZodString;
|
|
126
|
+
currency: import("zod").ZodString;
|
|
127
|
+
recipientCount: import("zod").ZodNumber;
|
|
128
|
+
perRecipient: import("zod").ZodString;
|
|
129
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
130
|
+
userId: import("zod").ZodUUID;
|
|
131
|
+
username: import("zod").ZodString;
|
|
132
|
+
}, import("zod/v4/core").$strip>>>;
|
|
133
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
134
|
+
command: import("zod").ZodLiteral<"block">;
|
|
135
|
+
targetUserId: import("zod").ZodUUID;
|
|
136
|
+
displayName: import("zod").ZodString;
|
|
137
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
138
|
+
command: import("zod").ZodLiteral<"unblock">;
|
|
139
|
+
targetUserId: import("zod").ZodUUID;
|
|
140
|
+
displayName: import("zod").ZodString;
|
|
141
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
142
|
+
command: import("zod").ZodLiteral<"ignore">;
|
|
143
|
+
targetUserId: import("zod").ZodUUID;
|
|
144
|
+
displayName: import("zod").ZodString;
|
|
145
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
146
|
+
command: import("zod").ZodLiteral<"unignore">;
|
|
147
|
+
targetUserId: import("zod").ZodUUID;
|
|
148
|
+
displayName: import("zod").ZodString;
|
|
149
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
150
|
+
command: import("zod").ZodLiteral<"donate">;
|
|
151
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
152
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
recipientId: import("zod").ZodUUID;
|
|
154
|
+
recipientUsername: import("zod").ZodString;
|
|
155
|
+
amount: import("zod").ZodString;
|
|
156
|
+
currency: import("zod").ZodString;
|
|
157
|
+
}, import("zod/v4/core").$strip>], "command">;
|
|
158
|
+
isDeleted: import("zod").ZodBoolean;
|
|
159
|
+
createdAt: import("zod").ZodString;
|
|
160
|
+
}, import("zod/v4/core").$strip>], "type">>, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
84
161
|
sendRoomMessage: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
|
|
85
162
|
roomId: import("zod").ZodUUID;
|
|
86
163
|
content: import("zod").ZodString;
|
|
87
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
164
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
88
165
|
id: import("zod").ZodUUID;
|
|
89
166
|
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
90
167
|
userId: import("zod").ZodUUID;
|
|
91
168
|
username: import("zod").ZodString;
|
|
92
169
|
content: import("zod").ZodString;
|
|
93
|
-
type: import("zod").
|
|
94
|
-
system: "system";
|
|
95
|
-
user: "user";
|
|
96
|
-
}>;
|
|
170
|
+
type: import("zod").ZodLiteral<"user">;
|
|
97
171
|
metadata: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
98
172
|
command: import("zod").ZodLiteral<"profile">;
|
|
99
173
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -106,13 +180,25 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
106
180
|
senderUsername: import("zod").ZodString;
|
|
107
181
|
amount: import("zod").ZodString;
|
|
108
182
|
currency: import("zod").ZodString;
|
|
183
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
184
|
+
available: "available";
|
|
185
|
+
claimed: "claimed";
|
|
186
|
+
}>>;
|
|
187
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
188
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
189
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
109
190
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
110
191
|
command: import("zod").ZodLiteral<"rain">;
|
|
111
192
|
fromUserId: import("zod").ZodUUID;
|
|
193
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
194
|
amount: import("zod").ZodString;
|
|
113
195
|
currency: import("zod").ZodString;
|
|
114
196
|
recipientCount: import("zod").ZodNumber;
|
|
115
197
|
perRecipient: import("zod").ZodString;
|
|
198
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
199
|
+
userId: import("zod").ZodUUID;
|
|
200
|
+
username: import("zod").ZodString;
|
|
201
|
+
}, import("zod/v4/core").$strip>>>;
|
|
116
202
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
117
203
|
command: import("zod").ZodLiteral<"block">;
|
|
118
204
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -131,6 +217,8 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
131
217
|
displayName: import("zod").ZodString;
|
|
132
218
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
133
219
|
command: import("zod").ZodLiteral<"donate">;
|
|
220
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
221
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
134
222
|
recipientId: import("zod").ZodUUID;
|
|
135
223
|
recipientUsername: import("zod").ZodString;
|
|
136
224
|
amount: import("zod").ZodString;
|
|
@@ -138,22 +226,85 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
138
226
|
}, import("zod/v4/core").$strip>], "command">>;
|
|
139
227
|
isDeleted: import("zod").ZodBoolean;
|
|
140
228
|
createdAt: import("zod").ZodISODateTime;
|
|
141
|
-
}, import("zod/v4/core").$strip>, import("
|
|
229
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
230
|
+
id: import("zod").ZodUUID;
|
|
231
|
+
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
232
|
+
actorId: import("zod").ZodUUID;
|
|
233
|
+
userId: import("zod").ZodUUID;
|
|
234
|
+
username: import("zod").ZodString;
|
|
235
|
+
content: import("zod").ZodString;
|
|
236
|
+
type: import("zod").ZodLiteral<"system">;
|
|
237
|
+
metadata: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
238
|
+
command: import("zod").ZodLiteral<"profile">;
|
|
239
|
+
targetUserId: import("zod").ZodUUID;
|
|
240
|
+
displayName: import("zod").ZodString;
|
|
241
|
+
level: import("zod").ZodNumber;
|
|
242
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
243
|
+
command: import("zod").ZodLiteral<"gift">;
|
|
244
|
+
giftId: import("zod").ZodUUID;
|
|
245
|
+
senderId: import("zod").ZodUUID;
|
|
246
|
+
senderUsername: import("zod").ZodString;
|
|
247
|
+
amount: import("zod").ZodString;
|
|
248
|
+
currency: import("zod").ZodString;
|
|
249
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
250
|
+
available: "available";
|
|
251
|
+
claimed: "claimed";
|
|
252
|
+
}>>;
|
|
253
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
254
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
255
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
256
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
257
|
+
command: import("zod").ZodLiteral<"rain">;
|
|
258
|
+
fromUserId: import("zod").ZodUUID;
|
|
259
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
260
|
+
amount: import("zod").ZodString;
|
|
261
|
+
currency: import("zod").ZodString;
|
|
262
|
+
recipientCount: import("zod").ZodNumber;
|
|
263
|
+
perRecipient: import("zod").ZodString;
|
|
264
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
265
|
+
userId: import("zod").ZodUUID;
|
|
266
|
+
username: import("zod").ZodString;
|
|
267
|
+
}, import("zod/v4/core").$strip>>>;
|
|
268
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
269
|
+
command: import("zod").ZodLiteral<"block">;
|
|
270
|
+
targetUserId: import("zod").ZodUUID;
|
|
271
|
+
displayName: import("zod").ZodString;
|
|
272
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
273
|
+
command: import("zod").ZodLiteral<"unblock">;
|
|
274
|
+
targetUserId: import("zod").ZodUUID;
|
|
275
|
+
displayName: import("zod").ZodString;
|
|
276
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
277
|
+
command: import("zod").ZodLiteral<"ignore">;
|
|
278
|
+
targetUserId: import("zod").ZodUUID;
|
|
279
|
+
displayName: import("zod").ZodString;
|
|
280
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
281
|
+
command: import("zod").ZodLiteral<"unignore">;
|
|
282
|
+
targetUserId: import("zod").ZodUUID;
|
|
283
|
+
displayName: import("zod").ZodString;
|
|
284
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
285
|
+
command: import("zod").ZodLiteral<"donate">;
|
|
286
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
287
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
288
|
+
recipientId: import("zod").ZodUUID;
|
|
289
|
+
recipientUsername: import("zod").ZodString;
|
|
290
|
+
amount: import("zod").ZodString;
|
|
291
|
+
currency: import("zod").ZodString;
|
|
292
|
+
}, import("zod/v4/core").$strip>], "command">;
|
|
293
|
+
isDeleted: import("zod").ZodBoolean;
|
|
294
|
+
createdAt: import("zod").ZodString;
|
|
295
|
+
}, import("zod/v4/core").$strip>], "type">, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
142
296
|
deleteMessage: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
|
|
143
297
|
id: import("zod").ZodUUID;
|
|
144
298
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
145
299
|
success: import("zod").ZodLiteral<true>;
|
|
146
300
|
}, import("zod/v4/core").$strip>, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
147
|
-
getGlobalMessages: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("@orpc/server").Schema<unknown, unknown>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
301
|
+
getGlobalMessages: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("@orpc/server").Schema<unknown, unknown>, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
148
302
|
id: import("zod").ZodUUID;
|
|
149
303
|
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
150
304
|
userId: import("zod").ZodUUID;
|
|
151
305
|
username: import("zod").ZodString;
|
|
152
306
|
content: import("zod").ZodString;
|
|
153
|
-
type: import("zod").
|
|
154
|
-
system: "system";
|
|
155
|
-
user: "user";
|
|
156
|
-
}>;
|
|
307
|
+
type: import("zod").ZodLiteral<"user">;
|
|
157
308
|
metadata: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
158
309
|
command: import("zod").ZodLiteral<"profile">;
|
|
159
310
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -166,13 +317,25 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
166
317
|
senderUsername: import("zod").ZodString;
|
|
167
318
|
amount: import("zod").ZodString;
|
|
168
319
|
currency: import("zod").ZodString;
|
|
320
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
321
|
+
available: "available";
|
|
322
|
+
claimed: "claimed";
|
|
323
|
+
}>>;
|
|
324
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
325
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
326
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
169
327
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
170
328
|
command: import("zod").ZodLiteral<"rain">;
|
|
171
329
|
fromUserId: import("zod").ZodUUID;
|
|
330
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
172
331
|
amount: import("zod").ZodString;
|
|
173
332
|
currency: import("zod").ZodString;
|
|
174
333
|
recipientCount: import("zod").ZodNumber;
|
|
175
334
|
perRecipient: import("zod").ZodString;
|
|
335
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
336
|
+
userId: import("zod").ZodUUID;
|
|
337
|
+
username: import("zod").ZodString;
|
|
338
|
+
}, import("zod/v4/core").$strip>>>;
|
|
176
339
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
177
340
|
command: import("zod").ZodLiteral<"block">;
|
|
178
341
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -191,6 +354,8 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
191
354
|
displayName: import("zod").ZodString;
|
|
192
355
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
193
356
|
command: import("zod").ZodLiteral<"donate">;
|
|
357
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
358
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
359
|
recipientId: import("zod").ZodUUID;
|
|
195
360
|
recipientUsername: import("zod").ZodString;
|
|
196
361
|
amount: import("zod").ZodString;
|
|
@@ -198,19 +363,82 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
198
363
|
}, import("zod/v4/core").$strip>], "command">>;
|
|
199
364
|
isDeleted: import("zod").ZodBoolean;
|
|
200
365
|
createdAt: import("zod").ZodISODateTime;
|
|
201
|
-
}, import("zod/v4/core").$strip
|
|
366
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
367
|
+
id: import("zod").ZodUUID;
|
|
368
|
+
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
369
|
+
actorId: import("zod").ZodUUID;
|
|
370
|
+
userId: import("zod").ZodUUID;
|
|
371
|
+
username: import("zod").ZodString;
|
|
372
|
+
content: import("zod").ZodString;
|
|
373
|
+
type: import("zod").ZodLiteral<"system">;
|
|
374
|
+
metadata: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
375
|
+
command: import("zod").ZodLiteral<"profile">;
|
|
376
|
+
targetUserId: import("zod").ZodUUID;
|
|
377
|
+
displayName: import("zod").ZodString;
|
|
378
|
+
level: import("zod").ZodNumber;
|
|
379
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
380
|
+
command: import("zod").ZodLiteral<"gift">;
|
|
381
|
+
giftId: import("zod").ZodUUID;
|
|
382
|
+
senderId: import("zod").ZodUUID;
|
|
383
|
+
senderUsername: import("zod").ZodString;
|
|
384
|
+
amount: import("zod").ZodString;
|
|
385
|
+
currency: import("zod").ZodString;
|
|
386
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
387
|
+
available: "available";
|
|
388
|
+
claimed: "claimed";
|
|
389
|
+
}>>;
|
|
390
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
391
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
392
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
393
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
394
|
+
command: import("zod").ZodLiteral<"rain">;
|
|
395
|
+
fromUserId: import("zod").ZodUUID;
|
|
396
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
397
|
+
amount: import("zod").ZodString;
|
|
398
|
+
currency: import("zod").ZodString;
|
|
399
|
+
recipientCount: import("zod").ZodNumber;
|
|
400
|
+
perRecipient: import("zod").ZodString;
|
|
401
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
402
|
+
userId: import("zod").ZodUUID;
|
|
403
|
+
username: import("zod").ZodString;
|
|
404
|
+
}, import("zod/v4/core").$strip>>>;
|
|
405
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
406
|
+
command: import("zod").ZodLiteral<"block">;
|
|
407
|
+
targetUserId: import("zod").ZodUUID;
|
|
408
|
+
displayName: import("zod").ZodString;
|
|
409
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
410
|
+
command: import("zod").ZodLiteral<"unblock">;
|
|
411
|
+
targetUserId: import("zod").ZodUUID;
|
|
412
|
+
displayName: import("zod").ZodString;
|
|
413
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
414
|
+
command: import("zod").ZodLiteral<"ignore">;
|
|
415
|
+
targetUserId: import("zod").ZodUUID;
|
|
416
|
+
displayName: import("zod").ZodString;
|
|
417
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
418
|
+
command: import("zod").ZodLiteral<"unignore">;
|
|
419
|
+
targetUserId: import("zod").ZodUUID;
|
|
420
|
+
displayName: import("zod").ZodString;
|
|
421
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
422
|
+
command: import("zod").ZodLiteral<"donate">;
|
|
423
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
424
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
425
|
+
recipientId: import("zod").ZodUUID;
|
|
426
|
+
recipientUsername: import("zod").ZodString;
|
|
427
|
+
amount: import("zod").ZodString;
|
|
428
|
+
currency: import("zod").ZodString;
|
|
429
|
+
}, import("zod/v4/core").$strip>], "command">;
|
|
430
|
+
isDeleted: import("zod").ZodBoolean;
|
|
431
|
+
createdAt: import("zod").ZodString;
|
|
432
|
+
}, import("zod/v4/core").$strip>], "type">>, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
202
433
|
sendGlobalMessage: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
|
|
203
434
|
content: import("zod").ZodString;
|
|
204
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
435
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
205
436
|
id: import("zod").ZodUUID;
|
|
206
437
|
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
207
438
|
userId: import("zod").ZodUUID;
|
|
208
439
|
username: import("zod").ZodString;
|
|
209
440
|
content: import("zod").ZodString;
|
|
210
|
-
type: import("zod").
|
|
211
|
-
system: "system";
|
|
212
|
-
user: "user";
|
|
213
|
-
}>;
|
|
441
|
+
type: import("zod").ZodLiteral<"user">;
|
|
214
442
|
metadata: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
215
443
|
command: import("zod").ZodLiteral<"profile">;
|
|
216
444
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -223,13 +451,25 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
223
451
|
senderUsername: import("zod").ZodString;
|
|
224
452
|
amount: import("zod").ZodString;
|
|
225
453
|
currency: import("zod").ZodString;
|
|
454
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
455
|
+
available: "available";
|
|
456
|
+
claimed: "claimed";
|
|
457
|
+
}>>;
|
|
458
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
459
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
460
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
226
461
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
227
462
|
command: import("zod").ZodLiteral<"rain">;
|
|
228
463
|
fromUserId: import("zod").ZodUUID;
|
|
464
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
229
465
|
amount: import("zod").ZodString;
|
|
230
466
|
currency: import("zod").ZodString;
|
|
231
467
|
recipientCount: import("zod").ZodNumber;
|
|
232
468
|
perRecipient: import("zod").ZodString;
|
|
469
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
470
|
+
userId: import("zod").ZodUUID;
|
|
471
|
+
username: import("zod").ZodString;
|
|
472
|
+
}, import("zod/v4/core").$strip>>>;
|
|
233
473
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
234
474
|
command: import("zod").ZodLiteral<"block">;
|
|
235
475
|
targetUserId: import("zod").ZodUUID;
|
|
@@ -248,6 +488,8 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
248
488
|
displayName: import("zod").ZodString;
|
|
249
489
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
250
490
|
command: import("zod").ZodLiteral<"donate">;
|
|
491
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
492
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
251
493
|
recipientId: import("zod").ZodUUID;
|
|
252
494
|
recipientUsername: import("zod").ZodString;
|
|
253
495
|
amount: import("zod").ZodString;
|
|
@@ -255,7 +497,73 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
255
497
|
}, import("zod/v4/core").$strip>], "command">>;
|
|
256
498
|
isDeleted: import("zod").ZodBoolean;
|
|
257
499
|
createdAt: import("zod").ZodISODateTime;
|
|
258
|
-
}, import("zod/v4/core").$strip>, import("
|
|
500
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
501
|
+
id: import("zod").ZodUUID;
|
|
502
|
+
roomId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
503
|
+
actorId: import("zod").ZodUUID;
|
|
504
|
+
userId: import("zod").ZodUUID;
|
|
505
|
+
username: import("zod").ZodString;
|
|
506
|
+
content: import("zod").ZodString;
|
|
507
|
+
type: import("zod").ZodLiteral<"system">;
|
|
508
|
+
metadata: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
509
|
+
command: import("zod").ZodLiteral<"profile">;
|
|
510
|
+
targetUserId: import("zod").ZodUUID;
|
|
511
|
+
displayName: import("zod").ZodString;
|
|
512
|
+
level: import("zod").ZodNumber;
|
|
513
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
514
|
+
command: import("zod").ZodLiteral<"gift">;
|
|
515
|
+
giftId: import("zod").ZodUUID;
|
|
516
|
+
senderId: import("zod").ZodUUID;
|
|
517
|
+
senderUsername: import("zod").ZodString;
|
|
518
|
+
amount: import("zod").ZodString;
|
|
519
|
+
currency: import("zod").ZodString;
|
|
520
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
521
|
+
available: "available";
|
|
522
|
+
claimed: "claimed";
|
|
523
|
+
}>>;
|
|
524
|
+
claimedBy: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUUID>>;
|
|
525
|
+
claimedByUsername: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
526
|
+
claimedAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
527
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
528
|
+
command: import("zod").ZodLiteral<"rain">;
|
|
529
|
+
fromUserId: import("zod").ZodUUID;
|
|
530
|
+
fromUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
531
|
+
amount: import("zod").ZodString;
|
|
532
|
+
currency: import("zod").ZodString;
|
|
533
|
+
recipientCount: import("zod").ZodNumber;
|
|
534
|
+
perRecipient: import("zod").ZodString;
|
|
535
|
+
recipients: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
536
|
+
userId: import("zod").ZodUUID;
|
|
537
|
+
username: import("zod").ZodString;
|
|
538
|
+
}, import("zod/v4/core").$strip>>>;
|
|
539
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
540
|
+
command: import("zod").ZodLiteral<"block">;
|
|
541
|
+
targetUserId: import("zod").ZodUUID;
|
|
542
|
+
displayName: import("zod").ZodString;
|
|
543
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
544
|
+
command: import("zod").ZodLiteral<"unblock">;
|
|
545
|
+
targetUserId: import("zod").ZodUUID;
|
|
546
|
+
displayName: import("zod").ZodString;
|
|
547
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
548
|
+
command: import("zod").ZodLiteral<"ignore">;
|
|
549
|
+
targetUserId: import("zod").ZodUUID;
|
|
550
|
+
displayName: import("zod").ZodString;
|
|
551
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
552
|
+
command: import("zod").ZodLiteral<"unignore">;
|
|
553
|
+
targetUserId: import("zod").ZodUUID;
|
|
554
|
+
displayName: import("zod").ZodString;
|
|
555
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
556
|
+
command: import("zod").ZodLiteral<"donate">;
|
|
557
|
+
senderId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
558
|
+
senderUsername: import("zod").ZodOptional<import("zod").ZodString>;
|
|
559
|
+
recipientId: import("zod").ZodUUID;
|
|
560
|
+
recipientUsername: import("zod").ZodString;
|
|
561
|
+
amount: import("zod").ZodString;
|
|
562
|
+
currency: import("zod").ZodString;
|
|
563
|
+
}, import("zod/v4/core").$strip>], "command">;
|
|
564
|
+
isDeleted: import("zod").ZodBoolean;
|
|
565
|
+
createdAt: import("zod").ZodString;
|
|
566
|
+
}, import("zod/v4/core").$strip>], "type">, import("@orpc/server").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
259
567
|
getConnection: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<OssContext & Record<never, never>, OssContext & Record<never, never>, OssContext>, OssContext, import("zod").ZodObject<{
|
|
260
568
|
clientId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
261
569
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -270,7 +578,7 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
270
578
|
userId: string;
|
|
271
579
|
username: string;
|
|
272
580
|
content: string;
|
|
273
|
-
type: "
|
|
581
|
+
type: "user";
|
|
274
582
|
metadata: {
|
|
275
583
|
command: "profile";
|
|
276
584
|
targetUserId: string;
|
|
@@ -283,6 +591,10 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
283
591
|
senderUsername: string;
|
|
284
592
|
amount: string;
|
|
285
593
|
currency: string;
|
|
594
|
+
status?: "available" | "claimed" | undefined;
|
|
595
|
+
claimedBy?: string | null | undefined;
|
|
596
|
+
claimedByUsername?: string | null | undefined;
|
|
597
|
+
claimedAt?: string | null | undefined;
|
|
286
598
|
} | {
|
|
287
599
|
command: "rain";
|
|
288
600
|
fromUserId: string;
|
|
@@ -290,6 +602,11 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
290
602
|
currency: string;
|
|
291
603
|
recipientCount: number;
|
|
292
604
|
perRecipient: string;
|
|
605
|
+
fromUsername?: string | undefined;
|
|
606
|
+
recipients?: {
|
|
607
|
+
userId: string;
|
|
608
|
+
username: string;
|
|
609
|
+
}[] | undefined;
|
|
293
610
|
} | {
|
|
294
611
|
command: "block";
|
|
295
612
|
targetUserId: string;
|
|
@@ -312,16 +629,144 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
312
629
|
recipientUsername: string;
|
|
313
630
|
amount: string;
|
|
314
631
|
currency: string;
|
|
632
|
+
senderId?: string | undefined;
|
|
633
|
+
senderUsername?: string | undefined;
|
|
315
634
|
} | null;
|
|
316
635
|
isDeleted: boolean;
|
|
317
636
|
createdAt: string;
|
|
637
|
+
} | {
|
|
638
|
+
id: string;
|
|
639
|
+
roomId: string | null;
|
|
640
|
+
actorId: string;
|
|
641
|
+
userId: string;
|
|
642
|
+
username: string;
|
|
643
|
+
content: string;
|
|
644
|
+
type: "system";
|
|
645
|
+
metadata: {
|
|
646
|
+
command: "profile";
|
|
647
|
+
targetUserId: string;
|
|
648
|
+
displayName: string;
|
|
649
|
+
level: number;
|
|
650
|
+
} | {
|
|
651
|
+
command: "gift";
|
|
652
|
+
giftId: string;
|
|
653
|
+
senderId: string;
|
|
654
|
+
senderUsername: string;
|
|
655
|
+
amount: string;
|
|
656
|
+
currency: string;
|
|
657
|
+
status?: "available" | "claimed" | undefined;
|
|
658
|
+
claimedBy?: string | null | undefined;
|
|
659
|
+
claimedByUsername?: string | null | undefined;
|
|
660
|
+
claimedAt?: string | null | undefined;
|
|
661
|
+
} | {
|
|
662
|
+
command: "rain";
|
|
663
|
+
fromUserId: string;
|
|
664
|
+
amount: string;
|
|
665
|
+
currency: string;
|
|
666
|
+
recipientCount: number;
|
|
667
|
+
perRecipient: string;
|
|
668
|
+
fromUsername?: string | undefined;
|
|
669
|
+
recipients?: {
|
|
670
|
+
userId: string;
|
|
671
|
+
username: string;
|
|
672
|
+
}[] | undefined;
|
|
673
|
+
} | {
|
|
674
|
+
command: "block";
|
|
675
|
+
targetUserId: string;
|
|
676
|
+
displayName: string;
|
|
677
|
+
} | {
|
|
678
|
+
command: "unblock";
|
|
679
|
+
targetUserId: string;
|
|
680
|
+
displayName: string;
|
|
681
|
+
} | {
|
|
682
|
+
command: "ignore";
|
|
683
|
+
targetUserId: string;
|
|
684
|
+
displayName: string;
|
|
685
|
+
} | {
|
|
686
|
+
command: "unignore";
|
|
687
|
+
targetUserId: string;
|
|
688
|
+
displayName: string;
|
|
689
|
+
} | {
|
|
690
|
+
command: "donate";
|
|
691
|
+
recipientId: string;
|
|
692
|
+
recipientUsername: string;
|
|
693
|
+
amount: string;
|
|
694
|
+
currency: string;
|
|
695
|
+
senderId?: string | undefined;
|
|
696
|
+
senderUsername?: string | undefined;
|
|
697
|
+
};
|
|
698
|
+
isDeleted: boolean;
|
|
699
|
+
createdAt: string;
|
|
318
700
|
}, unknown, void>, import("@orpc/server").AsyncIteratorClass<{
|
|
701
|
+
id: string;
|
|
702
|
+
roomId: string | null;
|
|
703
|
+
actorId: string;
|
|
704
|
+
userId: string;
|
|
705
|
+
username: string;
|
|
706
|
+
content: string;
|
|
707
|
+
type: "system";
|
|
708
|
+
metadata: {
|
|
709
|
+
command: "profile";
|
|
710
|
+
targetUserId: string;
|
|
711
|
+
displayName: string;
|
|
712
|
+
level: number;
|
|
713
|
+
} | {
|
|
714
|
+
command: "gift";
|
|
715
|
+
giftId: string;
|
|
716
|
+
senderId: string;
|
|
717
|
+
senderUsername: string;
|
|
718
|
+
amount: string;
|
|
719
|
+
currency: string;
|
|
720
|
+
status?: "available" | "claimed" | undefined;
|
|
721
|
+
claimedBy?: string | null | undefined;
|
|
722
|
+
claimedByUsername?: string | null | undefined;
|
|
723
|
+
claimedAt?: string | null | undefined;
|
|
724
|
+
} | {
|
|
725
|
+
command: "rain";
|
|
726
|
+
fromUserId: string;
|
|
727
|
+
amount: string;
|
|
728
|
+
currency: string;
|
|
729
|
+
recipientCount: number;
|
|
730
|
+
perRecipient: string;
|
|
731
|
+
fromUsername?: string | undefined;
|
|
732
|
+
recipients?: {
|
|
733
|
+
userId: string;
|
|
734
|
+
username: string;
|
|
735
|
+
}[] | undefined;
|
|
736
|
+
} | {
|
|
737
|
+
command: "block";
|
|
738
|
+
targetUserId: string;
|
|
739
|
+
displayName: string;
|
|
740
|
+
} | {
|
|
741
|
+
command: "unblock";
|
|
742
|
+
targetUserId: string;
|
|
743
|
+
displayName: string;
|
|
744
|
+
} | {
|
|
745
|
+
command: "ignore";
|
|
746
|
+
targetUserId: string;
|
|
747
|
+
displayName: string;
|
|
748
|
+
} | {
|
|
749
|
+
command: "unignore";
|
|
750
|
+
targetUserId: string;
|
|
751
|
+
displayName: string;
|
|
752
|
+
} | {
|
|
753
|
+
command: "donate";
|
|
754
|
+
recipientId: string;
|
|
755
|
+
recipientUsername: string;
|
|
756
|
+
amount: string;
|
|
757
|
+
currency: string;
|
|
758
|
+
senderId?: string | undefined;
|
|
759
|
+
senderUsername?: string | undefined;
|
|
760
|
+
};
|
|
761
|
+
isDeleted: boolean;
|
|
762
|
+
createdAt: string;
|
|
763
|
+
} | {
|
|
319
764
|
id: string;
|
|
320
765
|
roomId: string | null;
|
|
321
766
|
userId: string;
|
|
322
767
|
username: string;
|
|
323
768
|
content: string;
|
|
324
|
-
type: "
|
|
769
|
+
type: "user";
|
|
325
770
|
metadata: {
|
|
326
771
|
command: "profile";
|
|
327
772
|
targetUserId: string;
|
|
@@ -334,6 +779,10 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
334
779
|
senderUsername: string;
|
|
335
780
|
amount: string;
|
|
336
781
|
currency: string;
|
|
782
|
+
status?: "available" | "claimed" | undefined;
|
|
783
|
+
claimedBy?: string | null | undefined;
|
|
784
|
+
claimedByUsername?: string | null | undefined;
|
|
785
|
+
claimedAt?: string | null | undefined;
|
|
337
786
|
} | {
|
|
338
787
|
command: "rain";
|
|
339
788
|
fromUserId: string;
|
|
@@ -341,6 +790,11 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
341
790
|
currency: string;
|
|
342
791
|
recipientCount: number;
|
|
343
792
|
perRecipient: string;
|
|
793
|
+
fromUsername?: string | undefined;
|
|
794
|
+
recipients?: {
|
|
795
|
+
userId: string;
|
|
796
|
+
username: string;
|
|
797
|
+
}[] | undefined;
|
|
344
798
|
} | {
|
|
345
799
|
command: "block";
|
|
346
800
|
targetUserId: string;
|
|
@@ -363,6 +817,8 @@ export declare function createChatRouter({ chatService, authorizer, adminGuard,
|
|
|
363
817
|
recipientUsername: string;
|
|
364
818
|
amount: string;
|
|
365
819
|
currency: string;
|
|
820
|
+
senderId?: string | undefined;
|
|
821
|
+
senderUsername?: string | undefined;
|
|
366
822
|
} | null;
|
|
367
823
|
isDeleted: boolean;
|
|
368
824
|
createdAt: string;
|