rategame-shared 1.1.201 → 1.1.203
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 +3 -6
- package/dist/schemas/chat.js +1 -1
- package/package.json +1 -1
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -1676,7 +1676,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
1676
1676
|
avatarUrl?: string | null | undefined;
|
|
1677
1677
|
badge?: string | undefined;
|
|
1678
1678
|
}>;
|
|
1679
|
-
type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">]>;
|
|
1679
|
+
type: z.ZodUnion<[z.ZodLiteral<"game">, z.ZodLiteral<"profile">, z.ZodLiteral<"list">, z.ZodLiteral<"gif">, z.ZodLiteral<"text">]>;
|
|
1680
1680
|
itemId: z.ZodOptional<z.ZodString>;
|
|
1681
1681
|
gifUrl: z.ZodOptional<z.ZodString>;
|
|
1682
1682
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2499,9 +2499,8 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
2499
2499
|
avatarUrl?: string | null | undefined;
|
|
2500
2500
|
badge?: string | undefined;
|
|
2501
2501
|
}>>>;
|
|
2502
|
-
level: z.ZodDefault<z.ZodNumber>;
|
|
2503
2502
|
}, "strip", z.ZodTypeAny, {
|
|
2504
|
-
type: "game" | "profile" | "list" | "gif";
|
|
2503
|
+
type: "text" | "game" | "profile" | "list" | "gif";
|
|
2505
2504
|
id: string;
|
|
2506
2505
|
user: {
|
|
2507
2506
|
id: string;
|
|
@@ -2511,7 +2510,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
2511
2510
|
badge?: string | undefined;
|
|
2512
2511
|
};
|
|
2513
2512
|
league: string;
|
|
2514
|
-
level: number;
|
|
2515
2513
|
content?: string | undefined;
|
|
2516
2514
|
createdAt?: any;
|
|
2517
2515
|
parentId?: string | null | undefined;
|
|
@@ -2526,7 +2524,7 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
2526
2524
|
itemId?: string | undefined;
|
|
2527
2525
|
gifUrl?: string | undefined;
|
|
2528
2526
|
}, {
|
|
2529
|
-
type: "game" | "profile" | "list" | "gif";
|
|
2527
|
+
type: "text" | "game" | "profile" | "list" | "gif";
|
|
2530
2528
|
id: string;
|
|
2531
2529
|
user: {
|
|
2532
2530
|
id: string;
|
|
@@ -2547,7 +2545,6 @@ export declare const communityChatMessageSchema: z.ZodObject<{
|
|
|
2547
2545
|
avatarUrl?: string | null | undefined;
|
|
2548
2546
|
badge?: string | undefined;
|
|
2549
2547
|
} | null | undefined;
|
|
2550
|
-
level?: number | undefined;
|
|
2551
2548
|
itemId?: string | undefined;
|
|
2552
2549
|
gifUrl?: string | undefined;
|
|
2553
2550
|
}>;
|
package/dist/schemas/chat.js
CHANGED
|
@@ -23,13 +23,13 @@ exports.communityChatMessageSchema = zod_1.z.object({
|
|
|
23
23
|
zod_1.z.literal("profile"),
|
|
24
24
|
zod_1.z.literal("list"),
|
|
25
25
|
zod_1.z.literal("gif"),
|
|
26
|
+
zod_1.z.literal("text"),
|
|
26
27
|
]),
|
|
27
28
|
itemId: zod_1.z.string().optional(),
|
|
28
29
|
gifUrl: zod_1.z.string().optional(),
|
|
29
30
|
parentId: zod_1.z.string().nullable().optional(),
|
|
30
31
|
isReply: zod_1.z.boolean().optional(),
|
|
31
32
|
replyTo: user_1.reducedUserSchema.nullable().optional(),
|
|
32
|
-
level: zod_1.z.number().default(0),
|
|
33
33
|
});
|
|
34
34
|
exports.messageReactionSchema = zod_1.z.object({
|
|
35
35
|
id: zod_1.z.string(),
|