wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.User.Auth

Synopsis

Login

data Login Source #

Instances

Instances details
Arbitrary Login Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON Login Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON Login Source # 
Instance details

Defined in Wire.API.User.Auth

Generic Login Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep Login :: Type -> Type #

Methods

from :: Login -> Rep Login x #

to :: Rep Login x -> Login #

Show Login Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

showsPrec :: Int -> Login -> ShowS #

show :: Login -> String #

showList :: [Login] -> ShowS #

Eq Login Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

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

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

ToSchema Login Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema Login Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep Login Source # 
Instance details

Defined in Wire.API.User.Auth

newtype LoginCode Source #

A single-use login code.

Constructors

LoginCode 

Fields

data LoginId Source #

The login ID for client API versions v0..v5

Instances

Instances details
Arbitrary LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

Generic LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep LoginId :: Type -> Type #

Methods

from :: LoginId -> Rep LoginId x #

to :: Rep LoginId x -> LoginId #

Show LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

Eq LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

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

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

ToSchema LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep LoginId Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep LoginId = D1 ('MetaData "LoginId" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "LoginByEmail" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EmailAddress)) :+: C1 ('MetaCons "LoginByHandle" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Handle)))

data PendingLoginCode Source #

Used for internal endpoint only.

Instances

Instances details
Arbitrary PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

Generic PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep PendingLoginCode :: Type -> Type #

Show PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

Eq PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep PendingLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep PendingLoginCode = D1 ('MetaData "PendingLoginCode" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "PendingLoginCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "pendingLoginCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoginCode) :*: S1 ('MetaSel ('Just "pendingLoginTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Timeout)))

data SendLoginCode Source #

A request for sending a LoginCode

Constructors

SendLoginCode 

Fields

Instances

Instances details
Arbitrary SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

Generic SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep SendLoginCode :: Type -> Type #

Show SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

Eq SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep SendLoginCode Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep SendLoginCode = D1 ('MetaData "SendLoginCode" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "SendLoginCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "lcPhone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Phone) :*: (S1 ('MetaSel ('Just "lcCall") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "lcForce") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newtype LoginCodeTimeout Source #

A timeout for a new or pending login code.

Cookies

data CookieList Source #

Constructors

CookieList 

Fields

Instances

Instances details
Arbitrary CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

Generic CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep CookieList :: Type -> Type #

Show CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

Eq CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieList Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieList = D1 ('MetaData "CookieList" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "CookieList" 'PrefixI 'True) (S1 ('MetaSel ('Just "cookieList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Cookie ()])))

newtype CookieId Source #

Constructors

CookieId 

Fields

Instances

Instances details
Arbitrary CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

Generic CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep CookieId :: Type -> Type #

Methods

from :: CookieId -> Rep CookieId x #

to :: Rep CookieId x -> CookieId #

Show CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

Cql CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

Eq CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieId Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieId = D1 ('MetaData "CookieId" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'True) (C1 ('MetaCons "CookieId" 'PrefixI 'True) (S1 ('MetaSel ('Just "cookieIdNum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

data CookieType Source #

Constructors

SessionCookie

A session cookie. These are mainly intended for clients that are web browsers. For other clients, session cookies behave like regular persistent cookies except for the fact that they are never renewed during a token refresh and that they have a shorter lifetime.

PersistentCookie

A regular persistent cookie that expires at a specific date. These cookies are regularly renewed as part of an access token refresh.

Instances

Instances details
Arbitrary CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

Generic CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep CookieType :: Type -> Type #

Show CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

Cql CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

Eq CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieType Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieType = D1 ('MetaData "CookieType" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "SessionCookie" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PersistentCookie" 'PrefixI 'False) (U1 :: Type -> Type))

data Cookie a Source #

A (long-lived) cookie scoped to a specific user for obtaining new AccessTokens.

Instances

Instances details
Arbitrary a => Arbitrary (Cookie a) Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

arbitrary :: Gen (Cookie a) Source #

shrink :: Cookie a -> [Cookie a] Source #

FromJSON (Cookie ()) Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON (Cookie ()) Source # 
Instance details

Defined in Wire.API.User.Auth

Generic (Cookie a) Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep (Cookie a) :: Type -> Type #

Methods

from :: Cookie a -> Rep (Cookie a) x #

to :: Rep (Cookie a) x -> Cookie a #

Show a => Show (Cookie a) Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

showsPrec :: Int -> Cookie a -> ShowS #

show :: Cookie a -> String #

showList :: [Cookie a] -> ShowS #

Eq a => Eq (Cookie a) Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

(==) :: Cookie a -> Cookie a -> Bool #

(/=) :: Cookie a -> Cookie a -> Bool #

ToSchema (Cookie ()) Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema (Cookie ()) Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep (Cookie a) Source # 
Instance details

Defined in Wire.API.User.Auth

newtype CookieLabel Source #

A device-specific identifying label for one or more cookies. Cookies can be listed and deleted based on their labels.

Constructors

CookieLabel 

Instances

Instances details
Arbitrary CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

IsString CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

Generic CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep CookieLabel :: Type -> Type #

Show CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

FromByteString CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

parser :: Parser CookieLabel Source #

ToByteString CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

Cql CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

Eq CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

Ord CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieLabel Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep CookieLabel = D1 ('MetaData "CookieLabel" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'True) (C1 ('MetaCons "CookieLabel" 'PrefixI 'True) (S1 ('MetaSel ('Just "cookieLabelText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data RemoveCookies Source #

Instances

Instances details
Arbitrary RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

Generic RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep RemoveCookies :: Type -> Type #

Show RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

Eq RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep RemoveCookies Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep RemoveCookies = D1 ('MetaData "RemoveCookies" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "RemoveCookies" 'PrefixI 'True) (S1 ('MetaSel ('Just "rmCookiesPassword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PlainTextPassword6) :*: (S1 ('MetaSel ('Just "rmCookiesLabels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [CookieLabel]) :*: S1 ('MetaSel ('Just "rmCookiesIdents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [CookieId]))))

Token

data AccessToken Source #

A temporary API access token.

Constructors

AccessToken 

Fields

Instances

Instances details
Arbitrary AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

Generic AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep AccessToken :: Type -> Type #

Show AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

Eq AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

AsHeaders '[Maybe UserTokenCookie] AccessToken SomeAccess Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep AccessToken Source # 
Instance details

Defined in Wire.API.User.Auth

data TokenType Source #

Constructors

Bearer 

Instances

Instances details
Arbitrary TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

FromJSON TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

ToJSON TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

Generic TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

Associated Types

type Rep TokenType :: Type -> Type #

Show TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

Eq TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

ToSchema TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep TokenType Source # 
Instance details

Defined in Wire.API.User.Auth

type Rep TokenType = D1 ('MetaData "TokenType" "Wire.API.User.Auth" "wire-api-0.1.0-EbZS9CKNOfZ8BBy5DRJfXi" 'False) (C1 ('MetaCons "Bearer" 'PrefixI 'False) (U1 :: Type -> Type))

data ProviderToken Source #

Constructors

ProviderToken (Token Provider) 

Instances

Instances details
Show ProviderToken Source # 
Instance details

Defined in Wire.API.User.Auth

FromByteString ProviderToken Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

parser :: Parser ProviderToken Source #

Access

data AccessWithCookie c Source #

Constructors

Access 

Instances

Instances details
Foldable AccessWithCookie Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

fold :: Monoid m => AccessWithCookie m -> m #

foldMap :: Monoid m => (a -> m) -> AccessWithCookie a -> m #

foldMap' :: Monoid m => (a -> m) -> AccessWithCookie a -> m #

foldr :: (a -> b -> b) -> b -> AccessWithCookie a -> b #

foldr' :: (a -> b -> b) -> b -> AccessWithCookie a -> b #

foldl :: (b -> a -> b) -> b -> AccessWithCookie a -> b #

foldl' :: (b -> a -> b) -> b -> AccessWithCookie a -> b #

foldr1 :: (a -> a -> a) -> AccessWithCookie a -> a #

foldl1 :: (a -> a -> a) -> AccessWithCookie a -> a #

toList :: AccessWithCookie a -> [a] #

null :: AccessWithCookie a -> Bool #

length :: AccessWithCookie a -> Int #

elem :: Eq a => a -> AccessWithCookie a -> Bool #

maximum :: Ord a => AccessWithCookie a -> a #

minimum :: Ord a => AccessWithCookie a -> a #

sum :: Num a => AccessWithCookie a -> a #

product :: Num a => AccessWithCookie a -> a #

Traversable AccessWithCookie Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

traverse :: Applicative f => (a -> f b) -> AccessWithCookie a -> f (AccessWithCookie b) #

sequenceA :: Applicative f => AccessWithCookie (f a) -> f (AccessWithCookie a) #

mapM :: Monad m => (a -> m b) -> AccessWithCookie a -> m (AccessWithCookie b) #

sequence :: Monad m => AccessWithCookie (m a) -> m (AccessWithCookie a) #

Functor AccessWithCookie Source # 
Instance details

Defined in Wire.API.User.Auth

Methods

fmap :: (a -> b) -> AccessWithCookie a -> AccessWithCookie b #

(<$) :: a -> AccessWithCookie b -> AccessWithCookie a #

AsHeaders '[Maybe UserTokenCookie] AccessToken SomeAccess Source # 
Instance details

Defined in Wire.API.User.Auth

Servant