#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendPasskeyRegistrationLink {
#[prost(string, optional, tag="1")]
pub url_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReturnPasskeyRegistrationCode {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PasskeyRegistrationCode {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub code: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PasskeyAuthenticator {
Unspecified = 0,
Platform = 1,
CrossPlatform = 2,
}
impl PasskeyAuthenticator {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "PASSKEY_AUTHENTICATOR_UNSPECIFIED",
Self::Platform => "PASSKEY_AUTHENTICATOR_PLATFORM",
Self::CrossPlatform => "PASSKEY_AUTHENTICATOR_CROSS_PLATFORM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PASSKEY_AUTHENTICATOR_UNSPECIFIED" => Some(Self::Unspecified),
"PASSKEY_AUTHENTICATOR_PLATFORM" => Some(Self::Platform),
"PASSKEY_AUTHENTICATOR_CROSS_PLATFORM" => Some(Self::CrossPlatform),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetHumanEmail {
#[prost(string, tag="1")]
pub email: ::prost::alloc::string::String,
#[prost(oneof="set_human_email::Verification", tags="2, 3, 4")]
pub verification: ::core::option::Option<set_human_email::Verification>,
}
pub mod set_human_email {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(message, tag="2")]
SendCode(super::SendEmailVerificationCode),
#[prost(message, tag="3")]
ReturnCode(super::ReturnEmailVerificationCode),
#[prost(bool, tag="4")]
IsVerified(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HumanEmail {
#[prost(string, tag="1")]
pub email: ::prost::alloc::string::String,
#[prost(bool, tag="2")]
pub is_verified: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendEmailVerificationCode {
#[prost(string, optional, tag="1")]
pub url_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReturnEmailVerificationCode {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LdapCredentials {
#[prost(string, tag="1")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RedirectUrLs {
#[prost(string, tag="1")]
pub success_url: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub failure_url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpIntent {
#[prost(string, tag="1")]
pub idp_intent_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub idp_intent_token: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpInformation {
#[prost(string, tag="2")]
pub idp_id: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="4")]
pub user_name: ::prost::alloc::string::String,
#[prost(message, optional, tag="5")]
pub raw_information: ::core::option::Option<::pbjson_types::Struct>,
#[prost(oneof="idp_information::Access", tags="1, 6, 7")]
pub access: ::core::option::Option<idp_information::Access>,
}
pub mod idp_information {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Access {
#[prost(message, tag="1")]
Oauth(super::IdpoAuthAccessInformation),
#[prost(message, tag="6")]
Ldap(super::IdpldapAccessInformation),
#[prost(message, tag="7")]
Saml(super::IdpsamlAccessInformation),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpoAuthAccessInformation {
#[prost(string, tag="1")]
pub access_token: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub id_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpldapAccessInformation {
#[prost(message, optional, tag="1")]
pub attributes: ::core::option::Option<::pbjson_types::Struct>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpsamlAccessInformation {
#[prost(bytes="vec", tag="1")]
pub assertion: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpLink {
#[prost(string, tag="1")]
pub idp_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub user_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Password {
#[prost(string, tag="1")]
pub password: ::prost::alloc::string::String,
#[prost(bool, tag="2")]
pub change_required: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HashedPassword {
#[prost(string, tag="1")]
pub hash: ::prost::alloc::string::String,
#[prost(bool, tag="2")]
pub change_required: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendPasswordResetLink {
#[prost(enumeration="NotificationType", tag="1")]
pub notification_type: i32,
#[prost(string, optional, tag="2")]
pub url_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReturnPasswordResetCode {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPassword {
#[prost(oneof="set_password::PasswordType", tags="1, 2")]
pub password_type: ::core::option::Option<set_password::PasswordType>,
#[prost(oneof="set_password::Verification", tags="3, 4")]
pub verification: ::core::option::Option<set_password::Verification>,
}
pub mod set_password {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PasswordType {
#[prost(message, tag="1")]
Password(super::Password),
#[prost(message, tag="2")]
HashedPassword(super::HashedPassword),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(string, tag="3")]
CurrentPassword(::prost::alloc::string::String),
#[prost(string, tag="4")]
VerificationCode(::prost::alloc::string::String),
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum NotificationType {
Unspecified = 0,
Email = 1,
Sms = 2,
}
impl NotificationType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "NOTIFICATION_TYPE_Unspecified",
Self::Email => "NOTIFICATION_TYPE_Email",
Self::Sms => "NOTIFICATION_TYPE_SMS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NOTIFICATION_TYPE_Unspecified" => Some(Self::Unspecified),
"NOTIFICATION_TYPE_Email" => Some(Self::Email),
"NOTIFICATION_TYPE_SMS" => Some(Self::Sms),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetHumanPhone {
#[prost(string, tag="1")]
pub phone: ::prost::alloc::string::String,
#[prost(oneof="set_human_phone::Verification", tags="2, 3, 4")]
pub verification: ::core::option::Option<set_human_phone::Verification>,
}
pub mod set_human_phone {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(message, tag="2")]
SendCode(super::SendPhoneVerificationCode),
#[prost(message, tag="3")]
ReturnCode(super::ReturnPhoneVerificationCode),
#[prost(bool, tag="4")]
IsVerified(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HumanPhone {
#[prost(string, tag="1")]
pub phone: ::prost::alloc::string::String,
#[prost(bool, tag="2")]
pub is_verified: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SendPhoneVerificationCode {
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReturnPhoneVerificationCode {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetHumanProfile {
#[prost(string, tag="1")]
pub given_name: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub family_name: ::prost::alloc::string::String,
#[prost(string, optional, tag="3")]
pub nick_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="4")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="5")]
pub preferred_language: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration="Gender", optional, tag="6")]
pub gender: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HumanProfile {
#[prost(string, tag="1")]
pub given_name: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub family_name: ::prost::alloc::string::String,
#[prost(string, optional, tag="3")]
pub nick_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="4")]
pub display_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="5")]
pub preferred_language: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration="Gender", optional, tag="6")]
pub gender: ::core::option::Option<i32>,
#[prost(string, tag="7")]
pub avatar_url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMetadataEntry {
#[prost(string, tag="1")]
pub key: ::prost::alloc::string::String,
#[prost(bytes="vec", tag="2")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HumanUser {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(enumeration="UserState", tag="2")]
pub state: i32,
#[prost(string, tag="3")]
pub username: ::prost::alloc::string::String,
#[prost(string, repeated, tag="4")]
pub login_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag="5")]
pub preferred_login_name: ::prost::alloc::string::String,
#[prost(message, optional, tag="6")]
pub profile: ::core::option::Option<HumanProfile>,
#[prost(message, optional, tag="7")]
pub email: ::core::option::Option<HumanEmail>,
#[prost(message, optional, tag="8")]
pub phone: ::core::option::Option<HumanPhone>,
#[prost(bool, tag="9")]
pub password_change_required: bool,
#[prost(message, optional, tag="10")]
pub password_changed: ::core::option::Option<::pbjson_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct User {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="8")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(enumeration="UserState", tag="2")]
pub state: i32,
#[prost(string, tag="3")]
pub username: ::prost::alloc::string::String,
#[prost(string, repeated, tag="4")]
pub login_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag="5")]
pub preferred_login_name: ::prost::alloc::string::String,
#[prost(oneof="user::Type", tags="6, 7")]
pub r#type: ::core::option::Option<user::Type>,
}
pub mod user {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Type {
#[prost(message, tag="6")]
Human(super::HumanUser),
#[prost(message, tag="7")]
Machine(super::MachineUser),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineUser {
#[prost(string, tag="1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub description: ::prost::alloc::string::String,
#[prost(bool, tag="3")]
pub has_secret: bool,
#[prost(enumeration="AccessTokenType", tag="4")]
pub access_token_type: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Gender {
Unspecified = 0,
Female = 1,
Male = 2,
Diverse = 3,
}
impl Gender {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "GENDER_UNSPECIFIED",
Self::Female => "GENDER_FEMALE",
Self::Male => "GENDER_MALE",
Self::Diverse => "GENDER_DIVERSE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"GENDER_UNSPECIFIED" => Some(Self::Unspecified),
"GENDER_FEMALE" => Some(Self::Female),
"GENDER_MALE" => Some(Self::Male),
"GENDER_DIVERSE" => Some(Self::Diverse),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AccessTokenType {
Bearer = 0,
Jwt = 1,
}
impl AccessTokenType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Bearer => "ACCESS_TOKEN_TYPE_BEARER",
Self::Jwt => "ACCESS_TOKEN_TYPE_JWT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ACCESS_TOKEN_TYPE_BEARER" => Some(Self::Bearer),
"ACCESS_TOKEN_TYPE_JWT" => Some(Self::Jwt),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UserState {
Unspecified = 0,
Active = 1,
Inactive = 2,
Deleted = 3,
Locked = 4,
Initial = 5,
}
impl UserState {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "USER_STATE_UNSPECIFIED",
Self::Active => "USER_STATE_ACTIVE",
Self::Inactive => "USER_STATE_INACTIVE",
Self::Deleted => "USER_STATE_DELETED",
Self::Locked => "USER_STATE_LOCKED",
Self::Initial => "USER_STATE_INITIAL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"USER_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"USER_STATE_ACTIVE" => Some(Self::Active),
"USER_STATE_INACTIVE" => Some(Self::Inactive),
"USER_STATE_DELETED" => Some(Self::Deleted),
"USER_STATE_LOCKED" => Some(Self::Locked),
"USER_STATE_INITIAL" => Some(Self::Initial),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchQuery {
#[prost(oneof="search_query::Query", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15")]
pub query: ::core::option::Option<search_query::Query>,
}
pub mod search_query {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(message, tag="1")]
UserNameQuery(super::UserNameQuery),
#[prost(message, tag="2")]
FirstNameQuery(super::FirstNameQuery),
#[prost(message, tag="3")]
LastNameQuery(super::LastNameQuery),
#[prost(message, tag="4")]
NickNameQuery(super::NickNameQuery),
#[prost(message, tag="5")]
DisplayNameQuery(super::DisplayNameQuery),
#[prost(message, tag="6")]
EmailQuery(super::EmailQuery),
#[prost(message, tag="7")]
StateQuery(super::StateQuery),
#[prost(message, tag="8")]
TypeQuery(super::TypeQuery),
#[prost(message, tag="9")]
LoginNameQuery(super::LoginNameQuery),
#[prost(message, tag="10")]
InUserIdsQuery(super::InUserIdQuery),
#[prost(message, tag="11")]
OrQuery(super::OrQuery),
#[prost(message, tag="12")]
AndQuery(super::AndQuery),
#[prost(message, tag="13")]
NotQuery(::prost::alloc::boxed::Box<super::NotQuery>),
#[prost(message, tag="14")]
InUserEmailsQuery(super::InUserEmailsQuery),
#[prost(message, tag="15")]
OrganizationIdQuery(super::OrganizationIdQuery),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OrQuery {
#[prost(message, repeated, tag="1")]
pub queries: ::prost::alloc::vec::Vec<SearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AndQuery {
#[prost(message, repeated, tag="1")]
pub queries: ::prost::alloc::vec::Vec<SearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotQuery {
#[prost(message, optional, boxed, tag="1")]
pub query: ::core::option::Option<::prost::alloc::boxed::Box<SearchQuery>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InUserIdQuery {
#[prost(string, repeated, tag="1")]
pub user_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserNameQuery {
#[prost(string, tag="1")]
pub user_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FirstNameQuery {
#[prost(string, tag="1")]
pub first_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LastNameQuery {
#[prost(string, tag="1")]
pub last_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NickNameQuery {
#[prost(string, tag="1")]
pub nick_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisplayNameQuery {
#[prost(string, tag="1")]
pub display_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EmailQuery {
#[prost(string, tag="1")]
pub email_address: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoginNameQuery {
#[prost(string, tag="1")]
pub login_name: ::prost::alloc::string::String,
#[prost(enumeration="super::super::object::v2beta::TextQueryMethod", tag="2")]
pub method: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StateQuery {
#[prost(enumeration="UserState", tag="1")]
pub state: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TypeQuery {
#[prost(enumeration="Type", tag="1")]
pub r#type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InUserEmailsQuery {
#[prost(string, repeated, tag="1")]
pub user_emails: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OrganizationIdQuery {
#[prost(string, tag="1")]
pub organization_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Type {
Unspecified = 0,
Human = 1,
Machine = 2,
}
impl Type {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TYPE_UNSPECIFIED",
Self::Human => "TYPE_HUMAN",
Self::Machine => "TYPE_MACHINE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"TYPE_HUMAN" => Some(Self::Human),
"TYPE_MACHINE" => Some(Self::Machine),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UserFieldName {
Unspecified = 0,
UserName = 1,
FirstName = 2,
LastName = 3,
NickName = 4,
DisplayName = 5,
Email = 6,
State = 7,
Type = 8,
CreationDate = 9,
}
impl UserFieldName {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "USER_FIELD_NAME_UNSPECIFIED",
Self::UserName => "USER_FIELD_NAME_USER_NAME",
Self::FirstName => "USER_FIELD_NAME_FIRST_NAME",
Self::LastName => "USER_FIELD_NAME_LAST_NAME",
Self::NickName => "USER_FIELD_NAME_NICK_NAME",
Self::DisplayName => "USER_FIELD_NAME_DISPLAY_NAME",
Self::Email => "USER_FIELD_NAME_EMAIL",
Self::State => "USER_FIELD_NAME_STATE",
Self::Type => "USER_FIELD_NAME_TYPE",
Self::CreationDate => "USER_FIELD_NAME_CREATION_DATE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"USER_FIELD_NAME_UNSPECIFIED" => Some(Self::Unspecified),
"USER_FIELD_NAME_USER_NAME" => Some(Self::UserName),
"USER_FIELD_NAME_FIRST_NAME" => Some(Self::FirstName),
"USER_FIELD_NAME_LAST_NAME" => Some(Self::LastName),
"USER_FIELD_NAME_NICK_NAME" => Some(Self::NickName),
"USER_FIELD_NAME_DISPLAY_NAME" => Some(Self::DisplayName),
"USER_FIELD_NAME_EMAIL" => Some(Self::Email),
"USER_FIELD_NAME_STATE" => Some(Self::State),
"USER_FIELD_NAME_TYPE" => Some(Self::Type),
"USER_FIELD_NAME_CREATION_DATE" => Some(Self::CreationDate),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddHumanUserRequest {
#[prost(string, optional, tag="1")]
pub user_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="2")]
pub username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag="11")]
pub organization: ::core::option::Option<super::super::object::v2beta::Organization>,
#[prost(message, optional, tag="4")]
pub profile: ::core::option::Option<SetHumanProfile>,
#[prost(message, optional, tag="5")]
pub email: ::core::option::Option<SetHumanEmail>,
#[prost(message, optional, tag="10")]
pub phone: ::core::option::Option<SetHumanPhone>,
#[prost(message, repeated, tag="6")]
pub metadata: ::prost::alloc::vec::Vec<SetMetadataEntry>,
#[prost(message, repeated, tag="9")]
pub idp_links: ::prost::alloc::vec::Vec<IdpLink>,
#[prost(string, optional, tag="12")]
pub totp_secret: ::core::option::Option<::prost::alloc::string::String>,
#[prost(oneof="add_human_user_request::PasswordType", tags="7, 8")]
pub password_type: ::core::option::Option<add_human_user_request::PasswordType>,
}
pub mod add_human_user_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PasswordType {
#[prost(message, tag="7")]
Password(super::Password),
#[prost(message, tag="8")]
HashedPassword(super::HashedPassword),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddHumanUserResponse {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="3")]
pub email_code: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="4")]
pub phone_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUserByIdRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUserByIdResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(message, optional, tag="2")]
pub user: ::core::option::Option<User>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsersRequest {
#[prost(message, optional, tag="1")]
pub query: ::core::option::Option<super::super::object::v2beta::ListQuery>,
#[prost(enumeration="UserFieldName", tag="2")]
pub sorting_column: i32,
#[prost(message, repeated, tag="3")]
pub queries: ::prost::alloc::vec::Vec<SearchQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsersResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::ListDetails>,
#[prost(enumeration="UserFieldName", tag="2")]
pub sorting_column: i32,
#[prost(message, repeated, tag="3")]
pub result: ::prost::alloc::vec::Vec<User>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEmailRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub email: ::prost::alloc::string::String,
#[prost(oneof="set_email_request::Verification", tags="3, 4, 5")]
pub verification: ::core::option::Option<set_email_request::Verification>,
}
pub mod set_email_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(message, tag="3")]
SendCode(super::SendEmailVerificationCode),
#[prost(message, tag="4")]
ReturnCode(super::ReturnEmailVerificationCode),
#[prost(bool, tag="5")]
IsVerified(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResendEmailCodeRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(oneof="resend_email_code_request::Verification", tags="2, 3")]
pub verification: ::core::option::Option<resend_email_code_request::Verification>,
}
pub mod resend_email_code_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(message, tag="2")]
SendCode(super::SendEmailVerificationCode),
#[prost(message, tag="3")]
ReturnCode(super::ReturnEmailVerificationCode),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResendEmailCodeResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyEmailRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub verification_code: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPhoneRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub phone: ::prost::alloc::string::String,
#[prost(oneof="set_phone_request::Verification", tags="3, 4, 5")]
pub verification: ::core::option::Option<set_phone_request::Verification>,
}
pub mod set_phone_request {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(message, tag="3")]
SendCode(super::SendPhoneVerificationCode),
#[prost(message, tag="4")]
ReturnCode(super::ReturnPhoneVerificationCode),
#[prost(bool, tag="5")]
IsVerified(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPhoneResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemovePhoneRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemovePhoneResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResendPhoneCodeRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(oneof="resend_phone_code_request::Verification", tags="3, 4")]
pub verification: ::core::option::Option<resend_phone_code_request::Verification>,
}
pub mod resend_phone_code_request {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(message, tag="3")]
SendCode(super::SendPhoneVerificationCode),
#[prost(message, tag="4")]
ReturnCode(super::ReturnPhoneVerificationCode),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResendPhoneCodeResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyPhoneRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub verification_code: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyPhoneResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteUserRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteUserResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateHumanUserRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub username: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag="3")]
pub profile: ::core::option::Option<SetHumanProfile>,
#[prost(message, optional, tag="4")]
pub email: ::core::option::Option<SetHumanEmail>,
#[prost(message, optional, tag="5")]
pub phone: ::core::option::Option<SetHumanPhone>,
#[prost(message, optional, tag="6")]
pub password: ::core::option::Option<SetPassword>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateHumanUserResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="2")]
pub email_code: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="3")]
pub phone_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeactivateUserRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeactivateUserResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReactivateUserRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReactivateUserResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LockUserRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LockUserResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnlockUserRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnlockUserResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterPasskeyRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub code: ::core::option::Option<PasskeyRegistrationCode>,
#[prost(enumeration="PasskeyAuthenticator", tag="3")]
pub authenticator: i32,
#[prost(string, tag="4")]
pub domain: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterPasskeyResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, tag="2")]
pub passkey_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="3")]
pub public_key_credential_creation_options: ::core::option::Option<::pbjson_types::Struct>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyPasskeyRegistrationRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub passkey_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="3")]
pub public_key_credential: ::core::option::Option<::pbjson_types::Struct>,
#[prost(string, tag="4")]
pub passkey_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyPasskeyRegistrationResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterU2fRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub domain: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterU2fResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, tag="2")]
pub u2f_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="3")]
pub public_key_credential_creation_options: ::core::option::Option<::pbjson_types::Struct>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyU2fRegistrationRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub u2f_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="3")]
pub public_key_credential: ::core::option::Option<::pbjson_types::Struct>,
#[prost(string, tag="4")]
pub token_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyU2fRegistrationResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTotpRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTotpResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, tag="2")]
pub uri: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub secret: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyTotpRegistrationRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub code: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyTotpRegistrationResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveTotpRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveTotpResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpsmsRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpsmsResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpsmsRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpsmsResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpEmailRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpEmailRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePasskeyRegistrationLinkRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(oneof="create_passkey_registration_link_request::Medium", tags="2, 3")]
pub medium: ::core::option::Option<create_passkey_registration_link_request::Medium>,
}
pub mod create_passkey_registration_link_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Medium {
#[prost(message, tag="2")]
SendLink(super::SendPasskeyRegistrationLink),
#[prost(message, tag="3")]
ReturnCode(super::ReturnPasskeyRegistrationCode),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePasskeyRegistrationLinkResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(message, optional, tag="2")]
pub code: ::core::option::Option<PasskeyRegistrationCode>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartIdentityProviderIntentRequest {
#[prost(string, tag="1")]
pub idp_id: ::prost::alloc::string::String,
#[prost(oneof="start_identity_provider_intent_request::Content", tags="2, 3")]
pub content: ::core::option::Option<start_identity_provider_intent_request::Content>,
}
pub mod start_identity_provider_intent_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Content {
#[prost(message, tag="2")]
Urls(super::RedirectUrLs),
#[prost(message, tag="3")]
Ldap(super::LdapCredentials),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartIdentityProviderIntentResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(oneof="start_identity_provider_intent_response::NextStep", tags="2, 3, 4")]
pub next_step: ::core::option::Option<start_identity_provider_intent_response::NextStep>,
}
pub mod start_identity_provider_intent_response {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum NextStep {
#[prost(string, tag="2")]
AuthUrl(::prost::alloc::string::String),
#[prost(message, tag="3")]
IdpIntent(super::IdpIntent),
#[prost(bytes, tag="4")]
PostForm(::prost::alloc::vec::Vec<u8>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RetrieveIdentityProviderIntentRequest {
#[prost(string, tag="1")]
pub idp_intent_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub idp_intent_token: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RetrieveIdentityProviderIntentResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(message, optional, tag="2")]
pub idp_information: ::core::option::Option<IdpInformation>,
#[prost(string, tag="3")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddIdpLinkRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub idp_link: ::core::option::Option<IdpLink>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddIdpLinkResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PasswordResetRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(oneof="password_reset_request::Medium", tags="2, 3")]
pub medium: ::core::option::Option<password_reset_request::Medium>,
}
pub mod password_reset_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Medium {
#[prost(message, tag="2")]
SendLink(super::SendPasswordResetLink),
#[prost(message, tag="3")]
ReturnCode(super::ReturnPasswordResetCode),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PasswordResetResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPasswordRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
#[prost(message, optional, tag="2")]
pub new_password: ::core::option::Option<Password>,
#[prost(oneof="set_password_request::Verification", tags="3, 4")]
pub verification: ::core::option::Option<set_password_request::Verification>,
}
pub mod set_password_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Verification {
#[prost(string, tag="3")]
CurrentPassword(::prost::alloc::string::String),
#[prost(string, tag="4")]
VerificationCode(::prost::alloc::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPasswordResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::Details>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAuthenticationMethodTypesRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAuthenticationMethodTypesResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2beta::ListDetails>,
#[prost(enumeration="AuthenticationMethodType", repeated, tag="2")]
pub auth_method_types: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AuthenticationMethodType {
Unspecified = 0,
Password = 1,
Passkey = 2,
Idp = 3,
Totp = 4,
U2f = 5,
OtpSms = 6,
OtpEmail = 7,
}
impl AuthenticationMethodType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "AUTHENTICATION_METHOD_TYPE_UNSPECIFIED",
Self::Password => "AUTHENTICATION_METHOD_TYPE_PASSWORD",
Self::Passkey => "AUTHENTICATION_METHOD_TYPE_PASSKEY",
Self::Idp => "AUTHENTICATION_METHOD_TYPE_IDP",
Self::Totp => "AUTHENTICATION_METHOD_TYPE_TOTP",
Self::U2f => "AUTHENTICATION_METHOD_TYPE_U2F",
Self::OtpSms => "AUTHENTICATION_METHOD_TYPE_OTP_SMS",
Self::OtpEmail => "AUTHENTICATION_METHOD_TYPE_OTP_EMAIL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"AUTHENTICATION_METHOD_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"AUTHENTICATION_METHOD_TYPE_PASSWORD" => Some(Self::Password),
"AUTHENTICATION_METHOD_TYPE_PASSKEY" => Some(Self::Passkey),
"AUTHENTICATION_METHOD_TYPE_IDP" => Some(Self::Idp),
"AUTHENTICATION_METHOD_TYPE_TOTP" => Some(Self::Totp),
"AUTHENTICATION_METHOD_TYPE_U2F" => Some(Self::U2f),
"AUTHENTICATION_METHOD_TYPE_OTP_SMS" => Some(Self::OtpSms),
"AUTHENTICATION_METHOD_TYPE_OTP_EMAIL" => Some(Self::OtpEmail),
_ => None,
}
}
}
include!("zitadel.user.v2beta.tonic.rs");