shrike 0.1.0

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerRefreshSessionOutput {
    pub access_jwt: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub active: Option<bool>,
    pub did: crate::syntax::Did,
    pub did_doc: serde_json::Value,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email_auth_factor: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email_confirmed: Option<bool>,
    pub handle: crate::syntax::Handle,
    pub refresh_jwt: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ServerRefreshSession — Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').
pub async fn server_refresh_session(
    client: &crate::xrpc::Client,
) -> Result<ServerRefreshSessionOutput, crate::xrpc::Error> {
    client
        .procedure("com.atproto.server.refreshSession", &())
        .await
}