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
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Namespace: "keybase.1"
// Protocol: "pgp"
#![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::*;
#[derive(Serialize_repr, Deserialize_repr, Debug, Hash, PartialEq, Eq)]
#[repr(u8)]
pub enum SignMode {
  Attached_0,
  Detached_1,
  Clear_2,
}

pub struct PGPSignOptions {
  pub keyQuery: Option<String>,
  pub mode: SignMode,
  pub binaryIn: bool,
  pub binaryOut: bool,
}





pub struct PGPEncryptOptions {
  pub recipients: Option<Vec<String>>,
  pub noSign: bool,
  pub noSelf: bool,
  pub binaryOut: bool,
  pub keyQuery: Option<String>,
}



pub struct PGPSigVerification {
  pub isSigned: bool,
  pub verified: bool,
  pub signer: User,
  pub signKey: PublicKey,
}

pub struct PGPDecryptOptions {
  pub assertSigned: bool,
  pub signedBy: Option<String>,
}



pub struct PGPVerifyOptions {
  pub signedBy: Option<String>,
  pub signature: Option<String>,
}





pub struct KeyInfo {
  pub fingerprint: Option<String>,
  pub key: Option<String>,
  pub desc: Option<String>,
}

pub struct PGPQuery {
  pub secret: bool,
  pub query: Option<String>,
  pub exactMatch: bool,
}







// @lint("ignore")
pub struct PGPCreateUids {
  pub useDefault: bool,
  pub ids: Option<Vec<PGPIdentity>>,
}

// @lint("ignore")


// @lint("ignore")








pub struct PGPPurgeRes {
  pub filenames: Option<Vec<String>>,
}