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 GroupCreateGroupInput {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub members: Vec<crate::syntax::Did>,
    pub name: String,
    /// 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 GroupCreateGroupOutput {
    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>,
}

/// GroupCreateGroup — [NOTE: This is under active development and should be considered unstable while this note is here]. Creates a group convo, specifying the members to be added to it. Unlike getConvoForMembers, this isn't idempotent. It will create new groups even if the membership is identical to pre-existing groups. Will create 'pending' membership for all members, except the owner who is 'accepted'.
pub async fn group_create_group(
    client: &crate::xrpc::Client,
    input: &GroupCreateGroupInput,
) -> Result<GroupCreateGroupOutput, crate::xrpc::Error> {
    client.procedure("chat.bsky.group.createGroup", input).await
}