#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendPasskeyRegistrationLink {
#[prost(string, optional, tag="1")]
pub url_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReturnPasskeyRegistrationCode {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
PasskeyAuthenticator::Unspecified => "PASSKEY_AUTHENTICATOR_UNSPECIFIED",
PasskeyAuthenticator::Platform => "PASSKEY_AUTHENTICATOR_PLATFORM",
PasskeyAuthenticator::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,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[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),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendEmailVerificationCode {
#[prost(string, optional, tag="1")]
pub url_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReturnEmailVerificationCode {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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")]
pub access: ::core::option::Option<idp_information::Access>,
}
pub mod idp_information {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Access {
#[prost(message, tag="1")]
Oauth(super::IdpoAuthAccessInformation),
#[prost(message, tag="6")]
Ldap(super::IdpldapAccessInformation),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IdpldapAccessInformation {
#[prost(message, optional, tag="1")]
pub attributes: ::core::option::Option<::pbjson_types::Struct>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReturnPasswordResetCode {
}
#[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 {
NotificationType::Unspecified => "NOTIFICATION_TYPE_Unspecified",
NotificationType::Email => "NOTIFICATION_TYPE_Email",
NotificationType::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,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, 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),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendPhoneVerificationCode {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReturnPhoneVerificationCode {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct User {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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, 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 {
Gender::Unspecified => "GENDER_UNSPECIFIED",
Gender::Female => "GENDER_FEMALE",
Gender::Male => "GENDER_MALE",
Gender::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,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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="3")]
pub organisation: ::core::option::Option<super::super::object::v2alpha::Organisation>,
#[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(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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PasswordType {
#[prost(message, tag="7")]
Password(super::Password),
#[prost(message, tag="8")]
HashedPassword(super::HashedPassword),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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::v2alpha::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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[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),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, 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),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPhoneResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyPhoneResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterPasskeyResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyPasskeyRegistrationResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterU2fResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyU2fRegistrationResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTotpRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTotpResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(string, tag="2")]
pub uri: ::prost::alloc::string::String,
#[prost(string, tag="3")]
pub secret: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyTotpRegistrationResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpsmsRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpsmsResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpsmsRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpsmsResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpEmailRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddOtpEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpEmailRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveOtpEmailResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Medium {
#[prost(message, tag="2")]
SendLink(super::SendPasskeyRegistrationLink),
#[prost(message, tag="3")]
ReturnCode(super::ReturnPasskeyRegistrationCode),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreatePasskeyRegistrationLinkResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(message, optional, tag="2")]
pub code: ::core::option::Option<PasskeyRegistrationCode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Content {
#[prost(message, tag="2")]
Urls(super::RedirectUrLs),
#[prost(message, tag="3")]
Ldap(super::LdapCredentials),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartIdentityProviderIntentResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(oneof="start_identity_provider_intent_response::NextStep", tags="2, 3")]
pub next_step: ::core::option::Option<start_identity_provider_intent_response::NextStep>,
}
pub mod start_identity_provider_intent_response {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum NextStep {
#[prost(string, tag="2")]
AuthUrl(::prost::alloc::string::String),
#[prost(message, tag="3")]
IdpIntent(super::IdpIntent),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RetrieveIdentityProviderIntentResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(message, optional, tag="2")]
pub idp_information: ::core::option::Option<IdpInformation>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddIdpLinkResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Medium {
#[prost(message, tag="2")]
SendLink(super::SendPasswordResetLink),
#[prost(message, tag="3")]
ReturnCode(super::ReturnPasswordResetCode),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PasswordResetResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
#[prost(string, optional, tag="2")]
pub verification_code: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[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 {
#[allow(clippy::derive_partial_eq_without_eq)]
#[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),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetPasswordResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::Details>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAuthenticationMethodTypesRequest {
#[prost(string, tag="1")]
pub user_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAuthenticationMethodTypesResponse {
#[prost(message, optional, tag="1")]
pub details: ::core::option::Option<super::super::object::v2alpha::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 {
AuthenticationMethodType::Unspecified => "AUTHENTICATION_METHOD_TYPE_UNSPECIFIED",
AuthenticationMethodType::Password => "AUTHENTICATION_METHOD_TYPE_PASSWORD",
AuthenticationMethodType::Passkey => "AUTHENTICATION_METHOD_TYPE_PASSKEY",
AuthenticationMethodType::Idp => "AUTHENTICATION_METHOD_TYPE_IDP",
AuthenticationMethodType::Totp => "AUTHENTICATION_METHOD_TYPE_TOTP",
AuthenticationMethodType::U2f => "AUTHENTICATION_METHOD_TYPE_U2F",
AuthenticationMethodType::OtpSms => "AUTHENTICATION_METHOD_TYPE_OTP_SMS",
AuthenticationMethodType::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.v2alpha.tonic.rs");