diff --git a/web/gen/orpc/api/app.gen.ts b/web/gen/orpc/api/app.ts similarity index 89% rename from web/gen/orpc/api/app.gen.ts rename to web/gen/orpc/api/app.ts index 456b9c030a..8096d9bb4f 100644 --- a/web/gen/orpc/api/app.gen.ts +++ b/web/gen/orpc/api/app.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zGetChatAppFeedbacksData, zGetChatAppFeedbacksResponse } from '../../zod/api/app.gen' -import { base } from '../common.gen' +import { zGetChatAppFeedbacksData, zGetChatAppFeedbacksResponse } from '../../zod/api/app' +import { base } from '../common' /** * Get feedbacks of application diff --git a/web/gen/orpc/api/apps.gen.ts b/web/gen/orpc/api/apps.ts similarity index 97% rename from web/gen/orpc/api/apps.gen.ts rename to web/gen/orpc/api/apps.ts index 8a625e134f..4015b6c4de 100644 --- a/web/gen/orpc/api/apps.gen.ts +++ b/web/gen/orpc/api/apps.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zCreateAnnotationData, zCreateAnnotationResponse, zDeleteAnnotationData, zGetAnnotationListData, zGetAnnotationListResponse, zGetInitialAnnotationReplySettingsStatusData, zGetInitialAnnotationReplySettingsStatusResponse, zInitialAnnotationReplySettingsData, zInitialAnnotationReplySettingsResponse, zUpdateAnnotationData, zUpdateAnnotationResponse } from '../../zod/api/apps.gen' -import { base } from '../common.gen' +import { zCreateAnnotationData, zCreateAnnotationResponse, zDeleteAnnotationData, zGetAnnotationListData, zGetAnnotationListResponse, zGetInitialAnnotationReplySettingsStatusData, zGetInitialAnnotationReplySettingsStatusResponse, zInitialAnnotationReplySettingsData, zInitialAnnotationReplySettingsResponse, zUpdateAnnotationData, zUpdateAnnotationResponse } from '../../zod/api/apps' +import { base } from '../common' /** * Get Annotation List diff --git a/web/gen/orpc/api/audio-to-text.gen.ts b/web/gen/orpc/api/audio-to-text.ts similarity index 91% rename from web/gen/orpc/api/audio-to-text.gen.ts rename to web/gen/orpc/api/audio-to-text.ts index bb4cc2f974..10041c9f37 100644 --- a/web/gen/orpc/api/audio-to-text.gen.ts +++ b/web/gen/orpc/api/audio-to-text.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zAudioToTextData, zAudioToTextResponse } from '../../zod/api/audio-to-text.gen' -import { base } from '../common.gen' +import { zAudioToTextData, zAudioToTextResponse } from '../../zod/api/audio-to-text' +import { base } from '../common' /** * Speech to Text diff --git a/web/gen/orpc/api/chat-messages.gen.ts b/web/gen/orpc/api/chat-messages.ts similarity index 94% rename from web/gen/orpc/api/chat-messages.gen.ts rename to web/gen/orpc/api/chat-messages.ts index 91ad61ad48..d3b728c91b 100644 --- a/web/gen/orpc/api/chat-messages.gen.ts +++ b/web/gen/orpc/api/chat-messages.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zSendChatMessageData, zSendChatMessageResponse, zStopChatMessageGenerationData, zStopChatMessageGenerationResponse } from '../../zod/api/chat-messages.gen' -import { base } from '../common.gen' +import { zSendChatMessageData, zSendChatMessageResponse, zStopChatMessageGenerationData, zStopChatMessageGenerationResponse } from '../../zod/api/chat-messages' +import { base } from '../common' /** * Send Chat Message diff --git a/web/gen/orpc/api/conversations.gen.ts b/web/gen/orpc/api/conversations.ts similarity index 95% rename from web/gen/orpc/api/conversations.gen.ts rename to web/gen/orpc/api/conversations.ts index c7d6d9c565..40efe2319e 100644 --- a/web/gen/orpc/api/conversations.gen.ts +++ b/web/gen/orpc/api/conversations.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zDeleteConversationData, zGetConversationsListData, zGetConversationsListResponse, zGetConversationVariablesData, zGetConversationVariablesResponse, zRenameConversationData, zRenameConversationResponse } from '../../zod/api/conversations.gen' -import { base } from '../common.gen' +import { zDeleteConversationData, zGetConversationsListData, zGetConversationsListResponse, zGetConversationVariablesData, zGetConversationVariablesResponse, zRenameConversationData, zRenameConversationResponse } from '../../zod/api/conversations' +import { base } from '../common' /** * Get Conversations diff --git a/web/gen/orpc/api/files.gen.ts b/web/gen/orpc/api/files.ts similarity index 97% rename from web/gen/orpc/api/files.gen.ts rename to web/gen/orpc/api/files.ts index 45f6c2453c..78e4b2ab39 100644 --- a/web/gen/orpc/api/files.gen.ts +++ b/web/gen/orpc/api/files.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zPreviewChatFileData, zPreviewChatFileResponse, zUploadChatFileData, zUploadChatFileResponse } from '../../zod/api/files.gen' -import { base } from '../common.gen' +import { zPreviewChatFileData, zPreviewChatFileResponse, zUploadChatFileData, zUploadChatFileResponse } from '../../zod/api/files' +import { base } from '../common' /** * File Upload diff --git a/web/gen/orpc/api/info.gen.ts b/web/gen/orpc/api/info.ts similarity index 83% rename from web/gen/orpc/api/info.gen.ts rename to web/gen/orpc/api/info.ts index a99bf4c91a..9fff02f84a 100644 --- a/web/gen/orpc/api/info.gen.ts +++ b/web/gen/orpc/api/info.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zGetChatAppInfoResponse } from '../../zod/api/info.gen' -import { base } from '../common.gen' +import { zGetChatAppInfoResponse } from '../../zod/api/info' +import { base } from '../common' /** * Get Application Basic Information diff --git a/web/gen/orpc/api/messages.gen.ts b/web/gen/orpc/api/messages.ts similarity index 96% rename from web/gen/orpc/api/messages.gen.ts rename to web/gen/orpc/api/messages.ts index cf70b44f7e..f06461d33c 100644 --- a/web/gen/orpc/api/messages.gen.ts +++ b/web/gen/orpc/api/messages.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zGetConversationHistoryData, zGetConversationHistoryResponse, zGetSuggestedQuestionsData, zGetSuggestedQuestionsResponse, zPostChatMessageFeedbackData, zPostChatMessageFeedbackResponse } from '../../zod/api/messages.gen' -import { base } from '../common.gen' +import { zGetConversationHistoryData, zGetConversationHistoryResponse, zGetSuggestedQuestionsData, zGetSuggestedQuestionsResponse, zPostChatMessageFeedbackData, zPostChatMessageFeedbackResponse } from '../../zod/api/messages' +import { base } from '../common' /** * Message Feedback diff --git a/web/gen/orpc/api/meta.gen.ts b/web/gen/orpc/api/meta.ts similarity index 83% rename from web/gen/orpc/api/meta.gen.ts rename to web/gen/orpc/api/meta.ts index 91fc6fe1da..ee4677a437 100644 --- a/web/gen/orpc/api/meta.gen.ts +++ b/web/gen/orpc/api/meta.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zGetChatAppMetaResponse } from '../../zod/api/meta.gen' -import { base } from '../common.gen' +import { zGetChatAppMetaResponse } from '../../zod/api/meta' +import { base } from '../common' /** * Get Application Meta Information diff --git a/web/gen/orpc/api/parameters.gen.ts b/web/gen/orpc/api/parameters.ts similarity index 91% rename from web/gen/orpc/api/parameters.gen.ts rename to web/gen/orpc/api/parameters.ts index 2a951b0674..c2d36c7b9f 100644 --- a/web/gen/orpc/api/parameters.gen.ts +++ b/web/gen/orpc/api/parameters.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zGetChatAppParametersData, zGetChatAppParametersResponse } from '../../zod/api/parameters.gen' -import { base } from '../common.gen' +import { zGetChatAppParametersData, zGetChatAppParametersResponse } from '../../zod/api/parameters' +import { base } from '../common' /** * Get Application Parameters Information diff --git a/web/gen/orpc/api/site.gen.ts b/web/gen/orpc/api/site.ts similarity index 93% rename from web/gen/orpc/api/site.gen.ts rename to web/gen/orpc/api/site.ts index 01b990146b..408e855fb9 100644 --- a/web/gen/orpc/api/site.gen.ts +++ b/web/gen/orpc/api/site.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zGetChatWebAppSettingsResponse } from '../../zod/api/site.gen' -import { base } from '../common.gen' +import { zGetChatWebAppSettingsResponse } from '../../zod/api/site' +import { base } from '../common' /** * Get Application WebApp Settings diff --git a/web/gen/orpc/api/text-to-audio.gen.ts b/web/gen/orpc/api/text-to-audio.ts similarity index 88% rename from web/gen/orpc/api/text-to-audio.gen.ts rename to web/gen/orpc/api/text-to-audio.ts index a8f16a60db..7ba48a4e81 100644 --- a/web/gen/orpc/api/text-to-audio.gen.ts +++ b/web/gen/orpc/api/text-to-audio.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zTextToAudioChatData, zTextToAudioChatResponse } from '../../zod/api/text-to-audio.gen' -import { base } from '../common.gen' +import { zTextToAudioChatData, zTextToAudioChatResponse } from '../../zod/api/text-to-audio' +import { base } from '../common' /** * Text to Audio diff --git a/web/gen/orpc/common.gen.ts b/web/gen/orpc/common.ts similarity index 100% rename from web/gen/orpc/common.gen.ts rename to web/gen/orpc/common.ts diff --git a/web/gen/orpc/router.gen.ts b/web/gen/orpc/router.ts similarity index 75% rename from web/gen/orpc/router.gen.ts rename to web/gen/orpc/router.ts index d1ae3891e3..37a52583e6 100644 --- a/web/gen/orpc/router.gen.ts +++ b/web/gen/orpc/router.ts @@ -1,17 +1,17 @@ // This file is auto-generated by @hey-api/openapi-ts -import { getChatAppFeedbacksContract } from './api/app.gen' -import { createAnnotationContract, deleteAnnotationContract, getAnnotationListContract, getInitialAnnotationReplySettingsStatusContract, initialAnnotationReplySettingsContract, updateAnnotationContract } from './api/apps.gen' -import { audioToTextContract } from './api/audio-to-text.gen' -import { sendChatMessageContract, stopChatMessageGenerationContract } from './api/chat-messages.gen' -import { deleteConversationContract, getConversationsListContract, getConversationVariablesContract, renameConversationContract } from './api/conversations.gen' -import { previewChatFileContract, uploadChatFileContract } from './api/files.gen' -import { getChatAppInfoContract } from './api/info.gen' -import { getConversationHistoryContract, getSuggestedQuestionsContract, postChatMessageFeedbackContract } from './api/messages.gen' -import { getChatAppMetaContract } from './api/meta.gen' -import { getChatAppParametersContract } from './api/parameters.gen' -import { getChatWebAppSettingsContract } from './api/site.gen' -import { textToAudioChatContract } from './api/text-to-audio.gen' +import { getChatAppFeedbacksContract } from './api/app' +import { createAnnotationContract, deleteAnnotationContract, getAnnotationListContract, getInitialAnnotationReplySettingsStatusContract, initialAnnotationReplySettingsContract, updateAnnotationContract } from './api/apps' +import { audioToTextContract } from './api/audio-to-text' +import { sendChatMessageContract, stopChatMessageGenerationContract } from './api/chat-messages' +import { deleteConversationContract, getConversationsListContract, getConversationVariablesContract, renameConversationContract } from './api/conversations' +import { previewChatFileContract, uploadChatFileContract } from './api/files' +import { getChatAppInfoContract } from './api/info' +import { getConversationHistoryContract, getSuggestedQuestionsContract, postChatMessageFeedbackContract } from './api/messages' +import { getChatAppMetaContract } from './api/meta' +import { getChatAppParametersContract } from './api/parameters' +import { getChatWebAppSettingsContract } from './api/site' +import { textToAudioChatContract } from './api/text-to-audio' export const router = { chatMessages: { send: sendChatMessageContract, stopGeneration: stopChatMessageGenerationContract }, diff --git a/web/gen/types/api/app.gen.ts b/web/gen/types/api/app.ts similarity index 90% rename from web/gen/types/api/app.gen.ts rename to web/gen/types/api/app.ts index 44d4ec336c..c20a5a4e44 100644 --- a/web/gen/types/api/app.gen.ts +++ b/web/gen/types/api/app.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { AppFeedbacksResponse } from '../models/app.gen' +import type { AppFeedbacksResponse } from '../models/app' export type GetChatAppFeedbacksData = { body?: never diff --git a/web/gen/types/api/apps.gen.ts b/web/gen/types/api/apps.ts similarity index 94% rename from web/gen/types/api/apps.gen.ts rename to web/gen/types/api/apps.ts index 14f792b333..671e38d738 100644 --- a/web/gen/types/api/apps.gen.ts +++ b/web/gen/types/api/apps.ts @@ -1,9 +1,9 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { AnnotationItem, AnnotationListResponse } from '../models/annotation.gen' -import type { CreateAnnotationRequest } from '../models/create.gen' -import type { InitialAnnotationReplySettingsRequest, InitialAnnotationReplySettingsResponse as InitialAnnotationReplySettingsResponse2, InitialAnnotationReplySettingsStatusResponse } from '../models/initial.gen' -import type { UpdateAnnotationRequest } from '../models/update.gen' +import type { AnnotationItem, AnnotationListResponse } from '../models/annotation' +import type { CreateAnnotationRequest } from '../models/create' +import type { InitialAnnotationReplySettingsRequest, InitialAnnotationReplySettingsResponse as InitialAnnotationReplySettingsResponse2, InitialAnnotationReplySettingsStatusResponse } from '../models/initial' +import type { UpdateAnnotationRequest } from '../models/update' export type GetAnnotationListData = { body?: never diff --git a/web/gen/types/api/audio-to-text.gen.ts b/web/gen/types/api/audio-to-text.ts similarity index 91% rename from web/gen/types/api/audio-to-text.gen.ts rename to web/gen/types/api/audio-to-text.ts index 3288d08ce9..3b014d4918 100644 --- a/web/gen/types/api/audio-to-text.gen.ts +++ b/web/gen/types/api/audio-to-text.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { AudioToTextRequest, AudioToTextResponse as AudioToTextResponse2 } from '../models/audio.gen' +import type { AudioToTextRequest, AudioToTextResponse as AudioToTextResponse2 } from '../models/audio' export type AudioToTextData = { body: AudioToTextRequest diff --git a/web/gen/types/api/chat-messages.gen.ts b/web/gen/types/api/chat-messages.ts similarity index 97% rename from web/gen/types/api/chat-messages.gen.ts rename to web/gen/types/api/chat-messages.ts index b5139768aa..dcfe50557f 100644 --- a/web/gen/types/api/chat-messages.gen.ts +++ b/web/gen/types/api/chat-messages.ts @@ -1,7 +1,7 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ChatCompletionResponse, ChatRequest } from '../models/chat.gen' -import type { ErrorResponse } from '../models/error.gen' +import type { ChatCompletionResponse, ChatRequest } from '../models/chat' +import type { ErrorResponse } from '../models/error' export type SendChatMessageData = { /** diff --git a/web/gen/types/api/conversations.gen.ts b/web/gen/types/api/conversations.ts similarity index 96% rename from web/gen/types/api/conversations.gen.ts rename to web/gen/types/api/conversations.ts index da1a404258..f8ff564699 100644 --- a/web/gen/types/api/conversations.gen.ts +++ b/web/gen/types/api/conversations.ts @@ -1,8 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ConversationListItem, ConversationRenameRequest, ConversationVariablesResponse } from '../models/conversation.gen' -import type { ConversationsListResponse } from '../models/conversations.gen' -import type { ErrorResponse } from '../models/error.gen' +import type { ConversationListItem, ConversationRenameRequest, ConversationVariablesResponse } from '../models/conversation' +import type { ConversationsListResponse } from '../models/conversations' +import type { ErrorResponse } from '../models/error' export type GetConversationsListData = { body?: never diff --git a/web/gen/types/api/files.gen.ts b/web/gen/types/api/files.ts similarity index 96% rename from web/gen/types/api/files.gen.ts rename to web/gen/types/api/files.ts index b47fcbb2af..a62066459a 100644 --- a/web/gen/types/api/files.gen.ts +++ b/web/gen/types/api/files.ts @@ -1,7 +1,7 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ErrorResponse } from '../models/error.gen' -import type { FileUploadResponse } from '../models/file.gen' +import type { ErrorResponse } from '../models/error' +import type { FileUploadResponse } from '../models/file' export type UploadChatFileData = { /** diff --git a/web/gen/types/api/info.gen.ts b/web/gen/types/api/info.ts similarity index 86% rename from web/gen/types/api/info.gen.ts rename to web/gen/types/api/info.ts index 0a7ea6b4ac..eae6c3eecc 100644 --- a/web/gen/types/api/info.gen.ts +++ b/web/gen/types/api/info.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { AppInfoResponse } from '../models/app.gen' +import type { AppInfoResponse } from '../models/app' export type GetChatAppInfoData = { body?: never diff --git a/web/gen/types/api/messages.gen.ts b/web/gen/types/api/messages.ts similarity index 96% rename from web/gen/types/api/messages.gen.ts rename to web/gen/types/api/messages.ts index 34b7992449..4351c08770 100644 --- a/web/gen/types/api/messages.gen.ts +++ b/web/gen/types/api/messages.ts @@ -1,8 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ConversationHistoryResponse } from '../models/conversation.gen' -import type { MessageFeedbackRequest } from '../models/message.gen' -import type { SuggestedQuestionsResponse } from '../models/suggested.gen' +import type { ConversationHistoryResponse } from '../models/conversation' +import type { MessageFeedbackRequest } from '../models/message' +import type { SuggestedQuestionsResponse } from '../models/suggested' export type PostChatMessageFeedbackData = { body: MessageFeedbackRequest diff --git a/web/gen/types/api/meta.gen.ts b/web/gen/types/api/meta.ts similarity index 87% rename from web/gen/types/api/meta.gen.ts rename to web/gen/types/api/meta.ts index 1d37a5fa77..88e039a36e 100644 --- a/web/gen/types/api/meta.gen.ts +++ b/web/gen/types/api/meta.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { AppMetaResponse } from '../models/app.gen' +import type { AppMetaResponse } from '../models/app' export type GetChatAppMetaData = { body?: never diff --git a/web/gen/types/api/parameters.gen.ts b/web/gen/types/api/parameters.ts similarity index 88% rename from web/gen/types/api/parameters.gen.ts rename to web/gen/types/api/parameters.ts index 84c81107ff..de491f86e8 100644 --- a/web/gen/types/api/parameters.gen.ts +++ b/web/gen/types/api/parameters.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ChatAppParametersResponse } from '../models/chat.gen' +import type { ChatAppParametersResponse } from '../models/chat' export type GetChatAppParametersData = { body?: never diff --git a/web/gen/types/api/site.gen.ts b/web/gen/types/api/site.ts similarity index 86% rename from web/gen/types/api/site.gen.ts rename to web/gen/types/api/site.ts index 7ccb300616..5dbfd0d766 100644 --- a/web/gen/types/api/site.gen.ts +++ b/web/gen/types/api/site.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { WebAppSettingsResponse } from '../models/web.gen' +import type { WebAppSettingsResponse } from '../models/web' export type GetChatWebAppSettingsData = { body?: never diff --git a/web/gen/types/api/text-to-audio.gen.ts b/web/gen/types/api/text-to-audio.ts similarity index 85% rename from web/gen/types/api/text-to-audio.gen.ts rename to web/gen/types/api/text-to-audio.ts index 429e60a353..2ce73e6e31 100644 --- a/web/gen/types/api/text-to-audio.gen.ts +++ b/web/gen/types/api/text-to-audio.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { TextToAudioFormRequest } from '../models/text.gen' +import type { TextToAudioFormRequest } from '../models/text' export type TextToAudioChatData = { body: TextToAudioFormRequest diff --git a/web/gen/types/common.gen.ts b/web/gen/types/common.ts similarity index 100% rename from web/gen/types/common.gen.ts rename to web/gen/types/common.ts diff --git a/web/gen/types/models/agent.gen.ts b/web/gen/types/models/agent.ts similarity index 100% rename from web/gen/types/models/agent.gen.ts rename to web/gen/types/models/agent.ts diff --git a/web/gen/types/models/annotation.gen.ts b/web/gen/types/models/annotation.ts similarity index 100% rename from web/gen/types/models/annotation.gen.ts rename to web/gen/types/models/annotation.ts diff --git a/web/gen/types/models/app.gen.ts b/web/gen/types/models/app.ts similarity index 78% rename from web/gen/types/models/app.gen.ts rename to web/gen/types/models/app.ts index acb9da832c..35a6bfeb1a 100644 --- a/web/gen/types/models/app.gen.ts +++ b/web/gen/types/models/app.ts @@ -1,7 +1,7 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { FeedbackItem } from './feedback.gen' -import type { ToolIconDetail } from './tool.gen' +import type { FeedbackItem } from './feedback' +import type { ToolIconDetail } from './tool' export type AppFeedbacksResponse = { data?: Array diff --git a/web/gen/types/models/audio.gen.ts b/web/gen/types/models/audio.ts similarity index 100% rename from web/gen/types/models/audio.gen.ts rename to web/gen/types/models/audio.ts diff --git a/web/gen/types/models/chat.gen.ts b/web/gen/types/models/chat.ts similarity index 93% rename from web/gen/types/models/chat.gen.ts rename to web/gen/types/models/chat.ts index a2621e1614..c2ec6436c4 100644 --- a/web/gen/types/models/chat.gen.ts +++ b/web/gen/types/models/chat.ts @@ -1,9 +1,9 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { InputFileObject } from './input.gen' -import type { RetrieverResource } from './retriever.gen' -import type { Usage } from './usage.gen' -import type { UserInputFormItem } from './user.gen' +import type { InputFileObject } from './input' +import type { RetrieverResource } from './retriever' +import type { Usage } from './usage' +import type { UserInputFormItem } from './user' export type ChatRequest = { /** diff --git a/web/gen/types/models/chunk.gen.ts b/web/gen/types/models/chunk.ts similarity index 100% rename from web/gen/types/models/chunk.gen.ts rename to web/gen/types/models/chunk.ts diff --git a/web/gen/types/models/conversation.gen.ts b/web/gen/types/models/conversation.ts similarity index 91% rename from web/gen/types/models/conversation.gen.ts rename to web/gen/types/models/conversation.ts index d7a5f87e93..4f5a26b715 100644 --- a/web/gen/types/models/conversation.gen.ts +++ b/web/gen/types/models/conversation.ts @@ -1,8 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { AgentThoughtItem } from './agent.gen' -import type { MessageFileItem } from './message.gen' -import type { RetrieverResource } from './retriever.gen' +import type { AgentThoughtItem } from './agent' +import type { MessageFileItem } from './message' +import type { RetrieverResource } from './retriever' export type ConversationHistoryResponse = { limit?: number diff --git a/web/gen/types/models/conversations.gen.ts b/web/gen/types/models/conversations.ts similarity index 73% rename from web/gen/types/models/conversations.gen.ts rename to web/gen/types/models/conversations.ts index 153d43b05a..125cc639ea 100644 --- a/web/gen/types/models/conversations.gen.ts +++ b/web/gen/types/models/conversations.ts @@ -1,6 +1,6 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ConversationListItem } from './conversation.gen' +import type { ConversationListItem } from './conversation' export type ConversationsListResponse = { limit?: number diff --git a/web/gen/types/models/create.gen.ts b/web/gen/types/models/create.ts similarity index 100% rename from web/gen/types/models/create.gen.ts rename to web/gen/types/models/create.ts diff --git a/web/gen/types/models/error.gen.ts b/web/gen/types/models/error.ts similarity index 100% rename from web/gen/types/models/error.gen.ts rename to web/gen/types/models/error.ts diff --git a/web/gen/types/models/feedback.gen.ts b/web/gen/types/models/feedback.ts similarity index 100% rename from web/gen/types/models/feedback.gen.ts rename to web/gen/types/models/feedback.ts diff --git a/web/gen/types/models/file.gen.ts b/web/gen/types/models/file.ts similarity index 100% rename from web/gen/types/models/file.gen.ts rename to web/gen/types/models/file.ts diff --git a/web/gen/types/models/initial.gen.ts b/web/gen/types/models/initial.ts similarity index 100% rename from web/gen/types/models/initial.gen.ts rename to web/gen/types/models/initial.ts diff --git a/web/gen/types/models/input.gen.ts b/web/gen/types/models/input.ts similarity index 100% rename from web/gen/types/models/input.gen.ts rename to web/gen/types/models/input.ts diff --git a/web/gen/types/models/message.gen.ts b/web/gen/types/models/message.ts similarity index 100% rename from web/gen/types/models/message.gen.ts rename to web/gen/types/models/message.ts diff --git a/web/gen/types/models/paragraph.gen.ts b/web/gen/types/models/paragraph.ts similarity index 100% rename from web/gen/types/models/paragraph.gen.ts rename to web/gen/types/models/paragraph.ts diff --git a/web/gen/types/models/retriever.gen.ts b/web/gen/types/models/retriever.ts similarity index 100% rename from web/gen/types/models/retriever.gen.ts rename to web/gen/types/models/retriever.ts diff --git a/web/gen/types/models/select.gen.ts b/web/gen/types/models/select.ts similarity index 100% rename from web/gen/types/models/select.gen.ts rename to web/gen/types/models/select.ts diff --git a/web/gen/types/models/stream.gen.ts b/web/gen/types/models/stream.ts similarity index 95% rename from web/gen/types/models/stream.gen.ts rename to web/gen/types/models/stream.ts index 81e98cf331..58bc7d194a 100644 --- a/web/gen/types/models/stream.gen.ts +++ b/web/gen/types/models/stream.ts @@ -1,8 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -import type { ChunkChatEvent } from './chunk.gen' -import type { RetrieverResource } from './retriever.gen' -import type { Usage } from './usage.gen' +import type { ChunkChatEvent } from './chunk' +import type { RetrieverResource } from './retriever' +import type { Usage } from './usage' export type StreamEventBase = { /** diff --git a/web/gen/types/models/suggested.gen.ts b/web/gen/types/models/suggested.ts similarity index 100% rename from web/gen/types/models/suggested.gen.ts rename to web/gen/types/models/suggested.ts diff --git a/web/gen/types/models/text.gen.ts b/web/gen/types/models/text.ts similarity index 100% rename from web/gen/types/models/text.gen.ts rename to web/gen/types/models/text.ts diff --git a/web/gen/types/models/tool.gen.ts b/web/gen/types/models/tool.ts similarity index 100% rename from web/gen/types/models/tool.gen.ts rename to web/gen/types/models/tool.ts diff --git a/web/gen/types/models/update.gen.ts b/web/gen/types/models/update.ts similarity index 100% rename from web/gen/types/models/update.gen.ts rename to web/gen/types/models/update.ts diff --git a/web/gen/types/models/usage.gen.ts b/web/gen/types/models/usage.ts similarity index 100% rename from web/gen/types/models/usage.gen.ts rename to web/gen/types/models/usage.ts diff --git a/web/gen/types/models/user.gen.ts b/web/gen/types/models/user.gen.ts deleted file mode 100644 index 666dffb275..0000000000 --- a/web/gen/types/models/user.gen.ts +++ /dev/null @@ -1,7 +0,0 @@ -// This file is auto-generated by @hey-api/openapi-ts - -import type { ParagraphControlWrapper } from './paragraph.gen' -import type { SelectControlWrapper } from './select.gen' -import type { TextInputControlWrapper } from './text.gen' - -export type UserInputFormItem = TextInputControlWrapper | ParagraphControlWrapper | SelectControlWrapper diff --git a/web/gen/types/models/user.ts b/web/gen/types/models/user.ts new file mode 100644 index 0000000000..b5169dac98 --- /dev/null +++ b/web/gen/types/models/user.ts @@ -0,0 +1,7 @@ +// This file is auto-generated by @hey-api/openapi-ts + +import type { ParagraphControlWrapper } from './paragraph' +import type { SelectControlWrapper } from './select' +import type { TextInputControlWrapper } from './text' + +export type UserInputFormItem = TextInputControlWrapper | ParagraphControlWrapper | SelectControlWrapper diff --git a/web/gen/types/models/web.gen.ts b/web/gen/types/models/web.ts similarity index 100% rename from web/gen/types/models/web.gen.ts rename to web/gen/types/models/web.ts diff --git a/web/gen/zod/api/app.gen.ts b/web/gen/zod/api/app.ts similarity index 92% rename from web/gen/zod/api/app.gen.ts rename to web/gen/zod/api/app.ts index 3d79caef85..d53c4094e6 100644 --- a/web/gen/zod/api/app.gen.ts +++ b/web/gen/zod/api/app.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zAppFeedbacksResponse } from '../models/app.gen' +import { zAppFeedbacksResponse } from '../models/app' export const zGetChatAppFeedbacksData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/apps.gen.ts b/web/gen/zod/api/apps.ts similarity index 95% rename from web/gen/zod/api/apps.gen.ts rename to web/gen/zod/api/apps.ts index 9c2abb9ba4..20ebf4ded4 100644 --- a/web/gen/zod/api/apps.gen.ts +++ b/web/gen/zod/api/apps.ts @@ -2,10 +2,10 @@ import { z } from 'zod' -import { zAnnotationItem, zAnnotationListResponse } from '../models/annotation.gen' -import { zCreateAnnotationRequest } from '../models/create.gen' -import { zInitialAnnotationReplySettingsRequest, zInitialAnnotationReplySettingsResponse as zInitialAnnotationReplySettingsResponse2, zInitialAnnotationReplySettingsStatusResponse } from '../models/initial.gen' -import { zUpdateAnnotationRequest } from '../models/update.gen' +import { zAnnotationItem, zAnnotationListResponse } from '../models/annotation' +import { zCreateAnnotationRequest } from '../models/create' +import { zInitialAnnotationReplySettingsRequest, zInitialAnnotationReplySettingsResponse as zInitialAnnotationReplySettingsResponse2, zInitialAnnotationReplySettingsStatusResponse } from '../models/initial' +import { zUpdateAnnotationRequest } from '../models/update' export const zGetAnnotationListData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/audio-to-text.gen.ts b/web/gen/zod/api/audio-to-text.ts similarity index 92% rename from web/gen/zod/api/audio-to-text.gen.ts rename to web/gen/zod/api/audio-to-text.ts index a3186d7297..d04ad69717 100644 --- a/web/gen/zod/api/audio-to-text.gen.ts +++ b/web/gen/zod/api/audio-to-text.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zAudioToTextRequest, zAudioToTextResponse as zAudioToTextResponse2 } from '../models/audio.gen' +import { zAudioToTextRequest, zAudioToTextResponse as zAudioToTextResponse2 } from '../models/audio' export const zAudioToTextData = z.object({ body: zAudioToTextRequest, diff --git a/web/gen/zod/api/chat-messages.gen.ts b/web/gen/zod/api/chat-messages.ts similarity index 99% rename from web/gen/zod/api/chat-messages.gen.ts rename to web/gen/zod/api/chat-messages.ts index db8147435b..4647da3f76 100644 --- a/web/gen/zod/api/chat-messages.gen.ts +++ b/web/gen/zod/api/chat-messages.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zChatCompletionResponse, zChatRequest } from '../models/chat.gen' +import { zChatCompletionResponse, zChatRequest } from '../models/chat' export const zSendChatMessageData = z.object({ body: zChatRequest, diff --git a/web/gen/zod/api/conversations.gen.ts b/web/gen/zod/api/conversations.ts similarity index 98% rename from web/gen/zod/api/conversations.gen.ts rename to web/gen/zod/api/conversations.ts index 7827a937ed..e64b6661d5 100644 --- a/web/gen/zod/api/conversations.gen.ts +++ b/web/gen/zod/api/conversations.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zConversationListItem, zConversationRenameRequest, zConversationVariablesResponse } from '../models/conversation.gen' -import { zConversationsListResponse } from '../models/conversations.gen' +import { zConversationListItem, zConversationRenameRequest, zConversationVariablesResponse } from '../models/conversation' +import { zConversationsListResponse } from '../models/conversations' export const zGetConversationsListData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/files.gen.ts b/web/gen/zod/api/files.ts similarity index 96% rename from web/gen/zod/api/files.gen.ts rename to web/gen/zod/api/files.ts index 4eabcf1845..357360cead 100644 --- a/web/gen/zod/api/files.gen.ts +++ b/web/gen/zod/api/files.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zFileUploadResponse } from '../models/file.gen' +import { zFileUploadResponse } from '../models/file' export const zUploadChatFileData = z.object({ body: z.object({ diff --git a/web/gen/zod/api/info.gen.ts b/web/gen/zod/api/info.ts similarity index 90% rename from web/gen/zod/api/info.gen.ts rename to web/gen/zod/api/info.ts index 354bffb55a..82ac82dfe9 100644 --- a/web/gen/zod/api/info.gen.ts +++ b/web/gen/zod/api/info.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zAppInfoResponse } from '../models/app.gen' +import { zAppInfoResponse } from '../models/app' export const zGetChatAppInfoData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/messages.gen.ts b/web/gen/zod/api/messages.ts similarity index 97% rename from web/gen/zod/api/messages.gen.ts rename to web/gen/zod/api/messages.ts index 19eec7edbc..25cc9c6d93 100644 --- a/web/gen/zod/api/messages.gen.ts +++ b/web/gen/zod/api/messages.ts @@ -2,9 +2,9 @@ import { z } from 'zod' -import { zConversationHistoryResponse } from '../models/conversation.gen' -import { zMessageFeedbackRequest } from '../models/message.gen' -import { zSuggestedQuestionsResponse } from '../models/suggested.gen' +import { zConversationHistoryResponse } from '../models/conversation' +import { zMessageFeedbackRequest } from '../models/message' +import { zSuggestedQuestionsResponse } from '../models/suggested' export const zPostChatMessageFeedbackData = z.object({ body: zMessageFeedbackRequest, diff --git a/web/gen/zod/api/meta.gen.ts b/web/gen/zod/api/meta.ts similarity index 90% rename from web/gen/zod/api/meta.gen.ts rename to web/gen/zod/api/meta.ts index 247a44a541..c6df69e07e 100644 --- a/web/gen/zod/api/meta.gen.ts +++ b/web/gen/zod/api/meta.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zAppMetaResponse } from '../models/app.gen' +import { zAppMetaResponse } from '../models/app' export const zGetChatAppMetaData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/parameters.gen.ts b/web/gen/zod/api/parameters.ts similarity index 91% rename from web/gen/zod/api/parameters.gen.ts rename to web/gen/zod/api/parameters.ts index 5b0ed7902d..86d852740f 100644 --- a/web/gen/zod/api/parameters.gen.ts +++ b/web/gen/zod/api/parameters.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zChatAppParametersResponse } from '../models/chat.gen' +import { zChatAppParametersResponse } from '../models/chat' export const zGetChatAppParametersData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/site.gen.ts b/web/gen/zod/api/site.ts similarity index 89% rename from web/gen/zod/api/site.gen.ts rename to web/gen/zod/api/site.ts index 4cfeef5e30..ddb05cc05e 100644 --- a/web/gen/zod/api/site.gen.ts +++ b/web/gen/zod/api/site.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zWebAppSettingsResponse } from '../models/web.gen' +import { zWebAppSettingsResponse } from '../models/web' export const zGetChatWebAppSettingsData = z.object({ body: z.never().optional(), diff --git a/web/gen/zod/api/text-to-audio.gen.ts b/web/gen/zod/api/text-to-audio.ts similarity index 89% rename from web/gen/zod/api/text-to-audio.gen.ts rename to web/gen/zod/api/text-to-audio.ts index de1c28c558..9d0ac5b233 100644 --- a/web/gen/zod/api/text-to-audio.gen.ts +++ b/web/gen/zod/api/text-to-audio.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zTextToAudioFormRequest } from '../models/text.gen' +import { zTextToAudioFormRequest } from '../models/text' export const zTextToAudioChatData = z.object({ body: zTextToAudioFormRequest, diff --git a/web/gen/zod/models/agent.gen.ts b/web/gen/zod/models/agent.ts similarity index 100% rename from web/gen/zod/models/agent.gen.ts rename to web/gen/zod/models/agent.ts diff --git a/web/gen/zod/models/annotation.gen.ts b/web/gen/zod/models/annotation.ts similarity index 100% rename from web/gen/zod/models/annotation.gen.ts rename to web/gen/zod/models/annotation.ts diff --git a/web/gen/zod/models/app.gen.ts b/web/gen/zod/models/app.ts similarity index 89% rename from web/gen/zod/models/app.gen.ts rename to web/gen/zod/models/app.ts index 0d89d09286..11c1cfa7b0 100644 --- a/web/gen/zod/models/app.gen.ts +++ b/web/gen/zod/models/app.ts @@ -2,8 +2,8 @@ import { z } from 'zod' -import { zFeedbackItem } from './feedback.gen' -import { zToolIconDetail } from './tool.gen' +import { zFeedbackItem } from './feedback' +import { zToolIconDetail } from './tool' export const zAppFeedbacksResponse = z.object({ data: z.array(zFeedbackItem).optional(), diff --git a/web/gen/zod/models/audio.gen.ts b/web/gen/zod/models/audio.ts similarity index 100% rename from web/gen/zod/models/audio.gen.ts rename to web/gen/zod/models/audio.ts diff --git a/web/gen/zod/models/chat.gen.ts b/web/gen/zod/models/chat.ts similarity index 95% rename from web/gen/zod/models/chat.gen.ts rename to web/gen/zod/models/chat.ts index 7297080034..ee501e897f 100644 --- a/web/gen/zod/models/chat.gen.ts +++ b/web/gen/zod/models/chat.ts @@ -2,10 +2,10 @@ import { z } from 'zod' -import { zInputFileObject } from './input.gen' -import { zRetrieverResource } from './retriever.gen' -import { zUsage } from './usage.gen' -import { zUserInputFormItem } from './user.gen' +import { zInputFileObject } from './input' +import { zRetrieverResource } from './retriever' +import { zUsage } from './usage' +import { zUserInputFormItem } from './user' export const zChatRequest = z.object({ query: z.string().describe('User Input/Question content.'), diff --git a/web/gen/zod/models/chunk.gen.ts b/web/gen/zod/models/chunk.ts similarity index 100% rename from web/gen/zod/models/chunk.gen.ts rename to web/gen/zod/models/chunk.ts diff --git a/web/gen/zod/models/conversation.gen.ts b/web/gen/zod/models/conversation.ts similarity index 96% rename from web/gen/zod/models/conversation.gen.ts rename to web/gen/zod/models/conversation.ts index c2a5b81522..fe3bc21841 100644 --- a/web/gen/zod/models/conversation.gen.ts +++ b/web/gen/zod/models/conversation.ts @@ -2,9 +2,9 @@ import { z } from 'zod' -import { zAgentThoughtItem } from './agent.gen' -import { zMessageFileItem } from './message.gen' -import { zRetrieverResource } from './retriever.gen' +import { zAgentThoughtItem } from './agent' +import { zMessageFileItem } from './message' +import { zRetrieverResource } from './retriever' export const zConversationMessageItem = z.object({ id: z.string().uuid().optional(), diff --git a/web/gen/zod/models/conversations.gen.ts b/web/gen/zod/models/conversations.ts similarity index 85% rename from web/gen/zod/models/conversations.gen.ts rename to web/gen/zod/models/conversations.ts index 4e56be04b1..5ad99540d1 100644 --- a/web/gen/zod/models/conversations.gen.ts +++ b/web/gen/zod/models/conversations.ts @@ -2,7 +2,7 @@ import { z } from 'zod' -import { zConversationListItem } from './conversation.gen' +import { zConversationListItem } from './conversation' export const zConversationsListResponse = z.object({ limit: z.number().int().optional(), diff --git a/web/gen/zod/models/create.gen.ts b/web/gen/zod/models/create.ts similarity index 100% rename from web/gen/zod/models/create.gen.ts rename to web/gen/zod/models/create.ts diff --git a/web/gen/zod/models/error.gen.ts b/web/gen/zod/models/error.ts similarity index 100% rename from web/gen/zod/models/error.gen.ts rename to web/gen/zod/models/error.ts diff --git a/web/gen/zod/models/feedback.gen.ts b/web/gen/zod/models/feedback.ts similarity index 100% rename from web/gen/zod/models/feedback.gen.ts rename to web/gen/zod/models/feedback.ts diff --git a/web/gen/zod/models/file.gen.ts b/web/gen/zod/models/file.ts similarity index 100% rename from web/gen/zod/models/file.gen.ts rename to web/gen/zod/models/file.ts diff --git a/web/gen/zod/models/initial.gen.ts b/web/gen/zod/models/initial.ts similarity index 100% rename from web/gen/zod/models/initial.gen.ts rename to web/gen/zod/models/initial.ts diff --git a/web/gen/zod/models/input.gen.ts b/web/gen/zod/models/input.ts similarity index 100% rename from web/gen/zod/models/input.gen.ts rename to web/gen/zod/models/input.ts diff --git a/web/gen/zod/models/message.gen.ts b/web/gen/zod/models/message.ts similarity index 100% rename from web/gen/zod/models/message.gen.ts rename to web/gen/zod/models/message.ts diff --git a/web/gen/zod/models/paragraph.gen.ts b/web/gen/zod/models/paragraph.ts similarity index 100% rename from web/gen/zod/models/paragraph.gen.ts rename to web/gen/zod/models/paragraph.ts diff --git a/web/gen/zod/models/retriever.gen.ts b/web/gen/zod/models/retriever.ts similarity index 100% rename from web/gen/zod/models/retriever.gen.ts rename to web/gen/zod/models/retriever.ts diff --git a/web/gen/zod/models/select.gen.ts b/web/gen/zod/models/select.ts similarity index 100% rename from web/gen/zod/models/select.gen.ts rename to web/gen/zod/models/select.ts diff --git a/web/gen/zod/models/stream.gen.ts b/web/gen/zod/models/stream.ts similarity index 97% rename from web/gen/zod/models/stream.gen.ts rename to web/gen/zod/models/stream.ts index b057e2d862..b034327441 100644 --- a/web/gen/zod/models/stream.gen.ts +++ b/web/gen/zod/models/stream.ts @@ -2,9 +2,9 @@ import { z } from 'zod' -import { zChunkChatEvent } from './chunk.gen' -import { zRetrieverResource } from './retriever.gen' -import { zUsage } from './usage.gen' +import { zChunkChatEvent } from './chunk' +import { zRetrieverResource } from './retriever' +import { zUsage } from './usage' export const zStreamEventBase = z.object({ task_id: z.string().uuid().describe('Task ID.').optional(), diff --git a/web/gen/zod/models/suggested.gen.ts b/web/gen/zod/models/suggested.ts similarity index 100% rename from web/gen/zod/models/suggested.gen.ts rename to web/gen/zod/models/suggested.ts diff --git a/web/gen/zod/models/text.gen.ts b/web/gen/zod/models/text.ts similarity index 100% rename from web/gen/zod/models/text.gen.ts rename to web/gen/zod/models/text.ts diff --git a/web/gen/zod/models/tool.gen.ts b/web/gen/zod/models/tool.ts similarity index 100% rename from web/gen/zod/models/tool.gen.ts rename to web/gen/zod/models/tool.ts diff --git a/web/gen/zod/models/update.gen.ts b/web/gen/zod/models/update.ts similarity index 100% rename from web/gen/zod/models/update.gen.ts rename to web/gen/zod/models/update.ts diff --git a/web/gen/zod/models/usage.gen.ts b/web/gen/zod/models/usage.ts similarity index 100% rename from web/gen/zod/models/usage.gen.ts rename to web/gen/zod/models/usage.ts diff --git a/web/gen/zod/models/user.gen.ts b/web/gen/zod/models/user.ts similarity index 63% rename from web/gen/zod/models/user.gen.ts rename to web/gen/zod/models/user.ts index f2c863233f..77680ddfd9 100644 --- a/web/gen/zod/models/user.gen.ts +++ b/web/gen/zod/models/user.ts @@ -2,9 +2,9 @@ import { z } from 'zod' -import { zParagraphControlWrapper } from './paragraph.gen' -import { zSelectControlWrapper } from './select.gen' -import { zTextInputControlWrapper } from './text.gen' +import { zParagraphControlWrapper } from './paragraph' +import { zSelectControlWrapper } from './select' +import { zTextInputControlWrapper } from './text' export const zUserInputFormItem = z.union([ zTextInputControlWrapper, diff --git a/web/gen/zod/models/web.gen.ts b/web/gen/zod/models/web.ts similarity index 100% rename from web/gen/zod/models/web.gen.ts rename to web/gen/zod/models/web.ts diff --git a/web/openapi-ts.config.ts b/web/openapi-ts.config.ts index c36d263a70..2026bea90b 100644 --- a/web/openapi-ts.config.ts +++ b/web/openapi-ts.config.ts @@ -92,6 +92,10 @@ export default defineConfig({ output: { indexFile: false, path: './gen', + fileName: { + name: '{{name}}', + suffix: false as unknown as string, + }, }, plugins: [ '@hey-api/typescript',