1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Namespace: "keybase.1"
// Protocol: "identify"
#![allow(dead_code)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::{Serialize, Deserialize};
use serde_repr::{Deserialize_repr, Serialize_repr};use super::*;

use super::common::*;
use super::identify_common::*;
// @lint("ignore")


#[derive(Serialize, Deserialize, Debug)]
pub struct IdentifyProofBreak {
  pub remoteProof: Option<RemoteProof>,
  pub lcr: Option<LinkCheckResult>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct IdentifyTrackBreaks {
  #[serde(default)]
  pub keys: Option<Vec<IdentifyKey>>,
  #[serde(default)]
  pub proofs: Option<Vec<IdentifyProofBreak>>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct Identify2Res {
  pub upk: Option<UserPlusKeys>,
  pub identifiedAt: Option<Time>,
  pub trackBreaks: Option<IdentifyTrackBreaks>,
}

// @lint("ignore")
#[derive(Serialize, Deserialize, Debug)]
pub struct Identify2ResUPK2 {
  pub upk: Option<UserPlusKeysV2AllIncarnations>,
  pub identifiedAt: Option<Time>,
  pub trackBreaks: Option<IdentifyTrackBreaks>,
}



#[derive(Serialize, Deserialize, Debug)]
pub struct IdentifyLiteRes {
  pub ul: Option<UserOrTeamLite>,
  pub trackBreaks: Option<IdentifyTrackBreaks>,
}





#[derive(Serialize, Deserialize, Debug)]
pub struct ResolveIdentifyImplicitTeamRes {
  #[serde(default)]
  pub displayName: Option<String>,
  pub teamID: Option<TeamID>,
  #[serde(default)]
  pub writers: Option<Vec<UserVersion>>,
  pub trackBreaks: Option<std::collections::HashMap<UserVersion, IdentifyTrackBreaks>>,
  pub folderID: Option<TLFID>,
}