
- Complete NestJS TypeScript implementation with WebSocket support - Direct messaging (DM) and group chat functionality - End-to-end encryption with AES encryption and key pairs - Media file support (images, videos, audio, documents) up to 100MB - Push notifications with Firebase Cloud Messaging integration - Mention alerts and real-time typing indicators - User authentication with JWT and Passport - SQLite database with TypeORM entities and relationships - Comprehensive API documentation with Swagger/OpenAPI - File upload handling with secure access control - Online/offline status tracking and presence management - Message editing, deletion, and reply functionality - Notification management with automatic cleanup - Health check endpoint for monitoring - CORS configuration for cross-origin requests - Environment-based configuration management - Structured for Flutter SDK integration Features implemented: ✅ Real-time messaging with Socket.IO ✅ User registration and authentication ✅ Direct messages and group chats ✅ Media file uploads and management ✅ End-to-end encryption ✅ Push notifications ✅ Mention alerts ✅ Typing indicators ✅ Message read receipts ✅ Online status tracking ✅ File access control ✅ Comprehensive API documentation Ready for Flutter SDK development and production deployment.
106 lines
3.3 KiB
TypeScript
106 lines
3.3 KiB
TypeScript
import { Hash, type CHashO, type Input } from './utils.ts';
|
|
/** Blake1 options. Basically just "salt" */
|
|
export type BlakeOpts = {
|
|
salt?: Uint8Array;
|
|
};
|
|
declare abstract class BLAKE1<T extends BLAKE1<T>> extends Hash<T> {
|
|
protected finished: boolean;
|
|
protected length: number;
|
|
protected pos: number;
|
|
protected destroyed: boolean;
|
|
protected buffer: Uint8Array;
|
|
protected view: DataView;
|
|
protected salt: Uint32Array;
|
|
abstract compress(view: DataView, offset: number, withLength?: boolean): void;
|
|
protected abstract get(): number[];
|
|
protected abstract set(...args: number[]): void;
|
|
readonly blockLen: number;
|
|
readonly outputLen: number;
|
|
private lengthFlag;
|
|
private counterLen;
|
|
protected constants: Uint32Array;
|
|
constructor(blockLen: number, outputLen: number, lengthFlag: number, counterLen: number, saltLen: number, constants: Uint32Array, opts?: BlakeOpts);
|
|
update(data: Input): this;
|
|
destroy(): void;
|
|
_cloneInto(to?: T): T;
|
|
clone(): T;
|
|
digestInto(out: Uint8Array): void;
|
|
digest(): Uint8Array;
|
|
}
|
|
declare class Blake1_32 extends BLAKE1<Blake1_32> {
|
|
private v0;
|
|
private v1;
|
|
private v2;
|
|
private v3;
|
|
private v4;
|
|
private v5;
|
|
private v6;
|
|
private v7;
|
|
constructor(outputLen: number, IV: Uint32Array, lengthFlag: number, opts?: BlakeOpts);
|
|
protected get(): [number, number, number, number, number, number, number, number];
|
|
protected set(v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number): void;
|
|
destroy(): void;
|
|
compress(view: DataView, offset: number, withLength?: boolean): void;
|
|
}
|
|
declare class Blake1_64 extends BLAKE1<Blake1_64> {
|
|
private v0l;
|
|
private v0h;
|
|
private v1l;
|
|
private v1h;
|
|
private v2l;
|
|
private v2h;
|
|
private v3l;
|
|
private v3h;
|
|
private v4l;
|
|
private v4h;
|
|
private v5l;
|
|
private v5h;
|
|
private v6l;
|
|
private v6h;
|
|
private v7l;
|
|
private v7h;
|
|
constructor(outputLen: number, IV: Uint32Array, lengthFlag: number, opts?: BlakeOpts);
|
|
protected get(): [
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number,
|
|
number
|
|
];
|
|
protected set(v0l: number, v0h: number, v1l: number, v1h: number, v2l: number, v2h: number, v3l: number, v3h: number, v4l: number, v4h: number, v5l: number, v5h: number, v6l: number, v6h: number, v7l: number, v7h: number): void;
|
|
destroy(): void;
|
|
compress(view: DataView, offset: number, withLength?: boolean): void;
|
|
}
|
|
export declare class BLAKE224 extends Blake1_32 {
|
|
constructor(opts?: BlakeOpts);
|
|
}
|
|
export declare class BLAKE256 extends Blake1_32 {
|
|
constructor(opts?: BlakeOpts);
|
|
}
|
|
export declare class BLAKE384 extends Blake1_64 {
|
|
constructor(opts?: BlakeOpts);
|
|
}
|
|
export declare class BLAKE512 extends Blake1_64 {
|
|
constructor(opts?: BlakeOpts);
|
|
}
|
|
/** blake1-224 hash function */
|
|
export declare const blake224: CHashO;
|
|
/** blake1-256 hash function */
|
|
export declare const blake256: CHashO;
|
|
/** blake1-384 hash function */
|
|
export declare const blake384: CHashO;
|
|
/** blake1-512 hash function */
|
|
export declare const blake512: CHashO;
|
|
export {};
|
|
//# sourceMappingURL=blake1.d.ts.map
|