use std::collections::HashMap;
#[derive(Debug, Clone)]
pub struct FileUploadRequest {
pub content: Vec<u8>,
pub filename: String,
pub mime_type: Option<String>,
pub purpose: String,
pub metadata: HashMap<String, String>,
}
#[derive(Debug, Clone)]
pub struct FileObject {
pub id: String,
pub filename: String,
pub bytes: u64,
pub created_at: u64,
pub purpose: String,
pub status: String,
pub mime_type: Option<String>,
pub metadata: HashMap<String, serde_json::Value>,
}
#[derive(Debug, Clone, Default)]
pub struct FileListQuery {
pub purpose: Option<String>,
pub limit: Option<u32>,
pub after: Option<String>,
pub order: Option<String>,
}
#[derive(Debug, Clone)]
pub struct FileListResponse {
pub files: Vec<FileObject>,
pub has_more: bool,
pub next_cursor: Option<String>,
}
#[derive(Debug, Clone)]
pub struct FileDeleteResponse {
pub id: String,
pub deleted: bool,
}