mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-29 23:12:38 +08:00
feat(types): add session form interfaces for agent operations
Add BaseSessionForm, CreateSessionForm and UpdateSessionForm interfaces to support session management functionality
This commit is contained in:
parent
a4c2ed5328
commit
7b428be93d
@ -141,6 +141,16 @@ export interface UpdateAgentForm extends Partial<BaseAgentForm> {
|
||||
|
||||
export type AgentForm = AddAgentForm | UpdateAgentForm
|
||||
|
||||
export interface BaseSessionForm extends AgentBase {}
|
||||
|
||||
export interface CreateSessionForm extends BaseSessionForm {
|
||||
id?: never
|
||||
}
|
||||
|
||||
export interface UpdateSessionForm extends Partial<BaseSessionForm> {
|
||||
id: string
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
// API Data Transfer Object
|
||||
// ------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user