rategame-shared 1.1.415 → 1.1.416
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/schemas/chat.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
content: z.ZodString;
|
|
5
5
|
createdAt: z.ZodAny;
|
|
6
|
+
editedAt: z.ZodOptional<z.ZodAny>;
|
|
6
7
|
gameId: z.ZodString;
|
|
7
8
|
gameLeague: z.ZodString;
|
|
8
9
|
user: z.ZodObject<Pick<{
|
|
@@ -1185,6 +1186,8 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1185
1186
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
1186
1187
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1187
1188
|
isReply: z.ZodOptional<z.ZodBoolean>;
|
|
1189
|
+
/** True when the parent message was deleted; replyToMessage should be omitted. */
|
|
1190
|
+
replyToDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
1188
1191
|
replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
1189
1192
|
id: z.ZodString;
|
|
1190
1193
|
email: z.ZodString;
|
|
@@ -2386,7 +2389,9 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2386
2389
|
badge?: string | undefined;
|
|
2387
2390
|
} | null | undefined;
|
|
2388
2391
|
gifUrl?: string | undefined;
|
|
2392
|
+
editedAt?: any;
|
|
2389
2393
|
itemId?: string | undefined;
|
|
2394
|
+
replyToDeleted?: boolean | undefined;
|
|
2390
2395
|
replyToMessage?: any;
|
|
2391
2396
|
}, {
|
|
2392
2397
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
@@ -2413,13 +2418,16 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2413
2418
|
badge?: string | undefined;
|
|
2414
2419
|
} | null | undefined;
|
|
2415
2420
|
gifUrl?: string | undefined;
|
|
2421
|
+
editedAt?: any;
|
|
2416
2422
|
itemId?: string | undefined;
|
|
2423
|
+
replyToDeleted?: boolean | undefined;
|
|
2417
2424
|
replyToMessage?: any;
|
|
2418
2425
|
}>;
|
|
2419
2426
|
export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
2420
2427
|
id: z.ZodString;
|
|
2421
2428
|
content: z.ZodOptional<z.ZodString>;
|
|
2422
2429
|
createdAt: z.ZodAny;
|
|
2430
|
+
editedAt: z.ZodOptional<z.ZodAny>;
|
|
2423
2431
|
league: z.ZodString;
|
|
2424
2432
|
user: z.ZodObject<Pick<{
|
|
2425
2433
|
id: z.ZodString;
|
|
@@ -3600,6 +3608,8 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
|
|
|
3600
3608
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
3601
3609
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3602
3610
|
isReply: z.ZodOptional<z.ZodBoolean>;
|
|
3611
|
+
/** True when the parent message was deleted; replyToMessage should be omitted. */
|
|
3612
|
+
replyToDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
3603
3613
|
replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<Pick<{
|
|
3604
3614
|
id: z.ZodString;
|
|
3605
3615
|
email: z.ZodString;
|
|
@@ -4799,7 +4809,9 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
|
|
|
4799
4809
|
badge?: string | undefined;
|
|
4800
4810
|
} | null | undefined;
|
|
4801
4811
|
gifUrl?: string | undefined;
|
|
4812
|
+
editedAt?: any;
|
|
4802
4813
|
itemId?: string | undefined;
|
|
4814
|
+
replyToDeleted?: boolean | undefined;
|
|
4803
4815
|
replyToMessage?: any;
|
|
4804
4816
|
}, {
|
|
4805
4817
|
type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
|
|
@@ -4824,7 +4836,9 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
|
|
|
4824
4836
|
badge?: string | undefined;
|
|
4825
4837
|
} | null | undefined;
|
|
4826
4838
|
gifUrl?: string | undefined;
|
|
4839
|
+
editedAt?: any;
|
|
4827
4840
|
itemId?: string | undefined;
|
|
4841
|
+
replyToDeleted?: boolean | undefined;
|
|
4828
4842
|
replyToMessage?: any;
|
|
4829
4843
|
}>;
|
|
4830
4844
|
export declare const messageReactionSchema: z.ZodObject<{
|
package/dist/schemas/chat.js
CHANGED
|
@@ -8,6 +8,7 @@ const baseChatMessageSchema = zod_1.z.object({
|
|
|
8
8
|
id: zod_1.z.string(),
|
|
9
9
|
content: zod_1.z.string().min(1),
|
|
10
10
|
createdAt: zod_1.z.any(),
|
|
11
|
+
editedAt: zod_1.z.any().optional(),
|
|
11
12
|
gameId: zod_1.z.string(),
|
|
12
13
|
gameLeague: zod_1.z.string(),
|
|
13
14
|
user: user_1.reducedUserSchema,
|
|
@@ -25,12 +26,15 @@ const baseChatMessageSchema = zod_1.z.object({
|
|
|
25
26
|
gifUrl: zod_1.z.string().optional(),
|
|
26
27
|
parentId: zod_1.z.string().nullable().optional(),
|
|
27
28
|
isReply: zod_1.z.boolean().optional(),
|
|
29
|
+
/** True when the parent message was deleted; replyToMessage should be omitted. */
|
|
30
|
+
replyToDeleted: zod_1.z.boolean().optional(),
|
|
28
31
|
replyTo: user_1.reducedUserSchema.nullable().optional(),
|
|
29
32
|
});
|
|
30
33
|
const baseCommunityChatMessageSchema = zod_1.z.object({
|
|
31
34
|
id: zod_1.z.string(),
|
|
32
35
|
content: zod_1.z.string().min(1).optional(),
|
|
33
36
|
createdAt: zod_1.z.any(),
|
|
37
|
+
editedAt: zod_1.z.any().optional(),
|
|
34
38
|
league: zod_1.z.string(),
|
|
35
39
|
user: user_1.reducedUserSchema,
|
|
36
40
|
type: zod_1.z.union([
|
|
@@ -46,6 +50,8 @@ const baseCommunityChatMessageSchema = zod_1.z.object({
|
|
|
46
50
|
gifUrl: zod_1.z.string().optional(),
|
|
47
51
|
parentId: zod_1.z.string().nullable().optional(),
|
|
48
52
|
isReply: zod_1.z.boolean().optional(),
|
|
53
|
+
/** True when the parent message was deleted; replyToMessage should be omitted. */
|
|
54
|
+
replyToDeleted: zod_1.z.boolean().optional(),
|
|
49
55
|
replyTo: user_1.reducedUserSchema.nullable().optional(),
|
|
50
56
|
});
|
|
51
57
|
const UnionChatMessage = zod_1.z.lazy(() => zod_1.z.union([exports.chatMessageSchema, exports.communityChatMessageSchema]));
|
|
@@ -81,8 +81,6 @@ export declare const featuredVideoScheduleSchema: import("zod").ZodObject<import
|
|
|
81
81
|
endsAt: import("zod").ZodNumber;
|
|
82
82
|
createdAt: import("zod").ZodNumber;
|
|
83
83
|
updatedAt: import("zod").ZodNumber;
|
|
84
|
-
isCanceled: import("zod").ZodBoolean;
|
|
85
|
-
canceledAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
86
84
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
87
85
|
id: string;
|
|
88
86
|
url: string;
|
|
@@ -94,8 +92,6 @@ export declare const featuredVideoScheduleSchema: import("zod").ZodObject<import
|
|
|
94
92
|
startsAt: number;
|
|
95
93
|
endsAt: number;
|
|
96
94
|
scheduleId: string;
|
|
97
|
-
isCanceled: boolean;
|
|
98
|
-
canceledAt?: number | undefined;
|
|
99
95
|
}, {
|
|
100
96
|
id: string;
|
|
101
97
|
url: string;
|
|
@@ -107,6 +103,4 @@ export declare const featuredVideoScheduleSchema: import("zod").ZodObject<import
|
|
|
107
103
|
startsAt: number;
|
|
108
104
|
endsAt: number;
|
|
109
105
|
scheduleId: string;
|
|
110
|
-
isCanceled: boolean;
|
|
111
|
-
canceledAt?: number | undefined;
|
|
112
106
|
}>;
|
package/dist/schemas/content.js
CHANGED
|
@@ -20,6 +20,4 @@ exports.featuredVideoScheduleSchema = exports.featuredVideoSchema.extend({
|
|
|
20
20
|
endsAt: (0, zod_1.number)(),
|
|
21
21
|
createdAt: (0, zod_1.number)(),
|
|
22
22
|
updatedAt: (0, zod_1.number)(),
|
|
23
|
-
isCanceled: (0, zod_1.boolean)(),
|
|
24
|
-
canceledAt: (0, zod_1.number)().optional(),
|
|
25
23
|
});
|