@openora/core 0.4.1-canary.62 → 0.4.1-canary.64
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 +8 -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 +327 -25
- package/dist/engagement/chat/service/chat.service.d.ts.map +1 -1
- package/dist/engagement/chat/service/chat.service.js +41 -17
- 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 +89 -23
- package/dist/engagement/social-transfers/service/social-transfers.service.js.map +1 -1
- package/package.json +1 -1
|
@@ -49,16 +49,13 @@ export declare const ChatRoomMemberSchema: z.ZodObject<{
|
|
|
49
49
|
username: z.ZodNullable<z.ZodString>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
export type ChatRoomMember = z.infer<typeof ChatRoomMemberSchema>;
|
|
52
|
-
export declare const ChatMessageSchema: z.ZodObject<{
|
|
52
|
+
export declare const ChatMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
53
|
id: z.ZodUUID;
|
|
54
54
|
roomId: z.ZodNullable<z.ZodUUID>;
|
|
55
55
|
userId: z.ZodUUID;
|
|
56
56
|
username: z.ZodString;
|
|
57
57
|
content: z.ZodString;
|
|
58
|
-
type: z.
|
|
59
|
-
system: "system";
|
|
60
|
-
user: "user";
|
|
61
|
-
}>;
|
|
58
|
+
type: z.ZodLiteral<"user">;
|
|
62
59
|
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
63
60
|
command: z.ZodLiteral<"profile">;
|
|
64
61
|
targetUserId: z.ZodUUID;
|
|
@@ -71,13 +68,25 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
71
68
|
senderUsername: z.ZodString;
|
|
72
69
|
amount: z.ZodString;
|
|
73
70
|
currency: z.ZodString;
|
|
71
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
available: "available";
|
|
73
|
+
claimed: "claimed";
|
|
74
|
+
}>>;
|
|
75
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
76
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
75
79
|
command: z.ZodLiteral<"rain">;
|
|
76
80
|
fromUserId: z.ZodUUID;
|
|
81
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
77
82
|
amount: z.ZodString;
|
|
78
83
|
currency: z.ZodString;
|
|
79
84
|
recipientCount: z.ZodNumber;
|
|
80
85
|
perRecipient: z.ZodString;
|
|
86
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
|
+
userId: z.ZodUUID;
|
|
88
|
+
username: z.ZodString;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
81
90
|
}, z.core.$strip>, z.ZodObject<{
|
|
82
91
|
command: z.ZodLiteral<"block">;
|
|
83
92
|
targetUserId: z.ZodUUID;
|
|
@@ -96,6 +105,8 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
96
105
|
displayName: z.ZodString;
|
|
97
106
|
}, z.core.$strip>, z.ZodObject<{
|
|
98
107
|
command: z.ZodLiteral<"donate">;
|
|
108
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
109
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
99
110
|
recipientId: z.ZodUUID;
|
|
100
111
|
recipientUsername: z.ZodString;
|
|
101
112
|
amount: z.ZodString;
|
|
@@ -103,7 +114,73 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
103
114
|
}, z.core.$strip>], "command">>;
|
|
104
115
|
isDeleted: z.ZodBoolean;
|
|
105
116
|
createdAt: z.ZodISODateTime;
|
|
106
|
-
}, z.core.$strip
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
id: z.ZodUUID;
|
|
119
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
120
|
+
actorId: z.ZodUUID;
|
|
121
|
+
userId: z.ZodUUID;
|
|
122
|
+
username: z.ZodString;
|
|
123
|
+
content: z.ZodString;
|
|
124
|
+
type: z.ZodLiteral<"system">;
|
|
125
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
command: z.ZodLiteral<"profile">;
|
|
127
|
+
targetUserId: z.ZodUUID;
|
|
128
|
+
displayName: z.ZodString;
|
|
129
|
+
level: z.ZodNumber;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
command: z.ZodLiteral<"gift">;
|
|
132
|
+
giftId: z.ZodUUID;
|
|
133
|
+
senderId: z.ZodUUID;
|
|
134
|
+
senderUsername: z.ZodString;
|
|
135
|
+
amount: z.ZodString;
|
|
136
|
+
currency: z.ZodString;
|
|
137
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
138
|
+
available: "available";
|
|
139
|
+
claimed: "claimed";
|
|
140
|
+
}>>;
|
|
141
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
142
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
command: z.ZodLiteral<"rain">;
|
|
146
|
+
fromUserId: z.ZodUUID;
|
|
147
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
148
|
+
amount: z.ZodString;
|
|
149
|
+
currency: z.ZodString;
|
|
150
|
+
recipientCount: z.ZodNumber;
|
|
151
|
+
perRecipient: z.ZodString;
|
|
152
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
153
|
+
userId: z.ZodUUID;
|
|
154
|
+
username: z.ZodString;
|
|
155
|
+
}, z.core.$strip>>>;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
command: z.ZodLiteral<"block">;
|
|
158
|
+
targetUserId: z.ZodUUID;
|
|
159
|
+
displayName: z.ZodString;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
command: z.ZodLiteral<"unblock">;
|
|
162
|
+
targetUserId: z.ZodUUID;
|
|
163
|
+
displayName: z.ZodString;
|
|
164
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
165
|
+
command: z.ZodLiteral<"ignore">;
|
|
166
|
+
targetUserId: z.ZodUUID;
|
|
167
|
+
displayName: z.ZodString;
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
+
command: z.ZodLiteral<"unignore">;
|
|
170
|
+
targetUserId: z.ZodUUID;
|
|
171
|
+
displayName: z.ZodString;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
command: z.ZodLiteral<"donate">;
|
|
174
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
175
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
176
|
+
recipientId: z.ZodUUID;
|
|
177
|
+
recipientUsername: z.ZodString;
|
|
178
|
+
amount: z.ZodString;
|
|
179
|
+
currency: z.ZodString;
|
|
180
|
+
}, z.core.$strip>], "command">;
|
|
181
|
+
isDeleted: z.ZodBoolean;
|
|
182
|
+
createdAt: z.ZodString;
|
|
183
|
+
}, z.core.$strip>], "type">;
|
|
107
184
|
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
|
|
108
185
|
export declare const BlockedUserSchema: z.ZodObject<{
|
|
109
186
|
blockedId: z.ZodUUID;
|
|
@@ -160,16 +237,13 @@ export declare const chatContract: {
|
|
|
160
237
|
roomId: z.ZodUUID;
|
|
161
238
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
162
239
|
before: z.ZodOptional<z.ZodString>;
|
|
163
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
240
|
+
}, z.core.$strip>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
164
241
|
id: z.ZodUUID;
|
|
165
242
|
roomId: z.ZodNullable<z.ZodUUID>;
|
|
166
243
|
userId: z.ZodUUID;
|
|
167
244
|
username: z.ZodString;
|
|
168
245
|
content: z.ZodString;
|
|
169
|
-
type: z.
|
|
170
|
-
system: "system";
|
|
171
|
-
user: "user";
|
|
172
|
-
}>;
|
|
246
|
+
type: z.ZodLiteral<"user">;
|
|
173
247
|
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
174
248
|
command: z.ZodLiteral<"profile">;
|
|
175
249
|
targetUserId: z.ZodUUID;
|
|
@@ -182,13 +256,25 @@ export declare const chatContract: {
|
|
|
182
256
|
senderUsername: z.ZodString;
|
|
183
257
|
amount: z.ZodString;
|
|
184
258
|
currency: z.ZodString;
|
|
259
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
available: "available";
|
|
261
|
+
claimed: "claimed";
|
|
262
|
+
}>>;
|
|
263
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
264
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
265
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
266
|
}, z.core.$strip>, z.ZodObject<{
|
|
186
267
|
command: z.ZodLiteral<"rain">;
|
|
187
268
|
fromUserId: z.ZodUUID;
|
|
269
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
188
270
|
amount: z.ZodString;
|
|
189
271
|
currency: z.ZodString;
|
|
190
272
|
recipientCount: z.ZodNumber;
|
|
191
273
|
perRecipient: z.ZodString;
|
|
274
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
userId: z.ZodUUID;
|
|
276
|
+
username: z.ZodString;
|
|
277
|
+
}, z.core.$strip>>>;
|
|
192
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
193
279
|
command: z.ZodLiteral<"block">;
|
|
194
280
|
targetUserId: z.ZodUUID;
|
|
@@ -207,6 +293,8 @@ export declare const chatContract: {
|
|
|
207
293
|
displayName: z.ZodString;
|
|
208
294
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
295
|
command: z.ZodLiteral<"donate">;
|
|
296
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
297
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
210
298
|
recipientId: z.ZodUUID;
|
|
211
299
|
recipientUsername: z.ZodString;
|
|
212
300
|
amount: z.ZodString;
|
|
@@ -214,20 +302,83 @@ export declare const chatContract: {
|
|
|
214
302
|
}, z.core.$strip>], "command">>;
|
|
215
303
|
isDeleted: z.ZodBoolean;
|
|
216
304
|
createdAt: z.ZodISODateTime;
|
|
217
|
-
}, z.core.$strip
|
|
305
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
+
id: z.ZodUUID;
|
|
307
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
308
|
+
actorId: z.ZodUUID;
|
|
309
|
+
userId: z.ZodUUID;
|
|
310
|
+
username: z.ZodString;
|
|
311
|
+
content: z.ZodString;
|
|
312
|
+
type: z.ZodLiteral<"system">;
|
|
313
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
314
|
+
command: z.ZodLiteral<"profile">;
|
|
315
|
+
targetUserId: z.ZodUUID;
|
|
316
|
+
displayName: z.ZodString;
|
|
317
|
+
level: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
+
command: z.ZodLiteral<"gift">;
|
|
320
|
+
giftId: z.ZodUUID;
|
|
321
|
+
senderId: z.ZodUUID;
|
|
322
|
+
senderUsername: z.ZodString;
|
|
323
|
+
amount: z.ZodString;
|
|
324
|
+
currency: z.ZodString;
|
|
325
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
326
|
+
available: "available";
|
|
327
|
+
claimed: "claimed";
|
|
328
|
+
}>>;
|
|
329
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
330
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
command: z.ZodLiteral<"rain">;
|
|
334
|
+
fromUserId: z.ZodUUID;
|
|
335
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
336
|
+
amount: z.ZodString;
|
|
337
|
+
currency: z.ZodString;
|
|
338
|
+
recipientCount: z.ZodNumber;
|
|
339
|
+
perRecipient: z.ZodString;
|
|
340
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
341
|
+
userId: z.ZodUUID;
|
|
342
|
+
username: z.ZodString;
|
|
343
|
+
}, z.core.$strip>>>;
|
|
344
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
345
|
+
command: z.ZodLiteral<"block">;
|
|
346
|
+
targetUserId: z.ZodUUID;
|
|
347
|
+
displayName: z.ZodString;
|
|
348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
349
|
+
command: z.ZodLiteral<"unblock">;
|
|
350
|
+
targetUserId: z.ZodUUID;
|
|
351
|
+
displayName: z.ZodString;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
command: z.ZodLiteral<"ignore">;
|
|
354
|
+
targetUserId: z.ZodUUID;
|
|
355
|
+
displayName: z.ZodString;
|
|
356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
357
|
+
command: z.ZodLiteral<"unignore">;
|
|
358
|
+
targetUserId: z.ZodUUID;
|
|
359
|
+
displayName: z.ZodString;
|
|
360
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
+
command: z.ZodLiteral<"donate">;
|
|
362
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
363
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
364
|
+
recipientId: z.ZodUUID;
|
|
365
|
+
recipientUsername: z.ZodString;
|
|
366
|
+
amount: z.ZodString;
|
|
367
|
+
currency: z.ZodString;
|
|
368
|
+
}, z.core.$strip>], "command">;
|
|
369
|
+
isDeleted: z.ZodBoolean;
|
|
370
|
+
createdAt: z.ZodString;
|
|
371
|
+
}, z.core.$strip>], "type">>, Record<never, never>, Record<never, never>>;
|
|
218
372
|
sendRoomMessage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
219
373
|
roomId: z.ZodUUID;
|
|
220
374
|
content: z.ZodString;
|
|
221
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
222
376
|
id: z.ZodUUID;
|
|
223
377
|
roomId: z.ZodNullable<z.ZodUUID>;
|
|
224
378
|
userId: z.ZodUUID;
|
|
225
379
|
username: z.ZodString;
|
|
226
380
|
content: z.ZodString;
|
|
227
|
-
type: z.
|
|
228
|
-
system: "system";
|
|
229
|
-
user: "user";
|
|
230
|
-
}>;
|
|
381
|
+
type: z.ZodLiteral<"user">;
|
|
231
382
|
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
232
383
|
command: z.ZodLiteral<"profile">;
|
|
233
384
|
targetUserId: z.ZodUUID;
|
|
@@ -240,13 +391,25 @@ export declare const chatContract: {
|
|
|
240
391
|
senderUsername: z.ZodString;
|
|
241
392
|
amount: z.ZodString;
|
|
242
393
|
currency: z.ZodString;
|
|
394
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
395
|
+
available: "available";
|
|
396
|
+
claimed: "claimed";
|
|
397
|
+
}>>;
|
|
398
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
399
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
401
|
}, z.core.$strip>, z.ZodObject<{
|
|
244
402
|
command: z.ZodLiteral<"rain">;
|
|
245
403
|
fromUserId: z.ZodUUID;
|
|
404
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
246
405
|
amount: z.ZodString;
|
|
247
406
|
currency: z.ZodString;
|
|
248
407
|
recipientCount: z.ZodNumber;
|
|
249
408
|
perRecipient: z.ZodString;
|
|
409
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
410
|
+
userId: z.ZodUUID;
|
|
411
|
+
username: z.ZodString;
|
|
412
|
+
}, z.core.$strip>>>;
|
|
250
413
|
}, z.core.$strip>, z.ZodObject<{
|
|
251
414
|
command: z.ZodLiteral<"block">;
|
|
252
415
|
targetUserId: z.ZodUUID;
|
|
@@ -265,6 +428,8 @@ export declare const chatContract: {
|
|
|
265
428
|
displayName: z.ZodString;
|
|
266
429
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
430
|
command: z.ZodLiteral<"donate">;
|
|
431
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
432
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
268
433
|
recipientId: z.ZodUUID;
|
|
269
434
|
recipientUsername: z.ZodString;
|
|
270
435
|
amount: z.ZodString;
|
|
@@ -272,22 +437,85 @@ export declare const chatContract: {
|
|
|
272
437
|
}, z.core.$strip>], "command">>;
|
|
273
438
|
isDeleted: z.ZodBoolean;
|
|
274
439
|
createdAt: z.ZodISODateTime;
|
|
275
|
-
}, z.core.$strip>,
|
|
440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
441
|
+
id: z.ZodUUID;
|
|
442
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
443
|
+
actorId: z.ZodUUID;
|
|
444
|
+
userId: z.ZodUUID;
|
|
445
|
+
username: z.ZodString;
|
|
446
|
+
content: z.ZodString;
|
|
447
|
+
type: z.ZodLiteral<"system">;
|
|
448
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
449
|
+
command: z.ZodLiteral<"profile">;
|
|
450
|
+
targetUserId: z.ZodUUID;
|
|
451
|
+
displayName: z.ZodString;
|
|
452
|
+
level: z.ZodNumber;
|
|
453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
454
|
+
command: z.ZodLiteral<"gift">;
|
|
455
|
+
giftId: z.ZodUUID;
|
|
456
|
+
senderId: z.ZodUUID;
|
|
457
|
+
senderUsername: z.ZodString;
|
|
458
|
+
amount: z.ZodString;
|
|
459
|
+
currency: z.ZodString;
|
|
460
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
461
|
+
available: "available";
|
|
462
|
+
claimed: "claimed";
|
|
463
|
+
}>>;
|
|
464
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
465
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
468
|
+
command: z.ZodLiteral<"rain">;
|
|
469
|
+
fromUserId: z.ZodUUID;
|
|
470
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
471
|
+
amount: z.ZodString;
|
|
472
|
+
currency: z.ZodString;
|
|
473
|
+
recipientCount: z.ZodNumber;
|
|
474
|
+
perRecipient: z.ZodString;
|
|
475
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
476
|
+
userId: z.ZodUUID;
|
|
477
|
+
username: z.ZodString;
|
|
478
|
+
}, z.core.$strip>>>;
|
|
479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
480
|
+
command: z.ZodLiteral<"block">;
|
|
481
|
+
targetUserId: z.ZodUUID;
|
|
482
|
+
displayName: z.ZodString;
|
|
483
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
484
|
+
command: z.ZodLiteral<"unblock">;
|
|
485
|
+
targetUserId: z.ZodUUID;
|
|
486
|
+
displayName: z.ZodString;
|
|
487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
488
|
+
command: z.ZodLiteral<"ignore">;
|
|
489
|
+
targetUserId: z.ZodUUID;
|
|
490
|
+
displayName: z.ZodString;
|
|
491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
+
command: z.ZodLiteral<"unignore">;
|
|
493
|
+
targetUserId: z.ZodUUID;
|
|
494
|
+
displayName: z.ZodString;
|
|
495
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
496
|
+
command: z.ZodLiteral<"donate">;
|
|
497
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
498
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
499
|
+
recipientId: z.ZodUUID;
|
|
500
|
+
recipientUsername: z.ZodString;
|
|
501
|
+
amount: z.ZodString;
|
|
502
|
+
currency: z.ZodString;
|
|
503
|
+
}, z.core.$strip>], "command">;
|
|
504
|
+
isDeleted: z.ZodBoolean;
|
|
505
|
+
createdAt: z.ZodString;
|
|
506
|
+
}, z.core.$strip>], "type">, Record<never, never>, Record<never, never>>;
|
|
276
507
|
deleteMessage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
277
508
|
id: z.ZodUUID;
|
|
278
509
|
}, z.core.$strip>, z.ZodObject<{
|
|
279
510
|
success: z.ZodLiteral<true>;
|
|
280
511
|
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
281
|
-
getGlobalMessages: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
512
|
+
getGlobalMessages: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
282
513
|
id: z.ZodUUID;
|
|
283
514
|
roomId: z.ZodNullable<z.ZodUUID>;
|
|
284
515
|
userId: z.ZodUUID;
|
|
285
516
|
username: z.ZodString;
|
|
286
517
|
content: z.ZodString;
|
|
287
|
-
type: z.
|
|
288
|
-
system: "system";
|
|
289
|
-
user: "user";
|
|
290
|
-
}>;
|
|
518
|
+
type: z.ZodLiteral<"user">;
|
|
291
519
|
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
292
520
|
command: z.ZodLiteral<"profile">;
|
|
293
521
|
targetUserId: z.ZodUUID;
|
|
@@ -300,13 +528,25 @@ export declare const chatContract: {
|
|
|
300
528
|
senderUsername: z.ZodString;
|
|
301
529
|
amount: z.ZodString;
|
|
302
530
|
currency: z.ZodString;
|
|
531
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
532
|
+
available: "available";
|
|
533
|
+
claimed: "claimed";
|
|
534
|
+
}>>;
|
|
535
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
536
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
537
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
538
|
}, z.core.$strip>, z.ZodObject<{
|
|
304
539
|
command: z.ZodLiteral<"rain">;
|
|
305
540
|
fromUserId: z.ZodUUID;
|
|
541
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
306
542
|
amount: z.ZodString;
|
|
307
543
|
currency: z.ZodString;
|
|
308
544
|
recipientCount: z.ZodNumber;
|
|
309
545
|
perRecipient: z.ZodString;
|
|
546
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
547
|
+
userId: z.ZodUUID;
|
|
548
|
+
username: z.ZodString;
|
|
549
|
+
}, z.core.$strip>>>;
|
|
310
550
|
}, z.core.$strip>, z.ZodObject<{
|
|
311
551
|
command: z.ZodLiteral<"block">;
|
|
312
552
|
targetUserId: z.ZodUUID;
|
|
@@ -325,6 +565,8 @@ export declare const chatContract: {
|
|
|
325
565
|
displayName: z.ZodString;
|
|
326
566
|
}, z.core.$strip>, z.ZodObject<{
|
|
327
567
|
command: z.ZodLiteral<"donate">;
|
|
568
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
569
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
328
570
|
recipientId: z.ZodUUID;
|
|
329
571
|
recipientUsername: z.ZodString;
|
|
330
572
|
amount: z.ZodString;
|
|
@@ -332,19 +574,82 @@ export declare const chatContract: {
|
|
|
332
574
|
}, z.core.$strip>], "command">>;
|
|
333
575
|
isDeleted: z.ZodBoolean;
|
|
334
576
|
createdAt: z.ZodISODateTime;
|
|
335
|
-
}, z.core.$strip
|
|
577
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
578
|
+
id: z.ZodUUID;
|
|
579
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
580
|
+
actorId: z.ZodUUID;
|
|
581
|
+
userId: z.ZodUUID;
|
|
582
|
+
username: z.ZodString;
|
|
583
|
+
content: z.ZodString;
|
|
584
|
+
type: z.ZodLiteral<"system">;
|
|
585
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
586
|
+
command: z.ZodLiteral<"profile">;
|
|
587
|
+
targetUserId: z.ZodUUID;
|
|
588
|
+
displayName: z.ZodString;
|
|
589
|
+
level: z.ZodNumber;
|
|
590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
591
|
+
command: z.ZodLiteral<"gift">;
|
|
592
|
+
giftId: z.ZodUUID;
|
|
593
|
+
senderId: z.ZodUUID;
|
|
594
|
+
senderUsername: z.ZodString;
|
|
595
|
+
amount: z.ZodString;
|
|
596
|
+
currency: z.ZodString;
|
|
597
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
598
|
+
available: "available";
|
|
599
|
+
claimed: "claimed";
|
|
600
|
+
}>>;
|
|
601
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
602
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
603
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
604
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
605
|
+
command: z.ZodLiteral<"rain">;
|
|
606
|
+
fromUserId: z.ZodUUID;
|
|
607
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
608
|
+
amount: z.ZodString;
|
|
609
|
+
currency: z.ZodString;
|
|
610
|
+
recipientCount: z.ZodNumber;
|
|
611
|
+
perRecipient: z.ZodString;
|
|
612
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
613
|
+
userId: z.ZodUUID;
|
|
614
|
+
username: z.ZodString;
|
|
615
|
+
}, z.core.$strip>>>;
|
|
616
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
617
|
+
command: z.ZodLiteral<"block">;
|
|
618
|
+
targetUserId: z.ZodUUID;
|
|
619
|
+
displayName: z.ZodString;
|
|
620
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
621
|
+
command: z.ZodLiteral<"unblock">;
|
|
622
|
+
targetUserId: z.ZodUUID;
|
|
623
|
+
displayName: z.ZodString;
|
|
624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
625
|
+
command: z.ZodLiteral<"ignore">;
|
|
626
|
+
targetUserId: z.ZodUUID;
|
|
627
|
+
displayName: z.ZodString;
|
|
628
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
629
|
+
command: z.ZodLiteral<"unignore">;
|
|
630
|
+
targetUserId: z.ZodUUID;
|
|
631
|
+
displayName: z.ZodString;
|
|
632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
633
|
+
command: z.ZodLiteral<"donate">;
|
|
634
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
635
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
636
|
+
recipientId: z.ZodUUID;
|
|
637
|
+
recipientUsername: z.ZodString;
|
|
638
|
+
amount: z.ZodString;
|
|
639
|
+
currency: z.ZodString;
|
|
640
|
+
}, z.core.$strip>], "command">;
|
|
641
|
+
isDeleted: z.ZodBoolean;
|
|
642
|
+
createdAt: z.ZodString;
|
|
643
|
+
}, z.core.$strip>], "type">>, Record<never, never>, Record<never, never>>;
|
|
336
644
|
sendGlobalMessage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
337
645
|
content: z.ZodString;
|
|
338
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
646
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
339
647
|
id: z.ZodUUID;
|
|
340
648
|
roomId: z.ZodNullable<z.ZodUUID>;
|
|
341
649
|
userId: z.ZodUUID;
|
|
342
650
|
username: z.ZodString;
|
|
343
651
|
content: z.ZodString;
|
|
344
|
-
type: z.
|
|
345
|
-
system: "system";
|
|
346
|
-
user: "user";
|
|
347
|
-
}>;
|
|
652
|
+
type: z.ZodLiteral<"user">;
|
|
348
653
|
metadata: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
349
654
|
command: z.ZodLiteral<"profile">;
|
|
350
655
|
targetUserId: z.ZodUUID;
|
|
@@ -357,13 +662,25 @@ export declare const chatContract: {
|
|
|
357
662
|
senderUsername: z.ZodString;
|
|
358
663
|
amount: z.ZodString;
|
|
359
664
|
currency: z.ZodString;
|
|
665
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
666
|
+
available: "available";
|
|
667
|
+
claimed: "claimed";
|
|
668
|
+
}>>;
|
|
669
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
670
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
672
|
}, z.core.$strip>, z.ZodObject<{
|
|
361
673
|
command: z.ZodLiteral<"rain">;
|
|
362
674
|
fromUserId: z.ZodUUID;
|
|
675
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
363
676
|
amount: z.ZodString;
|
|
364
677
|
currency: z.ZodString;
|
|
365
678
|
recipientCount: z.ZodNumber;
|
|
366
679
|
perRecipient: z.ZodString;
|
|
680
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
681
|
+
userId: z.ZodUUID;
|
|
682
|
+
username: z.ZodString;
|
|
683
|
+
}, z.core.$strip>>>;
|
|
367
684
|
}, z.core.$strip>, z.ZodObject<{
|
|
368
685
|
command: z.ZodLiteral<"block">;
|
|
369
686
|
targetUserId: z.ZodUUID;
|
|
@@ -382,6 +699,8 @@ export declare const chatContract: {
|
|
|
382
699
|
displayName: z.ZodString;
|
|
383
700
|
}, z.core.$strip>, z.ZodObject<{
|
|
384
701
|
command: z.ZodLiteral<"donate">;
|
|
702
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
703
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
385
704
|
recipientId: z.ZodUUID;
|
|
386
705
|
recipientUsername: z.ZodString;
|
|
387
706
|
amount: z.ZodString;
|
|
@@ -389,7 +708,73 @@ export declare const chatContract: {
|
|
|
389
708
|
}, z.core.$strip>], "command">>;
|
|
390
709
|
isDeleted: z.ZodBoolean;
|
|
391
710
|
createdAt: z.ZodISODateTime;
|
|
392
|
-
}, z.core.$strip>,
|
|
711
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
712
|
+
id: z.ZodUUID;
|
|
713
|
+
roomId: z.ZodNullable<z.ZodUUID>;
|
|
714
|
+
actorId: z.ZodUUID;
|
|
715
|
+
userId: z.ZodUUID;
|
|
716
|
+
username: z.ZodString;
|
|
717
|
+
content: z.ZodString;
|
|
718
|
+
type: z.ZodLiteral<"system">;
|
|
719
|
+
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
720
|
+
command: z.ZodLiteral<"profile">;
|
|
721
|
+
targetUserId: z.ZodUUID;
|
|
722
|
+
displayName: z.ZodString;
|
|
723
|
+
level: z.ZodNumber;
|
|
724
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
725
|
+
command: z.ZodLiteral<"gift">;
|
|
726
|
+
giftId: z.ZodUUID;
|
|
727
|
+
senderId: z.ZodUUID;
|
|
728
|
+
senderUsername: z.ZodString;
|
|
729
|
+
amount: z.ZodString;
|
|
730
|
+
currency: z.ZodString;
|
|
731
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
732
|
+
available: "available";
|
|
733
|
+
claimed: "claimed";
|
|
734
|
+
}>>;
|
|
735
|
+
claimedBy: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
736
|
+
claimedByUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
737
|
+
claimedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
738
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
739
|
+
command: z.ZodLiteral<"rain">;
|
|
740
|
+
fromUserId: z.ZodUUID;
|
|
741
|
+
fromUsername: z.ZodOptional<z.ZodString>;
|
|
742
|
+
amount: z.ZodString;
|
|
743
|
+
currency: z.ZodString;
|
|
744
|
+
recipientCount: z.ZodNumber;
|
|
745
|
+
perRecipient: z.ZodString;
|
|
746
|
+
recipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
747
|
+
userId: z.ZodUUID;
|
|
748
|
+
username: z.ZodString;
|
|
749
|
+
}, z.core.$strip>>>;
|
|
750
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
751
|
+
command: z.ZodLiteral<"block">;
|
|
752
|
+
targetUserId: z.ZodUUID;
|
|
753
|
+
displayName: z.ZodString;
|
|
754
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
755
|
+
command: z.ZodLiteral<"unblock">;
|
|
756
|
+
targetUserId: z.ZodUUID;
|
|
757
|
+
displayName: z.ZodString;
|
|
758
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
759
|
+
command: z.ZodLiteral<"ignore">;
|
|
760
|
+
targetUserId: z.ZodUUID;
|
|
761
|
+
displayName: z.ZodString;
|
|
762
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
763
|
+
command: z.ZodLiteral<"unignore">;
|
|
764
|
+
targetUserId: z.ZodUUID;
|
|
765
|
+
displayName: z.ZodString;
|
|
766
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
767
|
+
command: z.ZodLiteral<"donate">;
|
|
768
|
+
senderId: z.ZodOptional<z.ZodUUID>;
|
|
769
|
+
senderUsername: z.ZodOptional<z.ZodString>;
|
|
770
|
+
recipientId: z.ZodUUID;
|
|
771
|
+
recipientUsername: z.ZodString;
|
|
772
|
+
amount: z.ZodString;
|
|
773
|
+
currency: z.ZodString;
|
|
774
|
+
}, z.core.$strip>], "command">;
|
|
775
|
+
isDeleted: z.ZodBoolean;
|
|
776
|
+
createdAt: z.ZodString;
|
|
777
|
+
}, z.core.$strip>], "type">, Record<never, never>, Record<never, never>>;
|
|
393
778
|
getConnection: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
394
779
|
clientId: z.ZodOptional<z.ZodString>;
|
|
395
780
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -404,7 +789,7 @@ export declare const chatContract: {
|
|
|
404
789
|
userId: string;
|
|
405
790
|
username: string;
|
|
406
791
|
content: string;
|
|
407
|
-
type: "
|
|
792
|
+
type: "user";
|
|
408
793
|
metadata: {
|
|
409
794
|
command: "profile";
|
|
410
795
|
targetUserId: string;
|
|
@@ -417,6 +802,10 @@ export declare const chatContract: {
|
|
|
417
802
|
senderUsername: string;
|
|
418
803
|
amount: string;
|
|
419
804
|
currency: string;
|
|
805
|
+
status?: "available" | "claimed" | undefined;
|
|
806
|
+
claimedBy?: string | null | undefined;
|
|
807
|
+
claimedByUsername?: string | null | undefined;
|
|
808
|
+
claimedAt?: string | null | undefined;
|
|
420
809
|
} | {
|
|
421
810
|
command: "rain";
|
|
422
811
|
fromUserId: string;
|
|
@@ -424,6 +813,11 @@ export declare const chatContract: {
|
|
|
424
813
|
currency: string;
|
|
425
814
|
recipientCount: number;
|
|
426
815
|
perRecipient: string;
|
|
816
|
+
fromUsername?: string | undefined;
|
|
817
|
+
recipients?: {
|
|
818
|
+
userId: string;
|
|
819
|
+
username: string;
|
|
820
|
+
}[] | undefined;
|
|
427
821
|
} | {
|
|
428
822
|
command: "block";
|
|
429
823
|
targetUserId: string;
|
|
@@ -446,16 +840,144 @@ export declare const chatContract: {
|
|
|
446
840
|
recipientUsername: string;
|
|
447
841
|
amount: string;
|
|
448
842
|
currency: string;
|
|
843
|
+
senderId?: string | undefined;
|
|
844
|
+
senderUsername?: string | undefined;
|
|
449
845
|
} | null;
|
|
450
846
|
isDeleted: boolean;
|
|
451
847
|
createdAt: string;
|
|
848
|
+
} | {
|
|
849
|
+
id: string;
|
|
850
|
+
roomId: string | null;
|
|
851
|
+
actorId: string;
|
|
852
|
+
userId: string;
|
|
853
|
+
username: string;
|
|
854
|
+
content: string;
|
|
855
|
+
type: "system";
|
|
856
|
+
metadata: {
|
|
857
|
+
command: "profile";
|
|
858
|
+
targetUserId: string;
|
|
859
|
+
displayName: string;
|
|
860
|
+
level: number;
|
|
861
|
+
} | {
|
|
862
|
+
command: "gift";
|
|
863
|
+
giftId: string;
|
|
864
|
+
senderId: string;
|
|
865
|
+
senderUsername: string;
|
|
866
|
+
amount: string;
|
|
867
|
+
currency: string;
|
|
868
|
+
status?: "available" | "claimed" | undefined;
|
|
869
|
+
claimedBy?: string | null | undefined;
|
|
870
|
+
claimedByUsername?: string | null | undefined;
|
|
871
|
+
claimedAt?: string | null | undefined;
|
|
872
|
+
} | {
|
|
873
|
+
command: "rain";
|
|
874
|
+
fromUserId: string;
|
|
875
|
+
amount: string;
|
|
876
|
+
currency: string;
|
|
877
|
+
recipientCount: number;
|
|
878
|
+
perRecipient: string;
|
|
879
|
+
fromUsername?: string | undefined;
|
|
880
|
+
recipients?: {
|
|
881
|
+
userId: string;
|
|
882
|
+
username: string;
|
|
883
|
+
}[] | undefined;
|
|
884
|
+
} | {
|
|
885
|
+
command: "block";
|
|
886
|
+
targetUserId: string;
|
|
887
|
+
displayName: string;
|
|
888
|
+
} | {
|
|
889
|
+
command: "unblock";
|
|
890
|
+
targetUserId: string;
|
|
891
|
+
displayName: string;
|
|
892
|
+
} | {
|
|
893
|
+
command: "ignore";
|
|
894
|
+
targetUserId: string;
|
|
895
|
+
displayName: string;
|
|
896
|
+
} | {
|
|
897
|
+
command: "unignore";
|
|
898
|
+
targetUserId: string;
|
|
899
|
+
displayName: string;
|
|
900
|
+
} | {
|
|
901
|
+
command: "donate";
|
|
902
|
+
recipientId: string;
|
|
903
|
+
recipientUsername: string;
|
|
904
|
+
amount: string;
|
|
905
|
+
currency: string;
|
|
906
|
+
senderId?: string | undefined;
|
|
907
|
+
senderUsername?: string | undefined;
|
|
908
|
+
};
|
|
909
|
+
isDeleted: boolean;
|
|
910
|
+
createdAt: string;
|
|
452
911
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
912
|
+
id: string;
|
|
913
|
+
roomId: string | null;
|
|
914
|
+
actorId: string;
|
|
915
|
+
userId: string;
|
|
916
|
+
username: string;
|
|
917
|
+
content: string;
|
|
918
|
+
type: "system";
|
|
919
|
+
metadata: {
|
|
920
|
+
command: "profile";
|
|
921
|
+
targetUserId: string;
|
|
922
|
+
displayName: string;
|
|
923
|
+
level: number;
|
|
924
|
+
} | {
|
|
925
|
+
command: "gift";
|
|
926
|
+
giftId: string;
|
|
927
|
+
senderId: string;
|
|
928
|
+
senderUsername: string;
|
|
929
|
+
amount: string;
|
|
930
|
+
currency: string;
|
|
931
|
+
status?: "available" | "claimed" | undefined;
|
|
932
|
+
claimedBy?: string | null | undefined;
|
|
933
|
+
claimedByUsername?: string | null | undefined;
|
|
934
|
+
claimedAt?: string | null | undefined;
|
|
935
|
+
} | {
|
|
936
|
+
command: "rain";
|
|
937
|
+
fromUserId: string;
|
|
938
|
+
amount: string;
|
|
939
|
+
currency: string;
|
|
940
|
+
recipientCount: number;
|
|
941
|
+
perRecipient: string;
|
|
942
|
+
fromUsername?: string | undefined;
|
|
943
|
+
recipients?: {
|
|
944
|
+
userId: string;
|
|
945
|
+
username: string;
|
|
946
|
+
}[] | undefined;
|
|
947
|
+
} | {
|
|
948
|
+
command: "block";
|
|
949
|
+
targetUserId: string;
|
|
950
|
+
displayName: string;
|
|
951
|
+
} | {
|
|
952
|
+
command: "unblock";
|
|
953
|
+
targetUserId: string;
|
|
954
|
+
displayName: string;
|
|
955
|
+
} | {
|
|
956
|
+
command: "ignore";
|
|
957
|
+
targetUserId: string;
|
|
958
|
+
displayName: string;
|
|
959
|
+
} | {
|
|
960
|
+
command: "unignore";
|
|
961
|
+
targetUserId: string;
|
|
962
|
+
displayName: string;
|
|
963
|
+
} | {
|
|
964
|
+
command: "donate";
|
|
965
|
+
recipientId: string;
|
|
966
|
+
recipientUsername: string;
|
|
967
|
+
amount: string;
|
|
968
|
+
currency: string;
|
|
969
|
+
senderId?: string | undefined;
|
|
970
|
+
senderUsername?: string | undefined;
|
|
971
|
+
};
|
|
972
|
+
isDeleted: boolean;
|
|
973
|
+
createdAt: string;
|
|
974
|
+
} | {
|
|
453
975
|
id: string;
|
|
454
976
|
roomId: string | null;
|
|
455
977
|
userId: string;
|
|
456
978
|
username: string;
|
|
457
979
|
content: string;
|
|
458
|
-
type: "
|
|
980
|
+
type: "user";
|
|
459
981
|
metadata: {
|
|
460
982
|
command: "profile";
|
|
461
983
|
targetUserId: string;
|
|
@@ -468,6 +990,10 @@ export declare const chatContract: {
|
|
|
468
990
|
senderUsername: string;
|
|
469
991
|
amount: string;
|
|
470
992
|
currency: string;
|
|
993
|
+
status?: "available" | "claimed" | undefined;
|
|
994
|
+
claimedBy?: string | null | undefined;
|
|
995
|
+
claimedByUsername?: string | null | undefined;
|
|
996
|
+
claimedAt?: string | null | undefined;
|
|
471
997
|
} | {
|
|
472
998
|
command: "rain";
|
|
473
999
|
fromUserId: string;
|
|
@@ -475,6 +1001,11 @@ export declare const chatContract: {
|
|
|
475
1001
|
currency: string;
|
|
476
1002
|
recipientCount: number;
|
|
477
1003
|
perRecipient: string;
|
|
1004
|
+
fromUsername?: string | undefined;
|
|
1005
|
+
recipients?: {
|
|
1006
|
+
userId: string;
|
|
1007
|
+
username: string;
|
|
1008
|
+
}[] | undefined;
|
|
478
1009
|
} | {
|
|
479
1010
|
command: "block";
|
|
480
1011
|
targetUserId: string;
|
|
@@ -497,6 +1028,8 @@ export declare const chatContract: {
|
|
|
497
1028
|
recipientUsername: string;
|
|
498
1029
|
amount: string;
|
|
499
1030
|
currency: string;
|
|
1031
|
+
senderId?: string | undefined;
|
|
1032
|
+
senderUsername?: string | undefined;
|
|
500
1033
|
} | null;
|
|
501
1034
|
isDeleted: boolean;
|
|
502
1035
|
createdAt: string;
|