import { z } from 'zod';
import { EntitySchema, EntityContainerSchema } from '@isa/common/data-access';

export const TextSchema = EntitySchema.extend({
  cultureInfo: z.string().describe('Culture info').optional(),
  name: z.string().describe('Name').optional(),
  subtitle: z.string().describe('Subtitle').optional(),
  copyright: z.string().describe('Copyright').optional(),
  type: z.string().describe('Type').optional(),
  content: z.string().describe('Content').optional(),
  encoding: z.string().describe('Encoding').optional(),
  mime: z.string().describe('Mime').optional(),
  hash: z.string().describe('Whether has h').optional(),
  tenant: EntityContainerSchema(z.any()).describe('Tenant identifier').optional(),
});

export type Text = z.infer<typeof TextSchema>;
