wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.User.Password

Contents

Synopsis

Documentation

data NewPasswordReset Source #

The payload for initiating a password reset.

Constructors

NewPasswordReset EmailAddress 
NewPasswordResetUnsupportedPhone

Resetting via phone is not really supported anymore, but this is still here to support older versions of the endpoint.

Instances

Instances details
Arbitrary NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

FromJSON NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToJSON NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Generic NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Associated Types

type Rep NewPasswordReset :: Type -> Type #

Show NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Eq NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

type Rep NewPasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

type Rep NewPasswordReset = D1 ('MetaData "NewPasswordReset" "Wire.API.User.Password" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "NewPasswordReset" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EmailAddress)) :+: C1 ('MetaCons "NewPasswordResetUnsupportedPhone" 'PrefixI 'False) (U1 :: Type -> Type))

data CompletePasswordReset Source #

The payload for completing a password reset.

Instances

Instances details
Arbitrary CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

FromJSON CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToJSON CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Generic CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Associated Types

type Rep CompletePasswordReset :: Type -> Type #

Show CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Eq CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

type Rep CompletePasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

type Rep CompletePasswordReset = D1 ('MetaData "CompletePasswordReset" "Wire.API.User.Password" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "CompletePasswordReset" 'PrefixI 'True) (S1 ('MetaSel ('Just "cpwrIdent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PasswordResetIdentity) :*: (S1 ('MetaSel ('Just "cpwrCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PasswordResetCode) :*: S1 ('MetaSel ('Just "cpwrPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlainTextPassword8))))

data PasswordResetIdentity Source #

The target identity of a password reset.

Constructors

PasswordResetIdentityKey PasswordResetKey

An opaque identity key for a pending password reset.

PasswordResetEmailIdentity EmailAddress

A known email address with a pending password reset.

PasswordResetPhoneIdentity Phone

A known phone number with a pending password reset.

Instances

Instances details
Arbitrary PasswordResetIdentity Source # 
Instance details

Defined in Wire.API.User.Password

Generic PasswordResetIdentity Source # 
Instance details

Defined in Wire.API.User.Password

Associated Types

type Rep PasswordResetIdentity :: Type -> Type #

Show PasswordResetIdentity Source # 
Instance details

Defined in Wire.API.User.Password

Eq PasswordResetIdentity Source # 
Instance details

Defined in Wire.API.User.Password

type Rep PasswordResetIdentity Source # 
Instance details

Defined in Wire.API.User.Password

type Rep PasswordResetIdentity = D1 ('MetaData "PasswordResetIdentity" "Wire.API.User.Password" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "PasswordResetIdentityKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PasswordResetKey)) :+: (C1 ('MetaCons "PasswordResetEmailIdentity" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EmailAddress)) :+: C1 ('MetaCons "PasswordResetPhoneIdentity" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Phone))))

newtype PasswordResetKey Source #

Opaque identifier per user (SHA256 of the user ID).

Instances

Instances details
Arbitrary PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

FromJSON PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

ToJSON PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

Show PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

FromByteString PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

Methods

parser :: Parser PasswordResetKey Source #

ToByteString PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

Cql PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

Eq PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

Ord PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

FromHttpApiData PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

ToParamSchema PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema PasswordResetKey Source # 
Instance details

Defined in Wire.API.User.Password

newtype PasswordResetCode Source #

Random code, acting as a very short-lived, single-use password.

Instances

Instances details
Arbitrary PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

FromJSON PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

ToJSON PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

Generic PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

Associated Types

type Rep PasswordResetCode :: Type -> Type #

Show PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

FromByteString PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

Methods

parser :: Parser PasswordResetCode Source #

ToByteString PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

Cql PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

Eq PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

type Rep PasswordResetCode Source # 
Instance details

Defined in Wire.API.User.Password

type Rep PasswordResetCode = D1 ('MetaData "PasswordResetCode" "Wire.API.User.Password" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'True) (C1 ('MetaCons "PasswordResetCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromPasswordResetCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AsciiBase64Url)))

deprecated

data PasswordReset Source #

Instances

Instances details
Arbitrary PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

FromJSON PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToJSON PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Generic PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Associated Types

type Rep PasswordReset :: Type -> Type #

Show PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

Eq PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

ToSchema PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

type Rep PasswordReset Source # 
Instance details

Defined in Wire.API.User.Password

type Rep PasswordReset = D1 ('MetaData "PasswordReset" "Wire.API.User.Password" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "PasswordReset" 'PrefixI 'True) (S1 ('MetaSel ('Just "pwrCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PasswordResetCode) :*: S1 ('MetaSel ('Just "pwrPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlainTextPassword8)))