wire-subsystems-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.VerificationCode

Synopsis

Documentation

data Code Source #

Constructors

Code 

Fields

Instances

Instances details
Show Code Source # 
Instance details

Defined in Wire.VerificationCode

Methods

showsPrec :: Int -> Code -> ShowS #

show :: Code -> String #

showList :: [Code] -> ShowS #

Eq Code Source # 
Instance details

Defined in Wire.VerificationCode

Methods

(==) :: Code -> Code -> Bool #

(/=) :: Code -> Code -> Bool #

newtype Key Source #

A scoped identifier for a Value with an associated Timeout.

Constructors

Key 

Fields

Instances

Instances details
Arbitrary Key 
Instance details

Defined in Data.Code

FromJSON Key 
Instance details

Defined in Data.Code

ToJSON Key 
Instance details

Defined in Data.Code

Show Key 
Instance details

Defined in Data.Code

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

FromByteString Key 
Instance details

Defined in Data.Code

Methods

parser :: Parser Key Source #

ToByteString Key 
Instance details

Defined in Data.Code

Methods

builder :: Key -> Builder Source #

Cql Key 
Instance details

Defined in Data.Code

Eq Key 
Instance details

Defined in Data.Code

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Ord Key 
Instance details

Defined in Data.Code

Methods

compare :: Key -> Key -> Ordering #

(<) :: Key -> Key -> Bool #

(<=) :: Key -> Key -> Bool #

(>) :: Key -> Key -> Bool #

(>=) :: Key -> Key -> Bool #

max :: Key -> Key -> Key #

min :: Key -> Key -> Key #

FromHttpApiData Key 
Instance details

Defined in Data.Code

ToHttpApiData Key 
Instance details

Defined in Data.Code

ToParamSchema Key 
Instance details

Defined in Data.Code

ToSchema Key 
Instance details

Defined in Data.Code

ToSchema Key 
Instance details

Defined in Data.Code

data Scope Source #

The same Key can exist with different Values in different Scopes at the same time.

Instances

Instances details
Arbitrary Scope Source # 
Instance details

Defined in Wire.VerificationCode

Generic Scope Source # 
Instance details

Defined in Wire.VerificationCode

Associated Types

type Rep Scope :: Type -> Type #

Methods

from :: Scope -> Rep Scope x #

to :: Rep Scope x -> Scope #

Show Scope Source # 
Instance details

Defined in Wire.VerificationCode

Methods

showsPrec :: Int -> Scope -> ShowS #

show :: Scope -> String #

showList :: [Scope] -> ShowS #

Cql Scope Source # 
Instance details

Defined in Wire.VerificationCode

Eq Scope Source # 
Instance details

Defined in Wire.VerificationCode

Methods

(==) :: Scope -> Scope -> Bool #

(/=) :: Scope -> Scope -> Bool #

Ord Scope Source # 
Instance details

Defined in Wire.VerificationCode

Methods

compare :: Scope -> Scope -> Ordering #

(<) :: Scope -> Scope -> Bool #

(<=) :: Scope -> Scope -> Bool #

(>) :: Scope -> Scope -> Bool #

(>=) :: Scope -> Scope -> Bool #

max :: Scope -> Scope -> Scope #

min :: Scope -> Scope -> Scope #

type Rep Scope Source # 
Instance details

Defined in Wire.VerificationCode

type Rep Scope = D1 ('MetaData "Scope" "Wire.VerificationCode" "wire-subsystems-0.1.0-8kLXA8DL8T7Joz69IIRPwJ" 'False) ((C1 ('MetaCons "AccountDeletion" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "IdentityVerification" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PasswordReset" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "AccountLogin" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AccountApproval" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CreateScimToken" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "DeleteTeam" 'PrefixI 'False) (U1 :: Type -> Type))))

newtype Value Source #

A secret value bound to a Key and a Timeout.

Constructors

Value 

Instances

Instances details
Arbitrary Value 
Instance details

Defined in Data.Code

FromJSON Value 
Instance details

Defined in Data.Code

ToJSON Value 
Instance details

Defined in Data.Code

Show Value 
Instance details

Defined in Data.Code

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

FromByteString Value 
Instance details

Defined in Data.Code

Methods

parser :: Parser Value Source #

ToByteString Value 
Instance details

Defined in Data.Code

Cql Value 
Instance details

Defined in Data.Code

Eq Value 
Instance details

Defined in Data.Code

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

FromHttpApiData Value 
Instance details

Defined in Data.Code

ToHttpApiData Value 
Instance details

Defined in Data.Code

ToParamSchema Value 
Instance details

Defined in Data.Code

ToSchema Value 
Instance details

Defined in Data.Code

ToSchema Value 
Instance details

Defined in Data.Code

data KeyValuePair Source #

A key/value pair. This would actually more accurately if the value would actually be a "value" but since we use "key" and "code" already in quite a few place in the API (but without a type, using plain fields). This will make it easier to re-use a key/value pair in the API, keeping "code" in the JSON for backwards compatibility

Constructors

KeyValuePair 

Fields

Instances

Instances details
FromJSON KeyValuePair 
Instance details

Defined in Data.Code

ToJSON KeyValuePair 
Instance details

Defined in Data.Code

Generic KeyValuePair 
Instance details

Defined in Data.Code

Associated Types

type Rep KeyValuePair :: Type -> Type #

Show KeyValuePair 
Instance details

Defined in Data.Code

Eq KeyValuePair 
Instance details

Defined in Data.Code

ToSchema KeyValuePair 
Instance details

Defined in Data.Code

ToSchema KeyValuePair 
Instance details

Defined in Data.Code

type Rep KeyValuePair 
Instance details

Defined in Data.Code

type Rep KeyValuePair = D1 ('MetaData "KeyValuePair" "Data.Code" "types-common-0.16.0-LkhhqucPLeMGZ2r1ZsnNqs" 'False) (C1 ('MetaCons "KeyValuePair" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Key) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Value)))

newtype Timeout Source #

A Timeout is rendered in/parsed from JSON as an integer representing the number of seconds remaining.

Constructors

Timeout 

Instances

Instances details
Arbitrary Timeout 
Instance details

Defined in Data.Code

FromJSON Timeout 
Instance details

Defined in Data.Code

ToJSON Timeout 
Instance details

Defined in Data.Code

Enum Timeout 
Instance details

Defined in Data.Code

Num Timeout 
Instance details

Defined in Data.Code

Fractional Timeout 
Instance details

Defined in Data.Code

Real Timeout 
Instance details

Defined in Data.Code

RealFrac Timeout 
Instance details

Defined in Data.Code

Methods

properFraction :: Integral b => Timeout -> (b, Timeout) #

truncate :: Integral b => Timeout -> b #

round :: Integral b => Timeout -> b #

ceiling :: Integral b => Timeout -> b #

floor :: Integral b => Timeout -> b #

Show Timeout 
Instance details

Defined in Data.Code

ToByteString Timeout

A Timeout is rendered as an integer representing the number of seconds remaining.

Instance details

Defined in Data.Code

Eq Timeout 
Instance details

Defined in Data.Code

Methods

(==) :: Timeout -> Timeout -> Bool #

(/=) :: Timeout -> Timeout -> Bool #

Ord Timeout 
Instance details

Defined in Data.Code

ToSchema Timeout 
Instance details

Defined in Data.Code

ToSchema Timeout 
Instance details

Defined in Data.Code

newtype Retries Source #

Constructors

Retries 

Fields

Instances

Instances details
Arbitrary Retries Source # 
Instance details

Defined in Wire.VerificationCode

Enum Retries Source # 
Instance details

Defined in Wire.VerificationCode

Num Retries Source # 
Instance details

Defined in Wire.VerificationCode

Integral Retries Source # 
Instance details

Defined in Wire.VerificationCode

Real Retries Source # 
Instance details

Defined in Wire.VerificationCode

Show Retries Source # 
Instance details

Defined in Wire.VerificationCode

Cql Retries Source # 
Instance details

Defined in Wire.VerificationCode

Eq Retries Source # 
Instance details

Defined in Wire.VerificationCode

Methods

(==) :: Retries -> Retries -> Bool #

(/=) :: Retries -> Retries -> Bool #

Ord Retries Source # 
Instance details

Defined in Wire.VerificationCode