use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct WABInfo {
pub server_name: Option<String>,
pub supported_methods: Option<Vec<String>>,
pub features: Option<serde_json::Value>,
pub version: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct StartAuthResponse {
pub success: bool,
pub message: Option<String>,
pub data: Option<serde_json::Value>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CompleteAuthResponse {
pub success: bool,
pub message: Option<String>,
pub presentation_key: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FaucetResponse {
pub txid: Option<String>,
pub tx: Option<String>,
pub k: Option<String>,
pub success: Option<bool>,
pub message: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ShamirShareResponse {
pub success: bool,
pub message: Option<String>,
pub share_b: Option<String>,
pub user_id: Option<i64>,
pub share_version: Option<i64>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct LinkedMethodsResponse {
pub methods: Option<Vec<LinkedMethod>>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct LinkedMethod {
pub method_type: Option<String>,
pub identifier: Option<String>,
pub auth_method_id: Option<i64>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct UnlinkResponse {
pub success: bool,
pub message: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DeleteUserResponse {
pub success: bool,
pub message: Option<String>,
}