@musnows/scriverse 0.7.0 → 0.7.2

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/app.js CHANGED
@@ -388,8 +388,18 @@ const platformPageSizesSchema = z.object({
388
388
  }).strict();
389
389
  const platformUiSettingsSchema = z.object({
390
390
  toastPosition: z.enum(["bottom-right", "top-right"]).optional(),
391
- pageSizes: platformPageSizesSchema.optional()
392
- }).strict().refine((input) => input.toastPosition !== undefined || input.pageSizes !== undefined, {
391
+ pageSizes: platformPageSizesSchema.optional(),
392
+ galaxyFrameRate: z.union([
393
+ z.literal(24),
394
+ z.literal(30),
395
+ z.literal(60),
396
+ z.literal(90),
397
+ z.literal(120),
398
+ z.literal(144),
399
+ z.literal(165),
400
+ z.literal(240)
401
+ ]).optional()
402
+ }).strict().refine((input) => input.toastPosition !== undefined || input.pageSizes !== undefined || input.galaxyFrameRate !== undefined, {
393
403
  message: "至少需要提供一项界面设置"
394
404
  });
395
405
  const s3EndpointSchema = z.string().trim().url().max(2_000).superRefine((value, context) => {