shrike 0.1.5

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 GroupApproveJoinRequestInput {
    pub convo_id: String,
    pub member: crate::syntax::Did,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

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

/// GroupApproveJoinRequest — [NOTE: This is under active development and should be considered unstable while this note is here]. Approves a request to join a group (via join link) the user owns. Action taken by the group owner.
pub async fn group_approve_join_request(
    client: &crate::xrpc::Client,
    input: &GroupApproveJoinRequestInput,
) -> Result<GroupApproveJoinRequestOutput, crate::xrpc::Error> {
    client
        .procedure("chat.bsky.group.approveJoinRequest", input)
        .await
}