{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- | -- Module : Network.Google.Gmail.Types -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- module Network.Google.Gmail.Types ( -- * Service Configuration gmailService -- * OAuth Scopes , mailGoogleComScope , gmailModifyScope , gmailLabelsScope , gmailSendScope , gmailInsertScope , gmailComposeScope , gmailReadOnlyScope -- * BatchDeleteMessagesRequest , BatchDeleteMessagesRequest , batchDeleteMessagesRequest , bdmrIds -- * UsersMessagesGetFormat , UsersMessagesGetFormat (..) -- * ModifyThreadRequest , ModifyThreadRequest , modifyThreadRequest , mtrRemoveLabelIds , mtrAddLabelIds -- * ModifyMessageRequest , ModifyMessageRequest , modifyMessageRequest , mmrRemoveLabelIds , mmrAddLabelIds -- * History , History , history , hLabelsRemoved , hMessagesDeleted , hMessagesAdded , hLabelsAdded , hId , hMessages -- * ProFile , ProFile , proFile , pfMessagesTotal , pfThreadsTotal , pfHistoryId , pfEmailAddress -- * MessagePartHeader , MessagePartHeader , messagePartHeader , mphValue , mphName -- * ListHistoryResponse , ListHistoryResponse , listHistoryResponse , lhrNextPageToken , lhrHistory , lhrHistoryId -- * LabelType , LabelType (..) -- * UsersDraftsGetFormat , UsersDraftsGetFormat (..) -- * UsersMessagesImportInternalDateSource , UsersMessagesImportInternalDateSource (..) -- * LabelMessageListVisibility , LabelMessageListVisibility (..) -- * ListThreadsResponse , ListThreadsResponse , listThreadsResponse , ltrNextPageToken , ltrResultSizeEstimate , ltrThreads -- * MessagePart , MessagePart , messagePart , mpParts , mpBody , mpMimeType , mpHeaders , mpPartId , mpFilename -- * HistoryLabelAdded , HistoryLabelAdded , historyLabelAdded , hlaLabelIds , hlaMessage -- * ListLabelsResponse , ListLabelsResponse , listLabelsResponse , llrLabels -- * LabelLabelListVisibility , LabelLabelListVisibility (..) -- * HistoryMessageDeleted , HistoryMessageDeleted , historyMessageDeleted , hmdMessage -- * MessagePartBody , MessagePartBody , messagePartBody , mpbSize , mpbData , mpbAttachmentId -- * ListDraftsResponse , ListDraftsResponse , listDraftsResponse , ldrNextPageToken , ldrResultSizeEstimate , ldrDrafts -- * WatchResponse , WatchResponse , watchResponse , wrExpiration , wrHistoryId -- * UsersThreadsGetFormat , UsersThreadsGetFormat (..) -- * Draft , Draft , draft , dId , dMessage -- * WatchRequest , WatchRequest , watchRequest , wrLabelFilterAction , wrTopicName , wrLabelIds -- * WatchRequestLabelFilterAction , WatchRequestLabelFilterAction (..) -- * Message , Message , message , mRaw , mSnippet , mSizeEstimate , mPayload , mHistoryId , mId , mLabelIds , mThreadId , mInternalDate -- * UsersMessagesInsertInternalDateSource , UsersMessagesInsertInternalDateSource (..) -- * HistoryLabelRemoved , HistoryLabelRemoved , historyLabelRemoved , hlrLabelIds , hlrMessage -- * Thread , Thread , thread , tSnippet , tHistoryId , tId , tMessages -- * Label , Label , label , lThreadsUnread , lMessageListVisibility , lMessagesTotal , lMessagesUnread , lName , lThreadsTotal , lLabelListVisibility , lId , lType -- * ListMessagesResponse , ListMessagesResponse , listMessagesResponse , lmrNextPageToken , lmrResultSizeEstimate , lmrMessages -- * HistoryMessageAdded , HistoryMessageAdded , historyMessageAdded , hmaMessage ) where import Network.Google.Gmail.Types.Product import Network.Google.Gmail.Types.Sum import Network.Google.Prelude -- | Default request referring to version 'v1' of the Gmail API. This contains the host and root path used as a starting point for constructing service requests. gmailService :: ServiceConfig gmailService = defaultService (ServiceId "gmail:v1") "www.googleapis.com" -- | View and manage your mail mailGoogleComScope :: Proxy '["https://mail.google.com/"] mailGoogleComScope = Proxy; -- | View and modify but not delete your email gmailModifyScope :: Proxy '["https://www.googleapis.com/auth/gmail.modify"] gmailModifyScope = Proxy; -- | Manage mailbox labels gmailLabelsScope :: Proxy '["https://www.googleapis.com/auth/gmail.labels"] gmailLabelsScope = Proxy; -- | Send email on your behalf gmailSendScope :: Proxy '["https://www.googleapis.com/auth/gmail.send"] gmailSendScope = Proxy; -- | Insert mail into your mailbox gmailInsertScope :: Proxy '["https://www.googleapis.com/auth/gmail.insert"] gmailInsertScope = Proxy; -- | Manage drafts and send emails gmailComposeScope :: Proxy '["https://www.googleapis.com/auth/gmail.compose"] gmailComposeScope = Proxy; -- | View your emails messages and settings gmailReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/gmail.readonly"] gmailReadOnlyScope = Proxy;