import { z } from 'zod'

export const smsConfigStatusSchema = z.enum(['active', 'inactive'])

export const smsConfigTypeSchema = z.enum(['aliyun', 'tencent', 'other'])

export const smsConfigSchema = z.object({
  id: z.number(),
  name: z.string(),
  type: smsConfigTypeSchema,
  config: z.string(),
  status: smsConfigStatusSchema,
  remark: z.string().optional(),
  created_at: z.string(),
  updated_at: z.string(),
})

export type SmsConfig = z.infer<typeof smsConfigSchema>
