42 lines
1007 B
TypeScript
42 lines
1007 B
TypeScript
import { deny } from "@/lib/decision"
|
|
import type { ApiDecision } from "@/lib/errors"
|
|
import type { ChatMessage, ChatSession } from "@/lib/types"
|
|
|
|
export type ListChatSessionsOptions = {
|
|
offset?: number
|
|
limit?: number
|
|
}
|
|
|
|
export type ListChatMessagesOptions = {
|
|
offset?: number
|
|
limit?: number
|
|
}
|
|
|
|
const unavailable = "聊天接口暂未开放"
|
|
|
|
export async function listChatSessions(_options?: ListChatSessionsOptions): Promise<ChatSession[]> {
|
|
return []
|
|
}
|
|
|
|
export async function getChatSessionById(_sessionId: string): Promise<ChatSession | undefined> {
|
|
return undefined
|
|
}
|
|
|
|
export async function listChatMessages(
|
|
_sessionId: string,
|
|
_options?: ListChatMessagesOptions,
|
|
): Promise<ChatMessage[]> {
|
|
return []
|
|
}
|
|
|
|
export async function sendTextMessage(_sessionId: string, _content: string): Promise<ApiDecision> {
|
|
return deny(404, unavailable)
|
|
}
|
|
|
|
export async function sendImageMessage(
|
|
_sessionId: string,
|
|
_imageUrl: string,
|
|
): Promise<ApiDecision> {
|
|
return deny(404, unavailable)
|
|
}
|