macro_rules! vault_error {
    ($status:ident, $content:ident) => {
        match serde_json::from_str::<crate::sdk::response_error::ResponseError>(&$content) {
            Ok(parsed_err) => Err(parsed_err.into()),
            Err(_) => Err(crate::sdk::response_error::SdkError::CannotParseError {
                status: $status.as_u16().into(),
                content: $content.to_owned(),
            }),
        }
    };
}

mod ls;
pub use ls::ls;
mod auth;
pub use auth::answer_challenge;
pub use auth::request_challenge;
mod files;
pub use files::delete;
pub use files::request_upload_url;
pub use files::retrieve;
pub use files::upload;
mod response_error;
