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.revokeVerifications

use serde::{Deserialize, Serialize};

/// Revoke previously granted verifications in batches of up to 100.
/// XRPC Procedure: tools.ozone.verification.revokeVerifications
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Input {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub revoke_reason: Option<String>,
    pub uris: Vec<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Output {
    pub failed_revocations: Vec<RevokeError>,
    pub revoked_verifications: Vec<String>,
}

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