Skip to main content

wenlan_types/
import.rs

1// SPDX-License-Identifier: Apache-2.0
2//! Types for the chat-export import endpoint.
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct ImportChatExportRequest {
8    pub path: String,
9}
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct ImportChatExportResponse {
13    pub import_id: String,
14    pub vendor: String,
15    pub conversations_total: usize,
16    pub conversations_new: usize,
17    pub conversations_skipped_existing: usize,
18    pub memories_stored: usize,
19}
20
21#[derive(Debug, Clone, Serialize, Deserialize)]
22pub struct PendingImport {
23    pub id: String,
24    pub vendor: String,
25    pub stage: String,
26    pub source_path: String,
27    pub processed_conversations: i64,
28    pub total_conversations: Option<i64>,
29}