-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvname_cert.proto
52 lines (44 loc) · 1.43 KB
/
vname_cert.proto
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
// Uncomment syntax = "proto2"; for erlang protobuf code generator
syntax = "proto2";
package whatsapp;
option java_package = "com.whatsapp.proto";
message LocalizedName {
optional string lg = 1;
optional string lc = 2;
optional string verified_name = 3;
}
message VerifiedNameCertificate {
message Details {
optional uint64 serial = 1;
optional string issuer = 2;
optional string verified_name = 4;
repeated LocalizedName localized_names = 8;
optional uint64 issue_time = 10; // for server use, do not modify on clients
}
// this set as bytes to match what we do in wa.proto
optional bytes details = 1;
optional bytes signature = 2;
optional bytes server_signature = 3; // for server use, do not modify on clients
}
message BizAccountPayload {
optional VerifiedNameCertificate vname_cert = 1;
// biz_acct_link_info stores encrypted BizAccountLinkInfo as bytes.
optional bytes biz_acct_link_info = 2;
}
message BizAccountLinkInfo {
optional uint64 whatsapp_biz_acct_fbid = 1;
optional string whatsapp_acct_number = 2;
optional uint64 issue_time = 3;
}
message BizIdentityInfo {
enum VerifiedLevelValue {
unknown = 0;
low = 1;
high = 2;
}
// more details for vlevel(verified_level) in EntSchema https://fburl.com/diffusion/cgbffvib
optional VerifiedLevelValue vlevel = 1;
optional VerifiedNameCertificate vname_cert = 2;
optional bool signed = 3;
optional bool revoked = 4;
}