import { z } from 'zod';

import type { components } from './openapi/schema';
import { commonQuerySchema, stringArrayCoerce } from './common';

export type Publisher = components['schemas']['PublisherRead'];

export const publisherQuerySchema = commonQuerySchema.extend({
	libraries: stringArrayCoerce,
	ids: stringArrayCoerce
});

export type PublisherQuerySchema = typeof publisherQuerySchema;
