UNPKG

609 BTypeScriptView Raw
1export type EncryptedJsonVersion = '0' | '1' | '2' | '3';
2export type EncryptedJsonEncoding = 'none' | 'scrypt' | 'xsalsa20-poly1305';
3export interface EncryptedJsonDescriptor {
4 /** Descriptor for the content */
5 content: string[];
6 /** The encoding (in current/latest versions this is always an array) */
7 type: EncryptedJsonEncoding | EncryptedJsonEncoding[];
8 /** The version of encoding applied */
9 version: EncryptedJsonVersion;
10}
11export interface EncryptedJson {
12 /** The encoded string */
13 encoded: string;
14 /** The encoding used */
15 encoding: EncryptedJsonDescriptor;
16}