use http::StatusCode;
use serde::{Deserialize, Serialize};
use crate::claude::types::{BetaErrorResponse, BetaModelInfo, ClaudeResponseHeaders};
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct ResponseBody {
pub data: Vec<BetaModelInfo>,
pub first_id: String,
pub has_more: bool,
pub last_id: String,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ClaudeModelListResponse {
Success {
#[serde(with = "crate::claude::types::status_code_serde")]
stats_code: StatusCode,
headers: ClaudeResponseHeaders,
body: ResponseBody,
},
Error {
#[serde(with = "crate::claude::types::status_code_serde")]
stats_code: StatusCode,
headers: ClaudeResponseHeaders,
body: BetaErrorResponse,
},
}