{"version":3,"file":"types.mjs","names":[],"sources":["../../src/types.ts"],"sourcesContent":["export type EncryptedKeystore = {\n  userEmail: string;\n  type: KeystoreType;\n  publicKey: string;\n  privateKeyEncrypted: string;\n};\n\nexport type RecipientWithPublicKey = {\n  email: string;\n  publicHybridKey: Uint8Array;\n};\n\nexport type HybridKeyPair = {\n  publicKey: Uint8Array;\n  secretKey: Uint8Array;\n};\n\nexport type PwdProtectedEmail = {\n  encryptedKey: PwdProtectedKey;\n  encEmail: EmailEncrypted;\n};\n\nexport type PwdProtectedEmailAndSubject = {\n  encryptedKey: PwdProtectedKey;\n  encEmail: EmailAndSubjectEncrypted;\n};\n\nexport type HybridEncKey = {\n  hybridCiphertext: string;\n  encryptedKey: string;\n  encryptedForEmail: string;\n};\n\nexport type PwdProtectedKey = {\n  encryptedKey: string;\n  salt: string;\n};\n\nexport type EmailEncrypted = {\n  encText: string;\n  encPreview: string;\n  encAttachmentsSessionKey: string;\n};\n\nexport type EmailAndSubjectEncrypted = EmailEncrypted & {\n  encSubject: string;\n};\n\nexport type Email = {\n  text: string;\n  preview: string;\n  attachmentsSessionKey: Uint8Array;\n};\n\nexport type EmailAndSubject = Email & {\n  subject: string;\n};\n\nexport enum KeystoreType {\n  ENCRYPTION = 'Encryption',\n  RECOVERY = 'Recovery',\n}\n"],"mappings":";AA0DA,IAAY,eAAL,yBAAA,cAAA;AACL,cAAA,gBAAA;AACA,cAAA,cAAA;;KACD"}