License | MIT |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
- newtype AccountId = AccountId Base64Word64
- newtype ProjectId = ProjectId Base64Word64
- data Auth
- = Auth_itchJwtToken { }
- | Auth_itchApiKey {
- auth_itchApiKey :: !Text
- | Auth_steamEncryptedTicket { }
- | Auth_testKey {
- auth_testKey :: !Text
- auth_testId :: !StrWord64
- data AuthType
- authTypeOf :: Auth -> AuthType
- data Client
- = Client_itch { }
- | Client_steam { }
- | Client_test { }
- data ClientType
- clientTypeOf :: Client -> ClientType
- data ClientToken = ClientToken {}
- newtype ProjectServerId = ProjectServerId Base64Word64
- newtype ProjectServerToken = ProjectServerToken Text
- type MatchTeamSize = Int
- newtype MatchTag = MatchTag Text
- newtype MatchPlayerInfo = MatchPlayerInfo Text
- data MatchToken = MatchToken {}
- data SessionToken = SessionToken {}
- newtype SessionId = SessionId Base64ByteString
- newtype ServerSessionToken = ServerSessionToken {}
- data Identified i a = Identified {
- identified_id :: !i
- identified_info :: !a
- newtype Base64ByteString = Base64ByteString ByteString
- newtype Base64Word64 = Base64Word64 Word64
- newtype StrWord64 = StrWord64 Word64
Documentation
Account id. At the moment it's just itch user id, but that may change.
Project id.
Auth type (for logging).
authTypeOf :: Auth -> AuthType Source #
data ClientType Source #
Type of the client. Must correspont to JSON field "type" of Client
.
clientTypeOf :: Client -> ClientType Source #
data ClientToken Source #
newtype ProjectServerId Source #
Project's server id.
newtype ProjectServerToken Source #
Project's secret server token.
type MatchTeamSize = Int Source #
Size of a team in match request.
Match tag in match request.
newtype MatchPlayerInfo Source #
Opaque player info.
data MatchToken Source #
Match token.
Session id.
newtype ServerSessionToken Source #
Server session token.
data Identified i a Source #
Generic data type for id + object.
Identified | |
|
Generic (Identified i a) Source # | |
(ToJSON i, ToJSON a) => ToJSON (Identified i a) Source # | |
(FromJSON i, FromJSON a) => FromJSON (Identified i a) Source # | |
type Rep (Identified i a) Source # | |
newtype Base64ByteString Source #
ByteString which serializes to JSON as base64 string.
newtype Base64Word64 Source #
Word64 which serializes to JSON as base64 string. Useful because 64-bit integer is not representable in javascript.
Word64 which serializes to JSON as decimal string. Useful because 64-bit integer is not representable in javascript.