377400228a
Call machine learning service inside a worker ML Debug page to trigger worker
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
export interface KeyAttributes {
|
|
kekSalt: string;
|
|
encryptedKey: string;
|
|
keyDecryptionNonce: string;
|
|
opsLimit: number;
|
|
memLimit: number;
|
|
publicKey: string;
|
|
encryptedSecretKey: string;
|
|
secretKeyDecryptionNonce: string;
|
|
masterKeyEncryptedWithRecoveryKey: string;
|
|
masterKeyDecryptionNonce: string;
|
|
recoveryKeyEncryptedWithMasterKey: string;
|
|
recoveryKeyDecryptionNonce: string;
|
|
}
|
|
|
|
export const ENCRYPTION_CHUNK_SIZE = 4 * 1024 * 1024;
|
|
export const GAP_BTW_TILES = 4;
|
|
export const DATE_CONTAINER_HEIGHT = 48;
|
|
export const IMAGE_CONTAINER_MAX_HEIGHT = 200;
|
|
export const IMAGE_CONTAINER_MAX_WIDTH =
|
|
IMAGE_CONTAINER_MAX_HEIGHT - GAP_BTW_TILES;
|
|
export const MIN_COLUMNS = 4;
|
|
export const SPACE_BTW_DATES = 44;
|
|
|
|
export enum PAGES {
|
|
CHANGE_EMAIL = '/change-email',
|
|
CHANGE_PASSWORD = '/change-password',
|
|
CREDENTIALS = '/credentials',
|
|
GALLERY = '/gallery',
|
|
GENERATE = '/generate',
|
|
LOGIN = '/login',
|
|
RECOVER = '/recover',
|
|
SIGNUP = '/signup',
|
|
TWO_FACTOR_SETUP = '/two-factor/setup',
|
|
TWO_FACTOR_VERIFY = '/two-factor/verify',
|
|
TWO_FACTOR_RECOVER = '/two-factor/recover',
|
|
VERIFY = '/verify',
|
|
ROOT = '/',
|
|
ML_DEBUG = '/ml-debug',
|
|
}
|