1 | export type EncryptedJsonVersion = '0' | '1' | '2' | '3';
|
2 | export type EncryptedJsonEncoding = 'none' | 'scrypt' | 'xsalsa20-poly1305';
|
3 | export 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 | }
|
11 | export interface EncryptedJson {
|
12 | /** The encoded string */
|
13 | encoded: string;
|
14 | /** The encoding used */
|
15 | encoding: EncryptedJsonDescriptor;
|
16 | }
|