googleauth.proto 765 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. syntax = "proto3";
  2. package googleauth;
  3. message MigrationPayload {
  4. enum Algorithm {
  5. ALGORITHM_UNSPECIFIED = 0;
  6. ALGORITHM_SHA1 = 1;
  7. ALGORITHM_SHA256 = 2;
  8. ALGORITHM_SHA512 = 3;
  9. ALGORITHM_MD5 = 4;
  10. }
  11. enum DigitCount {
  12. DIGIT_COUNT_UNSPECIFIED = 0;
  13. DIGIT_COUNT_SIX = 1;
  14. DIGIT_COUNT_EIGHT = 2;
  15. }
  16. enum OtpType {
  17. OTP_TYPE_UNSPECIFIED = 0;
  18. OTP_TYPE_HOTP = 1;
  19. OTP_TYPE_TOTP = 2;
  20. }
  21. message OtpParameters {
  22. bytes secret = 1;
  23. string name = 2;
  24. string issuer = 3;
  25. Algorithm algorithm = 4;
  26. DigitCount digits = 5;
  27. OtpType type = 6;
  28. int64 counter = 7;
  29. }
  30. repeated OtpParameters otp_parameters = 1;
  31. int32 version = 2;
  32. int32 batch_size = 3;
  33. int32 batch_index = 4;
  34. int32 batch_id = 5;
  35. }