1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: com.atproto.identity.getRecommendedDidCredentials
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[jacquard_derive::lexicon]
9#[derive(
10 serde::Serialize,
11 serde::Deserialize,
12 Debug,
13 Clone,
14 PartialEq,
15 Eq,
16 jacquard_derive::IntoStatic,
17 Default
18)]
19#[serde(rename_all = "camelCase")]
20pub struct GetRecommendedDidCredentialsOutput<'a> {
21 #[serde(skip_serializing_if = "std::option::Option::is_none")]
22 #[serde(borrow)]
23 pub also_known_as: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
24 /// Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.
25 #[serde(skip_serializing_if = "std::option::Option::is_none")]
26 #[serde(borrow)]
27 pub rotation_keys: std::option::Option<Vec<jacquard_common::CowStr<'a>>>,
28 #[serde(skip_serializing_if = "std::option::Option::is_none")]
29 #[serde(borrow)]
30 pub services: std::option::Option<jacquard_common::types::value::Data<'a>>,
31 #[serde(skip_serializing_if = "std::option::Option::is_none")]
32 #[serde(borrow)]
33 pub verification_methods: std::option::Option<
34 jacquard_common::types::value::Data<'a>,
35 >,
36}
37
38/// XRPC request marker type
39#[derive(
40 Debug,
41 Clone,
42 Copy,
43 PartialEq,
44 Eq,
45 serde::Serialize,
46 serde::Deserialize,
47 jacquard_derive::IntoStatic
48)]
49pub struct GetRecommendedDidCredentials;
50///Response type for
51///com.atproto.identity.getRecommendedDidCredentials
52pub struct GetRecommendedDidCredentialsResponse;
53impl jacquard_common::xrpc::XrpcResp for GetRecommendedDidCredentialsResponse {
54 const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials";
55 const ENCODING: &'static str = "application/json";
56 type Output<'de> = GetRecommendedDidCredentialsOutput<'de>;
57 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
58}
59
60impl jacquard_common::xrpc::XrpcRequest for GetRecommendedDidCredentials {
61 const NSID: &'static str = "com.atproto.identity.getRecommendedDidCredentials";
62 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
63 type Response = GetRecommendedDidCredentialsResponse;
64}
65
66///Endpoint type for
67///com.atproto.identity.getRecommendedDidCredentials
68pub struct GetRecommendedDidCredentialsRequest;
69impl jacquard_common::xrpc::XrpcEndpoint for GetRecommendedDidCredentialsRequest {
70 const PATH: &'static str = "/xrpc/com.atproto.identity.getRecommendedDidCredentials";
71 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
72 type Request<'de> = GetRecommendedDidCredentials;
73 type Response = GetRecommendedDidCredentialsResponse;
74}