proto-blue-api 0.2.1

AT Protocol high-level API: agent, rich text, moderation, generated types
Documentation
// Generated by atproto-codegen. Do not edit.
//! Lexicon: tools.ozone.verification.grantVerifications

use serde::{Deserialize, Serialize};

/// Error object for failed verifications.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct GrantError {
    pub error: String,
    pub subject: String,
}

/// Grant verifications to multiple subjects. Allows batch processing of up to 100 verifications at once.
/// XRPC Procedure: tools.ozone.verification.grantVerifications
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Input {
    pub verifications: Vec<VerificationInput>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
    pub failed_verifications: Vec<GrantError>,
    pub verifications: Vec<crate::tools::ozone::verification::defs::VerificationView>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct VerificationInput {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    pub display_name: String,
    pub handle: String,
    pub subject: String,
}