rategame-shared 1.1.548 → 1.1.549

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.
@@ -96,6 +96,7 @@ export declare const articleSchema: z.ZodObject<{
96
96
  slug: z.ZodString;
97
97
  title: z.ZodString;
98
98
  body: z.ZodEffects<z.ZodString, string, string>;
99
+ language: z.ZodOptional<z.ZodString>;
99
100
  imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
101
  imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
102
  imageUrlSmall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1830,6 +1831,7 @@ export declare const articleSchema: z.ZodObject<{
1830
1831
  };
1831
1832
  createdAt: number;
1832
1833
  slug: string;
1834
+ language?: string | undefined;
1833
1835
  userLikes?: number | undefined;
1834
1836
  imageUrl?: string | null | undefined;
1835
1837
  imageUrlMedium?: string | null | undefined;
@@ -1869,6 +1871,7 @@ export declare const articleSchema: z.ZodObject<{
1869
1871
  };
1870
1872
  createdAt: number;
1871
1873
  slug: string;
1874
+ language?: string | undefined;
1872
1875
  userLikes?: number | undefined;
1873
1876
  imageUrl?: string | null | undefined;
1874
1877
  imageUrlMedium?: string | null | undefined;
@@ -107,6 +107,9 @@ exports.articleSchema = zod_1.z.object({
107
107
  title: zod_1.z.string().min(1).max(200),
108
108
  // Markdown body (GFM). Length is measured on prose, not image URLs.
109
109
  body: exports.articleBodySchema,
110
+ // Language detected from `body` on create/update. Hides Translate when it
111
+ // matches the reader's preferred language.
112
+ language: zod_1.z.string().optional(),
110
113
  imageUrl: zod_1.z.string().optional().nullable(),
111
114
  // Resized WebP variants populated by the `resizeArticleImage` cloud function.
112
115
  // Consumers should prefer the smallest variant that still looks crisp and fall
@@ -96,6 +96,7 @@ export declare const triviaSchema: z.ZodObject<{
96
96
  title: z.ZodString;
97
97
  slug: z.ZodOptional<z.ZodString>;
98
98
  description: z.ZodString;
99
+ language: z.ZodOptional<z.ZodString>;
99
100
  imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
101
  imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
102
  imageUrlSmall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -130,6 +131,9 @@ export declare const triviaSchema: z.ZodObject<{
130
131
  birthday: z.ZodOptional<z.ZodNumber>;
131
132
  birthdayTimeZone: z.ZodOptional<z.ZodString>;
132
133
  location: z.ZodOptional<z.ZodString>;
134
+ /**
135
+ * Thread comment schema for trivia
136
+ */
133
137
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
138
  createdAt: z.ZodNumber;
135
139
  updatedAt: z.ZodNumber;
@@ -1796,6 +1800,7 @@ export declare const triviaSchema: z.ZodObject<{
1796
1800
  badge?: string | undefined;
1797
1801
  };
1798
1802
  createdAt: number;
1803
+ language?: string | undefined;
1799
1804
  league?: string | undefined;
1800
1805
  gameId?: string | undefined;
1801
1806
  stadiumId?: string | undefined;
@@ -1829,6 +1834,7 @@ export declare const triviaSchema: z.ZodObject<{
1829
1834
  badge?: string | undefined;
1830
1835
  };
1831
1836
  createdAt: number;
1837
+ language?: string | undefined;
1832
1838
  league?: string | undefined;
1833
1839
  gameId?: string | undefined;
1834
1840
  stadiumId?: string | undefined;
@@ -1895,6 +1901,9 @@ export declare const createTriviaSchema: z.ZodObject<{
1895
1901
  birthday: z.ZodOptional<z.ZodNumber>;
1896
1902
  birthdayTimeZone: z.ZodOptional<z.ZodString>;
1897
1903
  location: z.ZodOptional<z.ZodString>;
1904
+ /**
1905
+ * Thread comment schema for trivia
1906
+ */
1898
1907
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1899
1908
  createdAt: z.ZodNumber;
1900
1909
  updatedAt: z.ZodNumber;
@@ -3678,6 +3687,9 @@ export declare const triviaThreadCommentSchema: z.ZodObject<{
3678
3687
  birthday: z.ZodOptional<z.ZodNumber>;
3679
3688
  birthdayTimeZone: z.ZodOptional<z.ZodString>;
3680
3689
  location: z.ZodOptional<z.ZodString>;
3690
+ /**
3691
+ * Thread comment schema for trivia
3692
+ */
3681
3693
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3682
3694
  createdAt: z.ZodNumber;
3683
3695
  updatedAt: z.ZodNumber;
@@ -5339,6 +5351,9 @@ export declare const triviaThreadCommentSchema: z.ZodObject<{
5339
5351
  birthday: z.ZodOptional<z.ZodNumber>;
5340
5352
  birthdayTimeZone: z.ZodOptional<z.ZodString>;
5341
5353
  location: z.ZodOptional<z.ZodString>;
5354
+ /**
5355
+ * Thread comment schema for trivia
5356
+ */
5342
5357
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5343
5358
  createdAt: z.ZodNumber;
5344
5359
  updatedAt: z.ZodNumber;
@@ -7052,6 +7067,9 @@ export declare const triviaThreadCommentLikeSchema: z.ZodObject<{
7052
7067
  birthday: z.ZodOptional<z.ZodNumber>;
7053
7068
  birthdayTimeZone: z.ZodOptional<z.ZodString>;
7054
7069
  location: z.ZodOptional<z.ZodString>;
7070
+ /**
7071
+ * Thread comment schema for trivia
7072
+ */
7055
7073
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7056
7074
  createdAt: z.ZodNumber;
7057
7075
  updatedAt: z.ZodNumber;
@@ -68,6 +68,9 @@ exports.triviaSchema = zod_1.z.object({
68
68
  // docs without it still resolve.
69
69
  slug: zod_1.z.string().optional(),
70
70
  description: zod_1.z.string().min(1).max(5000),
71
+ // Language detected from `description` on create/update. Hides Translate
72
+ // when it matches the reader's preferred language.
73
+ language: zod_1.z.string().optional(),
71
74
  imageUrl: zod_1.z.string().optional().nullable(),
72
75
  // Resized WebP variants populated by the `resizeTriviaImage` cloud function.
73
76
  // Consumers should prefer the smallest variant that still looks crisp at the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.548",
3
+ "version": "1.1.549",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",