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

export type Author = components['schemas']['AuthorRead'];

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

export type AuthorQuerySchema = typeof authorQuerySchema;
