shrike 0.1.6

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

#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ModerationGetConvosParams {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub convo_ids: Vec<String>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ModerationGetConvosOutput {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub convos: Vec<crate::api::chat::bsky::ModerationDefsConvoView>,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ModerationGetConvos — [NOTE: This is under active development and should be considered unstable while this note is here]. Gets existing conversations by their IDs, for moderation purposes. Does not require the requester to be a member of the conversations. Unknown IDs are silently omitted from the response.
pub async fn moderation_get_convos(
    client: &crate::xrpc::Client,
    params: &ModerationGetConvosParams,
) -> Result<ModerationGetConvosOutput, crate::xrpc::Error> {
    client.query("chat.bsky.moderation.getConvos", params).await
}