// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: com.atproto.identity.getRecommendedDidCredentials
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use alloc::collections::BTreeMap;

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::CowStr;
use jacquard_common::types::value::Data;
use jacquard_derive::{IntoStatic, lexicon};
use serde::{Serialize, Deserialize};

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct GetRecommendedDidCredentialsOutput<'a> {
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub also_known_as: Option<Vec<CowStr<'a>>>,
    ///Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub rotation_keys: Option<Vec<CowStr<'a>>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub services: Option<Data<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub verification_methods: Option<Data<'a>>,
}

/// XRPC request marker type.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Copy)]
pub struct GetRecommendedDidCredentials;
/// Response type for com.atproto.identity.getRecommendedDidCredentials
pub struct GetRecommendedDidCredentialsResponse;
impl jacquard_common::xrpc::XrpcResp for GetRecommendedDidCredentialsResponse {
    const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials";
    const ENCODING: &'static str = "application/json";
    type Output<'de> = GetRecommendedDidCredentialsOutput<'de>;
    type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
}

impl jacquard_common::xrpc::XrpcRequest for GetRecommendedDidCredentials {
    const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Response = GetRecommendedDidCredentialsResponse;
}

/// Endpoint type for com.atproto.identity.getRecommendedDidCredentials
pub struct GetRecommendedDidCredentialsRequest;
impl jacquard_common::xrpc::XrpcEndpoint for GetRecommendedDidCredentialsRequest {
    const PATH: &'static str = "/xrpc/com.atproto.identity.getRecommendedDidCredentials";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Request<'de> = GetRecommendedDidCredentials;
    type Response = GetRecommendedDidCredentialsResponse;
}