All files / shared/src/types/data system-settings.ts

100% Statements 20/20
100% Branches 0/0
100% Functions 0/0
100% Lines 20/20

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 281x   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x 1x 1x 1x 1x 1x 1x 1x          
import { z } from 'zod';
 
export const SystemSettings = z.object({
  id: z.uuid(),
  system_prompt_reflection_model_id: z.uuid().nullable(),
  evaluation_generation_model_id: z.uuid().nullable(),
  embedding_model_id: z.uuid().nullable(),
  judge_model_id: z.uuid().nullable(),
  developer_mode: z.boolean(),
  created_at: z.iso.datetime({ offset: true }),
  updated_at: z.iso.datetime({ offset: true }),
});
export type SystemSettings = z.infer<typeof SystemSettings>;
 
export const SystemSettingsUpdateParams = z
  .object({
    system_prompt_reflection_model_id: z.uuid().nullable().optional(),
    evaluation_generation_model_id: z.uuid().nullable().optional(),
    embedding_model_id: z.uuid().nullable().optional(),
    judge_model_id: z.uuid().nullable().optional(),
    developer_mode: z.boolean().optional(),
  })
  .strict();
 
export type SystemSettingsUpdateParams = z.infer<
  typeof SystemSettingsUpdateParams
>;