Type Definitions
-
additionalMailHeaders
-
Type:
- Object
- Source:
Properties:
Name Type Description autocryptString the Autocrypt header that should be
added to the outgoing mail -
AsciiArmored
-
Ascii Armored PGP Text Block
Type:
- String
- Source:
-
AutocryptMailHeaders
-
Type:
- Object
- Source:
Properties:
Name Type Description autocryptString the Autocrypt header to process
fromString the From header
dateString the Date header
-
BackupSyncHandler()
-
Parameters:
Type Description BackupSyncPacket object with backup data
- Source:
Returns:
- Type
- Promise.<undefined, Error>
-
BackupSyncPacket
-
Type:
- Object
- Source:
Properties:
Name Type Description backupAsciiArmored encrypted key backup as PGP armored message
-
CssSelector
-
CSS Selector String
Type:
- String
- Source:
-
DisplayContainer
-
Type:
- Object
- Source:
Properties:
Name Type Description errorError Error object with code and message attribute
error.code = 'DECRYPT_ERROR' - generic decrypt error
error.code = 'ARMOR_PARSE_ERROR' - error while parsing the armored message
error.code = 'PWD_DIALOG_CANCEL' - user canceled password dialog
error.code = 'NO_KEY_FOUND' - no private key found to decrypt this message -
DisplayContainerOptions
-
Type:
- Object
- Source:
Properties:
Name Type Description senderAddressString email address of sender, used to indentify key for signature verification
-
DownloadSyncHandler(downloadObj)
-
Parameters:
Name Type Description downloadObjObject meta info for download
Properties
Name Type Description eTagString entity tag for the current local keyring, or null if no local eTag
- Source:
Returns:
- if version on server has same eTag, then keyringMsg property of reply is empty, but eTag in reply has to be set
if server is initial and downloadObj.eTag is not null, then the promise is resolved with empty eTag
- Type
- Promise.<DownloadSyncReply, Error>
-
DownloadSyncReply
-
Type:
- Object
- Source:
Properties:
Name Type Description keyringMsgAsciiArmored encrypted keyring as PGP armored message, or null if no newer version available
eTagString entity tag for the current encrypted keyring message, or null if server is intial
-
EditorContainerOptions
-
Type:
- Object
- Source:
Properties:
Name Type Description quotanumber mail content (text + attachments) limit in kilobytes (default: 20480)
signMsgboolean if true then the mail will be signed (default: false)
armoredDraftAsciiArmored a PGP message, signed and encrypted with the default key of the user, will be used to restore a draft in the editor
The armoredDraft parameter can't be combined with the parameters: predefinedText, quotedMail... parameters, keepAttachmentspredefinedTextString text that will be added to the editor
quotedMailAsciiArmored mail that should be quoted
quotedMailIndentboolean if true the quoted mail will be indented (default: true)
quotedMailHeaderString header to be added before the quoted mail
keepAttachmentsboolean add attachments of quotedMail to editor (default: false)
-
KeyBackupContainerOptions
-
Type:
- Object
- Source:
-
KeyGenContainerOptions
-
Type:
- Object
- Source:
Properties:
Name Type Description userIdsArray.<UserId> array of user IDs. The first entry in the array is set as the primary user ID.
keySizenumber key size in bit, optional, default: 2048, valid values: 2048, 4096.
-
LookupResult
-
Type:
- Object
- Source:
Properties:
Name Type Argument Description fingerprintString Fingerprint of the key
lastModifiedDate last time the key was modified
sourceString Source the key was found at
Currently available:
* 'LOC' - local key ring
* 'WKD' - web key directory
* 'MKS' - mailvelope key server
* 'AC' - autocryptlastSeenDate <optional>
last time the key was seen
(not set for local keys)armoredString <optional>
Armored key that can be imported
(not set for local keys) -
OpenSettingsOptions
-
Type:
- Object
- Source:
-
outgoingMailHeaders
-
Type:
- Object
- Source:
Properties:
Name Type Description fromString the From header
-
PrivateKeyContainerOptions
-
Type:
- Object
- Source:
Properties:
Name Type Description restorePasswordboolean (default: false)
-
RestoreSyncHandler()
-
- Source:
Returns:
- Type
- Promise.<BackupSyncPacket, Error>
-
SettingsContainerOptions
-
Type:
- Object
- Source:
Properties:
Name Type Description emailString the email address of the current user
fullNameString the full name of the current user
-
SyncHandlerObject
-
Type:
- Object
- Source:
Properties:
Name Type Description uploadSyncUploadSyncHandler function called by Mailvelope to upload the keyring (public keys), the message is encrypted with the default private key
downloadSyncDownloadSyncHandler function called by Mailvelope to download the encrypted keyring (public keys)
backupBackupSyncHandler function called by Mailvelope to upload a symmetrically encrypted private key backup
restoreRestoreSyncHandler function called by Mailvelope to restore a private key backup
-
UploadSyncHandler(uploadObj)
-
Parameters:
Name Type Description uploadObjObject object with upload data
Properties
Name Type Description eTagString entity tag for the uploaded encrypted keyring, or null if initial upload
keyringMsgAsciiArmored encrypted keyring as PGP armored message
- Source:
Returns:
- if version on server has different eTag, then the promise is rejected
if server is initial and uploadObj.eTag is not null, then the promise is rejected
- Type
- Promise.<UploadSyncReply, Error>
-
UploadSyncReply
-
Type:
- Object
- Source:
Properties:
Name Type Description eTagString entity tag for the uploaded encrypted keyring
-
UserId
-
Type:
- Object
- Source:
Properties:
Name Type Description emailString the email address of the current user
fullNameString the full name of the current user