// @generated by `cargo xtask codegen` — do not edit.
// source: lexicons/repo/addCollaborator.json (sh.tangled.repo.addCollaborator)
#![allow(clippy::all)]
pub const NSID: &str = "sh.tangled.repo.addCollaborator";
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
pub struct Input {
/// DID of the repository to add the collaborator to
pub repo: String,
/// DID of the collaborator to add
pub subject: String,
}
/// Add a collaborator to a repository on this knot
///
/// The response has no body; use [`crate::xrpc::send_unit`].
pub fn add_collaborator(
http: &reqwest::Client,
base: &str,
input: &Input,
) -> reqwest::RequestBuilder {
let rb = http.post(crate::xrpc::xrpc_url(base, NSID));
let rb = rb.json(input);
rb
}