# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/identity/v1/keyapis_identity_authorization_v1.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/field_behavior_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n;keyapis/identity/v1/keyapis_identity_authorization_v1.proto\x12\x13keyapis.identity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"[\n\tUserToken\x12\x19\n\x0c\x61\x63\x63\x65ss_token\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\nexpired_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\",\n\x07\x43\x61ptcha\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xd3\x01\n\rCaptchaAnswer\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\x1a\x9d\x01\n\x05\x45rror\x12L\n\x0cwrong_answer\x18\x01 \x01(\x0b\x32\x34.keyapis.identity.v1.CaptchaAnswer.Error.WrongAnswerH\x00\x12-\n\x07\x63\x61ptcha\x18\x02 \x01(\x0b\x32\x1c.keyapis.identity.v1.Captcha\x1a\r\n\x0bWrongAnswerB\x08\n\x06reason\"\xbc\x03\n\x07OtpCode\x12\x14\n\x07\x63ode_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07timeout\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1a\x84\x03\n\x05\x45rror\x12O\n\x11life_time_expired\x18\x01 \x01(\x0b\x32\x32.keyapis.identity.v1.OtpCode.Error.LifeTimeExpiredH\x00\x12\x44\n\x0bno_attempts\x18\x02 \x01(\x0b\x32-.keyapis.identity.v1.OtpCode.Error.NoAttemptsH\x00\x12O\n\x11\x61\x64\x64ress_not_found\x18\x03 \x01(\x0b\x32\x32.keyapis.identity.v1.OtpCode.Error.AddressNotFoundH\x00\x12\x46\n\x0cinvalid_code\x18\x04 \x01(\x0b\x32..keyapis.identity.v1.OtpCode.Error.InvalidCodeH\x00\x1a\x11\n\x0fLifeTimeExpired\x1a\x0c\n\nNoAttempts\x1a\x11\n\x0f\x41\x64\x64ressNotFound\x1a\r\n\x0bInvalidCodeB\x08\n\x06reason\"\xae\x04\n\x08SsoError\x12Y\n\x19user_is_temporary_blocked\x18\x01 \x01(\x0b\x32\x34.keyapis.identity.v1.SsoError.UserIsTemporaryBlockedH\x00\x12\x44\n\x0euser_not_found\x18\x02 \x01(\x0b\x32*.keyapis.identity.v1.SsoError.UserNotFoundH\x00\x12K\n\x11wrong_credentials\x18\x03 \x01(\x0b\x32..keyapis.identity.v1.SsoError.WrongCredentialsH\x00\x12\x46\n\x0fuser_is_blocked\x18\x04 \x01(\x0b\x32+.keyapis.identity.v1.SsoError.UserIsBlockedH\x00\x12K\n\x11interval_exceeded\x18\x05 \x01(\x0b\x32..keyapis.identity.v1.SsoError.IntervalExceededH\x00\x1a\x18\n\x16UserIsTemporaryBlocked\x1a\x0e\n\x0cUserNotFound\x1a\x46\n\x10WrongCredentials\x12\x32\n\x07\x63\x61ptcha\x18\x01 \x01(\x0b\x32\x1c.keyapis.identity.v1.CaptchaB\x03\xe0\x41\x01\x1a\x0f\n\rUserIsBlocked\x1a\x12\n\x10IntervalExceededB\x08\n\x06reason\"i\n\x08KeyError\x12\x43\n\ruser_creation\x18\x01 \x01(\x0b\x32*.keyapis.identity.v1.KeyError.UserCreationH\x00\x1a\x0e\n\x0cUserCreationB\x08\n\x06reason\"\x87\x01\n PostAuthorizationSendCodeRequest\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x12?\n\x0e\x63\x61ptcha_answer\x18\x02 \x01(\x0b\x32\".keyapis.identity.v1.CaptchaAnswerB\x03\xe0\x41\x01\x42\n\n\x08otp_text\"\xae\x02\n!PostAuthorizationSendCodeResponse\x12,\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1c.keyapis.identity.v1.OtpCodeH\x00\x12M\n\x05\x65rror\x18\x02 \x01(\x0b\x32<.keyapis.identity.v1.PostAuthorizationSendCodeResponse.ErrorH\x00\x1a\x83\x01\n\x05\x45rror\x12\x42\n\x0e\x63\x61ptcha_answer\x18\x01 \x01(\x0b\x32(.keyapis.identity.v1.CaptchaAnswer.ErrorH\x00\x12,\n\x03sso\x18\x02 \x01(\x0b\x32\x1d.keyapis.identity.v1.SsoErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"H\n\x1dPostAuthorizationLoginRequest\x12\x14\n\x07\x63ode_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x63ode\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xcc\x02\n\x1ePostAuthorizationLoginResponse\x12.\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1e.keyapis.identity.v1.UserTokenH\x00\x12J\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x39.keyapis.identity.v1.PostAuthorizationLoginResponse.ErrorH\x00\x1a\xa5\x01\n\x05\x45rror\x12\x36\n\x08otp_code\x18\x01 \x01(\x0b\x32\".keyapis.identity.v1.OtpCode.ErrorH\x00\x12,\n\x03sso\x18\x02 \x01(\x0b\x32\x1d.keyapis.identity.v1.SsoErrorH\x00\x12,\n\x03key\x18\x03 \x01(\x0b\x32\x1d.keyapis.identity.v1.KeyErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type\"\xc3\x01\n\'PostAuthorizationLoginByPasswordRequest\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x12\x0f\n\x05\x65mail\x18\x02 \x01(\tH\x00\x12\x0f\n\x05login\x18\x03 \x01(\tH\x00\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12?\n\x0e\x63\x61ptcha_answer\x18\x05 \x01(\x0b\x32\".keyapis.identity.v1.CaptchaAnswerB\x03\xe0\x41\x01\x42\x06\n\x04type\"\xec\x02\n(PostAuthorizationLoginByPasswordResponse\x12.\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1e.keyapis.identity.v1.UserTokenH\x00\x12T\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x43.keyapis.identity.v1.PostAuthorizationLoginByPasswordResponse.ErrorH\x00\x1a\xb1\x01\n\x05\x45rror\x12\x42\n\x0e\x63\x61ptcha_answer\x18\x01 \x01(\x0b\x32(.keyapis.identity.v1.CaptchaAnswer.ErrorH\x00\x12,\n\x03sso\x18\x02 \x01(\x0b\x32\x1d.keyapis.identity.v1.SsoErrorH\x00\x12,\n\x03key\x18\x03 \x01(\x0b\x32\x1d.keyapis.identity.v1.KeyErrorH\x00\x42\x08\n\x06reasonB\x06\n\x04type2\xec\x04\n\x14\x41uthorizationService\x12\xb2\x01\n\x16PostAuthorizationLogin\x12\x32.keyapis.identity.v1.PostAuthorizationLoginRequest\x1a\x33.keyapis.identity.v1.PostAuthorizationLoginResponse\"/\x82\xd3\xe4\x93\x02)\"$/identity/api/v1/authorization/login:\x01*\x12\xbf\x01\n\x19PostAuthorizationSendCode\x12\x35.keyapis.identity.v1.PostAuthorizationSendCodeRequest\x1a\x36.keyapis.identity.v1.PostAuthorizationSendCodeResponse\"3\x82\xd3\xe4\x93\x02-\"(/identity/api/v1/authorization/send_code:\x01*\x12\xdc\x01\n PostAuthorizationLoginByPassword\x12<.keyapis.identity.v1.PostAuthorizationLoginByPasswordRequest\x1a=.keyapis.identity.v1.PostAuthorizationLoginByPasswordResponse\";\x82\xd3\xe4\x93\x02\x35\"0/identity/api/v1/authorization/login_by_password:\x01*B\xa8\x01\n\x16ru.keyapis.identity.v1B\x16KeyapisIdentityV1ProtoH\x03P\x00Z\x14/keyapis_identity_v1\xd8\x01\x01\xf8\x01\x01\xa2\x02\x11KEYAPISIDENTITYV1\xaa\x02\x13Keyapis.Identity.V1\xca\x02\x13Keyapis\\Identity\\V1\xea\x02\x15Keyapis::Identity::V1b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError => e
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Keyapis
  module Identity
    module V1
      UserToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.UserToken").msgclass
      Captcha = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.Captcha").msgclass
      CaptchaAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.CaptchaAnswer").msgclass
      CaptchaAnswer::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.CaptchaAnswer.Error").msgclass
      CaptchaAnswer::Error::WrongAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.CaptchaAnswer.Error.WrongAnswer").msgclass
      OtpCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.OtpCode").msgclass
      OtpCode::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.OtpCode.Error").msgclass
      OtpCode::Error::LifeTimeExpired = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.OtpCode.Error.LifeTimeExpired").msgclass
      OtpCode::Error::NoAttempts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.OtpCode.Error.NoAttempts").msgclass
      OtpCode::Error::AddressNotFound = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.OtpCode.Error.AddressNotFound").msgclass
      OtpCode::Error::InvalidCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.OtpCode.Error.InvalidCode").msgclass
      SsoError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.SsoError").msgclass
      SsoError::UserIsTemporaryBlocked = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.SsoError.UserIsTemporaryBlocked").msgclass
      SsoError::UserNotFound = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.SsoError.UserNotFound").msgclass
      SsoError::WrongCredentials = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.SsoError.WrongCredentials").msgclass
      SsoError::UserIsBlocked = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.SsoError.UserIsBlocked").msgclass
      SsoError::IntervalExceeded = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.SsoError.IntervalExceeded").msgclass
      KeyError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.KeyError").msgclass
      KeyError::UserCreation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.KeyError.UserCreation").msgclass
      PostAuthorizationSendCodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationSendCodeRequest").msgclass
      PostAuthorizationSendCodeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationSendCodeResponse").msgclass
      PostAuthorizationSendCodeResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationSendCodeResponse.Error").msgclass
      PostAuthorizationLoginRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationLoginRequest").msgclass
      PostAuthorizationLoginResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationLoginResponse").msgclass
      PostAuthorizationLoginResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationLoginResponse.Error").msgclass
      PostAuthorizationLoginByPasswordRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationLoginByPasswordRequest").msgclass
      PostAuthorizationLoginByPasswordResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationLoginByPasswordResponse").msgclass
      PostAuthorizationLoginByPasswordResponse::Error = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("keyapis.identity.v1.PostAuthorizationLoginByPasswordResponse.Error").msgclass
    end
  end
end
