feat: restore Wolai workspace navigation and assets
This commit is contained in:
@@ -323,6 +323,45 @@ pub struct UpsertNavigationRecentInput {
|
||||
pub metadata_json: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct KnowledgeBaseRecord {
|
||||
pub id: EntityId,
|
||||
pub user_id: EntityId,
|
||||
pub workspace_id: Option<EntityId>,
|
||||
pub root_uri: Option<String>,
|
||||
pub name: String,
|
||||
pub description: Option<String>,
|
||||
pub provider: String,
|
||||
pub provider_kb_id: String,
|
||||
pub default_tool_enabled: bool,
|
||||
pub can_write: bool,
|
||||
pub source_count: i64,
|
||||
pub chunk_count: i64,
|
||||
pub status: String,
|
||||
pub metadata_json: String,
|
||||
pub created_at: Timestamp,
|
||||
pub updated_at: Timestamp,
|
||||
pub revision: i64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct UpsertKnowledgeBaseInput {
|
||||
pub id: Option<EntityId>,
|
||||
pub user_id: EntityId,
|
||||
pub workspace_id: Option<EntityId>,
|
||||
pub root_uri: Option<String>,
|
||||
pub name: String,
|
||||
pub description: Option<String>,
|
||||
pub provider: String,
|
||||
pub provider_kb_id: String,
|
||||
pub default_tool_enabled: bool,
|
||||
pub can_write: bool,
|
||||
pub source_count: i64,
|
||||
pub chunk_count: i64,
|
||||
pub status: String,
|
||||
pub metadata_json: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct AiPolicyRecord {
|
||||
pub id: EntityId,
|
||||
|
||||
Reference in New Issue
Block a user