generated-schemas.ts•1.47 kB
/**
* Re-export generated Zod schemas with better organization
* These schemas are automatically generated from the OpenAPI spec
*/
// Import schemas and z from the generated file
import { schemas, api } from './generated/zod-schemas'
import { z } from 'zod'
// Re-export commonly used schemas
export const StorySchema = schemas.Story
export const StoryCommentSchema = schemas.StoryComment
export const CreateStoryCommentSchema = schemas.CreateStoryComment
export const UpdateStorySchema = schemas.UpdateStory
export const WorkflowSchema = schemas.Workflow
export const WorkflowStateSchema = schemas.WorkflowState
export const ProjectSchema = schemas.Project
export const EpicSchema = schemas.Epic
export const MemberSchema = schemas.Member
export const CreateLabelParamsSchema = schemas.CreateLabelParams
export const LabelSchema = schemas.Label
export const UploadedFileSchema = schemas.UploadedFile
export const LinkedFileSchema = schemas.LinkedFile
// Search results schemas
export const StorySearchResultsSchema = schemas.StorySearchResults
export const EpicSearchResultsSchema = schemas.EpicSearchResults
// For the main search endpoint that returns both stories and epics
export const SearchResultsSchema = z.object({
stories: StorySearchResultsSchema,
epics: EpicSearchResultsSchema,
})
// Export the Zodios API client for advanced usage
export { api as generatedApi }
// Export all schemas for advanced usage
export { schemas as allSchemas }