-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmigration.proto
More file actions
41 lines (35 loc) · 760 Bytes
/
migration.proto
File metadata and controls
41 lines (35 loc) · 760 Bytes
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
syntax = "proto2";
package proto;
message MigrationPayload {
repeated OtpParameters otp_parameters = 1;
optional int32 version = 2;
optional int32 batch_size = 3;
optional int32 batch_index = 4;
optional int32 batch_id = 5;
}
message OtpParameters {
optional bytes secret = 1;
optional string name = 2;
optional string issuer = 3;
optional Algorithm algorithm = 4;
optional DigitCount digits = 5;
optional OtpType type = 6;
optional int64 counter = 7;
enum Algorithm {
ALGORITHM_UNSPECIFIED = 0;
SHA1 = 1;
SHA256 = 2;
SHA512 = 3;
MD5 = 4;
}
enum DigitCount {
DIGIT_COUNT_UNSPECIFIED = 0;
SIX = 1;
EIGHT = 2;
}
enum OtpType {
OTP_TYPE_UNSPECIFIED = 0;
HOTP = 1;
TOTP = 2;
}
}