// Code generated by lexgen. DO NOT EDIT.
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SyncGetBlocksParams {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub cids: Vec<String>,
/// The DID of the repo.
pub did: String,
}
/// SyncGetBlocks — Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS.
pub async fn sync_get_blocks(
client: &crate::xrpc::Client,
params: &SyncGetBlocksParams,
) -> Result<Vec<u8>, crate::xrpc::Error> {
client.query_raw("com.atproto.sync.getBlocks", params).await
}